Exemple #1
0
        public VarVal CalcExpression()
        {
            var val = new VarVal(Id, Expression.Calc(), Expression.Type);

            OutputVariableSource.InternalFunnyValue = val.Value;
            return(val);
        }
Exemple #2
0
 public object Calc()
 {
     for (var index = 0; index < _ifExpressionNodes.Length; index++)
     {
         if ((bool)_conditionNodes[index].Calc())
         {
             return(_ifExpressionNodes[index].Calc());
         }
     }
     return(_elseNode.Calc());
 }
 public object Calc() => _fun.Calc(_arg1.Calc(), _arg2.Calc());
Exemple #4
0
        public object Calc()
        {
            var res = _origin.Calc();

            return(_converter(res));
        }
Exemple #5
0
 public override object Calc(object[] args)
 {
     SetVariables(args);
     return(Expression.Calc());
 }
 public object Calc() => ((FunnyStruct)_source.Calc()).GetValue(_fieldName);
Exemple #7
0
 public override object Calc(object[] args) => ((IConcreteFunction)_source.Calc()).Calc(args);