skopy/lib/include/module.h

22 lines
365 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"
struct module
{
struct str source;
struct prog prog;
};
void module_init(struct module* self);
void module_free(struct module* self);
void module_load_source(struct module* self,
char const* path);
void module_compile(struct module* self);
#endif