2020-05-16 12:44:49 +10:00
|
|
|
( Now we have "as late as possible" stuff )
|
2020-05-25 00:01:46 +10:00
|
|
|
: _bchk DUP 0x7f + 0xff > IF LIT< br-ovfl (print) ABORT THEN ;
|
2020-05-16 12:44:49 +10:00
|
|
|
: DO COMPILE 2>R H@ ; IMMEDIATE
|
2020-05-25 00:01:46 +10:00
|
|
|
: LOOP COMPILE (loop) H@ - _bchk , ; IMMEDIATE
|
2020-05-16 12:44:49 +10:00
|
|
|
( LEAVE is implemented in low xcomp )
|
|
|
|
: LITN 32 , , ( 32 == NUMBER ) ;
|
|
|
|
( gets its name at the very end. can't comment afterwards )
|
|
|
|
: _ BEGIN LIT< ) WORD S= UNTIL ; IMMEDIATE
|
|
|
|
: _ ( : will get its name almost at the very end )
|
|
|
|
(entry)
|
|
|
|
[ 14 ( == compiledWord ) LITN ] C,
|
|
|
|
BEGIN
|
|
|
|
WORD FIND
|
|
|
|
IF ( is word ) DUP IMMED? IF EXECUTE ELSE , THEN
|
|
|
|
ELSE ( maybe number ) (parse) LITN THEN
|
|
|
|
AGAIN ;
|