当前位置: 首页>>代码示例>>C#>>正文


C# DFA.Error方法代码示例

本文整理汇总了C#中Antlr.Runtime.DFA.Error方法的典型用法代码示例。如果您正苦于以下问题:C# DFA.Error方法的具体用法?C# DFA.Error怎么用?C# DFA.Error使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Antlr.Runtime.DFA的用法示例。


在下文中一共展示了DFA.Error方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DFA36_SpecialStateTransition


//.........这里部分代码省略.........
                   	break;
               	case 9 : 
                   	int LA36_10 = input.LA(1);

                   	 
                   	int index36_10 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred105_AS3_ex()) ) { s = 54; }

                   	else if ( (synpred106_AS3_ex()) ) { s = 55; }

                   	else if ( (synpred107_AS3_ex()) ) { s = 11; }

                   	 
                   	input.Seek(index36_10);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 10 : 
                   	int LA36_12 = input.LA(1);

                   	 
                   	int index36_12 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred107_AS3_ex()) ) { s = 11; }

                   	else if ( (true) ) { s = 56; }

                   	 
                   	input.Seek(index36_12);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 11 : 
                   	int LA36_13 = input.LA(1);

                   	 
                   	int index36_13 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred107_AS3_ex()) ) { s = 11; }

                   	else if ( (true) ) { s = 56; }

                   	 
                   	input.Seek(index36_13);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 12 : 
                   	int LA36_14 = input.LA(1);

                   	 
                   	int index36_14 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred107_AS3_ex()) ) { s = 11; }

                   	else if ( (true) ) { s = 56; }

                   	 
                   	input.Seek(index36_14);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 13 : 
                   	int LA36_15 = input.LA(1);

                   	 
                   	int index36_15 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred107_AS3_ex()) ) { s = 11; }

                   	else if ( (true) ) { s = 56; }

                   	 
                   	input.Seek(index36_15);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 14 : 
                   	int LA36_16 = input.LA(1);

                   	 
                   	int index36_16 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred107_AS3_ex()) ) { s = 11; }

                   	else if ( (true) ) { s = 56; }

                   	 
                   	input.Seek(index36_16);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 36, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs

示例2: SpecialStateTransition17


//.........这里部分代码省略.........
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 103:
			{
				input.Rewind();
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 104:
			{
				input.Rewind();
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 105:
			{
				input.Rewind();
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 106:
			{
				input.Rewind();
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 107:
			{
				input.Rewind();
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 108:
			{
				input.Rewind();
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 109:
			{
				input.Rewind();
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 110:
			{
				input.Rewind();
				if ((EvaluatePredicate(synpred10_AS3_fragment))) {s = 234;}

				else if ((true)) {s = 15;}

				input.Seek(index17_1);
				break;
			}

		default:
			break;
		}

		if (s >= 0)
			return s;

		if (state.backtracking > 0) {state.failed=true; return -1;}
		NoViableAltException nvae = new NoViableAltException(dfa.Description, 17, _s, input);
		dfa.Error(nvae);
		throw nvae;
	}
开发者ID:jbakst,项目名称:xas,代码行数:101,代码来源:AS3Parser.cs

示例3: DFA8_SpecialStateTransition

    protected internal int DFA8_SpecialStateTransition(DFA dfa, int s, IIntStream _input) //throws NoViableAltException
    {
            IIntStream input = _input;
    	int _s = s;
        switch ( s )
        {
               	case 0 : 
                   	int LA8_6 = input.LA(1);

                   	s = -1;
                   	if ( ((LA8_6 >= '\u0000' && LA8_6 <= '\uFFFF')) ) { s = 40; }

                   	else s = 39;

                   	if ( s >= 0 ) return s;
                   	break;
               	case 1 : 
                   	int LA8_7 = input.LA(1);

                   	s = -1;
                   	if ( ((LA8_7 >= '\u0000' && LA8_7 <= '\uFFFF')) ) { s = 42; }

                   	else s = 41;

                   	if ( s >= 0 ) return s;
                   	break;
               	case 2 : 
                   	int LA8_0 = input.LA(1);

                   	s = -1;
                   	if ( (LA8_0 == 'G') ) { s = 1; }

                   	else if ( (LA8_0 == 'S') ) { s = 2; }

                   	else if ( (LA8_0 == '[') ) { s = 3; }

                   	else if ( ((LA8_0 >= '\t' && LA8_0 <= '\n') || LA8_0 == '\r' || LA8_0 == ' ') ) { s = 4; }

                   	else if ( (LA8_0 == '%') ) { s = 5; }

                   	else if ( (LA8_0 == '\"') ) { s = 6; }

                   	else if ( (LA8_0 == '\'') ) { s = 7; }

                   	else if ( (LA8_0 == 'C') ) { s = 8; }

                   	else if ( (LA8_0 == 'D') ) { s = 9; }

                   	else if ( (LA8_0 == 'I') ) { s = 10; }

                   	else if ( (LA8_0 == 'P') ) { s = 11; }

                   	else if ( (LA8_0 == 'W') ) { s = 12; }

                   	else if ( (LA8_0 == 'B') ) { s = 13; }

                   	else if ( (LA8_0 == 'F') ) { s = 14; }

                   	else if ( (LA8_0 == 'U') ) { s = 15; }

                   	else if ( (LA8_0 == 'E') ) { s = 16; }

                   	else if ( (LA8_0 == 'M') ) { s = 17; }

                   	else if ( (LA8_0 == 'R') ) { s = 18; }

                   	else if ( (LA8_0 == 'T') ) { s = 19; }

                   	else if ( (LA8_0 == 'N') ) { s = 20; }

                   	else if ( (LA8_0 == 'L') ) { s = 21; }

                   	else if ( (LA8_0 == 'A' || LA8_0 == 'H' || (LA8_0 >= 'J' && LA8_0 <= 'K') || LA8_0 == 'O' || LA8_0 == 'Q' || LA8_0 == 'V' || (LA8_0 >= 'X' && LA8_0 <= 'Z') || LA8_0 == '_' || (LA8_0 >= 'a' && LA8_0 <= 'z')) ) { s = 22; }

                   	else if ( ((LA8_0 >= '0' && LA8_0 <= '9')) ) { s = 23; }

                   	else if ( (LA8_0 == '+') ) { s = 24; }

                   	else if ( (LA8_0 == '-') ) { s = 25; }

                   	else if ( (LA8_0 == '*') ) { s = 26; }

                   	else if ( (LA8_0 == '/') ) { s = 27; }

                   	else if ( (LA8_0 == '=') ) { s = 28; }

                   	else if ( ((LA8_0 >= '\u0000' && LA8_0 <= '\b') || (LA8_0 >= '\u000B' && LA8_0 <= '\f') || (LA8_0 >= '\u000E' && LA8_0 <= '\u001F') || LA8_0 == '!' || (LA8_0 >= '#' && LA8_0 <= '$') || LA8_0 == '&' || (LA8_0 >= '(' && LA8_0 <= ')') || LA8_0 == ',' || LA8_0 == '.' || (LA8_0 >= ':' && LA8_0 <= '<') || (LA8_0 >= '>' && LA8_0 <= '@') || (LA8_0 >= '\\' && LA8_0 <= '^') || LA8_0 == '`' || (LA8_0 >= '{' && LA8_0 <= '\uFFFF')) ) { s = 29; }

                   	if ( s >= 0 ) return s;
                   	break;
        }
        NoViableAltException nvae8 =
            new NoViableAltException(dfa.Description, 8, _s, input);
        dfa.Error(nvae8);
        throw nvae8;
    }
开发者ID:claco,项目名称:tt.net,代码行数:96,代码来源:TemplateLexer.cs

示例4: DFA8_SpecialStateTransition


//.........这里部分代码省略.........
                   	break;
               	case 6 : 
                   	int LA8_15 = input.LA(1);

                   	 
                   	int index8_15 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred11_SpecFlowLangLexer_en()) ) { s = 16; }

                   	else if ( (true) ) { s = 12; }

                   	 
                   	input.Seek(index8_15);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 7 : 
                   	int LA8_18 = input.LA(1);

                   	 
                   	int index8_18 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred14_SpecFlowLangLexer_en()) ) { s = 17; }

                   	else if ( (synpred15_SpecFlowLangLexer_en()) ) { s = 19; }

                   	 
                   	input.Seek(index8_18);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 8 : 
                   	int LA8_20 = input.LA(1);

                   	 
                   	int index8_20 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred6_SpecFlowLangLexer_en()) ) { s = 21; }

                   	else if ( (true) ) { s = 12; }

                   	 
                   	input.Seek(index8_20);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 9 : 
                   	int LA8_23 = input.LA(1);

                   	 
                   	int index8_23 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred1_SpecFlowLangLexer_en()) ) { s = 24; }

                   	else if ( (true) ) { s = 12; }

                   	 
                   	input.Seek(index8_23);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 10 : 
                   	int LA8_25 = input.LA(1);

                   	 
                   	int index8_25 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred7_SpecFlowLangLexer_en()) ) { s = 26; }

                   	else if ( (true) ) { s = 12; }

                   	 
                   	input.Seek(index8_25);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 11 : 
                   	int LA8_27 = input.LA(1);

                   	 
                   	int index8_27 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred2_SpecFlowLangLexer_en()) ) { s = 28; }

                   	else if ( (synpred10_SpecFlowLangLexer_en()) ) { s = 29; }

                   	else if ( (true) ) { s = 12; }

                   	 
                   	input.Seek(index8_27);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae8 =
            new NoViableAltException(dfa.Description, 8, _s, input);
        dfa.Error(nvae8);
        throw nvae8;
    }
开发者ID:x97mdr,项目名称:SpecFlow,代码行数:101,代码来源:SpecFlowLangLexer_en.cs

示例5: SpecialStateTransition3


//.........这里部分代码省略.........
				input.Seek(index3_1);
				break;
			}
		case 16:
			{
				input.Rewind();
				if ((LA3_1==CLASS) && (EvaluatePredicate(synpred1_AS3_fragment))) {s = 11;}

				else if ((LA3_1==IDENT)) {s = 13;}

				else if ((LA3_1==INTERNAL||LA3_1==PRIVATE||(LA3_1>=PROTECTED && LA3_1<=PUBLIC))) {s = 14;}

				else if ((LA3_1==STATIC)) {s = 15;}

				else if ((LA3_1==246)) {s = 16;}

				else if ((LA3_1==244)) {s = 17;}

				else if ((LA3_1==245)) {s = 18;}

				else if ((LA3_1==252)) {s = 19;}

				else if ((LA3_1==DYNAMIC)) {s = 20;}

				else if ((LA3_1==250)) {s = 21;}

				else if ((LA3_1==INTERFACE) && (EvaluatePredicate(synpred2_AS3_fragment))) {s = 12;}

				input.Seek(index3_1);
				break;
			}
		case 17:
			{
				input.Rewind();
				if ((LA3_1==CLASS) && (EvaluatePredicate(synpred1_AS3_fragment))) {s = 11;}

				else if ((LA3_1==IDENT)) {s = 13;}

				else if ((LA3_1==INTERNAL||LA3_1==PRIVATE||(LA3_1>=PROTECTED && LA3_1<=PUBLIC))) {s = 14;}

				else if ((LA3_1==STATIC)) {s = 15;}

				else if ((LA3_1==246)) {s = 16;}

				else if ((LA3_1==244)) {s = 17;}

				else if ((LA3_1==245)) {s = 18;}

				else if ((LA3_1==252)) {s = 19;}

				else if ((LA3_1==DYNAMIC)) {s = 20;}

				else if ((LA3_1==250)) {s = 21;}

				else if ((LA3_1==INTERFACE) && (EvaluatePredicate(synpred2_AS3_fragment))) {s = 12;}

				input.Seek(index3_1);
				break;
			}
		case 18:
			{
				input.Rewind();
				if ((LA3_1==CLASS) && (EvaluatePredicate(synpred1_AS3_fragment))) {s = 11;}

				else if ((LA3_1==IDENT)) {s = 13;}

				else if ((LA3_1==INTERNAL||LA3_1==PRIVATE||(LA3_1>=PROTECTED && LA3_1<=PUBLIC))) {s = 14;}

				else if ((LA3_1==STATIC)) {s = 15;}

				else if ((LA3_1==246)) {s = 16;}

				else if ((LA3_1==244)) {s = 17;}

				else if ((LA3_1==245)) {s = 18;}

				else if ((LA3_1==252)) {s = 19;}

				else if ((LA3_1==DYNAMIC)) {s = 20;}

				else if ((LA3_1==250)) {s = 21;}

				else if ((LA3_1==INTERFACE) && (EvaluatePredicate(synpred2_AS3_fragment))) {s = 12;}

				input.Seek(index3_1);
				break;
			}

		default:
			break;
		}

		if (s >= 0)
			return s;

		if (state.backtracking > 0) {state.failed=true; return -1;}
		NoViableAltException nvae = new NoViableAltException(dfa.Description, 3, _s, input);
		dfa.Error(nvae);
		throw nvae;
	}
开发者ID:jbakst,项目名称:xas,代码行数:101,代码来源:AS3Parser.cs

示例6: DFA14_SpecialStateTransition

    protected internal int DFA14_SpecialStateTransition(DFA dfa, int s, IIntStream _input) //throws NoViableAltException
    {
            IIntStream input = _input;
    	int _s = s;
        switch ( s )
        {
               	case 0 : 
                   	int LA14_34 = input.LA(1);

                   	s = -1;
                   	if ( ((LA14_34 >= '\u0000' && LA14_34 <= '!') || (LA14_34 >= '#' && LA14_34 <= '\uFFFF')) ) { s = 46; }

                   	else if ( (LA14_34 == '\"') ) { s = 47; }

                   	if ( s >= 0 ) return s;
                   	break;
               	case 1 : 
                   	int LA14_35 = input.LA(1);

                   	s = -1;
                   	if ( ((LA14_35 >= '\u0000' && LA14_35 <= '&') || (LA14_35 >= '(' && LA14_35 <= '\uFFFF')) ) { s = 48; }

                   	else if ( (LA14_35 == '\'') ) { s = 49; }

                   	if ( s >= 0 ) return s;
                   	break;
               	case 2 : 
                   	int LA14_46 = input.LA(1);

                   	s = -1;
                   	if ( (LA14_46 == '\"') ) { s = 47; }

                   	else if ( ((LA14_46 >= '\u0000' && LA14_46 <= '!') || (LA14_46 >= '#' && LA14_46 <= '\uFFFF')) ) { s = 46; }

                   	if ( s >= 0 ) return s;
                   	break;
               	case 3 : 
                   	int LA14_48 = input.LA(1);

                   	s = -1;
                   	if ( (LA14_48 == '\'') ) { s = 49; }

                   	else if ( ((LA14_48 >= '\u0000' && LA14_48 <= '&') || (LA14_48 >= '(' && LA14_48 <= '\uFFFF')) ) { s = 48; }

                   	if ( s >= 0 ) return s;
                   	break;
        }
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 14, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:heon21st,项目名称:flashdevelop,代码行数:52,代码来源:MXMLLexer.cs

示例7: DFA1_SpecialStateTransition


//.........这里部分代码省略.........
                   	input.Seek(index1_22);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 8 : 
                   	int LA1_23 = input.LA(1);

                   	 
                   	int index1_23 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred2_RelinqScript()) ) { s = 30; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index1_23);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 9 : 
                   	int LA1_24 = input.LA(1);

                   	 
                   	int index1_24 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred2_RelinqScript()) ) { s = 30; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index1_24);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 10 : 
                   	int LA1_25 = input.LA(1);

                   	 
                   	int index1_25 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred2_RelinqScript()) ) { s = 30; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index1_25);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 11 : 
                   	int LA1_26 = input.LA(1);

                   	 
                   	int index1_26 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred2_RelinqScript()) ) { s = 30; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index1_26);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 12 : 
                   	int LA1_27 = input.LA(1);

                   	 
                   	int index1_27 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred2_RelinqScript()) ) { s = 30; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index1_27);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 13 : 
                   	int LA1_28 = input.LA(1);

                   	 
                   	int index1_28 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred3_RelinqScript()) ) { s = 31; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index1_28);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 1, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:xeno-by,项目名称:relinq,代码行数:101,代码来源:RelinqScriptParser.cs

示例8: DFA146_SpecialStateTransition

    protected internal int DFA146_SpecialStateTransition(DFA dfa, int s, IIntStream _input) //throws NoViableAltException
    {
            ITokenStream input = (ITokenStream)_input;
    	int _s = s;
        switch ( s )
        {
               	case 0 : 
                   	int LA146_41 = input.LA(1);

                   	 
                   	int index146_41 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred306_AS3_ex()) ) { s = 87; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index146_41);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 1 : 
                   	int LA146_64 = input.LA(1);

                   	 
                   	int index146_64 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred305_AS3_ex()) ) { s = 88; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index146_64);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 2 : 
                   	int LA146_85 = input.LA(1);

                   	 
                   	int index146_85 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred308_AS3_ex()) ) { s = 89; }

                   	else if ( (synpred311_AS3_ex()) ) { s = 90; }

                   	else if ( (synpred312_AS3_ex()) ) { s = 91; }

                   	 
                   	input.Seek(index146_85);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 146, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:60,代码来源:AS3_exParser.cs

示例9: DFA155_SpecialStateTransition


//.........这里部分代码省略.........
                   	int LA155_3 = input.LA(1);

                   	 
                   	int index155_3 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred378_AS3_ex()) ) { s = 6; }

                   	else if ( (synpred382_AS3_ex()) ) { s = 15; }

                   	 
                   	input.Seek(index155_3);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 3 : 
                   	int LA155_4 = input.LA(1);

                   	 
                   	int index155_4 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred378_AS3_ex()) ) { s = 6; }

                   	else if ( (synpred382_AS3_ex()) ) { s = 15; }

                   	 
                   	input.Seek(index155_4);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 4 : 
                   	int LA155_5 = input.LA(1);

                   	 
                   	int index155_5 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred378_AS3_ex()) ) { s = 6; }

                   	else if ( (synpred382_AS3_ex()) ) { s = 15; }

                   	 
                   	input.Seek(index155_5);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 5 : 
                   	int LA155_13 = input.LA(1);

                   	 
                   	int index155_13 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred381_AS3_ex()) ) { s = 26; }

                   	else if ( (synpred382_AS3_ex()) ) { s = 15; }

                   	else if ( (synpred384_AS3_ex()) ) { s = 27; }

                   	 
                   	input.Seek(index155_13);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 6 : 
                   	int LA155_14 = input.LA(1);

                   	 
                   	int index155_14 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred381_AS3_ex()) ) { s = 26; }

                   	else if ( (synpred382_AS3_ex()) ) { s = 15; }

                   	else if ( (synpred384_AS3_ex()) ) { s = 27; }

                   	 
                   	input.Seek(index155_14);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 7 : 
                   	int LA155_21 = input.LA(1);

                   	 
                   	int index155_21 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred382_AS3_ex()) ) { s = 15; }

                   	else if ( (true) ) { s = 28; }

                   	 
                   	input.Seek(index155_21);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 155, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs

示例10: DFA115_SpecialStateTransition


//.........这里部分代码省略.........
                   	input.Seek(index115_20);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 20 : 
                   	int LA115_21 = input.LA(1);

                   	 
                   	int index115_21 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred229_AS3_ex()) ) { s = 26; }

                   	else if ( (true) ) { s = 29; }

                   	 
                   	input.Seek(index115_21);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 21 : 
                   	int LA115_22 = input.LA(1);

                   	 
                   	int index115_22 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred229_AS3_ex()) ) { s = 26; }

                   	else if ( (true) ) { s = 29; }

                   	 
                   	input.Seek(index115_22);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 22 : 
                   	int LA115_23 = input.LA(1);

                   	 
                   	int index115_23 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred229_AS3_ex()) ) { s = 26; }

                   	else if ( (true) ) { s = 29; }

                   	 
                   	input.Seek(index115_23);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 23 : 
                   	int LA115_24 = input.LA(1);

                   	 
                   	int index115_24 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred229_AS3_ex()) ) { s = 26; }

                   	else if ( (true) ) { s = 29; }

                   	 
                   	input.Seek(index115_24);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 24 : 
                   	int LA115_25 = input.LA(1);

                   	 
                   	int index115_25 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred229_AS3_ex()) ) { s = 26; }

                   	else if ( (true) ) { s = 29; }

                   	 
                   	input.Seek(index115_25);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 25 : 
                   	int LA115_27 = input.LA(1);

                   	 
                   	int index115_27 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred229_AS3_ex()) ) { s = 26; }

                   	else if ( (true) ) { s = 29; }

                   	 
                   	input.Seek(index115_27);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 115, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs

示例11: DFA139_SpecialStateTransition

    protected internal int DFA139_SpecialStateTransition(DFA dfa, int s, IIntStream _input) //throws NoViableAltException
    {
            ITokenStream input = (ITokenStream)_input;
    	int _s = s;
        switch ( s )
        {
               	case 0 : 
                   	int LA139_53 = input.LA(1);

                   	 
                   	int index139_53 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred286_AS3_ex()) ) { s = 73; }

                   	else if ( (true) ) { s = 1; }

                   	 
                   	input.Seek(index139_53);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 139, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:28,代码来源:AS3_exParser.cs

示例12: DFA76_SpecialStateTransition


//.........这里部分代码省略.........
                   	int LA76_40 = input.LA(1);

                   	 
                   	int index76_40 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred172_AS3_ex()) ) { s = 10; }

                   	else if ( (synpred181_AS3_ex()) ) { s = 60; }

                   	else if ( (synpred182_AS3_ex()) ) { s = 61; }

                   	else if ( (synpred183_AS3_ex()) ) { s = 62; }

                   	 
                   	input.Seek(index76_40);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 17 : 
                   	int LA76_41 = input.LA(1);

                   	 
                   	int index76_41 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred172_AS3_ex()) ) { s = 10; }

                   	else if ( (synpred184_AS3_ex()) ) { s = 63; }

                   	 
                   	input.Seek(index76_41);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 18 : 
                   	int LA76_42 = input.LA(1);

                   	 
                   	int index76_42 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred172_AS3_ex()) ) { s = 10; }

                   	else if ( (synpred185_AS3_ex()) ) { s = 64; }

                   	 
                   	input.Seek(index76_42);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 19 : 
                   	int LA76_43 = input.LA(1);

                   	 
                   	int index76_43 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred172_AS3_ex()) ) { s = 10; }

                   	else if ( (synpred186_AS3_ex()) ) { s = 65; }

                   	 
                   	input.Seek(index76_43);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 20 : 
                   	int LA76_44 = input.LA(1);

                   	 
                   	int index76_44 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred172_AS3_ex()) ) { s = 10; }

                   	else if ( (synpred188_AS3_ex()) ) { s = 50; }

                   	 
                   	input.Seek(index76_44);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 21 : 
                   	int LA76_46 = input.LA(1);

                   	 
                   	int index76_46 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred172_AS3_ex()) ) { s = 10; }

                   	else if ( (true) ) { s = 66; }

                   	 
                   	input.Seek(index76_46);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 76, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs

示例13: DFA74_SpecialStateTransition


//.........这里部分代码省略.........
    	int _s = s;
        switch ( s )
        {
               	case 0 : 
                   	int LA74_2 = input.LA(1);

                   	 
                   	int index74_2 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred157_AS3_ex()) ) { s = 4; }

                   	else if ( (synpred158_AS3_ex()) ) { s = 51; }

                   	 
                   	input.Seek(index74_2);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 1 : 
                   	int LA74_3 = input.LA(1);

                   	 
                   	int index74_3 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred157_AS3_ex()) ) { s = 4; }

                   	else if ( (synpred158_AS3_ex()) ) { s = 51; }

                   	 
                   	input.Seek(index74_3);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 2 : 
                   	int LA74_10 = input.LA(1);

                   	 
                   	int index74_10 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred157_AS3_ex()) ) { s = 4; }

                   	else if ( (synpred158_AS3_ex()) ) { s = 51; }

                   	 
                   	input.Seek(index74_10);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 3 : 
                   	int LA74_22 = input.LA(1);

                   	 
                   	int index74_22 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred157_AS3_ex()) ) { s = 4; }

                   	else if ( (synpred158_AS3_ex()) ) { s = 51; }

                   	 
                   	input.Seek(index74_22);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 4 : 
                   	int LA74_48 = input.LA(1);

                   	 
                   	int index74_48 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred157_AS3_ex()) ) { s = 4; }

                   	else if ( (synpred158_AS3_ex()) ) { s = 51; }

                   	 
                   	input.Seek(index74_48);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 5 : 
                   	int LA74_49 = input.LA(1);

                   	 
                   	int index74_49 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred157_AS3_ex()) ) { s = 4; }

                   	else if ( (synpred158_AS3_ex()) ) { s = 51; }

                   	 
                   	input.Seek(index74_49);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 74, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs

示例14: DFA55_SpecialStateTransition


//.........这里部分代码省略.........
                   	input.Seek(index55_7);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 7 : 
                   	int LA55_8 = input.LA(1);

                   	 
                   	int index55_8 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred133_AS3_ex()) ) { s = 51; }

                   	else if ( (synpred134_AS3_ex()) ) { s = 9; }

                   	 
                   	input.Seek(index55_8);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 8 : 
                   	int LA55_10 = input.LA(1);

                   	 
                   	int index55_10 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred134_AS3_ex()) ) { s = 9; }

                   	else if ( (true) ) { s = 52; }

                   	 
                   	input.Seek(index55_10);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 9 : 
                   	int LA55_11 = input.LA(1);

                   	 
                   	int index55_11 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred134_AS3_ex()) ) { s = 9; }

                   	else if ( (true) ) { s = 52; }

                   	 
                   	input.Seek(index55_11);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 10 : 
                   	int LA55_12 = input.LA(1);

                   	 
                   	int index55_12 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred134_AS3_ex()) ) { s = 9; }

                   	else if ( (true) ) { s = 52; }

                   	 
                   	input.Seek(index55_12);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 11 : 
                   	int LA55_13 = input.LA(1);

                   	 
                   	int index55_13 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred134_AS3_ex()) ) { s = 9; }

                   	else if ( (true) ) { s = 52; }

                   	 
                   	input.Seek(index55_13);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 12 : 
                   	int LA55_14 = input.LA(1);

                   	 
                   	int index55_14 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred134_AS3_ex()) ) { s = 9; }

                   	else if ( (true) ) { s = 52; }

                   	 
                   	input.Seek(index55_14);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 55, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs

示例15: DFA57_SpecialStateTransition

    //throws NoViableAltException
    protected internal int DFA57_SpecialStateTransition(DFA dfa, int s, IIntStream _input)
    {
        ITokenStream input = (ITokenStream)_input;
        int _s = s;
        switch ( s )
        {
               	case 0 :
                   	int LA57_4 = input.LA(1);

                   	int index57_4 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred8_simpletikz()) ) { s = 7; }

                   	else if ( (true) ) { s = 2; }

                   	input.Seek(index57_4);
                   	if ( s >= 0 ) return s;
                   	break;
        }
        if (state.backtracking > 0) {state.failed = true; return -1;}
        NoViableAltException nvae =
            new NoViableAltException(dfa.Description, 57, _s, input);
        dfa.Error(nvae);
        throw nvae;
    }
开发者ID:paladin74,项目名称:tikzedt,代码行数:27,代码来源:simpletikzParser.cs


注:本文中的Antlr.Runtime.DFA.Error方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。