[antlr-interest] Issues with conditional tree rewrites

Jim Idle jimi at temporal-wave.com
Thu Mar 18 12:42:02 PDT 2010



> -----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 '+'

Jim






More information about the antlr-interest mailing list