The Lambda Lab
/
projects
/
forth.jl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Functionally complete implementation.
[forth.jl.git]
/
src
/
lib_1_basic.4th
diff --git
a/src/lib_1_basic.4th
b/src/lib_1_basic.4th
index
21c7b93
..
bc21965
100644
(file)
--- a/
src/lib_1_basic.4th
+++ b/
src/lib_1_basic.4th
@@
-64,13
+64,14
@@
['] LIT , ,
;
['] LIT , ,
;
-\ LFA of most recent definition
-: LATEST
- CURRENT @ 1+ ;
+\ Convert vocabulary CFA to link addr it contains
+: VOCAB>LATEST
+ 1+ @
+;
\ Compile in recursive call to current word
: RECURSE IMMEDIATE
\ Compile in recursive call to current word
: RECURSE IMMEDIATE
- LATEST @ \ LATEST points to the word being compiled at the moment
+ CURRENT @ VOCAB>LATEST
LINK> \ get the codeword
, \ compile it
;
LINK> \ get the codeword
, \ compile it
;