aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parse.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-25 00:01:56 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-25 00:01:56 -0400
commitb1d2120d5d20c0122cc0a61f2ca09f0bc754d14d (patch)
treea9e978b3bf6aa371a8591317ff2fd2450e9c1e21 /src/parse/parse.h
parentf5b2281084d31700690916c6dd250e2da927e566 (diff)
More docs and moving parsing into a subfolder.
Diffstat (limited to 'src/parse/parse.h')
-rw-r--r--src/parse/parse.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/parse/parse.h b/src/parse/parse.h
new file mode 100644
index 00000000..c3e9455a
--- /dev/null
+++ b/src/parse/parse.h
@@ -0,0 +1,12 @@
+#pragma once
+
+// Parsing logic
+
+#include <setjmp.h>
+
+#include "../ast.h"
+
+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);