Exemplo n.º 1
0
 public FindStructuresAction(List<InstanceTree> scope, StructDef def, string expr)
 {
     _scope = scope;
     _def = def;
     if (expr.Length > 0)
     {
         _expr = ExpressionParser.Parse(expr);
     }
 }
Exemplo n.º 2
0
 public UnaryExpression(Expression operand, ExprTokenType operation)
 {
     _operand = operand;
     _operation = operation;
 }
Exemplo n.º 3
0
 public virtual IConvertible EvaluateFunction(string symbol, Expression[] parameters)
 {
     return _delegate.EvaluateFunction(symbol, parameters);
 }
Exemplo n.º 4
0
 public TernaryExpression(Expression condition, Expression trueValue, Expression falseValue)
 {
     _condition = condition;
     _trueValue = trueValue;
     _falseValue = falseValue;
 }
Exemplo n.º 5
0
 public LogicalExpression(ExprTokenType operation, Expression lhs, Expression rhs)
     : base(operation, lhs, rhs)
 {
 }
Exemplo n.º 6
0
 public FunctionExpression(string function, Expression[] parameters)
 {
     _function = function;
     _parameters = parameters;
 }
Exemplo n.º 7
0
 public ContextExpression(string contextExpr, Expression expr, Expression[] parameters)
 {
     _contextExpr = contextExpr;
     _expr = expr;
     _parameters = parameters;
 }
Exemplo n.º 8
0
 public CompareExpression(ExprTokenType operation, Expression lhs, Expression rhs)
     : base(operation, lhs, rhs)
 {
 }
Exemplo n.º 9
0
 public BinaryExpression(ExprTokenType operation, Expression lhs, Expression rhs)
 {
     _operation = operation;
     _lhs = lhs;
     _rhs = rhs;
 }
Exemplo n.º 10
0
 protected void AddCell(StructInstance instance, Expression expr)
 {
     instance.AddCell(new ExprCell(this, instance, expr), _hidden);
 }
Exemplo n.º 11
0
        public IConvertible EvaluateFunction(string symbol, Expression[] parameters)
        {
            NeedData();

            IConvertible funcValue = StructFunctions.Instance.Evaluate(symbol, parameters, this);
            if (funcValue != null)
                return funcValue;

            throw new LoadDataException("Unknown symbol " + symbol);
        }