From 8eb7eff274a693a41151d98504957c0fb5df3f46 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 25 Nov 2024 16:51:29 +0000 Subject: [PATCH] frontend: repl: print ast once all tokens in the lex buffer have been consumed --- frontend/cmd/repl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/cmd/repl.c b/frontend/cmd/repl.c index 3c6f6cd..c5f6b0d 100644 --- a/frontend/cmd/repl.c +++ b/frontend/cmd/repl.c @@ -109,7 +109,7 @@ static int repl_full() continue; } - if (!ivy_parser_is_node_complete(parser)) { + if (ivy_lexer_tokens_available(lex)) { continue; }