mirror of
https://github.com/russolsen/cloforth
synced 2024-11-16 19:48:23 +01:00
build true and false from results of comparisons
This commit is contained in:
parent
1e425c552a
commit
98045c9410
1 changed files with 3 additions and 2 deletions
5
init.c4
5
init.c4
|
@ -4,8 +4,9 @@
|
|||
; : <word> [ <<defintion>> ]
|
||||
compile [ gettok compile rot set! ] ':' set!
|
||||
|
||||
; False is not true
|
||||
: false [ true not ]
|
||||
: true [ 1 1 = ]
|
||||
|
||||
: false [ 1 0 = ]
|
||||
|
||||
; Print the top of the stack and pop it off
|
||||
: . [ print drop ]
|
||||
|
|
Loading…
Reference in a new issue