Home
last modified time | relevance | path

Searched refs:lex (Results 1 – 25 of 25) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dlexer.c43 #define CUR_CHAR(lex) ((lex)->chr0) argument
62 return lex->chr0 == c1 || lex->chr0 == c2 || lex->chr0 == c3; in is_char_or3()
67 return lex->chr0 == c1 || lex->chr0 == c2 || lex->chr0 == c3 || lex->chr0 == c4; in is_char_or4()
127 return is_letter(lex) || lex->chr0 == '_' || lex->chr0 >= 0x80; in is_head_of_identifier()
148 lex->chr0 = lex->chr1; in next_char()
149 lex->chr1 = lex->chr2; in next_char()
156 lex->chr2 = lex->fstring_args.buf[lex->fstring_args_idx++]; in next_char()
174 lex->chr2 = lex->reader.readbyte(lex->reader.data); in next_char()
182 lex->chr2 = lex->reader.readbyte(lex->reader.data); in next_char()
561 lex->tok_line = lex->line; in mp_lexer_to_next()
[all …]
A Dparsenum.c39 STATIC NORETURN void raise_exc(mp_obj_t exc, mp_lexer_t *lex) { in raise_exc() argument
42 if (lex != NULL) { in raise_exc()
44 mp_obj_exception_add_traceback(exc, lex->source_name, lex->tok_line, MP_QSTRnull); 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() argument
151 raise_exc(exc, lex); in mp_parse_num_integer()
155 raise_exc(exc, lex); in mp_parse_num_integer()
164 raise_exc(exc, 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() argument
347 …mp_obj_new_exception_msg(&mp_type_ValueError, MP_ERROR_TEXT("complex values not supported")), lex); in mp_parse_num_decimal()
355 …xc(mp_obj_new_exception_msg(&mp_type_ValueError, MP_ERROR_TEXT("invalid syntax for number")), lex); in mp_parse_num_decimal()
[all …]
A Dparse.c480 mp_lexer_t *lex = parser->lexer; in push_result_token() local
482 qstr id = qstr_from_strn(lex->vstr.buf, lex->vstr.len); in push_result_token()
501 mp_obj_t o = mp_parse_num_integer(lex->vstr.buf, lex->vstr.len, 0, lex); in push_result_token()
508 mp_obj_t o = mp_parse_num_decimal(lex->vstr.buf, lex->vstr.len, true, false, lex); in push_result_token()
510 } else if (lex->tok_kind == MP_TOKEN_STRING || lex->tok_kind == MP_TOKEN_BYTES) { in push_result_token()
516 qst = qstr_from_strn(lex->vstr.buf, lex->vstr.len); in push_result_token()
519 qst = qstr_find_strn(lex->vstr.buf, lex->vstr.len); in push_result_token()
528 (const byte *)lex->vstr.buf, lex->vstr.len); in push_result_token()
847 parser.lexer = lex; in mp_parse()
1169 mp_obj_exception_add_traceback(exc, lex->source_name, lex->tok_line, MP_QSTRnull); in mp_parse()
[all …]
A Dbuiltinevex.c87 mp_lexer_t *lex = mp_lexer_new_from_str_len(filename, str, str_len, 0); in mp_builtin_compile() local
108 code->module_fun = mp_parse_compile_execute(lex, parse_input_kind, NULL, NULL); in mp_builtin_compile()
145 mp_lexer_t *lex; in eval_exec_helper() local
147 lex = mp_lexer_new_from_file(bufinfo.buf); in eval_exec_helper()
150 lex = mp_lexer_new_from_str_len(MP_QSTR__lt_string_gt_, bufinfo.buf, bufinfo.len, 0); in eval_exec_helper()
153 return mp_parse_compile_execute(lex, parse_input_kind, globals, locals); in eval_exec_helper()
A Dfrozenmod.c72 mp_lexer_t *lex = MICROPY_MODULE_FROZEN_LEXER(source, content, len, 0); in mp_lexer_frozen_str() local
73 return lex; in mp_lexer_frozen_str()
140 mp_lexer_t *lex = mp_lexer_frozen_str(str, len); in mp_find_frozen_module() local
141 if (lex != NULL) { in mp_find_frozen_module()
142 *data = lex; in mp_find_frozen_module()
A Dparsenum.h34 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 Dbuiltinimport.c133 STATIC void do_load_from_lexer(mp_obj_t module_obj, mp_lexer_t *lex) { in do_load_from_lexer() argument
135 qstr source_name = lex->source_name; in do_load_from_lexer()
141 mp_parse_compile_execute(lex, MP_PARSE_FILE_INPUT, mod_globals, mod_globals); in do_load_from_lexer()
225 mp_lexer_t *lex = mp_lexer_new_from_file(file_str); in do_load() local
226 do_load_from_lexer(module_obj, lex); in do_load()
A Dlexer.h192 void mp_lexer_free(mp_lexer_t *lex);
193 void mp_lexer_to_next(mp_lexer_t *lex);
A Dcompile.h43 mp_obj_t mp_parse_compile_execute(mp_lexer_t *lex, mp_parse_input_kind_t parse_input_kind, mp_obj_d…
A Dparse.h104 mp_parse_tree_t mp_parse(struct _mp_lexer_t *lex, mp_parse_input_kind_t input_kind);
A Druntime.c1474 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() argument
1485 qstr source_name = lex->source_name; in mp_parse_compile_execute()
1486 mp_parse_tree_t parse_tree = mp_parse(lex, parse_input_kind); in mp_parse_compile_execute()
/AliOS-Things-master/components/py_engine/engine/tools/
A Dgendoc.py199 def add_doc(self, lex): argument
261 method.add_doc(lex)
269 method.add_doc(lex)
276 lex.opt_break()
317 function.add_doc(lex)
344 lex.opt_break()
425 lex.opt_break()
428 self.check_module(lex)
432 self.check_module(lex)
436 self.check_module(lex)
[all …]
/AliOS-Things-master/components/SDL2/src/gfx/
A Dmissing120 lex*|yacc*)
241 lex*|flex*)
247 rm -f lex.yy.c
254 cp "$SRCFILE" lex.yy.c
259 if test ! -f lex.yy.c; then
260 echo 'main() { return 0; }' >lex.yy.c
/AliOS-Things-master/components/SDL2/src/gfx/Test/
A Dmissing120 lex*|yacc*)
241 lex*|flex*)
247 rm -f lex.yy.c
254 cp "$SRCFILE" lex.yy.c
259 if test ! -f lex.yy.c; then
260 echo 'main() { return 0; }' >lex.yy.c
/AliOS-Things-master/components/py_engine/engine/shared/upytesthelper/
A Dupytesthelper.c101 mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); in upytest_execute_test() local
102 qstr source_name = lex->source_name; in upytest_execute_test()
103 mp_parse_tree_t parse_tree = mp_parse(lex, MP_PARSE_FILE_INPUT); in upytest_execute_test()
/AliOS-Things-master/components/py_engine/engine/shared/runtime/
A Dpyexec.c91 mp_lexer_t *lex; in parse_compile_execute() local
94 lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, vstr->buf, vstr->len, 0); in parse_compile_execute()
96 lex = mp_lexer_new(MP_QSTR__lt_stdin_gt_, *(mp_reader_t *)source); in parse_compile_execute()
98 lex = mp_lexer_new_from_file(source); in parse_compile_execute()
100 lex = (mp_lexer_t *)source; in parse_compile_execute()
103 qstr source_name = lex->source_name; in parse_compile_execute()
104 mp_parse_tree_t parse_tree = mp_parse(lex, input_kind); in parse_compile_execute()
/AliOS-Things-master/components/py_engine/engine/mpy-cross/
A Dmain.c61 mp_lexer_t *lex = mp_lexer_new_from_file(file); in compile_and_save() local
65 source_name = lex->source_name; in compile_and_save()
74 mp_parse_tree_t parse_tree = mp_parse(lex, MP_PARSE_FILE_INPUT); in compile_and_save()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmain.c219 mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); in do_str() local
220 qstr source_name = lex->source_name; in do_str()
221 mp_parse_tree_t parse_tree = mp_parse(lex, input_kind); in do_str()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmain.c219 mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); in do_str() local
220 qstr source_name = lex->source_name; in do_str()
221 mp_parse_tree_t parse_tree = mp_parse(lex, input_kind); in do_str()
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Dmissing171 lex*|flex*)
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/config/
A Dmissing171 lex*|flex*)
/AliOS-Things-master/components/SDL2/src/image/
A Dmissing171 lex*|flex*)
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/
A Dmissing171 lex*|flex*)
/AliOS-Things-master/components/py_engine/adapter/
A Dmain.c387 mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0); in do_str() local
388 qstr source_name = lex->source_name; in do_str()
389 mp_parse_tree_t parse_tree = mp_parse(lex, input_kind); in do_str()
/AliOS-Things-master/components/amp/engine/duktape_engine/duktape/
A Dduktape.c5045 duk_lexer_ctx lex; member
5136 duk_lexer_ctx lex; member
54126 …at_end = (thr->compile_ctx->lex.window[0].codepoint < 0 || thr->compile_ctx->lex.window[1].codepoi…
80735 DUK_LEXER_GETPOINT(&comp_ctx->lex, &lex_pt);
80832 DUK_LEXER_SETPOINT(&comp_ctx->lex, &lex_pt);
81186 DUK_LEXER_SETPOINT(&comp_ctx->lex, &lex_pt);
81368 comp_ctx->lex.thr = thr;
81372 comp_ctx->lex.buf_idx = entry_top + 0;
81374 …DUK_ASSERT(DUK_HBUFFER_HAS_DYNAMIC(comp_ctx->lex.buf) && !DUK_HBUFFER_HAS_EXTERNAL(comp_ctx->lex.b…
96018 re_ctx.lex.thr = thr;
[all …]

Completed in 328 milliseconds