Searched refs:mp_lexer_t (Results 1 – 17 of 17) sorted by relevance
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | lexer.c | 45 STATIC bool is_end(mp_lexer_t *lex) { in is_end() 87 STATIC bool is_whitespace(mp_lexer_t *lex) { in is_whitespace() 91 STATIC bool is_letter(mp_lexer_t *lex) { in is_letter() 95 STATIC bool is_digit(mp_lexer_t *lex) { in is_digit() 134 STATIC void next_char(mp_lexer_t *lex) { in next_char() 200 STATIC size_t indent_top(mp_lexer_t *lex) { in indent_top() 204 STATIC void indent_pop(mp_lexer_t *lex) { in indent_pop() 536 void mp_lexer_to_next(mp_lexer_t *lex) { in mp_lexer_to_next() 813 mp_lexer_t *lex = m_new_obj(mp_lexer_t); in mp_lexer_new() 877 void mp_lexer_free(mp_lexer_t *lex) { in mp_lexer_free() [all …]
|
A D | lexer.h | 187 } mp_lexer_t; typedef 189 mp_lexer_t *mp_lexer_new(qstr src_name, mp_reader_t reader); 190 mp_lexer_t *mp_lexer_new_from_str_len(qstr src_name, const char *str, size_t len, size_t free_len); 192 void mp_lexer_free(mp_lexer_t *lex); 193 void mp_lexer_to_next(mp_lexer_t *lex); 206 mp_lexer_t *mp_lexer_new_from_file(const char *filename); 209 mp_lexer_t *mp_lexer_new_from_fd(qstr filename, int fd, bool close_fd);
|
A D | frozenmod.c | 39 mp_lexer_t *MICROPY_MODULE_FROZEN_LEXER(qstr src_name, const char *str, mp_uint_t len, mp_uint_t fr… 63 STATIC mp_lexer_t *mp_lexer_frozen_str(const char *str, size_t len) { in mp_lexer_frozen_str() 72 mp_lexer_t *lex = MICROPY_MODULE_FROZEN_LEXER(source, content, len, 0); in mp_lexer_frozen_str() 140 mp_lexer_t *lex = mp_lexer_frozen_str(str, len); in mp_find_frozen_module()
|
A D | parsenum.h | 34 mp_obj_t mp_parse_num_integer(const char *restrict str, size_t len, int base, mp_lexer_t *lex); 35 …rse_num_decimal(const char *str, size_t len, bool allow_imag, bool force_complex, mp_lexer_t *lex);
|
A D | parsenum.c | 39 STATIC NORETURN void raise_exc(mp_obj_t exc, mp_lexer_t *lex) { in raise_exc() 49 mp_obj_t mp_parse_num_integer(const char *restrict str_, size_t len, int base, mp_lexer_t *lex) { in mp_parse_num_integer() 175 …se_num_decimal(const char *str, size_t len, bool allow_imag, bool force_complex, mp_lexer_t *lex) { in mp_parse_num_decimal()
|
A D | compile.h | 43 mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_input_kind, mp_obj_d…
|
A D | builtinevex.c | 87 mp_lexer_t *lex = mp_lexer_new_from_str_len(filename, str, str_len, 0); in mp_builtin_compile() 145 mp_lexer_t *lex; in eval_exec_helper()
|
A D | builtinimport.c | 133 STATIC void do_load_from_lexer(mp_obj_t module_obj, mp_lexer_t *lex) { in do_load_from_lexer() 225 mp_lexer_t *lex = mp_lexer_new_from_file(file_str); in do_load()
|
A D | parse.c | 235 mp_lexer_t *lexer; 480 mp_lexer_t *lex = parser->lexer; in push_result_token() 833 mp_parse_tree_t mp_parse(mp_lexer_t *lex, mp_parse_input_kind_t input_kind) { in mp_parse()
|
A D | runtime.c | 1474 mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_input_kind, mp_obj_d… in mp_parse_compile_execute()
|
/AliOS-Things-master/components/py_engine/engine/shared/memzip/ |
A D | lexermemzip.c | 8 mp_lexer_t *mp_lexer_new_from_file(const char *filename) in mp_lexer_new_from_file()
|
/AliOS-Things-master/components/py_engine/engine/shared/upytesthelper/ |
A D | upytesthelper.c | 101 mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); in upytest_execute_test()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | main.c | 219 mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); in do_str() 363 MP_WEAK mp_lexer_t *mp_lexer_new_from_file(const char *filename) { in mp_lexer_new_from_file()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | main.c | 219 mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); in do_str() 363 MP_WEAK mp_lexer_t *mp_lexer_new_from_file(const char *filename) { in mp_lexer_new_from_file()
|
/AliOS-Things-master/components/py_engine/adapter/ |
A D | main.c | 387 mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); in do_str() 564 MP_WEAK mp_lexer_t *mp_lexer_new_from_file(const char *filename) in mp_lexer_new_from_file()
|
/AliOS-Things-master/components/py_engine/engine/shared/runtime/ |
A D | pyexec.c | 91 mp_lexer_t *lex; in parse_compile_execute() 100 lex = (mp_lexer_t *)source; in parse_compile_execute()
|
/AliOS-Things-master/components/py_engine/engine/mpy-cross/ |
A D | main.c | 61 mp_lexer_t *lex = mp_lexer_new_from_file(file); in compile_and_save()
|
Completed in 23 milliseconds