aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parse.h
diff options
context:
space:
mode:
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);