From 3a7752eba09690449431e8a755dcfcc84a14886c Mon Sep 17 00:00:00 2001 From: khamidou Date: Tue, 3 Mar 2009 17:06:55 +0100 Subject: [PATCH] implemented better syntax messages --- parse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } } -- 2.43.0