riju/langs/limbo.yaml

31 lines
493 B
YAML

id: "limbo"
aliases:
- "inferno"
- "b"
name: "Limbo"
setup: |
ln -s /usr/local/inferno/* ./
main: "riju/main.b"
template: |
implement Cmd;
include "sys.m";
include "draw.m";
Cmd : module {
init : fn (ctxt : ref Draw->Context, args : list of string);
};
init(nil : ref Draw->Context, nil : list of string)
{
sys := load Sys Sys->PATH;
sys->print("Hello, world!\n");
}
compile: |
limbo -o riju/main.dis riju/main.b
run: |
emu -r . riju/main.dis