[antlr-interest] proposal: make .* and .+ always nongreedy
Sam Harwell
sharwell at pixelminegames.com
Sat Mar 21 12:20:26 PDT 2009
Just .* EOF
Would work too. :)
-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Terence Parr
Sent: Saturday, March 21, 2009 2:18 PM
To: Sam Barnett-Cormack
Cc: ANTLR Interest Mailing List
Subject: Re: [antlr-interest] proposal: make .* and .+ always nongreedy
On Mar 21, 2009, at 12:16 PM, Sam Barnett-Cormack wrote:
>
> I'm inclined to agree with you, then... is there a need to provide
> an option to allow people to get at the current behaviour if they
> really want to?
they can shoot foot with
( options {greedy=true;} : . )*
:)
Ter
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