public VariableNode(ExpressionNode e) { isen = true; this.e = e; }
public void Visit(ExpressionNode expessionNode) { throw new NotImplementedException(); }
public void Visit(ExpressionNode expessionNode) { PrintLine("<expression>"); indent(); foreach (TermNode t in expessionNode.terms) { t.Accept(this); } unindent(); PrintLine("</expression>"); }
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++; } }
public FactorNode(ExpressionNode e) { this.e = e; }
public ConstraintNode(ExpressionNode expressionNode, AssignmentNode operatorNode, BoundNode boundNode) { this.en = expressionNode; this.on = operatorNode; this.bn = boundNode; }