Closed mcheshkov closed 10 years ago
Thanks for reporting. I came across this as well but tried to forget about it because it likely means rewriting the token caching mechanism.
In haxe implementation, Comment tokens are filtered out in Stream.from
, so before any stream peek or junk know about it.
I used Stream subclass, with constructor taking that function and caching inside stream, it's pretty simple
Didnt realise that Stream
Is my code, not library. I'll try to make pull request for this in couple of days.
Thanks!
This code breaks haxelib version of parser with
MissingSemicolon
.That happens because
semicolon()
useslast.tok
and comment tokens are junked out inside the peek, replacing actual last token.