From 2b47c650a161fe2c2c4c7f4d74a19c2c6fe6021e Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Fri, 13 Feb 2026 17:32:00 -0500 Subject: Update --- src/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index bc697de..0b9a336 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,7 @@ int main(int argc, char **argv) { pit_install_library_essential(rt); pit_install_library_io(rt); pit_install_library_plist(rt); + pit_install_library_alist(rt); pit_install_library_bytestring(rt); if (argc < 2) { /* run repl */ char buf[1024] = {0}; @@ -49,11 +50,11 @@ int main(int argc, char **argv) { } pit_parser_from_lexer(&parse, &lex); while (p = pit_parse(rt, &parse, &eof), !eof) { + if (pit_runtime_print_error(rt)) exit(1); pit_eval(rt, p); - if (pit_runtime_print_error(rt)) { - exit(1); - } + if (pit_runtime_print_error(rt)) exit(1); } + if (pit_runtime_print_error(rt)) exit(1); } return 0; } -- cgit v1.2.3