2021-02-07 19:19:08 +00:00
|
|
|
#include "be_constobj.h"
|
|
|
|
|
|
|
|
static be_define_const_map_slots(m_builtin_map) {
|
2021-11-29 20:30:06 +00:00
|
|
|
{ be_const_key(number, 23), be_const_int(7) },
|
|
|
|
{ be_const_key(call, -1), be_const_int(22) },
|
|
|
|
{ be_const_key(range, -1), be_const_int(20) },
|
2021-09-15 18:36:48 +01:00
|
|
|
{ be_const_key(input, -1), be_const_int(2) },
|
2021-11-29 20:30:06 +00:00
|
|
|
{ be_const_key(bytes, 11), be_const_int(21) },
|
|
|
|
{ be_const_key(issubclass, -1), be_const_int(14) },
|
2021-09-15 18:36:48 +01:00
|
|
|
{ be_const_key(compile, -1), be_const_int(13) },
|
2021-11-29 20:30:06 +00:00
|
|
|
{ be_const_key(open, 22), be_const_int(17) },
|
|
|
|
{ be_const_key(module, 17), be_const_int(11) },
|
|
|
|
{ be_const_key(list, 7), be_const_int(18) },
|
|
|
|
{ be_const_key(isinstance, -1), be_const_int(15) },
|
|
|
|
{ be_const_key(classname, 20), be_const_int(5) },
|
2021-09-15 18:36:48 +01:00
|
|
|
{ be_const_key(size, -1), be_const_int(12) },
|
2021-11-29 20:30:06 +00:00
|
|
|
{ be_const_key(real, -1), be_const_int(10) },
|
|
|
|
{ be_const_key(int, -1), be_const_int(9) },
|
|
|
|
{ be_const_key(__iterator__, 5), be_const_int(16) },
|
2021-09-15 18:36:48 +01:00
|
|
|
{ be_const_key(str, -1), be_const_int(8) },
|
2021-11-29 20:30:06 +00:00
|
|
|
{ be_const_key(bool, -1), be_const_int(23) },
|
|
|
|
{ be_const_key(classof, -1), be_const_int(6) },
|
|
|
|
{ be_const_key(assert, -1), be_const_int(0) },
|
|
|
|
{ be_const_key(super, -1), be_const_int(3) },
|
|
|
|
{ be_const_key(type, 8), be_const_int(4) },
|
|
|
|
{ be_const_key(map, -1), be_const_int(19) },
|
|
|
|
{ be_const_key(print, -1), be_const_int(1) },
|
2021-02-07 19:19:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static be_define_const_map(
|
|
|
|
m_builtin_map,
|
2021-11-29 20:30:06 +00:00
|
|
|
24
|
2021-02-07 19:19:08 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
static const bvalue __vlist_array[] = {
|
|
|
|
be_const_func(l_assert),
|
2021-09-15 18:36:48 +01:00
|
|
|
be_const_func(l_print),
|
|
|
|
be_const_func(l_input),
|
|
|
|
be_const_func(l_super),
|
|
|
|
be_const_func(l_type),
|
2021-02-07 19:19:08 +00:00
|
|
|
be_const_func(l_classname),
|
|
|
|
be_const_func(l_classof),
|
2021-09-15 18:36:48 +01:00
|
|
|
be_const_func(l_number),
|
|
|
|
be_const_func(l_str),
|
2021-02-07 19:19:08 +00:00
|
|
|
be_const_func(l_int),
|
2021-09-15 18:36:48 +01:00
|
|
|
be_const_func(l_real),
|
|
|
|
be_const_func(l_module),
|
|
|
|
be_const_func(l_size),
|
|
|
|
be_const_func(l_compile),
|
2021-02-07 19:19:08 +00:00
|
|
|
be_const_func(l_issubclass),
|
2021-09-15 18:36:48 +01:00
|
|
|
be_const_func(l_isinstance),
|
|
|
|
be_const_func(l_iterator),
|
|
|
|
be_const_func(be_nfunc_open),
|
2021-02-07 19:19:08 +00:00
|
|
|
be_const_class(be_class_list),
|
|
|
|
be_const_class(be_class_map),
|
|
|
|
be_const_class(be_class_range),
|
2021-09-15 18:36:48 +01:00
|
|
|
be_const_class(be_class_bytes),
|
|
|
|
be_const_func(l_call),
|
2021-11-29 20:30:06 +00:00
|
|
|
be_const_func(l_bool),
|
2021-02-07 19:19:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static be_define_const_vector(
|
|
|
|
m_builtin_vector,
|
|
|
|
__vlist_array,
|
2021-11-29 20:30:06 +00:00
|
|
|
24
|
2021-02-07 19:19:08 +00:00
|
|
|
);
|