diff options
Diffstat (limited to 'projects/Stacker/test/while.st')
-rw-r--r-- | projects/Stacker/test/while.st | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/projects/Stacker/test/while.st b/projects/Stacker/test/while.st new file mode 100644 index 0000000000..7798f12e1f --- /dev/null +++ b/projects/Stacker/test/while.st @@ -0,0 +1,8 @@ +# +# WHILE test +# +FORWARD success; +FORWARD failure; +: body "." >s DROP -- ; +: do_while WHILE body END ; +: MAIN 20 do_while 0 = IF success ELSE failure ENDIF; |