small refactor and cleanup

This commit is contained in:
IgorCielniak
2026-01-08 13:15:27 +01:00
parent 963e024108
commit d4dc6ceef5
52 changed files with 418 additions and 372 deletions

26
tests/fib.sl Normal file
View File

@@ -0,0 +1,26 @@
import ../stdlib/stdlib.sl
import ../stdlib/io.sl
import ../stdlib/debug.sl
: main
1 1 2dup 2dup puti cr puti cr
+
dup puti cr
rot
22 dup >r for
2dup + dup puti cr
rot
end
"-------" puts
r> 3 + puti
" numbers printed from the fibonaci sequence" puts
0
;
: main2
1 2 while over 100 < do
over puti cr
swap over +
end
;