From: Brendan Hansen Date: Tue, 16 Feb 2021 17:02:26 +0000 (-0600) Subject: initial commit X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=0524719908fdc5b02b59c8c210e120ea77c984e5;p=onyx-prez.git initial commit --- 0524719908fdc5b02b59c8c210e120ea77c984e5 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..677129f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.sublime-project +*.sublime-workspace +*.wasm diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e1fc157 --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +onyx -V -r js src/build.onyx -o prez.wasm diff --git a/src/build.onyx b/src/build.onyx new file mode 100644 index 0000000..541cddd --- /dev/null +++ b/src/build.onyx @@ -0,0 +1,9 @@ + +use package build_opts as build_opts +#if build_opts.Runtime != build_opts.Runtime_Js { + #error "This software is only compatible with a JavaScript runtime. Use '-r js' to specify this on the command line." +} + +#load "core/std" + +#load "src/prez" diff --git a/src/prez.onyx b/src/prez.onyx new file mode 100644 index 0000000..2b2ba31 --- /dev/null +++ b/src/prez.onyx @@ -0,0 +1,7 @@ + + +use package core + +main :: (args: [] cstr) { + println("Got to main!"); +}