You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue is that consume() of EOF doesn't move p in token stream so LT(-1) doesn't include it. Not sure of best solution. Must detect match of EOF. Can't test LT(1)==EOF as that can't distinguish "about to match EOF" from "matched EOF".
The text was updated successfully, but these errors were encountered:
Test case shows issue. Tree shows
<EOF>
but source interval doesn't include it. Whoops. Culprit isParser
:Issue is that consume() of EOF doesn't move p in token stream so
LT(-1)
doesn't include it. Not sure of best solution. Must detect match of EOF. Can't testLT(1)==EOF
as that can't distinguish "about to match EOF" from "matched EOF".The text was updated successfully, but these errors were encountered: