-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return a marker token at the end of any buffer #842
Conversation
An This fix will allow #716 to be mergable since it needs the EOF hack removed to allow |
This also now allows a label in front of |
The |
Removes the lexer hack mentioned in gbdev#778
Bison 3.1 introduces "typed midrule values", which would write `<captureTerminated>{ ... }` and `$$` instead of `{ ... }` and `$<captureTerminated>[1-9]`, but rgbds supports 3.0 or even lower.
This avoids the need for a separate `terminated` flag
`yylex` calls `yywrap` at the beginning of the next call, after it has set `lexerState->lastToken` to `T_EOB`.
Removes the lexer hack mentioned in #778