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
Yep I figured that one out too. Was just reporting it since it throws an NPE and the other messages aren't really descriptive either. So you end up being stuck in the woods and have to start digging around whats wrong. Eventually users might find this bug report after spending some time to try to figure out whats wrong. Maybe the best solution would be to catch this case and report the user about the wrong order or pointing the user to the manual in order to make it less frustrating to work with antlr.
@166MMX The processing for these headers was rewritten for ANTLR 4 to prevent the confusion (and allow the headers to appear in any order). Since ANTLR 3 is essentially in maintenance mode and this issue does not have any impact on overall correctness of valid grammars, it's unlikely to get fixed unless someone sends a pull request with a very low-risk implementation of the feature.
Getting this NPE while trying to generate a Lexer - syntax of the grammar might be broken
cmd args
'org.antlr:antlr:3.5.2'
Grammar file: https://gist.github.com/166MMX/2f4fb04313794e3572ae
The text was updated successfully, but these errors were encountered: