Searched refs:lex (Results 1 – 4 of 4) sorted by relevance
26 static bool lexer_consume(struct json_lexer *lex, struct json_token *tok, in lexer_consume() argument29 if (lex->tok.type == empty_token) { in lexer_consume()33 *tok = lex->tok; in lexer_consume()34 lex->tok.type = empty_token; in lexer_consume()39 static bool lexer_next(struct json_lexer *lex, struct json_token *tok) in lexer_next() argument41 while (lex->state) { in lexer_next()42 if (lexer_consume(lex, tok, JSON_TOK_NONE)) { in lexer_next()46 lex->state = lex->state(lex); in lexer_next()49 return lexer_consume(lex, tok, JSON_TOK_EOF); in lexer_next()52 static void *lexer_json(struct json_lexer *lex);[all …]
15 import ply.lex as lex namespace100 lex.lex()332 lex.input(line)333 for tok in iter(lex.token, None):
9 # python lex/yex used by twister
59 void *(*state)(struct json_lexer *lex);67 struct json_lexer lex; member