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)
 {
 }
Exemple #3
0
 public ComplexTerm(TermNode term, string op) : base(NodeType.ComplexTermNode)
 {
     this.term = term;
     this.op   = Convert.toFactor(op);
 }