aboutsummaryrefslogtreecommitdiff
path: root/src/compile/headers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/headers.h')
-rw-r--r--src/compile/headers.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compile/headers.h b/src/compile/headers.h
new file mode 100644
index 00000000..edfd4086
--- /dev/null
+++ b/src/compile/headers.h
@@ -0,0 +1,11 @@
+// This file defines how to compile header files
+#pragma once
+
+#include "../ast.h"
+#include "../environment.h"
+#include "../stdlib/datatypes.h"
+
+Text_t compile_file_header(env_t *env, Path_t header_path, ast_t *ast);
+Text_t compile_namespace_header(env_t *env, const char *ns_name, ast_t *block);
+Text_t compile_statement_namespace_header(env_t *env, Path_t header_path, ast_t *ast);
+Text_t compile_statement_type_header(env_t *env, Path_t header_path, ast_t *ast);