aboutsummaryrefslogtreecommitdiff
path: root/compile.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-18 02:22:31 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-18 02:22:31 -0500
commit6d54150755a3addd248f329851d463745cbdb847 (patch)
tree4f4a3156b59ee5101cf7527854435b84f94de6ba /compile.h
parent0d3022b34a79e3b2cecd6136e3c90f69881f1016 (diff)
Split module code into header/c file
Diffstat (limited to 'compile.h')
-rw-r--r--compile.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/compile.h b/compile.h
index b42de66e..ac465d7a 100644
--- a/compile.h
+++ b/compile.h
@@ -7,7 +7,11 @@
#include "util.h"
#include "environment.h"
-CORD compile_file(ast_t *ast);
+typedef struct {
+ CORD header, c_file;
+} module_code_t;
+
+module_code_t compile_file(ast_t *ast);
CORD compile_type_ast(env_t *env, type_ast_t *t);
CORD compile(env_t *env, ast_t *ast);
CORD compile_statement(env_t *env, ast_t *ast);