frontend: update ast iterator api usage
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user