[antlr-interest] On trees and JavaBeans, part 2: tree creation

Scott Stanchfield scott at javadude.com
Tue Apr 19 05:43:19 PDT 2005


> > Also, you still need a tree node of some kind to actually 
> implement a 
> > tree.  Perhaps Tree and TreeNode?
> 
> Perhaps but a TreeModel-style interface doesn't care or know 
> about the concrete types. That is encapsulated in 
> implementation classes.

Exactly. All args/return types are Object, integer, or String.

> > The payload thing works GREAT in most cases as it just 
> points at the 
> > associated token :)
> 
> This wouldn't change if a TreeModel-style interface was adopted.

Yep ;)

Later,
-- Scott






More information about the antlr-interest mailing list