2020-09-19 18:51:29 -04: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-15 22:44:49 -04:00
|
|
|
: BEGIN H@ ; IMMEDIATE
|
2020-09-19 13:54:01 -04:00
|
|
|
: AGAIN COMPILE (br) H@ - _bchk C, ; IMMEDIATE
|
|
|
|
: UNTIL COMPILE (?br) H@ - _bchk C, ; IMMEDIATE
|
2020-05-15 22:44:49 -04:00
|
|
|
: [ INTERPRET ; IMMEDIATE
|
|
|
|
: ] R> DROP ;
|
2020-06-17 13:50:42 -04:00
|
|
|
: COMPILE ' LITN ['] , , ; IMMEDIATE
|
2020-05-15 22:44:49 -04:00
|
|
|
: [COMPILE] ' , ; IMMEDIATE
|
2020-07-05 07:09:11 -04:00
|
|
|
: ['] ' LITN ; IMMEDIATE
|