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

Sam Barnett-Cormack s.barnett-cormack at lancaster.ac.uk
Sat Mar 21 12:12:06 PDT 2009


Terence Parr wrote:
> http://www.antlr.org/jira/browse/ANTLR-392
> 
> any objections?

Would this effectively make

rule : .* (some-exit-set)

into

rule : ~(some-exit-set)* (some-exit-set)

Except, presumably, for magic with predicates and LL(*) cunningness?

-- 
Sam Barnett-Cormack


More information about the antlr-interest mailing list