From 3620cabd1d722e4acc761c7278aa44aba902006c Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 6 Jul 2025 15:25:47 +0200 Subject: Print formatted lex token value next to token type Signed-off-by: Mel --- boot/catboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'boot/catboot.c') diff --git a/boot/catboot.c b/boot/catboot.c index e2e5315..53b2bed 100644 --- a/boot/catboot.c +++ b/boot/catboot.c @@ -87,7 +87,8 @@ debug_lex_pass(struct String source) struct Token token; do { token = lexer_next(&lexer); - printf("%s ", token_kind_to_string(token.kind)); + token_print(&token); + printf(" "); } while (token.kind != TOKEN_END_OF_FILE); return 0; -- cgit 1.4.1