aboutsummaryrefslogtreecommitdiff
path: root/src/parse/files.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-25 00:40:03 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-25 00:40:03 -0400
commitaed80436a0a5eb12d9cace916167b0f7bd433589 (patch)
treec546a7f10621864ac697711b6f66a428cdaeb00b /src/parse/files.h
parentb378f7359a6b8bd2e47bafdba496d115825adcd7 (diff)
Splitting out parser more.
Diffstat (limited to 'src/parse/files.h')
-rw-r--r--src/parse/files.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/parse/files.h b/src/parse/files.h
new file mode 100644
index 00000000..b8dc8726
--- /dev/null
+++ b/src/parse/files.h
@@ -0,0 +1,11 @@
+// Logic for parsing a whole file
+#pragma once
+
+#include <setjmp.h>
+#include <stdint.h>
+
+#include "../ast.h"
+#include "context.h"
+
+ast_t *parse_file(const char *path, jmp_buf *on_err);
+ast_t *parse_file_body(parse_ctx_t *ctx, const char *pos);