frontend: repl: print the ast after each line of input

This commit is contained in:
2024-11-24 20:50:32 +00:00
parent 1e7e73db21
commit 6fa1524766

View File

@@ -109,10 +109,13 @@ static int repl_full()
continue;
}
if (!ivy_parser_node_complete(parser)) {
if (!ivy_parser_is_node_complete(parser)) {
continue;
}
struct ivy_ast_node *root = ivy_parser_root_node(parser);
ivy_ast_node_print(root);
#if 0
struct ivy_ast_node *node = ivy_parser_dequeue_node(parser);
if (!node) {
continue;
@@ -120,6 +123,7 @@ static int repl_full()
ivy_ast_node_print(node);
ivy_ast_node_destroy(node);
#endif
}
ivy_parser_destroy(parser);