frontend: compile: print number and atom token info

This commit is contained in:
2024-11-17 09:32:26 +00:00
parent 104e549b32
commit c9661af81e

View File

@@ -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;
}