roza/lib/prepass.h

29 lines
477 B
C

#ifndef RZ_PREPASS_H
#define RZ_PREPASS_H
#include "commons.h"
#include "err.h"
#include "node.h"
#include "sym.h"
#include "tysolver.h"
typedef struct {
sym_t* sym;
tysolver_t* tysolver;
err_t* err;
int scope;
} prepass_t;
void prepass_init(prepass_t* prepass,
sym_t* sym,
tysolver_t* tysolver,
err_t* err);
void prepass_free(prepass_t* prepass);
void prepass_run(prepass_t* prepass, node_t* node);
#endif