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
If I provide an empty lexer, then ANTLR will crash with a confusing NullPointerException. I don't think an empty lexer is really a common case, but the NPE had me worried for a little bit because I didn't understand what was causing it.
The cause is that LexerGrammar doesn't initialize modes until a rule is added.
If I provide an empty lexer, then ANTLR will crash with a confusing
NullPointerException
. I don't think an empty lexer is really a common case, but the NPE had me worried for a little bit because I didn't understand what was causing it.The cause is that
LexerGrammar
doesn't initializemodes
until a rule is added.Relevant stacktrace:
The text was updated successfully, but these errors were encountered: