diff options
| author | seh <henesy.dev@gmail.com> | 2019-02-25 13:49:59 -0600 |
|---|---|---|
| committer | seh <henesy.dev@gmail.com> | 2019-02-25 13:49:59 -0600 |
| commit | b91b86a9b63f3a767c8cbf9c46a794fb00a86883 (patch) | |
| tree | 905fe9520cdaa9fda6aef0fb1af4157a0a05d16c /HelloWorld | |
| parent | a441e96695c14e570905835af9157b7b3d17e82e (diff) | |
add hello world
Diffstat (limited to 'HelloWorld')
| -rw-r--r-- | HelloWorld/hello.b | 15 |
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; +} |
