public double Evaluate(IEvaluatable node, int a, int b) { _Parameters["a"] = a; _Parameters["b"] = b; return node.Evaluate(_Parameters); }
public T Evaluate(params T[] args) { return(_func.Evaluate(args)); }
public T Evaluate(IDictionary <string, T> values) => Process(_item.Evaluate(values));
public T Evaluate(IDictionary <string, T> values) { return(Process(_first.Evaluate(values), _second.Evaluate(values))); }
public T Evaluate(IDictionary <string, T> values) { return(_first == null && _rightParam != null ? _rightParam(_second.Evaluate()) : Process(_first.Evaluate(values), _second.Evaluate(values))); }
private static void HandleDefaultOperatorBehaviour(Stack <double> output, IEvaluatable <double> op) { var arguments = OutputHelper.GetArgumentList(op.InputArgs, output); output.Push(op.Evaluate(arguments)); }
private static void HandleSpecialUnaryOperator(Stack <double> output, IEvaluatable <double> op) { var arguments = OutputHelper.GetArgumentList(1, output); output.Push(op.Evaluate(arguments)); }