#!/bin/sh
DIST_DIR="./dist"
-ONYX_INSTALL_DIR="$HOME/.onyx"
compile_all() {
if [ "$ONYX_RUNTIME_LIBRARY" = "ovmwasm" ]; then
}
install_all() {
+ [ -z ${ONYX_INSTALL_DIR+x} ] && echo "Please set ONYX_INSTALL_DIR to install Onyx." && exit 1
+
package_all
echo "Installing to $ONYX_INSTALL_DIR"
return dig % 7;
}
+ start_of_month :: (d: Date) -> Date {
+ return .{
+ year = d.year,
+ month = d.month,
+ day = 1,
+ };
+ }
+
+ end_of_month :: (d: Date) -> Date {
+ return .{
+ year = d.year,
+ month = d.month,
+ day = Date.month_durations[d.month],
+ };
+ }
+
is_before :: (d1, d2: Date) -> bool {
if d1.year != d2.year do return d1.year < d2.year;
if d1.month != d2.month do return d1.month < d2.month;
{
- "name": "onyx",
- "displayName": "Onyx",
+ "name": "onyxlang",
+ "displayName": "Onyx Programming Language",
"description": "Onyx syntax highlighting and debugger support.",
"version": "0.1.8",
- "publisher": "brendanfh",
+ "publisher": "onyxlang",
"license": "BSD-2-Clause",
"engines": {
"vscode": "^1.75.0"
+# Where Onyx will be installed from the "./build.sh install" command.
+export ONYX_INSTALL_DIR="$HOME/.onyx"
+
# The compiler to use. Only GCC and TCC have been tested.
export ONYX_CC='gcc'