[antlr-interest] Potential gotcha - could it be warned?

Steve Bennett stevagewp at gmail.com
Sun Nov 25 03:34:49 PST 2007


On 11/25/07, Gavin Lambert <antlr at mirality.co.nz> wrote:
> That's a valid construct, though.  It's essentially identical to:
>    foo: bar?;
>
> (Now, if you used that as the only contents of a loop, you'd have
> a problem.)

Yeah, it was in a loop:

foo:
(
/* Option1 */
| Option2
| Option3
)+;

See the problem?

Steve


More information about the antlr-interest mailing list