From 56959100a677369eca0261b47ec7299e9a8d1207 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Aug 2025 17:56:58 -0400 Subject: Split headers into their own file --- src/compile/headers.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/compile/headers.h (limited to 'src/compile/headers.h') 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); -- cgit v1.2.3