From a211b81c4580afe57beed18fea4a913f8fedab6a Mon Sep 17 00:00:00 2001 From: Daniel Cerqueira Date: Wed, 19 Aug 2026 11:38:36 +0100 Subject: lali lang repl jump maintain the repl loop, while facing errors of the lali language programming. --- lali.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lali.c') diff --git a/lali.c b/lali.c index 73fc601..bdf72b0 100644 --- a/lali.c +++ b/lali.c @@ -50,7 +50,7 @@ void runFile(int infd, Object **env, GC_PARAM) { GC_TRACE(gcObject, nil); if (setjmp(exceptionEnv)) - return; + exit(EXIT_FAILURE); // deal with shebang if (peekForward(&stream, true) == EOF) @@ -69,6 +69,8 @@ void runREPL(int infd, Object **env, GC_PARAM) { Stream stream = { STREAM_TYPE_STRING, .buffer = "" }; GC_TRACE(gcObject, nil); + setjmp(exceptionEnv); + do { /* If the buffer has already been allocated, return the memory to the free pool. */ -- cgit