[antlr-interest] Question with greedy
Dave Dutcher
dave at tridecap.com
Thu Sep 24 10:11:24 PDT 2009
Didn't that used to work in Antlr 2? I think that would be a very useful
feature to have back.
Dave
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org
> [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Jim Idle
> Sent: Thursday, September 24, 2009 11:39 AM
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Question with greedy
>
> On 09/24/2009 06:20 AM, Gordon Tyler wrote:
> > To exclude the /* and */ would something like this work?
> >
> > COMMENT
> > : '/*'! ( options {greedy=false;} : . )* '*/'!
> >
>
> No :-)
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email
> -address
More information about the antlr-interest
mailing list