compile.h 270 Bytes
Newer Older
1
// These must fit in 8 bits; see scope.h
2
3
4
5
6
7
8
9
10
enum {
    MP_EMIT_OPT_NONE,
    MP_EMIT_OPT_BYTE_CODE,
    MP_EMIT_OPT_NATIVE_PYTHON,
    MP_EMIT_OPT_VIPER,
    MP_EMIT_OPT_ASM_THUMB,
};

mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, uint emit_opt, bool is_repl);