Rule names must be lower case or they are seen as lexer rules. Start with examples and the 5 minute getting started articles on the wiki.
Jim > -----Original Message----- > From: [email protected] [mailto:antlr-interest- > [email protected]] On Behalf Of Hesham Zakaria > Sent: Tuesday, December 21, 2010 11:14 AM > To: [email protected] > Subject: [antlr-interest] error(106): reference to undefined rule > > Hi, > I am new to antlr, and I am facing the error(106): reference to > undefined rule. > > The grammar check is successful but the code generation raises an > error. > > The grammar is just a test: > > grammar test; > TERM : atom ( ',' atom )* ; > atom : TERM ( ',' TERM)* ; > > and the error is: > error(106): test.g:2:8: reference to undefined rule: atom > > Thanks for help, > Hesham > > > > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your- > email-address List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
