skopy/lib/include/module.h

26 lines
444 B
C
Raw Normal View History

2024-03-31 21:10:56 +00:00
#ifndef SK_MODULE_H
#define SK_MODULE_H
#include "commons.h"
#include "prog.h"
2024-04-02 15:33:31 +00:00
#include "sym.h"
2024-04-06 18:44:58 +00:00
#include "state.h"
2024-03-31 21:10:56 +00:00
struct module
{
struct str source;
struct prog prog;
2024-04-02 15:33:31 +00:00
struct sym sym;
2024-04-06 18:44:58 +00:00
struct state state;
2024-03-31 21:10:56 +00:00
};
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);
2024-03-31 21:10:56 +00:00
#endif