[antlr-interest] More Infinite Recursion

Jason jasonriz at yahoo.com
Thu Jan 29 14:05:16 PST 2004


Hello,

Imagine I've got the following rule:

memory:
  A B
  |
  memory C D
  | 
  E F G
  |
  H I J
  |
  memory K
  | 
  memory L
  |
  M N O
  ; 
which of course has multiple instances of infinite
recursion.  I've got ALOT of rules like this and I'm
converting them to something like this:
memory:
 (AB | EFG | HIJ | MNO) (CD)* (K)* (L)*
  ;


Does this seem reasonable?  Infinite recursion still
makes my head spin a bit.

-jason

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

 

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