parser: make 'CONSTANT: foo<newline>3' work in the listener

db4
Slava Pestov 2010-01-15 08:30:26 +13:00
parent df40d92216
commit ed37ed6b70
1 changed files with 5 additions and 2 deletions

View File

@ -55,8 +55,11 @@ ERROR: staging-violation word ;
execute( accum -- accum ) ;
: scan-object ( -- object )
scan-word dup parsing-word?
[ V{ } clone swap execute-parsing first ] when ;
scan-word {
{ [ dup not ] [ unexpected-eof ] }
{ [ dup parsing-word? ] [ V{ } clone swap execute-parsing first ] }
[ ]
} cond ;
: parse-step ( accum end -- accum ? )
scan-word {