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