aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parse.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-25 00:12:44 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-25 00:12:44 -0400
commit80755477735baaea66f865c316aff036bebd8e2f (patch)
treeef11a3a91f4106c8f19a21af0215c27a61afc991 /src/parse/parse.h
parentb1d2120d5d20c0122cc0a61f2ca09f0bc754d14d (diff)
Clean up some unistr.h issues and expand some parse macros.
Diffstat (limited to 'src/parse/parse.h')
-rw-r--r--src/parse/parse.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/parse/parse.h b/src/parse/parse.h
index c3e9455a..2d81170c 100644
--- a/src/parse/parse.h
+++ b/src/parse/parse.h
@@ -3,10 +3,17 @@
// Parsing logic
#include <setjmp.h>
+#include <stdint.h>
#include "../ast.h"
+#include "../stdlib/files.h"
+
+typedef struct {
+ file_t *file;
+ jmp_buf *on_err;
+ int64_t next_lambda_id;
+} parse_ctx_t;
-type_ast_t *parse_type_str(const char *str);
ast_t *parse_file(const char *path, jmp_buf *on_err);
ast_t *parse(const char *str);
ast_t *parse_expression(const char *str);