aboutsummaryrefslogtreecommitdiff
path: root/src/compile/headers.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-08-24 17:56:58 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-08-24 17:56:58 -0400
commit56959100a677369eca0261b47ec7299e9a8d1207 (patch)
tree0d3243a56a64675efc14091e0c0aea3a70bfbb12 /src/compile/headers.h
parent02a864390d47ef165f4113eb9eeb67cafbd9b803 (diff)
Split headers into their own file
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);