Add Variable and Constant

This commit is contained in:
Koichi Nakamura 2021-01-02 09:08:59 +09:00
parent ad48c240b0
commit 9a8257c238

View file

@ -819,6 +819,12 @@ alias-builtin xor ^
swap ! \ backfill xt to the operand of literal
; immediate
( === Variable and Constant === )
\ ( "name" -- )
: variable create 0 , ;
\ ( n "name" -- )
: constant create , does> @ ;
bye