I'm trying to target Cpp with a simple grammar T.g outputting to an AST with a tree grammar.
Can't find AST.stg, which doesn't exist in the source code. Same error with both 3.4 and 3.5 rc1.
Thanks for any help.
java -jar ../../../antlr-3.5-rc-1-complete.jar T.g TWalker.g
error(10): internal error: T.g : java.lang.IllegalArgumentException: No such group file:
org/antlr/codegen/templates/Cpp/AST.stg
org.stringtemplate.v4.STGroupFile.<init>(STGroupFile.java:69)
org.stringtemplate.v4.STGroupFile.<init>(STGroupFile.java:48)
org.antlr.codegen.CodeGenerator.loadTemplates(CodeGenerator.java:222)
org.antlr.codegen.CodeGenerator.genRecognizer(CodeGenerator.java:283)
org.antlr.Tool.generateRecognizer(Tool.java:661)
org.antlr.Tool.process(Tool.java:474)
org.antlr.Tool.main(Tool.java:98)
The C++ target does not support AST creation (yet).
See: Unsupported features at https://theantlrguy.atlassian.net/wiki/pages/viewpage.action?pageId=2687101
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With