Пример #1
0
 public void Visit(BoundCondition c)
 {
     sa.Print("(");
     c.Left.Accept(this);
     sa.Print(" " + c.Op.Op + " ");
     c.Right.Accept(this);
     sa.Print(")");
 }
Пример #2
0
        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));
        }