[antlr-interest] Duplicating CommonTree objects

Terence Parr parrt at cs.usfca.edu
Tue Mar 25 13:32:16 PDT 2008


On Mar 25, 2008, at 12:59 PM, Grzegorz Cieslewski wrote:
> All,
>
> How do I make a copy of the Tree (Common Tree) in ANTLR, that will
> create duplicate including the underlying tokens?

There is a dupTree method but it won't copy the Token objects, just  
pointers... you can override though.
Ter


More information about the antlr-interest mailing list