Grammar improvements: validations, optional semicolons, entry rules#120
Conversation
You can change the decision for that to use LL instead of SLL. That way, it will parse correctly (at the cost of a bit of performance). |
Ok like this? |
I originally had something different in mind - but that doesn't seem to work correctly (for some reason). Your solution works well 👍 |
msujew
left a comment
There was a problem hiding this comment.
Thanks, that helps a lot. Just one comment - also I want some feedback for the optional ; at the end of rules. @cdietrich care to chime in? WDYT?
Note: for parser rules and composite rules, a semicolon is still needed if another parser rule follows after that because it starts with an ID. Maybe we can improve the lookahead for this specific case later.entrykeyword to explicitly mark the grammar's entry rule