[antlr-interest] add fields to the AST

Peter Bulychev peter.bulychev at gmail.com
Sun Feb 24 03:35:12 PST 2008


No, unfortunately I don't have this book.

2008/2/23, Thomas Karcher <thkarcher at gmx.de>:
>
> Hi Peter,
>
>
> > I want to add some properties to the nodes of output tree. Therefore I
> > want to add fields to the nodes of the output AST.
>
>
> Do you have "The definitive ANTLR reference" near you? :)
> On page 157f (in "7.2 Implementing Abstract Syntax Trees") is described
> what you want - basically define your own nodes and tell ANTLR to use
> them instead of the default.
>
>
>
> Thomas
>
>
>


-- 
Best regards,
   Peter Bulychev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080224/4a8e1e18/attachment.html 


More information about the antlr-interest mailing list