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

            defaultStep.value = "1";
            StepNode          = defaultStep;
        }
示例#2
0
 public RangeExprNode()
 {
     IntNode defaultStep = new IntNode();
     defaultStep.value = "1";
     StepNode = defaultStep;            
 }
示例#3
0
	void Number(out Node node) {
		node = null; String localvalue = String.Empty; 
		if (la.kind == 14) {
			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(81);
	}