Beispiel #1
0
 public VariableNode(ExpressionNode e)
 {
     isen = true;
     this.e = e;
 }
 public void Visit(ExpressionNode expessionNode)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public void Visit(ExpressionNode expessionNode)
 {
     PrintLine("<expression>");
     indent();
     foreach (TermNode t in expessionNode.terms) {
         t.Accept(this);
     }
     unindent();
     PrintLine("</expression>");
 }
Beispiel #4
0
 public void Visit(ExpressionNode expessionNode)
 {
     int count = 0;
     foreach (TermNode t in expessionNode.terms) {
         if(t.neg) {
             Print("-");
         } else {
             if(count > 0) Print("+");
         }
         t.Accept(this);
         count++;
     }
 }
Beispiel #5
0
 public FactorNode(ExpressionNode e)
 {
     this.e = e;
 }
Beispiel #6
0
 public ConstraintNode(ExpressionNode expressionNode, AssignmentNode operatorNode, BoundNode boundNode)
 {
     this.en = expressionNode;
     this.on = operatorNode;
     this.bn = boundNode;
 }