[antlr-interest] grammar and rewrite rule problem (newbie)

ali azimi aliaazimi at yahoo.com
Thu Jul 19 10:40:03 PDT 2007


Hi,
   
  How can rules like the following ( r ) be dealt with without producing an infinite loop? Can you also tell me what the rewrite rule for it should look like?
   
  Grammar T;
   
  r:  a  ( c | d )*  ( e | f )? g  
  ;
   
  a:
  ;
   
  c:
  ;
  e:
  ;
  f:
  ;
  g:
  ;
    
 
  Thank you so much in advance.
   
  Best wishes,
   
  Al

       
---------------------------------
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070719/40de707d/attachment.html 


More information about the antlr-interest mailing list