On Wed, Jul 27, 2011 at 10:06 PM, G. Richard Bellamy <rbell...@pteradigm.com
> wrote:

> Thanks to both of you for your help.
>
> Clearly I understated things when I said I was confused.
>
> 1. I was under the impression that greedy=true was the default, in every
> case. For instance, in "The Definitive ANTLR Reference"...


By default, * and + are greedy, _except_ when preceded by the . (DOT).
See: The Definitive ANTLR reference, Ch 4, Extended BNF Subrules, page 86.

But as Jim mentioned, this is not the issue here. The rule:

STRING : '"' ('""' | ~'"')* '"';


matches input like:

"a b "" c"


just fine (as a single STRING).

Regards,

Bart.

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to