diff options
| author | Mel <mel@rnrd.eu> | 2025-07-06 15:25:47 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-07-06 15:25:47 +0200 |
| commit | 3620cabd1d722e4acc761c7278aa44aba902006c (patch) | |
| tree | d14002e134c4fab723d3db400067b1eb045a8c0f /boot/catboot.c | |
| parent | 660808af50780dae5292c8064d5bddd77246c52b (diff) | |
| download | catskill-3620cabd1d722e4acc761c7278aa44aba902006c.tar.zst catskill-3620cabd1d722e4acc761c7278aa44aba902006c.zip | |
Print formatted lex token value next to token type
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/catboot.c')
| -rw-r--r-- | boot/catboot.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
