示例#1
0
        public RangeExprNode()
        {
            IntNode defaultStep = new IntNode();

            defaultStep.value = "1";
            StepNode          = defaultStep;
            stepoperator      = ProtoCore.DSASM.RangeStepOperator.stepsize;
        }
示例#2
0
 void num(out Node node)
 {
     node = null; String localvalue = String.Empty;
     if (la.kind == 38) {
     Get();
     localvalue = "-";
     }
     if (la.kind == 2) {
     Get();
     node = new IntNode() { value = localvalue + t.val };
     } else if (la.kind == 3) {
     Get();
     node = new DoubleNode() { value = localvalue + t.val };
     } else SynErr(67);
 }
示例#3
0
 public RangeExprNode()
 {
     IntNode defaultStep = new IntNode();
     defaultStep.value = "1";
     StepNode = defaultStep;
     stepoperator = ProtoCore.DSASM.RangeStepOperator.stepsize;
 }