From: khamidou Date: Tue, 3 Mar 2009 16:06:55 +0000 (+0100) Subject: implemented better syntax messages X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3a7752eba09690449431e8a755dcfcc84a14886c;p=croma.git implemented better syntax messages --- diff --git a/parse.c b/parse.c index fee6fcb..aeccdf2 100644 --- a/parse.c +++ b/parse.c @@ -29,10 +29,8 @@ void expect(int t) } if (c != t) { - printf("c %d, t %d, yytext %s\n", c, t, yytext); -/* fail("Expected token %s in input, got %s (at line %d).\n", - token_list+t, token_list+c, yylineno); */ - fail("EPIC FAIL\n"); + fail("Expected token %s in input, got %s (at line %d).\n", + token_list[t], token_list[c], yylineno); } }