projects
/
pforth
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e1997fba5840b982ecfc2954d882e3132b05b525
[pforth]
/
fth
/
t_case.fth
\ test CASE
anew test-case
: TCASE ( N -- )
CASE
0 OF ." is zero" ENDOF
1 OF
2 choose
CASE
0 OF ." chose zero" ENDOF
1 OF ." chose one" ENDOF
[ .s cr ." of-depth = " of-depth @ . cr ]
ENDCASE
ENDOF
[ .s cr ." of-depth = " of-depth @ . cr ]
ENDCASE
;