[antlr-interest] Issues with conditional tree rewrites

Mike Olson molson at the-olsons.net
Thu Mar 18 15:49:19 PDT 2010


Jim Idle wrote:
>   
>> -----Original Message-----
>> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
>> bounces at antlr.org] On Behalf Of Mike Olson
>>     
>
>
>   
>> I'm using the following rewrite rule to handle this:
>>
>>    | ^(c=COLLECTION_LITERAL (e=exp)* )
>>     
>
>
> You need:
>
> (e+=exp)*
>
> Note the '+'
>
>   

Or it could be as simple as that...:)

Thanks Jim.

Mike

> Jim
>
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>   


-- 
Mike Olson



More information about the antlr-interest mailing list