[antlr-interest] can tree grammers have an output of AST?
Robert Hill
rob.hill at blueyonder.co.uk
Sun Oct 15 14:42:12 PDT 2006
Can you create a tree grammar that has an output of AST in v3.0b4?
The tree grammar I have compiles fine when I have output=template
But when I change to output = AST, I get errors like the following.
D:\ActiveProjects\IdeaProjects\Jtest1\src\SemanticCheck.java (178:39)cannot
find symbol
D:\ActiveProjects\IdeaProjects\Jtest1\src\SemanticCheck.java:178: cannot
find symbol
symbol : method create(org.antlr.runtime.tree.Tree)
location: interface org.antlr.runtime.tree.TreeAdaptor
adaptor.setTokenBoundaries(retval.tree, retval.start,
retval.stop);
ok, I gather that it cant find the create method, but If I edit the java
output, and type a '.' after the name the intellisense pops up (im using
intelliJ) and the create method is present.
Is this another class path issue? Or am I missing another directive that's
buried somewhere in the wiki??
Any ideas anyone?!
Cheers!
Rob
More information about the antlr-interest
mailing list