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.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);