making modules work

This commit is contained in:
mlokr 2024-06-01 20:29:35 +02:00
parent e494785f93
commit b9de362ba2
No known key found for this signature in database
GPG key ID: DEA147DDEE644993
2 changed files with 8 additions and 0 deletions

5
hblang/text-prj/main.hb Normal file
View 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
View file

@ -0,0 +1,3 @@
fib := fn(n: int): int {
return n + 1;
}