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>
|
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-04 20:54:00 +08:00
|
|
|
#include "PikaCompiler.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;
|
|
|
|
|
2022-05-06 12:57:33 +08:00
|
|
|
void pikaCompileFileWithInfo(char* filename){
|
|
|
|
__platform_printf(" compiling %s...\r\n", filename);
|
|
|
|
pikaCompileFile(filename);
|
|
|
|
}
|
|
|
|
|
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-06 12:57:33 +08:00
|
|
|
pikaCompileFileWithInfo("main.py");
|
2021-11-28 22:29:25 +08:00
|
|
|
return;
|
|
|
|
}
|