From c9661af81e8f9a549079ed4e8f82c1010eb13bd0 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 17 Nov 2024 09:32:26 +0000 Subject: [PATCH] frontend: compile: print number and atom token info --- frontend/cmd/compile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/cmd/compile.c b/frontend/cmd/compile.c index 899ecb6..dc4ccff 100644 --- a/frontend/cmd/compile.c +++ b/frontend/cmd/compile.c @@ -87,6 +87,7 @@ static int compile_file(const char *path) case IVY_TOK_IDENT: case IVY_TOK_LABEL: case IVY_TOK_STRING: + case IVY_TOK_ATOM: printf("(%s)", tok->t_str); break; case IVY_TOK_SYMBOL: @@ -95,6 +96,9 @@ static int compile_file(const char *path) case IVY_TOK_KEYWORD: printf("(%s)", ivy_keyword_to_string(tok->t_keyword)); break; + case IVY_TOK_NUMBER: + printf("(%llu)", tok->t_number); + break; default: break; }