diff --git a/hblang/text-prj/main.hb b/hblang/text-prj/main.hb new file mode 100644 index 00000000..85e81a94 --- /dev/null +++ b/hblang/text-prj/main.hb @@ -0,0 +1,5 @@ +pkg := @use("pkg.hb"); + +main := fn(a: int): int { + return pkg.fib(10); +} diff --git a/hblang/text-prj/pkg.hb b/hblang/text-prj/pkg.hb new file mode 100644 index 00000000..931098ba --- /dev/null +++ b/hblang/text-prj/pkg.hb @@ -0,0 +1,3 @@ +fib := fn(n: int): int { + return n + 1; +}