22 lines
494 B
C
Raw Normal View History

2021-11-28 21:25:25 +08:00
#include <stdarg.h>
2021-11-28 20:32:09 +08:00
#include <stdio.h>
2021-11-28 21:25:25 +08:00
#include <stdlib.h>
2022-05-06 18:49:46 +08:00
#include "BaseObj.h"
#include "PikaCompiler.h"
2021-11-28 20:32:09 +08:00
#include "PikaObj.h"
2021-11-28 21:25:25 +08:00
#include "PikaParser.h"
#include "dataStrs.h"
2022-05-05 16:42:24 +08:00
#include "libpikabinder.h"
2021-11-28 21:25:25 +08:00
2022-03-24 18:04:32 +08:00
PikaObj* __pikaMain;
2021-11-28 22:29:25 +08:00
void main() {
2022-05-05 16:42:24 +08:00
/* run pika_binder to bind C modules */
pika_binder();
2022-05-11 19:30:49 +08:00
PikaMaker* maker = New_PikaMaker();
2022-05-11 16:41:34 +08:00
pikaMaker_compileModuleWithDepends(maker, "main");
2022-05-11 19:30:49 +08:00
pikaMaker_linkCompiledModules(maker, "pikaModules.py.a");
2022-05-11 16:41:34 +08:00
obj_deinit(maker);
2021-11-28 22:29:25 +08:00
return;
}