diff options
Diffstat (limited to 'example/countup.slang')
-rw-r--r-- | example/countup.slang | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/example/countup.slang b/example/countup.slang new file mode 100644 index 0000000..69e71db --- /dev/null +++ b/example/countup.slang @@ -0,0 +1,9 @@ +1 i $ + +§ incr dup @ 1 + swp $ ; +§ print @ . pop ; +§ withinBounds @ 10 < ; + +§ loop i withinBounds if i print i incr loop then else ; + +loop |