changed the way that functions are defined

This commit is contained in:
IgorCielniak
2026-01-08 15:28:10 +01:00
parent d4dc6ceef5
commit b9098d9893
33 changed files with 232 additions and 198 deletions

View File

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