Started some fixes for array support. Not entirely there yet.

This commit is contained in:
2025-09-17 21:37:53 +02:00
parent 89904824bb
commit 50a404984d
8 changed files with 58 additions and 65 deletions

View File

@@ -257,9 +257,14 @@ pretty_print_binary :: (node : *AST_Node, indentation : int, builder : *String_B
indent(builder, indentation);
}
append(builder, "(");
op := node.token;
is_array_access := false;
if node.token.kind == .TOKEN_LEFTBRACKET {
print_to_builder(builder, "[]");
} else {
op := node.token;
print_to_builder(builder, op_to_string(op));
}
print_to_builder(builder, op_to_string(op));
append(builder, " ");
pretty_print_node(node.children[0], 0, builder);