mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 15:21:38 +00:00
9 lines
159 B
Smalltalk
9 lines
159 B
Smalltalk
#
|
|
# WHILE test
|
|
#
|
|
FORWARD success;
|
|
FORWARD failure;
|
|
: body "." >s DROP -- ;
|
|
: do_while WHILE body END ;
|
|
: MAIN 20 do_while 0 = IF success ELSE failure ENDIF;
|