frontend: update ast iterator api usage

This commit is contained in:
2025-04-14 12:25:49 +01:00
parent f123902215
commit bcc0daa2d5
2 changed files with 97 additions and 42 deletions

View File

@@ -87,8 +87,7 @@ static int compile_file(const char *path, const b_arglist *args)
if (r == 0 && show_ast) {
struct ivy_ast_node *root = ivy_parser_root_node(parser);
struct ivy_ast_node_iterator it = {0};
ivy_ast_node_iterate(
root, &it, IVY_AST_ITERATE_REGULAR, print_ast_node);
ivy_ast_node_iterate(root, &it, print_ast_node, NULL);
}
if (lex) {