summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-12-19 16:24:15 -0500
committerLLLL Colonq <llll@colonq>2025-12-19 16:24:15 -0500
commit219c94c7eb7448bfc86602579de3765216888297 (patch)
tree04d45285bec04fe0e4e025e90f50dc262384b390 /src/main.c
parent09435bffe025a96e0d9c3b44ee9c505973b383bd (diff)
Update
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 8d2fa5a..2ea5ef8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,10 +1,10 @@
#include <stdlib.h>
#include <stdio.h>
-#include "utils.h"
-#include "lexer.h"
-#include "parser.h"
-#include "runtime.h"
+#include <lcq/pit/utils.h>
+#include <lcq/pit/lexer.h>
+#include <lcq/pit/parser.h>
+#include <lcq/pit/runtime.h>
int main(int argc, char **argv) {
pit_runtime *rt = pit_runtime_new();
@@ -12,6 +12,7 @@ int main(int argc, char **argv) {
char buf[1024] = {0};
i64 len = 0;
pit_runtime_freeze(rt);
+ if (pit_runtime_print_error(rt)) { exit(1); }
setbuf(stdout, NULL);
printf("> ");
while (len < (i64) sizeof(buf) && (buf[len++] = (char) getchar()) != EOF) {