Using standard field conversion words.
[forth.jl.git] / src / lib_1_basic.4th
index dc8c584..00b200d 100644 (file)
 : C@ @ ;
 : C, , ;
 
+\ Retrieve stack depth
 : DEPTH PSP@ PSP0 - ;
 
+\ Words for whitespace
 : '\n' 10 ;
 : BL 32 ;
 : CR '\n' emit ;
 : SPACE BL emit ;
 
+\ CFA retrieval
 : ' BL WORD FIND DROP ;
 : ['] IMMEDIATE
      LIT LIT , ' , ;
 
+\ Compilation
+
 : [COMPILE] IMMEDIATE ' , ;
 : COMPILE IMMEDIATE
     LIT LIT , ' , LIT , , ;
     ['] LIT , ,
 ;
 
+\ LFA of most recent definition
 : LATEST
     CURRENT @ ;
 
+\ Compile in recursive call to current word
 : RECURSE IMMEDIATE
         LATEST @        \ LATEST points to the word being compiled at the moment
-        LFA>CFA         \ get the codeword
+        LINK>           \ get the codeword
         ,               \ compile it
 ;