2020-09-20 08:51:29 +10:00
|
|
|
: LIT"
|
|
|
|
COMPILE (s) H@ 0 C, ,"
|
|
|
|
DUP H@ -^ 1- ( a len ) SWAP C!
|
|
|
|
; IMMEDIATE
|
|
|
|
( We don't use ." and ABORT in core, they're not xcomp-ed )
|
|
|
|
: ." [COMPILE] LIT" COMPILE (print) ; IMMEDIATE
|
|
|
|
: ABORT" [COMPILE] ." COMPILE ABORT ; IMMEDIATE
|
2020-05-16 12:44:49 +10:00
|
|
|
: BEGIN H@ ; IMMEDIATE
|
2020-09-20 03:54:01 +10:00
|
|
|
: AGAIN COMPILE (br) H@ - _bchk C, ; IMMEDIATE
|
|
|
|
: UNTIL COMPILE (?br) H@ - _bchk C, ; IMMEDIATE
|
2020-05-16 12:44:49 +10:00
|
|
|
: [ INTERPRET ; IMMEDIATE
|
|
|
|
: ] R> DROP ;
|
2020-06-18 03:50:42 +10:00
|
|
|
: COMPILE ' LITN ['] , , ; IMMEDIATE
|
2020-05-16 12:44:49 +10:00
|
|
|
: [COMPILE] ' , ; IMMEDIATE
|
2020-07-05 21:09:11 +10:00
|
|
|
: ['] ' LITN ; IMMEDIATE
|