[antlr-interest] Duplicate nodes on a parse tree

Terence Parr parrt at cs.usfca.edu
Fri Jun 22 17:06:54 PDT 2007


On Jun 23, 2007, at 2:46 AM, Markus Kuhla wrote:

> Morning,
>
> I passed the parser to the ParseTreeBuilder constructor. In the  
> methods of this class where child nodes are added, I checked  
> parser.getBacktrackingLevel(). It always returned 0 (I don't use  
> the explicit option backtrack in the grammar).
>
> Any further hints?

yes. you're done. ;)  If no backtracking, then none is invoked in  
parser.

Ter


More information about the antlr-interest mailing list