Arlen Cox wrote:
I am trying to implement a grammar that may have 0 or more of a construct.
Effectively I want to have a grammar like this:
File:
( Module )*
File :
/* nothing */
| File Module
;
Google 'left recursion', or converting between LALR and LL grammars (or
LR and LL). There are a number of articles on the Antlr site that cover
this. Also see if you can get a copy of 'lex & yacc' (1-56592-000-7).
Evan
_______________________________________________
Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison