diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2024-07-06 19:00:44 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2024-07-06 19:00:44 -0700 |
| commit | 8ba7e4819c9a40d95f0739e984a19cedd71f1620 (patch) | |
| tree | dc6bad9aaebcf6d07f05966b460c5f89bd138522 /src/compile.h | |
| parent | 0b1e955e3a69b6a02c69778adea4f123acfc8369 (diff) | |
Diffstat (limited to 'src/compile.h')
| -rw-r--r-- | src/compile.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/compile.h b/src/compile.h new file mode 100644 index 0000000..f4764c9 --- /dev/null +++ b/src/compile.h @@ -0,0 +1,17 @@ +#include "hashtable.h" +#include "parse.h" +#ifndef COMPILE +#define COMPILE +typedef struct LiteralData { + litType_t litType; + void* data; + int id; +} litData_t; +litData_t* init_str_data(char* value); +char* compile_to_asm(sym_t* symbol); +char* lib_funcs(); +char* compile_to_asm_internal(sym_t* symbol, int mangleId); +char* build_data(); +char* comp_all(sym_t** symbols, int count, int mangleId); +char* try_comp_internal(sym_t* symbol, int mangleId); +#endif |
