summaryrefslogtreecommitdiff
path: root/src/compile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile.h')
-rw-r--r--src/compile.h17
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