[antlr-interest] Can subrules be set to 'n-to-m'?

John D. Mitchell johnm-antlr at non.net
Thu Mar 24 15:31:52 PST 2005

>>>>> "Terence" == Terence Parr <parrt at cs.usfca.edu> writes:

> I'm thinking about this for 3.0.  Perhaps (...)+[n,m] ????

Looks good to me.  Simple and a lot more clear about the intent then doing
semantic predicates.

Remember to support the degenerate case of exactly n instances.

I'd find this really helpful in parsing fixed-size formats.

Take care,

More information about the antlr-interest mailing list