[antlr-interest] Regular expression "repetition"

jbb at acm.org jbb at acm.org
Mon May 17 06:56:26 PDT 2004


On Mon, 17 May 2004 12:07:06 +0000, peg_ericsson wrote:
>I am trying to figure out how the flex repetition expression:
>
>r{2,5}     anywhere from two to five r's
>
>can be written using ANTLR. I am aware of the existing:
>
[...]

how about:

r r ( r ( r ( r )? )? )?

Hope this helps...
	-jbb


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list