[antlr-interest] Problem Creating Imaginary Node
Dejas Ninethousand
dejas9000 at gmail.com
Thu Jan 24 08:41:41 PST 2008
Ok, that appears to have worked... though I don't see any reference to that
requirement on the linked below doc page. Thanks for the help!
On Jan 24, 2008 10:39 AM, Dejas Ninethousand <dejas9000 at gmail.com> wrote:
> 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.5it
> > > 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/f0952523/attachment-0001.html
More information about the antlr-interest
mailing list