add import feature

This commit is contained in:
2026-01-13 10:32:47 +09:00
parent eb1a977adb
commit dd1fbfd5da
12 changed files with 109 additions and 37 deletions

7
test/fib/exported Normal file
View File

@@ -0,0 +1,7 @@
fib
fn .fib 160 0 1 1
0
int 1 8 56
8
int 1 8 0

8
test/fib/fib.yo Normal file
View File

@@ -0,0 +1,8 @@
package fib
export fn fib(n int) int {
if n <= 1 {
return n;
};
return fib(n-1) + fib(n-2);
};

BIN
test/fib/obj Normal file

Binary file not shown.