frontend: repl: print the ast after each line of input
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user