Home
last modified time | relevance | path

Searched refs:tok_kind (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dlexer.c565 lex->tok_kind = MP_TOKEN_DEDENT; in mp_lexer_to_next()
569 lex->tok_kind = MP_TOKEN_INDENT; in mp_lexer_to_next()
573 lex->tok_kind = MP_TOKEN_NEWLINE; in mp_lexer_to_next()
591 lex->tok_kind = MP_TOKEN_END; in mp_lexer_to_next()
603 lex->tok_kind = MP_TOKEN_END; in mp_lexer_to_next()
650 lex->tok_kind = kind; in mp_lexer_to_next()
673 lex->tok_kind = MP_TOKEN_NAME; in mp_lexer_to_next()
709 lex->tok_kind = MP_TOKEN_INTEGER; in mp_lexer_to_next()
803 …if (lex->tok_kind == MP_TOKEN_DEL_PAREN_OPEN || lex->tok_kind == MP_TOKEN_DEL_BRACKET_OPEN || lex-… in mp_lexer_to_next()
805 …} else if (lex->tok_kind == MP_TOKEN_DEL_PAREN_CLOSE || lex->tok_kind == MP_TOKEN_DEL_BRACKET_CLOS… in mp_lexer_to_next()
[all …]
A Dparse.c481 if (lex->tok_kind == MP_TOKEN_NAME) { in push_result_token()
500 } else if (lex->tok_kind == MP_TOKEN_INTEGER) { in push_result_token()
507 } else if (lex->tok_kind == MP_TOKEN_FLOAT_OR_IMAG) { in push_result_token()
510 } else if (lex->tok_kind == MP_TOKEN_STRING || lex->tok_kind == MP_TOKEN_BYTES) { in push_result_token()
949 if (lex->tok_kind == tok_kind) { in mp_parse()
951 if (tok_kind == MP_TOKEN_NAME) { in mp_parse()
1001 if (tok_kind == MP_TOKEN_NAME) { in mp_parse()
1149 if (lex->tok_kind == MP_TOKEN_INDENT) { in mp_parse()
1152 } else if (lex->tok_kind == MP_TOKEN_DEDENT_MISMATCH) { in mp_parse()
1156 } else if (lex->tok_kind == MP_TOKEN_MALFORMED_FSTRING) { in mp_parse()
[all …]
A Dlexer.h181 mp_token_kind_t tok_kind; // token kind member

Completed in 9 milliseconds