def _create_token(token_type, value, lineno, lexpos):
token = lex.LexToken()<EOL>token.type = token_type<EOL>token.value = value<EOL>token.lineno = lineno<EOL>token.lexpos = lexpos<EOL>return token<EOL>
Helper for creating ply.lex.LexToken objects. Unfortunately, LexToken
does not have a constructor defined to make settings these values easy.