Beispiel #1
0
 public ExpressionTree(StaticStack<MathOperation> NumStaticStack)
 {
     Value = NumStaticStack.Pop();
     BuildBinaryTree(NumStaticStack);
 }
Beispiel #2
0
 public void ReplaceWith(MathOperation l, MathOperation val, MathOperation r)
 {
     Value = val ;
     Left = new ExpressionTree(l);
     Right = new ExpressionTree(r);
 }
Beispiel #3
0
        public void ReplaceWith(Number n)
        {
            Value = n;
            Right = null;
            Left = null;

            FunctionParameters = null;
        }
Beispiel #4
0
        public void ReplaceWith(ExpressionTree tree)
        {
            Value = tree.Value;
            Right = tree.Right;
            Left = tree.Left;

            FunctionParameters = tree.FunctionParameters;
        }
Beispiel #5
0
 public ExpressionTree(MathOperation l, MathOperation val, MathOperation r)
 {
     Value = val;
     Left = new ExpressionTree(l);
     Right = new ExpressionTree(r);
 }
Beispiel #6
0
 public ExpressionTree(MathOperations.MathOperation val)
 {
     Value = val;
 }