diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 00:40:03 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 00:40:03 -0400 |
| commit | aed80436a0a5eb12d9cace916167b0f7bd433589 (patch) | |
| tree | c546a7f10621864ac697711b6f66a428cdaeb00b /src/parse/files.h | |
| parent | b378f7359a6b8bd2e47bafdba496d115825adcd7 (diff) | |
Splitting out parser more.
Diffstat (limited to 'src/parse/files.h')
| -rw-r--r-- | src/parse/files.h | 11 |
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); |
