

def parse(self):
    if self.at_end():
        raise self.error_class('No variables provided.')
    var1 = self.get_bool_var()
    while (not self.at_end()):
        (op, negate) = self.get_operator()
        var2 = self.get_bool_var()
        var1 = op(var1, var2, negate=negate)
    return var1

dataset/ETHPy150Open aehlke/manabi/apps/utils/templatetags/smartif.py IfParser.parse/original