public FactorNode(TermNode lt, List <ComplexTerm> tail) : base(NodeType.FactorNode) { this.lt = lt; this.tail = tail; children = new List <BaseNode>(); children.Add(lt); if (tail != null) { for (int i = 0; i < tail.Count; i++) { children.Add(tail[i]); } } }
public FactorNode(TermNode term) : this(term, null) { }
public ComplexTerm(TermNode term, string op) : base(NodeType.ComplexTermNode) { this.term = term; this.op = Convert.toFactor(op); }