kuroko/tools/demo.c
2022-07-31 14:40:58 +09:00

13 lines
317 B
C

#include <stdio.h>
#include <kuroko/kuroko.h>
#include <kuroko/vm.h>
int main(int argc, char *argv[]) {
KrkThreadState * _thread = krk_initVM(0);
krk_startModule("__main__");
krk_interpret(_thread, "import kuroko\nprint('Kuroko',kuroko.version)\n", "<stdin>");
krk_freeVM(_thread);
return 0;
}