def _parse_tokens(self, tokens, i, actions=True):
    token_text = tokens[i][0]
    if (token_text.lower() == self.match):
        return ([E((self.name or safe_name(tokens[i][1])), tokens[i][0])], (i + 1))
    raise ParseException(tokens, i, ('Expected %s, got %s' % (self.match, tokens[i][0])), self)
def _parse_tokens(self, tokens, i, actions=True):
    token_text = tokens[i][0]
    if (token_text.lower() == self.match):
        return ([E((self.name or safe_name(tokens[i][1])), tokens[i][0])], (i + 1))
    raise ParseException(tokens, i, ('Expected %s, got %s' % (self.match, tokens[i][0])), self)