[antlr-interest] Nested Tree Construction vs. Recognition

Terence Parr parrt at cs.usfca.edu
Thu Jul 5 09:01:59 PDT 2007


On Jul 5, 2007, at 8:58 AM, Randall R Schulz wrote:

> On Thursday 05 July 2007 08:46, Terence Parr wrote:
>> On Jul 5, 2007, at 7:06 AM, Randall R Schulz wrote:
>>> Hi,
>>>
>>> I'm curious about whether it's possible to write tree grammar rules
>>> whose right-hand-sides (or alternatives thereof) can have nested
>>> tree node structure.
>>>
>>> ...
>>
>> Someone had same problem last week:
>>
>> http://www.antlr.org:8888/browse/ANTLR-129
>
> That's awfully terse. Are you sure it's the same problem?

Yep.  ^( CLExcludes name* )? is invalid syntax currently.  Use ( ^ 
(...) )?

Ter



More information about the antlr-interest mailing list