diff options
-rw-r--r-- | parser.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -111,7 +111,6 @@ parse_expr(void) { int parse(const char *fname, FILE *f, struct token *t) { - char *token_desc = "(internal error)"; fd = f; filename = fname; cursor = t; @@ -146,8 +145,7 @@ parse(const char *fname, FILE *f, struct token *t) { parse_expr(); break; default: - token_desc = get_token_description(cursor->type); - emit("Error: Unexpected %s\n", token_desc); + emit("Error: Unexpected %s\n", get_token_description(cursor->type)); return 1; } } |