[antlr-interest] error(106): reference to undefined rule
Jim Idle
jimi at temporal-wave.com
Tue Dec 21 11:24:05 PST 2010
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: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Hesham Zakaria
> Sent: Tuesday, December 21, 2010 11:14 AM
> To: antlr-interest at antlr.org
> 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
More information about the antlr-interest
mailing list