[antlr-interest] Appropriate use of honey badger listeners

Terence Parr parrt at cs.usfca.edu
Sat Jan 14 10:10:54 PST 2012


On Jan 12, 2012, at 4:35 PM, Kyle Ferrio wrote:

> Hold on a sec... I get that if the only way to rewrite a tree is to make a new tree, then comparing the pointers of the root nodes is the equality test.  But I was assuming that the "new" tree might actually reuse most of the old tree and in particular the root node.  I'm pretty sure I missed an imprtanr assumption in your question.
> 
> 
That's no problem. if you rewrite some children are way down below, it doesn't have to alter the parent connections at all.
> Re the role of antlr building trees v. Listeners later...Ah...I get it now. 
> 
> I've read your email twice.  I will read it again.  Sounds complicated.  Would Sam's idea (stack machine) help simplify this?
> 
> 
yep.
> I like animals.  So does Honey Badger, just not the same way.
> 
> 
heh heh heh

Ter



More information about the antlr-interest mailing list