diff options
| author | hachem <im@hachem.wtf> | 2026-09-19 11:01:51 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-19 11:01:51 +0200 |
| commit | 08b8cbbccd8c8d7dab75746ee9d134f67455de91 (patch) | |
| tree | 83de1ed169e14b2595cd9da9e5c16f1d84c8c808 /main.c | |
| parent | 05bf718e37efdc5201ad281e85da7850af31bd59 (diff) | |
feat: start work on ast
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; } |
