def _parse_tokens(self, tokens, i, actions=True):
    try:
        self.expr.try_parse(tokens, i)
    except (ParseException, IndexError):
        pass
    else:
        raise ParseException(tokens, i, 'Encountered disallowed token', self)
    return ([], i)
def _parse_tokens(self, tokens, i, actions=True):
    try:
        self.expr.try_parse(tokens, i)
    except (ParseException, IndexError):
        pass
    else:
        raise ParseException(tokens, i, 'Encountered disallowed token', self)
    return ([], i)