public void Visit(AssignmentNode assignNode)
 {
     throw new NotImplementedException();
 }
示例#2
0
 public AssignmentNode(AssignmentNode.AssignmentType type)
 {
     this.type = type;
 }
示例#3
0
 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;
     }
 }
示例#4
0
 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>");
 }
示例#5
0
 public ConstraintNode(ExpressionNode expressionNode, AssignmentNode operatorNode, BoundNode boundNode)
 {
     this.en = expressionNode;
     this.on = operatorNode;
     this.bn = boundNode;
 }