diff options
| author | LLLL Colonq <llll@colonq> | 2025-12-19 16:24:15 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-12-19 16:24:15 -0500 |
| commit | 219c94c7eb7448bfc86602579de3765216888297 (patch) | |
| tree | 04d45285bec04fe0e4e025e90f50dc262384b390 /src/main.c | |
| parent | 09435bffe025a96e0d9c3b44ee9c505973b383bd (diff) | |
Update
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) { |
