build true and false from results of comparisons

This commit is contained in:
Russ Olsen 2012-07-20 14:18:16 -04:00
parent 1e425c552a
commit 98045c9410

View file

@ -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 ]