diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -11,9 +11,7 @@ static const char* token_name(int token) case TOK_COMMIT: return "commit"; case TOK_DECLTYPE: return "decltype"; case TOK_DIFFERENCE: return "difference"; - default: - // single characters and character literals are printed by the caller - return NULL; + default: return NULL; } } @@ -32,6 +30,7 @@ static int dump_tokens(void) else (void)printf("%c\n", (char)token); } + return lexer_failed() ? 1 : 0; } |
