示例#1
0
	} // transitions

	public override state shiftNonterm(string nonterm, int count, Coordinate end, string rule, state rightmost) {
		nonterminalState s;
		update(count);
		switch(nonterm) {
		default: throw new System.Exception("\""+nonterm+"\":"+rule);
		case "array-type": {
				bool reject = false;
				s = new itemSet_98(this, end, rule, rightmost, reject, count);
				if (memo1 != null) {
					memo1.add(s, count);
					return null;
				} else {
					memo1 = s;
					return s;
				}
			}
		case "return-type": {
				bool reject = false;
				s = new itemSet_512(this, end, rule, rightmost, reject, count);
				if (memo2 != null) {
					memo2.add(s, count);
					return null;
				} else {
					memo2 = s;
					return s;
				}
			}
		case "type": {
				bool reject = false;
				s = new itemSet_513(this, end, rule, rightmost, reject, count);
				if (memo3 != null) {
					memo3.add(s, count);
					return null;
				} else {
					memo3 = s;
					return s;
				}
			}
		case "indexer-declarator": {
				bool reject = false;
				s = new itemSet_516(this, end, rule, rightmost, reject, count);
				if (memo4 != null) {
					memo4.add(s, count);
					return null;
				} else {
					memo4 = s;
					return s;
				}
			}
		case "class-type": {
				bool reject = false;
				s = new itemSet_119(this, end, rule, rightmost, reject, count);
				if (memo5 != null) {
					memo5.add(s, count);
					return null;
				} else {
					memo5 = s;
					return s;
				}
			}
		case "namespace-or-type-name": {
				bool reject = false;
				s = new itemSet_72(this, end, rule, rightmost, reject, count);
				if (memo6 != null) {
					memo6.add(s, count);
					return null;
				} else {
					memo6 = s;
					return s;
				}
			}
		case "operator-declarator": {
				bool reject = false;
				s = new itemSet_517(this, end, rule, rightmost, reject, count);
				if (memo7 != null) {
					memo7.add(s, count);
					return null;
				} else {
					memo7 = s;
					return s;
				}
			}
		case "integral-type": {
				bool reject = false;
				s = new itemSet_99(this, end, rule, rightmost, reject, count);
				if (memo8 != null) {
					memo8.add(s, count);
					return null;
				} else {
					memo8 = s;
					return s;
				}
			}
		case "constructor-declarator": {
				bool reject = false;
				s = new itemSet_519(this, end, rule, rightmost, reject, count);
				if (memo9 != null) {
					memo9.add(s, count);
					return null;
				} else {
					memo9 = s;
					return s;
				}
			}
		case "unmanaged-type": {
				bool reject = false;
				s = new itemSet_106(this, end, rule, rightmost, reject, count);
				if (memo10 != null) {
					memo10.add(s, count);
					return null;
				} else {
					memo10 = s;
					return s;
				}
			}
		case "binary-operator-declarator": {
				bool reject = false;
				s = new itemSet_521(this, end, rule, rightmost, reject, count);
				if (memo11 != null) {
					memo11.add(s, count);
					return null;
				} else {
					memo11 = s;
					return s;
				}
			}
		case "conversion-operator-declarator": {
				bool reject = false;
				s = new itemSet_522(this, end, rule, rightmost, reject, count);
				if (memo12 != null) {
					memo12.add(s, count);
					return null;
				} else {
					memo12 = s;
					return s;
				}
			}
		case "type-name": {
				bool reject = false;
				s = new itemSet_112(this, end, rule, rightmost, reject, count);
				if (memo13 != null) {
					memo13.add(s, count);
					return null;
				} else {
					memo13 = s;
					return s;
				}
			}
		case "pointer-type": {
				bool reject = false;
				s = new itemSet_117(this, end, rule, rightmost, reject, count);
				if (memo14 != null) {
					memo14.add(s, count);
					return null;
				} else {
					memo14 = s;
					return s;
				}
			}
		case "unary-operator-declarator": {
				bool reject = false;
				s = new itemSet_524(this, end, rule, rightmost, reject, count);
				if (memo15 != null) {
					memo15.add(s, count);
					return null;
				} else {
					memo15 = s;
					return s;
				}
			}
		} // switch
	} // shiftNonterm
示例#2
0
	} // transitions

	public override state shiftNonterm(string nonterm, int count, Coordinate end, string rule, state rightmost) {
		nonterminalState s;
		update(count);
		switch(nonterm) {
		default: throw new System.Exception("\""+nonterm+"\":"+rule);
		case "namespace-or-type-name": {
				bool reject = false;
				s = new itemSet_72(this, end, rule, rightmost, reject, count);
				if (memo1 != null) {
					memo1.add(s, count);
					return null;
				} else {
					memo1 = s;
					return s;
				}
			}
		case "array-type": {
				bool reject = false;
				s = new itemSet_98(this, end, rule, rightmost, reject, count);
				if (memo2 != null) {
					memo2.add(s, count);
					return null;
				} else {
					memo2 = s;
					return s;
				}
			}
		case "integral-type": {
				bool reject = false;
				s = new itemSet_99(this, end, rule, rightmost, reject, count);
				if (memo3 != null) {
					memo3.add(s, count);
					return null;
				} else {
					memo3 = s;
					return s;
				}
			}
		case "unmanaged-type": {
				bool reject = false;
				s = new itemSet_497(this, end, rule, rightmost, reject, count);
				if (memo4 != null) {
					memo4.add(s, count);
					return null;
				} else {
					memo4 = s;
					return s;
				}
			}
		case "type-name": {
				bool reject = false;
				s = new itemSet_112(this, end, rule, rightmost, reject, count);
				if (memo5 != null) {
					memo5.add(s, count);
					return null;
				} else {
					memo5 = s;
					return s;
				}
			}
		case "type": {
				bool reject = false;
				s = new itemSet_366(this, end, rule, rightmost, reject, count);
				if (memo6 != null) {
					memo6.add(s, count);
					return null;
				} else {
					memo6 = s;
					return s;
				}
			}
		case "pointer-type": {
				bool reject = false;
				s = new itemSet_117(this, end, rule, rightmost, reject, count);
				if (memo7 != null) {
					memo7.add(s, count);
					return null;
				} else {
					memo7 = s;
					return s;
				}
			}
		case "class-type": {
				bool reject = false;
				s = new itemSet_119(this, end, rule, rightmost, reject, count);
				if (memo8 != null) {
					memo8.add(s, count);
					return null;
				} else {
					memo8 = s;
					return s;
				}
			}
		} // switch
	} // shiftNonterm