small refactor and cleanup
This commit is contained in:
13
tests/loop_while.sl
Normal file
13
tests/loop_while.sl
Normal file
@@ -0,0 +1,13 @@
|
||||
import ../stdlib/stdlib.sl
|
||||
import ../stdlib/io.sl
|
||||
|
||||
: main
|
||||
10
|
||||
while
|
||||
dup 0 >
|
||||
do
|
||||
dup puti cr
|
||||
1 -
|
||||
end
|
||||
drop
|
||||
;
|
||||
Reference in New Issue
Block a user