[antlr-interest] Re: Antlr v3 & Trees

John D. Mitchell johnm-antlr at non.net
Thu Apr 22 22:12:59 PDT 2004


Sorry for responding to Ter's reply to you but I don't seem to have
received your message.

>>>>> "Terence" == Terence Parr <parrt at cs.usfca.edu> writes:
>>>>>> On Apr 22, 2004, at 1:48 PM, Monty Zukowski writes:
>> On Apr 22, 2004, at 1:23 PM, John D. Mitchell writes:
[...]

>>> I'm perplexed.  Do you have some example where the addition of an
>>> imaginary node is some kind of problem?  The only examples that I can
>>> think of would all be issues of a very poorly designed tree to begin
>>> with.

>> Consider the following tree grammar fragment:

>> Example A:

>> selectStatement : queryExpression (computeClause)?  (forClause)?
>> (optionClause)?
>> ;

>> computeClause : #(COMPUTE (identifier expression)+ (BY (expression)+)?
>> )
>> ;

That's okay but I don't see how that's an example where using imaginary
nodes instead would *create* a problem.

Thanks,
	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