frontend: debug: add colours for new token and node types

This commit is contained in:
2025-09-08 16:27:21 +01:00
parent bd0e60e209
commit 364d313c22

View File

@@ -167,9 +167,11 @@ extern enum ivy_status print_ast_node(
case IVY_AST_COND_GROUP:
case IVY_AST_WHILE_LOOP:
case IVY_AST_FOR_LOOP:
case IVY_AST_LOOP_BREAK:
case IVY_AST_LOOP_REPEAT:
case IVY_AST_TRY:
case IVY_AST_RETURN:
case IVY_AST_VAR:
case IVY_AST_GLOBAL:
b_puts("[magenta]");
break;
case IVY_AST_OP:
@@ -182,6 +184,9 @@ extern enum ivy_status print_ast_node(
case IVY_AST_DOUBLE:
case IVY_AST_ATOM:
case IVY_AST_TUPLE:
case IVY_AST_C_TRUE:
case IVY_AST_C_FALSE:
case IVY_AST_C_NULL:
b_puts("[yellow]");
break;
case IVY_AST_COND: