26 lines
444 B
C
26 lines
444 B
C
#ifndef SK_MODULE_H
|
|
#define SK_MODULE_H
|
|
|
|
#include "commons.h"
|
|
#include "prog.h"
|
|
#include "sym.h"
|
|
#include "state.h"
|
|
|
|
struct module
|
|
{
|
|
struct str source;
|
|
struct prog prog;
|
|
struct sym sym;
|
|
struct state state;
|
|
};
|
|
|
|
void module_init(struct module* self);
|
|
void module_free(struct module* self);
|
|
|
|
void module_load_source(struct module* self,
|
|
char const* path);
|
|
|
|
int module_compile(struct module* self);
|
|
|
|
#endif
|