summaryrefslogtreecommitdiff
path: root/HelloWorld
diff options
context:
space:
mode:
Diffstat (limited to 'HelloWorld')
-rw-r--r--HelloWorld/hello.b15
1 files changed, 15 insertions, 0 deletions
diff --git a/HelloWorld/hello.b b/HelloWorld/hello.b
new file mode 100644
index 0000000..2621594
--- /dev/null
+++ b/HelloWorld/hello.b
@@ -0,0 +1,15 @@
+implement Hello;
+
+include "sys.m";
+include "draw.m";
+
+Hello: module {
+ init: fn(nil: ref Draw->Context, nil: list of string);
+};
+
+init(nil: ref Draw->Context, nil: list of string) {
+ sys := load Sys Sys->PATH;
+
+ sys->print("Hello World! ☺\n");
+ exit;
+}