Lines Matching defs:lex
43 #define CUR_CHAR(lex) ((lex)->chr0) argument
45 STATIC bool is_end(mp_lexer_t *lex) { in is_end()
49 STATIC bool is_physical_newline(mp_lexer_t *lex) { in is_physical_newline()
53 STATIC bool is_char(mp_lexer_t *lex, byte c) { in is_char()
57 STATIC bool is_char_or(mp_lexer_t *lex, byte c1, byte c2) { in is_char_or()
61 STATIC bool is_char_or3(mp_lexer_t *lex, byte c1, byte c2, byte c3) { in is_char_or3()
66 STATIC bool is_char_or4(mp_lexer_t *lex, byte c1, byte c2, byte c3, byte c4) { in is_char_or4()
71 STATIC bool is_char_following(mp_lexer_t *lex, byte c) { in is_char_following()
75 STATIC bool is_char_following_or(mp_lexer_t *lex, byte c1, byte c2) { in is_char_following_or()
79 STATIC bool is_char_following_following_or(mp_lexer_t *lex, byte c1, byte c2) { in is_char_following_following_or()
83 STATIC bool is_char_and(mp_lexer_t *lex, byte c1, byte c2) { in is_char_and()
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()
99 STATIC bool is_following_digit(mp_lexer_t *lex) { in is_following_digit()
103 STATIC bool is_following_base_char(mp_lexer_t *lex) { in is_following_base_char()
108 STATIC bool is_following_odigit(mp_lexer_t *lex) { in is_following_odigit()
112 STATIC bool is_string_or_bytes(mp_lexer_t *lex) { in is_string_or_bytes()
126 STATIC bool is_head_of_identifier(mp_lexer_t *lex) { in is_head_of_identifier()
130 STATIC bool is_tail_of_identifier(mp_lexer_t *lex) { in is_tail_of_identifier()
134 STATIC void next_char(mp_lexer_t *lex) { in next_char()
192 STATIC void indent_push(mp_lexer_t *lex, size_t indent) { in indent_push()
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()
299 STATIC bool get_hex(mp_lexer_t *lex, size_t num_digits, mp_uint_t *result) { in get_hex()
313 STATIC void parse_string_literal(mp_lexer_t *lex, bool is_raw, bool is_fstring) { in parse_string_literal()
508 STATIC bool skip_whitespace(mp_lexer_t *lex, bool stop_at_newline) { in skip_whitespace()
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() local
877 void mp_lexer_free(mp_lexer_t *lex) { in mp_lexer_free()