frontend: repl: print and destroy ast nodes after parsing
This commit is contained in:
@@ -108,6 +108,18 @@ static int repl_full()
|
||||
skip_line(lex);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!ivy_parser_node_complete(parser)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
struct ivy_ast_node *node = ivy_parser_dequeue_node(parser);
|
||||
if (!node) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ivy_ast_node_print(node);
|
||||
ivy_ast_node_destroy(node);
|
||||
}
|
||||
|
||||
ivy_parser_destroy(parser);
|
||||
|
||||
Reference in New Issue
Block a user