public void Visit(BoundCondition c) { sa.Print("("); c.Left.Accept(this); sa.Print(" " + c.Op.Op + " "); c.Right.Accept(this); sa.Print(")"); }
private async Task <Either <RuntimeErrors, bool> > IsMet(BoundCondition condition) { var left = await Evaluate(condition.Left); var right = await Evaluate(condition.Right); return(CombineExtensions.Combine(left, right, (x, y) => Compare(x, y, condition.Op), RuntimeErrors.Concat)); }