[antlr-interest] proposal: make .* and .+ always nongreedy

Terence Parr parrt at cs.usfca.edu
Sat Mar 21 12:17:37 PDT 2009


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


More information about the antlr-interest mailing list