feat: support existing io.print formatting

This commit is contained in:
2026-11-01 11:37:46 +01:00
parent e036070bf2
commit 1f457d6b41
23 changed files with 895 additions and 116 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ TokenKind :: enum {
undefined
# literals
ident, string
ident, string, character
int, float
# comparison
@@ -92,7 +92,7 @@ TokenKind :: enum {
render_token proc(token Token, program []u8) void {
match token.kind {
.ident, .string, .int, .float:
.ident, .string, .character, .int, .float:
debug.print("{}({})\n", {token.kind, program[token.span.start..token.span.end]})
else:
debug.print("{}\n", {token.kind})