YAMP.ContainerExpression.Interpret C# (CSharp) Method

Interpret() public method

Interprets the container expression.
public Interpret ( Value>.IDictionary symbols ) : Value
symbols Value>.IDictionary External symbols to be used.
return Value
        public override Value Interpret(IDictionary<String, Value> symbols)
        {
            if (_operator != null)
            {
                return _operator.Evaluate(_expressions, symbols);
            }
            else if (_expressions != null && _expressions.Length > 0)
            {
                return _expressions[0].Interpret(symbols);
            }

            return null;
        }

Usage Example

コード例 #1
0
ファイル: Statement.cs プロジェクト: bluntwcrackrap/YAMP
        /// <summary>
        /// Interprets the statement.
        /// </summary>
        /// <param name="symbols">Additional symbols to consider.</param>
        /// <returns>The result of the evaluation.</returns>
        public Value Interpret(Dictionary <string, Value> symbols)
        {
            if (finalized)
            {
                var val = _container.Interpret(symbols);
                return(IsMuted ? null : val);
            }

            return(null);
        }