kuroko/tools/demo.c

13 lines
317 B
C
Raw Normal View History

#include <stdio.h>
#include <kuroko/kuroko.h>
#include <kuroko/vm.h>
int main(int argc, char *argv[]) {
2022-07-31 08:40:58 +03:00
KrkThreadState * _thread = krk_initVM(0);
krk_startModule("__main__");
2022-07-31 08:40:58 +03:00
krk_interpret(_thread, "import kuroko\nprint('Kuroko',kuroko.version)\n", "<stdin>");
krk_freeVM(_thread);
return 0;
}