Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1913 | jaeger | 1 | #ifndef TP_COMPILER |
2 | #define TP_COMPILER 1 |
||
3 | #endif |
||
4 | |||
5 | #include "tp.h" |
||
6 | #include "list.c" |
||
7 | #include "koconsole.c" |
||
8 | #include "dict.c" |
||
9 | #include "misc.c" |
||
10 | #include "string.c" |
||
11 | #include "builtins.c" |
||
12 | #include "gc.c" |
||
13 | #include "ops.c" |
||
14 | void tp_compiler(TP); |
||
15 | #include "vm.c" |
||
16 | |||
17 | tp_obj tp_None = {TP_NONE}; |
||
18 | |||
19 | #if TP_COMPILER |
||
20 | #include "bc.c" |
||
21 | void tp_compiler(TP) { |
||
22 | tp_import(tp,0,"tokenize",tp_tokenize); |
||
23 | tp_import(tp,0,"parse",tp_parse); |
||
24 | tp_import(tp,0,"encode",tp_encode); |
||
25 | tp_import(tp,0,"py2bc",tp_py2bc); |
||
26 | tp_call(tp,"py2bc","_init",tp_None); |
||
27 | } |
||
28 | #else |
||
29 | void tp_compiler(TP) { } |
||
30 | #endif |
||
31 | |||
32 | /**/ |