Redefine compilers using word which uses inputstream

This commit is contained in:
Koichi Nakamura 2021-01-05 21:46:49 +09:00
parent dd1ad8d1f7
commit 921a5f8a23

View file

@ -1555,7 +1555,21 @@ stdin_ push-inputstream
again
;
: ' ( "name" -- xt ) word throw find >cfa ;
: ' ( "name" -- xt )
word throw
find ?dup if
>cfa
else
UNDEFINED-WORD-ERROR throw
then
;
: [compile] ' , ; immediate
: compile-helper
[compile] literal
[ ' , ] literal ,
;
: compile ' compile-helper ; immediate
: ['] ' [compile] literal ; immediate
: : ( "name -- )
align