public ExpressionTree(StaticStack<MathOperation> NumStaticStack) { Value = NumStaticStack.Pop(); BuildBinaryTree(NumStaticStack); }
public void ReplaceWith(MathOperation l, MathOperation val, MathOperation r) { Value = val ; Left = new ExpressionTree(l); Right = new ExpressionTree(r); }
public void ReplaceWith(Number n) { Value = n; Right = null; Left = null; FunctionParameters = null; }
public void ReplaceWith(ExpressionTree tree) { Value = tree.Value; Right = tree.Right; Left = tree.Left; FunctionParameters = tree.FunctionParameters; }
public ExpressionTree(MathOperation l, MathOperation val, MathOperation r) { Value = val; Left = new ExpressionTree(l); Right = new ExpressionTree(r); }
public ExpressionTree(MathOperations.MathOperation val) { Value = val; }