[antlr-interest] How to copy/reference hidden tokens in transformations
Monty Zukowski
monty at codetransform.com
Tue Nov 16 09:46:22 PST 2004
On Nov 16, 2004, at 8:53 AM, dsfsdf fdsfdsf wrote:
> When i am creating a new tree from my source tree that has some hidden
> tokens, how do i copy these hidden across?
> At the moment it is not doing it automatically.
> thanks
> ed.
>
There is a method to override called initialize(AST node) which is
called to let you copy your stuff over. For example see TNode.java in
the GCC toolkit distribution.
Monty
ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit --
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list