23 lines
450 B
C
23 lines
450 B
C
|
#ifndef CCM_COMPILER_H
|
||
|
#define CCM_COMPILER_H
|
||
|
|
||
|
#include "commons.h"
|
||
|
#include "bytecode.h"
|
||
|
#include "prog.h"
|
||
|
#include "node.h"
|
||
|
#include "err.h"
|
||
|
#include "module.h"
|
||
|
|
||
|
typedef struct {
|
||
|
module_t* module;
|
||
|
err_t err;
|
||
|
} compiler_t;
|
||
|
|
||
|
void compiler_init(compiler_t* self, module_t* module);
|
||
|
void compiler_free(compiler_t* self);
|
||
|
|
||
|
void compiler_compile(compiler_t* self,
|
||
|
node_t* node,
|
||
|
prog_t* prog);
|
||
|
#endif
|