From 80755477735baaea66f865c316aff036bebd8e2f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 25 Aug 2025 00:12:44 -0400 Subject: Clean up some unistr.h issues and expand some parse macros. --- src/parse/parse.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/parse/parse.h') 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 +#include #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); -- cgit v1.2.3