[antlr-interest] Duplicate nodes on a parse tree

Terence Parr parrt at cs.usfca.edu
Thu Jun 21 17:36:49 PDT 2007


Hmm...shoot. Ok, it needs to have a constructor with a pointer to the  
parser itself so it can ask for the backtracking state.  can you try  
that out?

Ter
On Jun 22, 2007, at 10:07 AM, Markus Kuhla wrote:

> Hi!
>
> Vadim Tropashko vadimtro at yahoo.com wrote:
>> OK, I see the coloring (when tree is in chart form).
>> It must be the Tree.getType() method that does this.
> (http://www.antlr.org/pipermail/antlr-interest/2007-March/ 
> 019566.html)
>
> I'm using the ParseTree and was wondering if there is a way to  
> remove these duplicate nodes (for backtracking) from the ParseTree?  
> As I checked the above described getType() for each node in the  
> tree, I always got 0 (zero).
>
>
> Thanks folks for you help!!!
> Best,
> Markus
> -- 
> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail



More information about the antlr-interest mailing list