aboutsummaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-21 21:43:51 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-21 21:43:51 -0400
commitdcf266228512e100e779fe72f2d4e9ebb605ffe6 (patch)
tree6fb3cac1ee3647f08bca219949ed8dc61b5861f2 /src/parse.h
parent9acea1807f5945c55445a16259386e4979203a1e (diff)
Move files into src/ and build into build/
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/parse.h b/src/parse.h
new file mode 100644
index 00000000..95b2ff95
--- /dev/null
+++ b/src/parse.h
@@ -0,0 +1,13 @@
+#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);
+
+// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0