--- /dev/null
+
+ONYX_MODULE_DIRECTORY=/home/brendan/dev/c/onyx
+
+FLAGS=
+[ ! -z "$DEBUG" ] && FLAGS=--print-function-mappings
+
+onyx -V --no-colors $FLAGS \
+ -I $ONYX_MODULE_DIRECTORY \
+ src/build.onyx
+
--- /dev/null
+#load "core/std"
+
+use package core
+
+main :: (args: [] cstr) {
+ println("Hello World!");
+}
--- /dev/null
+#load "core/std"
+
+#load "modules/wasm_utils/module"
+#load "modules/json/module"
+
+#if (package runtime).Runtime == (package runtime).Runtime_Js {
+ #load "modules/webgl2/module"
+ #load "modules/immediate_mode/module"
+ #load "modules/ui/module"
+}
+
+#load "src/main"
--- /dev/null
+
+use package core
+#private_file wasm :: package wasm_utils
+
+main :: (args: [] cstr) {
+
+ wasm_data := #file_contents "data/test.wasm";
+
+ wasm_binary := wasm.load(wasm_data);
+ println("Loaded sections");
+
+ for ^entry: wasm_binary.section_locations.entries {
+ printf("Section number: {}\nOffset: {}\n", entry.key, entry.value);
+ }
+}
+