[antlr-interest] Problem Creating Imaginary Node
Johannes Luber
jaluber at gmx.de
Thu Jan 24 08:27:10 PST 2008
Dejas Ninethousand schrieb:
> Based on my understanding of the documentation at
> http://www.antlr.org/wiki/display/ANTLR3/Tree+construction I am
> attempting to create an imaginary node on my AST via:
>
> declaration
> : type_identifier IDENTIFIER -> ^(DECLtype_identifier IDENTIFIER)
> ;
>
> But whenever I try to generate the code from within ANTLRWorks 1.1.5 it
> complains that DECL is an undefined token. What am I missing? Thanks.
>
> --Dejas
Did you use
tokens {
DECL;
}
?
Johannes
More information about the antlr-interest
mailing list