Exemplo n.º 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 "new-expression": {
				bool reject = false;
				s = new itemSet_131(this, end, rule, rightmost, reject, count);
				if (memo1 != null) {
					memo1.add(s, count);
					return null;
				} else {
					memo1 = s;
					return s;
				}
			}
		case "null-literal": {
				bool reject = false;
				s = new itemSet_132(this, end, rule, rightmost, reject, count);
				if (memo2 != null) {
					memo2.add(s, count);
					return null;
				} else {
					memo2 = s;
					return s;
				}
			}
		case "simple-name": {
				bool reject = false;
				s = new itemSet_174(this, end, rule, rightmost, reject, count);
				if (memo3 != null) {
					memo3.add(s, count);
					return null;
				} else {
					memo3 = s;
					return s;
				}
			}
		case "pre-increment-expression": {
				bool reject = false;
				s = new itemSet_136(this, end, rule, rightmost, reject, count);
				if (memo4 != null) {
					memo4.add(s, count);
					return null;
				} else {
					memo4 = s;
					return s;
				}
			}
		case "parenthesized-expression": {
				bool reject = false;
				s = new itemSet_138(this, end, rule, rightmost, reject, count);
				if (memo5 != null) {
					memo5.add(s, count);
					return null;
				} else {
					memo5 = s;
					return s;
				}
			}
		case "pointer-member-access": {
				bool reject = false;
				s = new itemSet_177(this, end, rule, rightmost, reject, count);
				if (memo6 != null) {
					memo6.add(s, count);
					return null;
				} else {
					memo6 = s;
					return s;
				}
			}
		case "base-access": {
				bool reject = false;
				s = new itemSet_144(this, end, rule, rightmost, reject, count);
				if (memo7 != null) {
					memo7.add(s, count);
					return null;
				} else {
					memo7 = s;
					return s;
				}
			}
		case "this-access": {
				bool reject = false;
				s = new itemSet_187(this, end, rule, rightmost, reject, count);
				if (memo8 != null) {
					memo8.add(s, count);
					return null;
				} else {
					memo8 = s;
					return s;
				}
			}
		case "unary-expression": {
				bool reject = false;
				s = new itemSet_295(this, end, rule, rightmost, reject, count);
				if (memo9 != null) {
					memo9.add(s, count);
					return null;
				} else {
					memo9 = s;
					return s;
				}
			}
		case "cast-expression": {
				bool reject = false;
				s = new itemSet_189(this, end, rule, rightmost, reject, count);
				if (memo10 != null) {
					memo10.add(s, count);
					return null;
				} else {
					memo10 = s;
					return s;
				}
			}
		case "primary-expression": {
				bool reject = false;
				s = new itemSet_147(this, end, rule, rightmost, reject, count);
				if (memo11 != null) {
					memo11.add(s, count);
					return null;
				} else {
					memo11 = s;
					return s;
				}
			}
		case "object-delegate-creation-expression": {
				bool reject = false;
				s = new itemSet_191(this, end, rule, rightmost, reject, count);
				if (memo12 != null) {
					memo12.add(s, count);
					return null;
				} else {
					memo12 = s;
					return s;
				}
			}
		case "pre-decrement-expression": {
				bool reject = false;
				s = new itemSet_192(this, end, rule, rightmost, reject, count);
				if (memo13 != null) {
					memo13.add(s, count);
					return null;
				} else {
					memo13 = s;
					return s;
				}
			}
		case "addressof-expression": {
				bool reject = false;
				s = new itemSet_193(this, end, rule, rightmost, reject, count);
				if (memo14 != null) {
					memo14.add(s, count);
					return null;
				} else {
					memo14 = s;
					return s;
				}
			}
		case "boolean-literal": {
				bool reject = false;
				s = new itemSet_195(this, end, rule, rightmost, reject, count);
				if (memo15 != null) {
					memo15.add(s, count);
					return null;
				} else {
					memo15 = s;
					return s;
				}
			}
		case "primary-expression-no-array-creation": {
				bool reject = false;
				s = new itemSet_198(this, end, rule, rightmost, reject, count);
				if (memo16 != null) {
					memo16.add(s, count);
					return null;
				} else {
					memo16 = s;
					return s;
				}
			}
		case "post-decrement-expression": {
				bool reject = false;
				s = new itemSet_202(this, end, rule, rightmost, reject, count);
				if (memo17 != null) {
					memo17.add(s, count);
					return null;
				} else {
					memo17 = s;
					return s;
				}
			}
		case "invocation-expression": {
				bool reject = false;
				s = new itemSet_203(this, end, rule, rightmost, reject, count);
				if (memo18 != null) {
					memo18.add(s, count);
					return null;
				} else {
					memo18 = s;
					return s;
				}
			}
		case "array-creation-expression": {
				bool reject = false;
				s = new itemSet_204(this, end, rule, rightmost, reject, count);
				if (memo19 != null) {
					memo19.add(s, count);
					return null;
				} else {
					memo19 = s;
					return s;
				}
			}
		case "literal": {
				bool reject = false;
				s = new itemSet_159(this, end, rule, rightmost, reject, count);
				if (memo20 != null) {
					memo20.add(s, count);
					return null;
				} else {
					memo20 = s;
					return s;
				}
			}
		case "predefined-type": {
				bool reject = false;
				s = new itemSet_205(this, end, rule, rightmost, reject, count);
				if (memo21 != null) {
					memo21.add(s, count);
					return null;
				} else {
					memo21 = s;
					return s;
				}
			}
		case "member-access": {
				bool reject = false;
				s = new itemSet_160(this, end, rule, rightmost, reject, count);
				if (memo22 != null) {
					memo22.add(s, count);
					return null;
				} else {
					memo22 = s;
					return s;
				}
			}
		case "post-increment-expression": {
				bool reject = false;
				s = new itemSet_207(this, end, rule, rightmost, reject, count);
				if (memo23 != null) {
					memo23.add(s, count);
					return null;
				} else {
					memo23 = s;
					return s;
				}
			}
		case "element-access": {
				bool reject = false;
				s = new itemSet_208(this, end, rule, rightmost, reject, count);
				if (memo24 != null) {
					memo24.add(s, count);
					return null;
				} else {
					memo24 = s;
					return s;
				}
			}
		case "typeof-expression": {
				bool reject = false;
				s = new itemSet_165(this, end, rule, rightmost, reject, count);
				if (memo25 != null) {
					memo25.add(s, count);
					return null;
				} else {
					memo25 = s;
					return s;
				}
			}
		case "checked-expression": {
				bool reject = false;
				s = new itemSet_166(this, end, rule, rightmost, reject, count);
				if (memo26 != null) {
					memo26.add(s, count);
					return null;
				} else {
					memo26 = s;
					return s;
				}
			}
		case "unchecked-expression": {
				bool reject = false;
				s = new itemSet_167(this, end, rule, rightmost, reject, count);
				if (memo27 != null) {
					memo27.add(s, count);
					return null;
				} else {
					memo27 = s;
					return s;
				}
			}
		case "sizeof-expression": {
				bool reject = false;
				s = new itemSet_169(this, end, rule, rightmost, reject, count);
				if (memo28 != null) {
					memo28.add(s, count);
					return null;
				} else {
					memo28 = s;
					return s;
				}
			}
		} // switch
	} // shiftNonterm
Exemplo n.º 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 "new-expression": {
				bool reject = false;
				s = new itemSet_131(this, end, rule, rightmost, reject, count);
				if (memo1 != null) {
					memo1.add(s, count);
					return null;
				} else {
					memo1 = s;
					return s;
				}
			}
		case "null-literal": {
				bool reject = false;
				s = new itemSet_132(this, end, rule, rightmost, reject, count);
				if (memo2 != null) {
					memo2.add(s, count);
					return null;
				} else {
					memo2 = s;
					return s;
				}
			}
		case "pre-increment-expression": {
				bool reject = false;
				s = new itemSet_136(this, end, rule, rightmost, reject, count);
				if (memo3 != null) {
					memo3.add(s, count);
					return null;
				} else {
					memo3 = s;
					return s;
				}
			}
		case "parenthesized-expression": {
				bool reject = false;
				s = new itemSet_138(this, end, rule, rightmost, reject, count);
				if (memo4 != null) {
					memo4.add(s, count);
					return null;
				} else {
					memo4 = s;
					return s;
				}
			}
		case "relational-expression": {
				bool reject = false;
				s = new itemSet_139(this, end, rule, rightmost, reject, count);
				if (memo5 != null) {
					memo5.add(s, count);
					return null;
				} else {
					memo5 = s;
					return s;
				}
			}
		case "shift-expression": {
				bool reject = false;
				s = new itemSet_143(this, end, rule, rightmost, reject, count);
				if (memo6 != null) {
					memo6.add(s, count);
					return null;
				} else {
					memo6 = s;
					return s;
				}
			}
		case "base-access": {
				bool reject = false;
				s = new itemSet_144(this, end, rule, rightmost, reject, count);
				if (memo7 != null) {
					memo7.add(s, count);
					return null;
				} else {
					memo7 = s;
					return s;
				}
			}
		case "named-argument": {
				bool reject = false;
				s = new itemSet_145(this, end, rule, rightmost, reject, count);
				if (memo8 != null) {
					memo8.add(s, count);
					return null;
				} else {
					memo8 = s;
					return s;
				}
			}
		case "primary-expression": {
				bool reject = false;
				s = new itemSet_147(this, end, rule, rightmost, reject, count);
				if (memo9 != null) {
					memo9.add(s, count);
					return null;
				} else {
					memo9 = s;
					return s;
				}
			}
		case "named-argument-list": {
				bool reject = false;
				s = new itemSet_157(this, end, rule, rightmost, reject, count);
				if (memo10 != null) {
					memo10.add(s, count);
					return null;
				} else {
					memo10 = s;
					return s;
				}
			}
		case "exclusive-or-expression": {
				bool reject = false;
				s = new itemSet_158(this, end, rule, rightmost, reject, count);
				if (memo11 != null) {
					memo11.add(s, count);
					return null;
				} else {
					memo11 = s;
					return s;
				}
			}
		case "literal": {
				bool reject = false;
				s = new itemSet_159(this, end, rule, rightmost, reject, count);
				if (memo12 != null) {
					memo12.add(s, count);
					return null;
				} else {
					memo12 = s;
					return s;
				}
			}
		case "member-access": {
				bool reject = false;
				s = new itemSet_160(this, end, rule, rightmost, reject, count);
				if (memo13 != null) {
					memo13.add(s, count);
					return null;
				} else {
					memo13 = s;
					return s;
				}
			}
		case "typeof-expression": {
				bool reject = false;
				s = new itemSet_165(this, end, rule, rightmost, reject, count);
				if (memo14 != null) {
					memo14.add(s, count);
					return null;
				} else {
					memo14 = s;
					return s;
				}
			}
		case "checked-expression": {
				bool reject = false;
				s = new itemSet_166(this, end, rule, rightmost, reject, count);
				if (memo15 != null) {
					memo15.add(s, count);
					return null;
				} else {
					memo15 = s;
					return s;
				}
			}
		case "unchecked-expression": {
				bool reject = false;
				s = new itemSet_167(this, end, rule, rightmost, reject, count);
				if (memo16 != null) {
					memo16.add(s, count);
					return null;
				} else {
					memo16 = s;
					return s;
				}
			}
		case "additive-expression": {
				bool reject = false;
				s = new itemSet_168(this, end, rule, rightmost, reject, count);
				if (memo17 != null) {
					memo17.add(s, count);
					return null;
				} else {
					memo17 = s;
					return s;
				}
			}
		case "sizeof-expression": {
				bool reject = false;
				s = new itemSet_169(this, end, rule, rightmost, reject, count);
				if (memo18 != null) {
					memo18.add(s, count);
					return null;
				} else {
					memo18 = s;
					return s;
				}
			}
		case "positional-argument": {
				bool reject = false;
				s = new itemSet_171(this, end, rule, rightmost, reject, count);
				if (memo19 != null) {
					memo19.add(s, count);
					return null;
				} else {
					memo19 = s;
					return s;
				}
			}
		case "conditional-expression": {
				bool reject = false;
				s = new itemSet_173(this, end, rule, rightmost, reject, count);
				if (memo20 != null) {
					memo20.add(s, count);
					return null;
				} else {
					memo20 = s;
					return s;
				}
			}
		case "simple-name": {
				bool reject = false;
				s = new itemSet_174(this, end, rule, rightmost, reject, count);
				if (memo21 != null) {
					memo21.add(s, count);
					return null;
				} else {
					memo21 = s;
					return s;
				}
			}
		case "pointer-member-access": {
				bool reject = false;
				s = new itemSet_177(this, end, rule, rightmost, reject, count);
				if (memo22 != null) {
					memo22.add(s, count);
					return null;
				} else {
					memo22 = s;
					return s;
				}
			}
		case "conditional-or-expression": {
				bool reject = false;
				s = new itemSet_178(this, end, rule, rightmost, reject, count);
				if (memo23 != null) {
					memo23.add(s, count);
					return null;
				} else {
					memo23 = s;
					return s;
				}
			}
		case "and-expression": {
				bool reject = false;
				s = new itemSet_179(this, end, rule, rightmost, reject, count);
				if (memo24 != null) {
					memo24.add(s, count);
					return null;
				} else {
					memo24 = s;
					return s;
				}
			}
		case "conditional-and-expression": {
				bool reject = false;
				s = new itemSet_181(this, end, rule, rightmost, reject, count);
				if (memo25 != null) {
					memo25.add(s, count);
					return null;
				} else {
					memo25 = s;
					return s;
				}
			}
		case "positional-argument-list": {
				bool reject = false;
				s = new itemSet_182(this, end, rule, rightmost, reject, count);
				if (memo26 != null) {
					memo26.add(s, count);
					return null;
				} else {
					memo26 = s;
					return s;
				}
			}
		case "equality-expression": {
				bool reject = false;
				s = new itemSet_185(this, end, rule, rightmost, reject, count);
				if (memo27 != null) {
					memo27.add(s, count);
					return null;
				} else {
					memo27 = s;
					return s;
				}
			}
		case "this-access": {
				bool reject = false;
				s = new itemSet_187(this, end, rule, rightmost, reject, count);
				if (memo28 != null) {
					memo28.add(s, count);
					return null;
				} else {
					memo28 = s;
					return s;
				}
			}
		case "unary-expression": {
				bool reject = false;
				s = new itemSet_188(this, end, rule, rightmost, reject, count);
				if (memo29 != null) {
					memo29.add(s, count);
					return null;
				} else {
					memo29 = s;
					return s;
				}
			}
		case "cast-expression": {
				bool reject = false;
				s = new itemSet_189(this, end, rule, rightmost, reject, count);
				if (memo30 != null) {
					memo30.add(s, count);
					return null;
				} else {
					memo30 = s;
					return s;
				}
			}
		case "object-delegate-creation-expression": {
				bool reject = false;
				s = new itemSet_191(this, end, rule, rightmost, reject, count);
				if (memo31 != null) {
					memo31.add(s, count);
					return null;
				} else {
					memo31 = s;
					return s;
				}
			}
		case "pre-decrement-expression": {
				bool reject = false;
				s = new itemSet_192(this, end, rule, rightmost, reject, count);
				if (memo32 != null) {
					memo32.add(s, count);
					return null;
				} else {
					memo32 = s;
					return s;
				}
			}
		case "addressof-expression": {
				bool reject = false;
				s = new itemSet_193(this, end, rule, rightmost, reject, count);
				if (memo33 != null) {
					memo33.add(s, count);
					return null;
				} else {
					memo33 = s;
					return s;
				}
			}
		case "boolean-literal": {
				bool reject = false;
				s = new itemSet_195(this, end, rule, rightmost, reject, count);
				if (memo34 != null) {
					memo34.add(s, count);
					return null;
				} else {
					memo34 = s;
					return s;
				}
			}
		case "positional-argument-listopt": {
				bool reject = false;
				s = new itemSet_196(this, end, rule, rightmost, reject, count);
				if (memo35 != null) {
					memo35.add(s, count);
					return null;
				} else {
					memo35 = s;
					return s;
				}
			}
		case "multiplicative-expression": {
				bool reject = false;
				s = new itemSet_197(this, end, rule, rightmost, reject, count);
				if (memo36 != null) {
					memo36.add(s, count);
					return null;
				} else {
					memo36 = s;
					return s;
				}
			}
		case "primary-expression-no-array-creation": {
				bool reject = false;
				s = new itemSet_198(this, end, rule, rightmost, reject, count);
				if (memo37 != null) {
					memo37.add(s, count);
					return null;
				} else {
					memo37 = s;
					return s;
				}
			}
		case "attribute-argument-expression": {
				bool reject = false;
				s = new itemSet_199(this, end, rule, rightmost, reject, count);
				if (memo38 != null) {
					memo38.add(s, count);
					return null;
				} else {
					memo38 = s;
					return s;
				}
			}
		case "post-decrement-expression": {
				bool reject = false;
				s = new itemSet_202(this, end, rule, rightmost, reject, count);
				if (memo39 != null) {
					memo39.add(s, count);
					return null;
				} else {
					memo39 = s;
					return s;
				}
			}
		case "invocation-expression": {
				bool reject = false;
				s = new itemSet_203(this, end, rule, rightmost, reject, count);
				if (memo40 != null) {
					memo40.add(s, count);
					return null;
				} else {
					memo40 = s;
					return s;
				}
			}
		case "array-creation-expression": {
				bool reject = false;
				s = new itemSet_204(this, end, rule, rightmost, reject, count);
				if (memo41 != null) {
					memo41.add(s, count);
					return null;
				} else {
					memo41 = s;
					return s;
				}
			}
		case "predefined-type": {
				bool reject = false;
				s = new itemSet_205(this, end, rule, rightmost, reject, count);
				if (memo42 != null) {
					memo42.add(s, count);
					return null;
				} else {
					memo42 = s;
					return s;
				}
			}
		case "post-increment-expression": {
				bool reject = false;
				s = new itemSet_207(this, end, rule, rightmost, reject, count);
				if (memo43 != null) {
					memo43.add(s, count);
					return null;
				} else {
					memo43 = s;
					return s;
				}
			}
		case "element-access": {
				bool reject = false;
				s = new itemSet_208(this, end, rule, rightmost, reject, count);
				if (memo44 != null) {
					memo44.add(s, count);
					return null;
				} else {
					memo44 = s;
					return s;
				}
			}
		case "inclusive-or-expression": {
				bool reject = false;
				s = new itemSet_209(this, end, rule, rightmost, reject, count);
				if (memo45 != null) {
					memo45.add(s, count);
					return null;
				} else {
					memo45 = s;
					return s;
				}
			}
		} // switch
	} // shiftNonterm