From 0524719908fdc5b02b59c8c210e120ea77c984e5 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Tue, 16 Feb 2021 11:02:26 -0600 Subject: [PATCH] initial commit --- .gitignore | 3 +++ build.sh | 3 +++ src/build.onyx | 9 +++++++++ src/prez.onyx | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 .gitignore create mode 100755 build.sh create mode 100644 src/build.onyx create mode 100644 src/prez.onyx 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!"); +} -- 2.25.1