#ifndef RZ_COMPILER_H #define RZ_COMPILER_H #include "commons.h" #include "err.h" #include "mod.h" #include "node.h" #include "tysy.h" #include "sym.h" typedef struct compiler { struct compiler* parent; sym_t* sym; tysy_t* tysy; err_t* err; int scope; int* id; } compiler_t; void compiler_init(compiler_t* compiler, int* id, sym_t* sym, tysy_t* tysy, err_t* err); void compiler_free(compiler_t* compiler); int compiler_run(compiler_t* compiler, node_t* node, program_t* program); void compiler_run_if(compiler_t* compiler, node_t* node, program_t* program, int* end_points, size_t* sz); #endif