feat: support existing io.print formatting
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user