From b91b86a9b63f3a767c8cbf9c46a794fb00a86883 Mon Sep 17 00:00:00 2001 From: seh Date: Mon, 25 Feb 2019 13:49:59 -0600 Subject: add hello world --- HelloWorld/hello.b | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 HelloWorld/hello.b (limited to 'HelloWorld') 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; +} -- cgit v1.2.3