[antlr-interest] Can subrules be set to 'n-to-m'?
nbsherid at secsme.org.au
Thu Mar 24 13:45:10 PST 2005
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Prashant Deva
> Sent: Friday, 25 March 2005 8:38 AM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Can subrules be set to 'n-to-m'?
> I think you should put this in 3.0 only if it is widely useful, which
> it doesn't seem to be.
> For special cases like this, people can use the code like its provided
Actually I think (...)+[n,m] comes up often enough to make it a useful
feature of the ANTLR grammar. Using the action code is unwieldy and messy,
but if there are no other options, then its the only way.
PhD research student
Faculty of Engineering
University of Technology, Sydney
Phone: 02 9514 7946
Fax: 02 9514 2435
More information about the antlr-interest