roza/lib/compiler.h

22 lines
399 B
C

#ifndef RZ_COMPILER_H
#define RZ_COMPILER_H
#include "commons.h"
#include "err.h"
#include "mod.h"
#include "node.h"
#include "tysy.h"
typedef struct {
mod_t* mod;
tysy_t* tysy;
err_t* err;
} compiler_t;
void compiler_init(compiler_t* compiler, mod_t* mod, tysy_t* tysy, err_t* err);
void compiler_free(compiler_t* compiler);
void compiler_run(compiler_t* compiler, node_t* node);
#endif