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
java -jar antlr4-4.8-2-SNAPSHOT-complete.jar -Dlanguage=Rust Expr.g4 -o generated/expr -visitor
error(31): ANTLR cannot generate Rust code as of version 4.8
Exception in thread "main" java.lang.NullPointerException
at org.antlr.v4.analysis.LeftRecursiveRuleAnalyzer.getArtificialOpPrecRule(LeftRecursiveRuleAnalyzer.java:211)
at org.antlr.v4.analysis.LeftRecursiveRuleTransformer.translateLeftRecursiveRule(LeftRecursiveRuleTransformer.java:116)
at org.antlr.v4.analysis.LeftRecursiveRuleTransformer.translateLeftRecursiveRules(LeftRecursiveRuleTransformer.java:71)
at org.antlr.v4.semantics.SemanticPipeline.process(SemanticPipeline.java:71)
at org.antlr.v4.Tool.processNonCombinedGrammar(Tool.java:382)
at org.antlr.v4.Tool.process(Tool.java:369)
at org.antlr.v4.Tool.processGrammarsOnCommandLine(Tool.java:328)
at org.antlr.v4.Tool.main(Tool.java:172)
The text was updated successfully, but these errors were encountered:
It simply mean that your fat jar was not built with the Rust target. Ensure you did the git submodule update in the antlr4 directory and that your Reactor Summary for your fat jar build is a full green SUCCESS.
Hi I am building antlr binary and use it to generate my parser and I saw a NPE in the runtime
Here is what I did
Then I get
Run it to against Expr.g4
The text was updated successfully, but these errors were encountered: