antlr - java.lang.NullPointerException with C# target -
i tried update antlr3 grammar file use parsing our own dsl new antlr4 format.
after eliminating syntax errors whith antlrworks2 integrated grammar in visual studio 2013 test project includes antlr 4.3.0 c# targe runtime library. following callstack while compiling grammar:
unknown build error:
executing command: "c:\program files (x86)\java\jre1.8.0_31\bin\java.exe" -cp d:\projects\antlr4test\packages\antlr4.4.3.0\build\..\tools\antlr4-csharp-4.3-complete.jar org.antlr.v4.csharptool -o obj\debug\ -listener -visitor -dlanguage=csharp_v4_5 -package antlr4test d:\projects\antlr4test\antlr4test\upssharp.g4 (taskid:10) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: exception in thread "main" java.lang.nullpointerexception 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.automata.parseratnfactory.elemlist(parseratnfactory.java:490) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.automata.parseratnfactory.alt(parseratnfactory.java:477) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.parse.atnbuilder.alternative(atnbuilder.java:556) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.parse.atnbuilder.ruleblock(atnbuilder.java:290) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.automata.parseratnfactory._createatn(parseratnfactory.java:186) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.automata.lexeratnfactory.createatn(lexeratnfactory.java:134) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.tool.processnoncombinedgrammar(tool.java:405) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.tool.process(tool.java:376) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.tool.processgrammarsoncommandline(tool.java:343) 1>d:\projects\antlr4test\packages\antlr4.4.3.0\build\antlr4.targets(132,5): error ac1000: unknown build error: @ org.antlr.v4.csharptool.main(csharptool.java:59) 1>done executing task "antlr4classgenerationtask" -- failed. (taskid:10)
trying compile example grammars working fine! don`t have experience antlr , want update antlr4, perhaps has idea happens?
thanks in advance! holger
Comments
Post a Comment