forked from AbleOS/ableos
making modules work
This commit is contained in:
parent
e494785f93
commit
0bd327ed3e
5
hblang/text-prj/main.hb
Normal file
5
hblang/text-prj/main.hb
Normal file
|
@ -0,0 +1,5 @@
|
|||
pkg := @use("pkg.hb");
|
||||
|
||||
main := fn(a: int): int {
|
||||
return pkg.fib(10);
|
||||
}
|
3
hblang/text-prj/pkg.hb
Normal file
3
hblang/text-prj/pkg.hb
Normal file
|
@ -0,0 +1,3 @@
|
|||
fib := fn(n: int): int {
|
||||
return n + 1;
|
||||
}
|
Loading…
Reference in a new issue