forked from KolibriOS/kolibrios
Uploaded tinypy sources.
git-svn-id: svn://kolibrios.org@1913 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
32
programs/develop/tinypy/tinypy/tp.c
Normal file
32
programs/develop/tinypy/tinypy/tp.c
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef TP_COMPILER
|
||||
#define TP_COMPILER 1
|
||||
#endif
|
||||
|
||||
#include "tp.h"
|
||||
#include "list.c"
|
||||
#include "koconsole.c"
|
||||
#include "dict.c"
|
||||
#include "misc.c"
|
||||
#include "string.c"
|
||||
#include "builtins.c"
|
||||
#include "gc.c"
|
||||
#include "ops.c"
|
||||
void tp_compiler(TP);
|
||||
#include "vm.c"
|
||||
|
||||
tp_obj tp_None = {TP_NONE};
|
||||
|
||||
#if TP_COMPILER
|
||||
#include "bc.c"
|
||||
void tp_compiler(TP) {
|
||||
tp_import(tp,0,"tokenize",tp_tokenize);
|
||||
tp_import(tp,0,"parse",tp_parse);
|
||||
tp_import(tp,0,"encode",tp_encode);
|
||||
tp_import(tp,0,"py2bc",tp_py2bc);
|
||||
tp_call(tp,"py2bc","_init",tp_None);
|
||||
}
|
||||
#else
|
||||
void tp_compiler(TP) { }
|
||||
#endif
|
||||
|
||||
/**/
|
||||
Reference in New Issue
Block a user