From 8ba7e4819c9a40d95f0739e984a19cedd71f1620 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Sat, 6 Jul 2024 19:00:44 -0700 Subject: compiler working with print function --- src/compile.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/compile.h (limited to 'src/compile.h') 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 -- cgit v1.3.1