hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-19 11:01:51 +0200
committerhachem <im@hachem.wtf>2026-09-19 11:01:51 +0200
commit08b8cbbccd8c8d7dab75746ee9d134f67455de91 (patch)
tree83de1ed169e14b2595cd9da9e5c16f1d84c8c808 /main.c
parent05bf718e37efdc5201ad281e85da7850af31bd59 (diff)
feat: start work on ast
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
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;
}