From 08b8cbbccd8c8d7dab75746ee9d134f67455de91 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 19 Sep 2026 11:01:51 +0200 Subject: feat: start work on ast --- main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 44d9025..634e6d0 100644 --- a/main.c +++ b/main.c @@ -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; } -- cgit v1.3