Searched defs:lex (Results 1 – 3 of 3) sorted by relevance
26 static bool lexer_consume(struct json_lexer *lex, struct json_token *tok, in lexer_consume()39 static bool lexer_next(struct json_lexer *lex, struct json_token *tok) in lexer_next()54 static void emit(struct json_lexer *lex, enum json_tokens token) in emit()62 static int next(struct json_lexer *lex) in next()73 static void ignore(struct json_lexer *lex) in ignore()78 static void backup(struct json_lexer *lex) in backup()83 static int peek(struct json_lexer *lex) in peek()92 static void *lexer_string(struct json_lexer *lex) in lexer_string()154 static int accept_run(struct json_lexer *lex, const char *run) in accept_run()165 static void *lexer_boolean(struct json_lexer *lex) in lexer_boolean()[all …]
15 import ply.lex as lex namespace
69 struct json_lexer lex; member