[antlr-interest] Re: Translators Should Use Tree Grammars
John D. Mitchell
johnm-antlr at non.net
Mon Nov 15 21:57:07 PST 2004
>>>>> "micheal" == micheal jor <open.zone at virgin.net> writes:
>>>>>> --- In antlr-interest at yahoogroups.com, Terence Parr <parrt at c...> wrote:
[...]
> Comments: C1. Remote attribution is cool but, does it remain useful if
> one already has a symbol table?
Sure, it's basically what people do by hand now to keep track of stuff
during e.g., complex tree transformations.
> C2. Visitors tend to be used with tree built from strongly-typed nodes
> (heterogenous nodes). Ignoring the [potential] typing issue related to
> the representation of lists of [children] nodes, the strong typing
> enforces structural "correctness" - so explicit tree structure validation
> isn't required. You get it for free.
TANSTAAFL.
You trade off that type information for having to manage all of those
classes.
Take care,
John
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list