• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# Runtime.DFA类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



DFA类属于Antlr.Runtime命名空间,在下文中一共展示了DFA类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: DFA55_SpecialStateTransition

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

                   	 
                   	int index55_1 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred132_AS3_ex()) ) { s = 50; }

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

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

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

                   	 
                   	int index55_2 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred132_AS3_ex()) ) { s = 50; }

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

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

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

                   	 
                   	int index55_3 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred132_AS3_ex()) ) { s = 50; }

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

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

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

                   	 
                   	int index55_4 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred132_AS3_ex()) ) { s = 50; }

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

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

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

                   	 
                   	int index55_5 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred132_AS3_ex()) ) { s = 50; }

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

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

                   	 
                   	int index55_6 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred132_AS3_ex()) ) { s = 50; }

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

//.........这里部分代码省略.........
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs


示例2: SpecialStateTransition17

	private int SpecialStateTransition17(DFA dfa, int s, IIntStream _input)
	{
		ITokenStream input = (ITokenStream)_input;
		int _s = s;
		s = -1;
		int LA17_1 = input.LA(1);
		int index17_1 = input.Index;
		switch (_s)
		{
		case 0:
			{
				input.Rewind();
				if ((LA17_1==IDENT)) {s = 95;}

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

				else if ((LA17_1==STATIC)) {s = 97;}

				else if ((LA17_1==246)) {s = 98;}

				else if ((LA17_1==244)) {s = 99;}

				else if ((LA17_1==245)) {s = 100;}

				else if ((LA17_1==252)) {s = 101;}

				else if ((LA17_1==DYNAMIC)) {s = 102;}

				else if ((LA17_1==250)) {s = 103;}

				else if ((LA17_1==CONST||LA17_1==VAR) && (EvaluatePredicate(synpred10_AS3_fragment))) {s = 104;}

				else if ((LA17_1==FUNCTION) && (EvaluatePredicate(synpred11_AS3_fragment))) {s = 105;}

				else if (((LA17_1>=AS && LA17_1<=ASSIGN)||(LA17_1>=BAND && LA17_1<=BAND_ASSIGN)||(LA17_1>=BOR && LA17_1<=BOR_ASSIGN)||(LA17_1>=BSR && LA17_1<=BXOR_ASSIGN)||LA17_1==COMMA||(LA17_1>=DBL_COLON && LA17_1<=DEC)||(LA17_1>=DIV && LA17_1<=DIV_ASSIGN)||LA17_1==DOT||LA17_1==E4X_DESC||LA17_1==EQUAL||LA17_1==GE||LA17_1==GT||LA17_1==INC||(LA17_1>=IS && LA17_1<=LBRACK)||LA17_1==LE||(LA17_1>=LOR && LA17_1<=LT)||(LA17_1>=MINUS && LA17_1<=MINUS_ASSIGN)||LA17_1==MOD||LA17_1==MOD_ASSIGN||LA17_1==NOT_EQUAL||(LA17_1>=PLUS && LA17_1<=PLUS_ASSIGN)||LA17_1==QUESTION||LA17_1==SEMI||(LA17_1>=SL && LA17_1<=SL_ASSIGN)||(LA17_1>=SR && LA17_1<=STAR_ASSIGN)||(LA17_1>=STRICT_EQUAL && LA17_1<=STRICT_NOT_EQUAL)||LA17_1==241||LA17_1==249||LA17_1==251)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 1:
			{
				input.Rewind();
				if ((LA17_1==IDENT)) {s = 127;}

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

				else if ((LA17_1==STATIC)) {s = 129;}

				else if ((LA17_1==246)) {s = 130;}

				else if ((LA17_1==244)) {s = 131;}

				else if ((LA17_1==245)) {s = 132;}

				else if ((LA17_1==252)) {s = 133;}

				else if ((LA17_1==DYNAMIC)) {s = 134;}

				else if ((LA17_1==250)) {s = 135;}

				else if ((LA17_1==CONST||LA17_1==VAR) && (EvaluatePredicate(synpred10_AS3_fragment))) {s = 136;}

				else if ((LA17_1==FUNCTION) && (EvaluatePredicate(synpred11_AS3_fragment))) {s = 137;}

				else if ((LA17_1==DBL_COLON)) {s = 15;}

				input.Seek(index17_1);
				break;
			}
		case 2:
			{
				input.Rewind();
				if ((LA17_1==IDENT)) {s = 139;}

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

				else if ((LA17_1==STATIC)) {s = 141;}

				else if ((LA17_1==246)) {s = 142;}

				else if ((LA17_1==244)) {s = 143;}

				else if ((LA17_1==245)) {s = 144;}

				else if ((LA17_1==252)) {s = 145;}

				else if ((LA17_1==DYNAMIC)) {s = 146;}

				else if ((LA17_1==250)) {s = 147;}

				else if ((LA17_1==CONST||LA17_1==VAR) && (EvaluatePredicate(synpred10_AS3_fragment))) {s = 148;}

				else if ((LA17_1==FUNCTION) && (EvaluatePredicate(synpred11_AS3_fragment))) {s = 149;}

				input.Seek(index17_1);
				break;
			}
		case 3:
			{
				input.Rewind();
//.........这里部分代码省略.........
开发者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

    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_0 = input.LA(1);

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

                   	else if ( (LA8_0 == '@') ) { s = 4; }

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

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

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

                   	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 >= 'C' && LA8_0 <= 'D') || (LA8_0 >= 'H' && LA8_0 <= 'R') || (LA8_0 >= 'U' && LA8_0 <= 'V') || (LA8_0 >= 'X' && LA8_0 <= '{') || (LA8_0 >= '}' && LA8_0 <= '\uFFFF')) ) { s = 12; }

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

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

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

                   	else if ( (LA8_0 == '\t' || LA8_0 == ' ') ) { s = 18; }

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

                   	else if ( (LA8_0 == '\n' || LA8_0 == '\r') ) { s = 22; }

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

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

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

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

                   	 
                   	int index8_1 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred12_SpecFlowLangLexer_en()) ) { s = 2; }

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

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

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

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

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

                   	 
                   	int index8_7 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred3_SpecFlowLangLexer_en()) ) { s = 8; }

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

                   	else if ( (synpred5_SpecFlowLangLexer_en()) ) { s = 6; }

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

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

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

//.........这里部分代码省略.........
开发者ID:x97mdr,项目名称:SpecFlow,代码行数:101,代码来源:SpecFlowLangLexer_en.cs


示例5: SpecialStateTransition3

	private int SpecialStateTransition3(DFA dfa, int s, IIntStream _input)
	{
		ITokenStream input = (ITokenStream)_input;
		int _s = s;
		s = -1;
		int LA3_1 = input.LA(1);
		int index3_1 = input.Index;
		switch (_s)
		{
		case 0:
			{
				input.Rewind();
				if ((LA3_1==INCLUDE_DIRECTIVE)) {s = 1;}

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

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

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

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

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

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

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

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

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

				else if ((LA3_1==CLASS) && (EvaluatePredicate(synpred1_AS3_fragment))) {s = 11;}

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

				input.Seek(index3_1);
				break;
			}
		case 1:
			{
				input.Rewind();
				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==CLASS) && (EvaluatePredicate(synpred1_AS3_fragment))) {s = 11;}

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

				input.Seek(index3_1);
				break;
			}
		case 2:
			{
				input.Rewind();
				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==CLASS) && (EvaluatePredicate(synpred1_AS3_fragment))) {s = 11;}

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

				input.Seek(index3_1);
				break;
			}
		case 3:
			{
				input.Rewind();
				if ((LA3_1==IDENT)) {s = 13;}

//.........这里部分代码省略.........
开发者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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                   	 
//.........这里部分代码省略.........
开发者ID:xeno-by,项目名称:relinq,代码行数:101,代码来源:RelinqScriptParser.cs


示例8: DFA155_SpecialStateTransition

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

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

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

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

                   	 
                   	int index155_2 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred377_AS3_ex()) ) { s = 25; }

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

                   	 
                   	input.Seek(index155_2);
                   	if ( s >= 0 ) return s;
                   	break;
               	case 2 : 
                   	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);
//.........这里部分代码省略.........
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs


示例9: SpecialStateTransition8

	private int SpecialStateTransition8(DFA dfa, int s, IIntStream _input)
	{
		IIntStream input = _input;
		int _s = s;
		s = -1;
		int LA8_1 = input.LA(1);
		int index8_1 = input.Index;
		switch (_s)
		{
		case 0:
			{
				if (((LA8_1>='\u0000' && LA8_1<='\uFFFF'))) {s = 35;}

				else s = 34;

				break;
			}

		default:
			break;
		}

		if (s >= 0)
			return s;

		NoViableAltException nvae = new NoViableAltException(dfa.Description, 8, _s, input);
		dfa.Error(nvae);
		throw nvae;
	}
开发者ID:BIZMONT,项目名称:Y11.IDE,代码行数:29,代码来源:Y11Lexer.cs


示例10: 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


示例11: 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


示例12: DFA115_SpecialStateTransition

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                   	 
//.........这里部分代码省略.........
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs


示例13: DFA76_SpecialStateTransition

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

                   	 
                   	int index76_1 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred169_AS3_ex()) ) { s = 48; }

                   	else if ( (synpred172_AS3_ex()) ) { s = 10; }

                   	else if ( (synpred175_AS3_ex()) ) { s = 49; }

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

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

                   	 
                   	int index76_2 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred169_AS3_ex()) ) { s = 48; }

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

                   	else if ( (synpred172_AS3_ex()) ) { s = 10; }

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

                   	 
                   	int index76_3 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred169_AS3_ex()) ) { s = 48; }

                   	else if ( (synpred172_AS3_ex()) ) { s = 10; }

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

                   	 
                   	int index76_4 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred170_AS3_ex()) ) { s = 52; }

                   	else if ( (synpred172_AS3_ex()) ) { s = 10; }

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

                   	 
                   	int index76_5 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred170_AS3_ex()) ) { s = 52; }

                   	else if ( (synpred172_AS3_ex()) ) { s = 10; }

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

                   	 
                   	int index76_6 = input.Index();
                   	input.Rewind();
                   	s = -1;
                   	if ( (synpred170_AS3_ex()) ) { s = 52; }

                   	else if ( (synpred172_AS3_ex()) ) { s = 10; }

                   	 
                   	input.Seek(index76_6);
//.........这里部分代码省略.........
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs


示例14: DFA74_SpecialStateTransition

    protected internal int DFA74_SpecialStateTransition(DFA dfa, int s, IIntStream _input) //throws NoViableAltException
    {
            ITokenStream input = (ITokenStream)_input;
    	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);
//.........这里部分代码省略.........
开发者ID:Gr33z00,项目名称:flashdevelop,代码行数:101,代码来源:AS3_exParser.cs


示例15: SpecialStateTransitionDefault

 private static int SpecialStateTransitionDefault(DFA dfa, int s, IIntStream input)
 {
     return -1;
 }
开发者ID:brunolauze,项目名称:mysql-connector-net-6,代码行数:4,代码来源:DFA.cs


示例16: SpecialStateTransition13

	private int SpecialStateTransition13(DFA dfa, int s, IIntStream _input)
	{
		IIntStream input = _input;
		int _s = s;
		switch (s)
		{
			case 0:
				int LA13_57 = input.LA(1);

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

				else s = 73;

				if (s >= 0) return s;
				break;

			case 1:
				int LA13_72 = input.LA(1);

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

				else s = 24;

				if (s >= 0) return s;
				break;

			case 2:
				int LA13_25 = input.LA(1);

				s = -1;
				if ((LA13_25=='<')) {s = 56;}

				else if ((LA13_25=='=')) {s = 57;}

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

				else s = 58;

				if (s >= 0) return s;
				break;

			case 3:
				int LA13_56 = input.LA(1);

				s = -1;
				if ((LA13_56=='=')) {s = 72;}

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

				if (s >= 0) return s;
				break;
		}
		NoViableAltException nvae = new NoViableAltException(dfa.Description, 13, _s, input);
		dfa.Error(nvae);
		throw nvae;
	}
开发者ID:chursin-andrey,项目名称:CCompiler,代码行数:58,代码来源:CCompilerLexer.cs


示例17: SpecialStateTransition41

	private int SpecialStateTransition41(DFA dfa, int s, IIntStream _input)
	{
		IIntStream input = _input;
		int _s = s;
		s = -1;
		int LA41_1 = input.LA(1);
		int index41_1 = input.Index;
		switch (_s)
		{
		case 0:
			{
				if (((LA41_1>='\u0000' && LA41_1<='\t')||(LA41_1>='\u000B' && LA41_1<='\f')||(LA41_1>='\u000E' && LA41_1<='\uFFFF'))) {s = 3;}

				else if ((LA41_1=='\n'||LA41_1=='\r')) {s = 4;}

				else s = 5;

				break;
			}
		case 1:
			{
				if ((LA41_1=='\n'||LA41_1=='\r')) {s = 4;}

				else if (((LA41_1>='\u0000' && LA41_1<='\t')||(LA41_1>='\u000B' && LA41_1<='\f')||(LA41_1>='\u000E' && LA41_1<='\uFFFF'))) {s = 3;}

				else s = 5;

				break;
			}

		default:
			break;
		}

		if (s >= 0)
			return s;

		NoViableAltException nvae = new NoViableAltException(dfa.Description, 41, _s, input);
		dfa.Error(nvae);
		throw nvae;
	}
开发者ID:RainsSoft,项目名称:Code2Xml,代码行

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Runtime.EarlyExitException类代码示例发布时间:2022-05-24
下一篇:
C# Runtime.CommonTokenStream类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap