]> khamidou — GitHub mirrors - croma.git/commitdiff
implemented better syntax messages
authorkhamidou <karim@lambda-expr.org>
Tue, 3 Mar 2009 16:06:55 +0000 (17:06 +0100)
committerkhamidou <karim@lambda-expr.org>
Tue, 3 Mar 2009 16:06:55 +0000 (17:06 +0100)
parse.c

diff --git a/parse.c b/parse.c
index fee6fcb19993c4eac486a6f391f8e0fb3064371b..aeccdf27056bdeb496a8620d642027b701d11be0 100644 (file)
--- 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);
        }
 
 }