[antlr-interest] About tree duplication ?
Mathieu Clabaut
mathieu.clabaut at gmail.com
Fri Nov 18 01:00:27 PST 2005
On 17/11/05, Bryan Ewbank <ewbank at gmail.com> wrote:
> > > 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).
> A production like this will generate an exactly duplicate of a
> tree....
>
> // duplicate tree rooted at current node
> duptree: #( . ( duptree )* );
Mhhh, I may be dumb, but I do not understand the rule. What does the
dot stand for ?
Thank you for your help.
-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