[antlr-interest] About tree duplication ?
Mathieu Clabaut
mathieu.clabaut at gmail.com
Thu Nov 17 02:18:55 PST 2005
On 17/11/05, Bryan Ewbank <ewbank at gmail.com> wrote:
Thanks for your tips.
> The easiest way I've found is to use the "dup" member functions of the
> parser and treeparser classes.
Ok, but I only find a dup function in the ASTFactory class. I do not
know in what it differs from the create member ?
> Another way that is closer, perhaps,
> to what you are wanting, is to write a production that duplicates a
> node (works only with buildAST=true).
mmmmh, would you mind to give me an example ? I have some
difficulties to draw something wich approach your suggestion...
Thank you very much...
-mathieu
--
____________http://www.gnu.org/philosophy/no-word-attachments.fr.html
Mathieu CLABAUT mailto:mathieu.clabaut at gmail.com
F2F5 442F F2AC E1D5 9D31 3EFC 842A BC4A 123B 9A65
More information about the antlr-interest
mailing list