[antlr-interest] help related to interpreted grammar for calculator

Gavin Lambert antlr at mirality.co.nz
Mon Aug 18 13:22:28 PDT 2008


At 03:45 19/08/2008, mark twain wrote:
>error(100): bbcalcInterpreter.g:15:13: syntax error: antlr: 
>bbcalcInterpreter.g:15:13: unexpected token:  int v = 0;
>error(100): bbcalcInterpreter.g:16:22: syntax error: antlr: 
>bbcalcInterpreter.g:16:22: unexpected token: IDENTIFIER
[...]
>I have attached all my 3 grammar files and it would be great if 
>you could go through my simple grammar files and help me in this.

Actually, you didn't.  You attached the bbcalcInterpreter.c 
(generated file) instead of the bbcalcInterpreter.g (grammar file) 
-- and that's the one that contains the errors, apparently. 



More information about the antlr-interest mailing list