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
line 1:1 token recognition error at: ' '
Exception in thread "main" java.lang.NullPointerException
at org.antlr.v4.runtime.atn.LexerATNSimulator.execDFA(LexerATNSimulator.java:244)
at org.antlr.v4.runtime.atn.LexerATNSimulator.match(LexerATNSimulator.java:155)
at org.antlr.v4.runtime.Lexer.nextToken(Lexer.java:146)
at org.antlr.v4.runtime.BufferedTokenStream.fetch(BufferedTokenStream.java:133)
at org.antlr.v4.runtime.BufferedTokenStream.sync(BufferedTokenStream.java:127)
at org.antlr.v4.runtime.CommonTokenStream.consume(CommonTokenStream.java:69)
at org.antlr.v4.runtime.Parser.consume(Parser.java:351)
at org.antlr.v4.runtime.Parser.match(Parser.java:135)
at test.ANTLRv4Parser.ruler(ANTLRv4Parser.java:76)
at Test.main(Test.java:19)
And here is a test input (similiar to the one of issue #45, only with spaces in between):
x : x ;
Code for parser execution:
ANTLRv4Lexer lex = new ANTLRv4Lexer(new ANTLRInputStream(new FileInputStream(new File("test.input"))));
CommonTokenStream tokens = new CommonTokenStream(lex);
new ANTLRv4Parser(tokens).ruler();
The text was updated successfully, but these errors were encountered:
I receive the following null pointer exception
This is the used grammar (the one of issue #45)
And here is a test input (similiar to the one of issue #45, only with spaces in between):
Code for parser execution:
The text was updated successfully, but these errors were encountered: