mirror of
https://github.com/nineties/planckforth
synced 2025-01-13 08:01:10 +01:00
Redefine compilers using word which uses inputstream
This commit is contained in:
parent
dd1ad8d1f7
commit
921a5f8a23
1 changed files with 15 additions and 1 deletions
16
bootstrap.fs
16
bootstrap.fs
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue