2020-05-21 11:03:48 +00:00
|
|
|
# hello_world.b
|
|
|
|
|
|
|
|
implement HelloWorld;
|
|
|
|
|
|
|
|
include "sys.m";
|
|
|
|
include "draw.m";
|
2020-05-21 12:35:57 +00:00
|
|
|
sys: Sys;
|
2020-05-21 11:03:48 +00:00
|
|
|
|
|
|
|
HelloWorld: module {
|
|
|
|
init: fn(ctxt: ref Draw->Context, args: list of string);
|
|
|
|
};
|
|
|
|
|
|
|
|
init(ctxt: ref Draw->Context, args: list of string) {
|
|
|
|
sys = load Sys Sys->PATH;
|
|
|
|
|
|
|
|
sys->print("Hello, World!\n");
|
|
|
|
}
|