[antlr-interest] Expression evaluator error [v3 wiki]

Hugo Garcia hugo.a.garcia at gmail.com
Wed Nov 29 03:36:29 PST 2006


Hi

At http://www.antlr.org/wiki/display/ANTLR3/Expression+evaluator

I cut and past the grammar and succesfully generate a parser and a
lexer but when I open the code for the parser then I get the following
error (line 382 in my editor) :

                case 3 :
                    // Expr.g:46:5: '(' expr ')'
                    {
                    match(input,12,FOLLOW_12_in_atom257);
                    pushFollow(FOLLOW_expr_in_atom259);
                    expr();
                    _fsp--;

                    match(input,13,FOLLOW_13_in_atom261);
<error>          value = $expr.value;

                    }
                    break;


-H


More information about the antlr-interest mailing list