Пример #1
0
        public override ExpressionResult Invoke()
        {
            var result = new MathExpression(Expression, Memory).Invoke().Data;

            Memory.SetValue(result, Name.Text);
            return(ExpressionResult.Default);
        }
Пример #2
0
 public override ExpressionResult Invoke()
 {
     Memory.Create(Name.Text, Type.Text);
     if (Expression.Length > 0)
     {
         var result = new MathExpression(Expression, Memory).Invoke().Data;
         Memory.SetValue(result, Name.Text);
     }
     return(ExpressionResult.Default);
 }
Пример #3
0
 public IfExpression(MathExpression condition, Expression body)
 {
     Condition = condition;
     Body      = body;
 }