skopy/cli/main.c

22 lines
359 B
C
Raw Normal View History

2024-03-31 15:44:34 +00:00
#include <stdio.h>
2024-03-31 21:10:56 +00:00
#include <module.h>
#include <errors.h>
2024-03-31 15:44:34 +00:00
2024-03-31 21:10:56 +00:00
int main(int argc, char** argv)
2024-03-31 15:44:34 +00:00
{
2024-03-31 21:10:56 +00:00
if (argc == 2)
{
errors_init();
struct module module;
module_init(&module);
module_load_source(&module, argv[1]);
module_compile(&module);
module_free(&module);
errors_free();
}
2024-03-31 15:44:34 +00:00
return 0;
}