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