mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
Revert "Add indirection to key and emit"
This reverts commit ca9bf42a26
.
This commit is contained in:
parent
da4f8f1ff8
commit
8d7a344064
1 changed files with 2 additions and 15 deletions
17
bootstrap.fs
17
bootstrap.fs
|
@ -433,6 +433,8 @@ alias-builtin bye Q
|
|||
alias-builtin cell C
|
||||
alias-builtin &here h
|
||||
alias-builtin &latest l
|
||||
alias-builtin key k
|
||||
alias-builtin emit t
|
||||
alias-builtin branch j
|
||||
alias-builtin 0branch J
|
||||
alias-builtin execute x
|
||||
|
@ -452,21 +454,6 @@ alias-builtin and &
|
|||
alias-builtin or |
|
||||
alias-builtin xor ^
|
||||
|
||||
\ One-step indirection for key and emit. Since k and t are
|
||||
\ temporary implementations, we will allow them to be replaced later.
|
||||
&here @ # cell + &here !
|
||||
: key-func [ ' L , , ] ;
|
||||
' k key-func !
|
||||
: key key-func @ execute ;
|
||||
|
||||
&here @ # cell + &here !
|
||||
: emit-func [ ' L , , ] ;
|
||||
' t emit-func !
|
||||
: emit emit-func @ execute ;
|
||||
|
||||
|
||||
|
||||
|
||||
\ Rename existing FORTH words
|
||||
: word W ;
|
||||
: find F ;
|
||||
|
|
Loading…
Reference in a new issue