diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-18 02:22:31 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-18 02:22:31 -0500 |
| commit | 6d54150755a3addd248f329851d463745cbdb847 (patch) | |
| tree | 4f4a3156b59ee5101cf7527854435b84f94de6ba /compile.h | |
| parent | 0d3022b34a79e3b2cecd6136e3c90f69881f1016 (diff) | |
Split module code into header/c file
Diffstat (limited to 'compile.h')
| -rw-r--r-- | compile.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |
