public void Visit(AssignmentNode assignNode) { throw new NotImplementedException(); }
public AssignmentNode(AssignmentNode.AssignmentType type) { this.type = type; }
public void Visit(AssignmentNode assignNode) { switch(assignNode.type) { case(AssignmentNode.AssignmentType.EqualTo): Print("="); break; case(AssignmentNode.AssignmentType.GreaterThan): Print(">"); break; case(AssignmentNode.AssignmentType.GreaterThanOrEqualTo): Print(">="); break; case(AssignmentNode.AssignmentType.LessThan): Print("<"); break; case(AssignmentNode.AssignmentType.LessThanOrEqualTo): Print("<="); break; case(AssignmentNode.AssignmentType.NotEqualTo): Print("!="); break; } }
public void Visit(AssignmentNode assignNode) { PrintLine("<assignmentNode>"); indent(); switch(assignNode.type) { case(AssignmentNode.AssignmentType.EqualTo): PrintLine("="); break; case(AssignmentNode.AssignmentType.GreaterThan): PrintLine(">"); break; case(AssignmentNode.AssignmentType.GreaterThanOrEqualTo): PrintLine(">="); break; case(AssignmentNode.AssignmentType.LessThan): PrintLine("<"); break; case(AssignmentNode.AssignmentType.LessThanOrEqualTo): PrintLine("<="); break; case(AssignmentNode.AssignmentType.NotEqualTo): PrintLine("!="); break; } unindent(); PrintLine("</assignmentNode>"); }
public ConstraintNode(ExpressionNode expressionNode, AssignmentNode operatorNode, BoundNode boundNode) { this.en = expressionNode; this.on = operatorNode; this.bn = boundNode; }