[antlr-interest] REs
Matt Benson
gudnabrsam at yahoo.com
Fri Jun 20 12:15:20 PDT 2003
With REs you have
"" 1 occurrence
"()+" 1 or more occurrences
"()?" 0 or 1 occurrences
"()*" 0 or more occurrences
Why, in ANTLR REs, and in REs in general, should there
be no notation such as
"()+n" 1 to n occurrences
"()*n" 0 to n occurrences
or the equivalent? A maximum of three or even ten is
manageable in a grammar, but the larger the value of
n, the more tempting it is to use ()* and be less than
correct.
-Matt
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list