mirror of
https://github.com/nineties/planckforth
synced 2024-12-26 21:58:42 +01:00
Add Variable and Constant
This commit is contained in:
parent
ad48c240b0
commit
9a8257c238
1 changed files with 6 additions and 0 deletions
6
core.fs
6
core.fs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue