[antlr-interest] Problem Creating Imaginary Node
Dejas Ninethousand
dejas9000 at gmail.com
Thu Jan 24 08:39:26 PST 2008
No. Should I have? If so, that doesn't make sense to me since DECL is
imaginary.
On Jan 24, 2008 10:27 AM, Johannes Luber <jaluber at gmx.de> wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080124/3a575526/attachment.html
More information about the antlr-interest
mailing list