// $ANTLR start "selectAtom" // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:160:1: selectAtom : ( ^( DOT ( . )* ) | ^( SQL_TOKEN ( . )* ) | ^( ALIAS_REF ( . )* ) | ^( SELECT_EXPR ( . )* ) ); public SqlGenerator.selectAtom_return selectAtom() // throws RecognitionException [1] { SqlGenerator.selectAtom_return retval = new SqlGenerator.selectAtom_return(); retval.Start = input.LT(1); try { // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:161:2: ( ^( DOT ( . )* ) | ^( SQL_TOKEN ( . )* ) | ^( ALIAS_REF ( . )* ) | ^( SELECT_EXPR ( . )* ) ) int alt32 = 4; switch ( input.LA(1) ) { case DOT: { alt32 = 1; } break; case SQL_TOKEN: { alt32 = 2; } break; case ALIAS_REF: { alt32 = 3; } break; case SELECT_EXPR: { alt32 = 4; } break; default: if ( state.backtracking > 0 ) {state.failed = true; return retval;} NoViableAltException nvae_d32s0 = new NoViableAltException("", 32, 0, input); throw nvae_d32s0; } switch (alt32) { case 1 : // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:161:4: ^( DOT ( . )* ) { Match(input,DOT,FOLLOW_DOT_in_selectAtom751); if (state.failed) return retval; if ( input.LA(1) == Token.DOWN ) { Match(input, Token.DOWN, null); if (state.failed) return retval; // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:161:10: ( . )* do { int alt28 = 2; int LA28_0 = input.LA(1); if ( ((LA28_0 >= ALL && LA28_0 <= BOGUS)) ) { alt28 = 1; } else if ( (LA28_0 == UP) ) { alt28 = 2; } switch (alt28) { case 1 : // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:161:10: . { MatchAny(input); if (state.failed) return retval; } break; default: goto loop28; } } while (true); loop28: ; // Stops C# compiler whining that label 'loop28' has no statements Match(input, Token.UP, null); if (state.failed) return retval; } } break; case 2 : // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:162:4: ^( SQL_TOKEN ( . )* ) { Match(input,SQL_TOKEN,FOLLOW_SQL_TOKEN_in_selectAtom761); if (state.failed) return retval; if ( input.LA(1) == Token.DOWN ) { Match(input, Token.DOWN, null); if (state.failed) return retval; // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:162:16: ( . )* do { int alt29 = 2; int LA29_0 = input.LA(1); if ( ((LA29_0 >= ALL && LA29_0 <= BOGUS)) ) { alt29 = 1; } else if ( (LA29_0 == UP) ) { alt29 = 2; } switch (alt29) { case 1 : // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:162:16: . { MatchAny(input); if (state.failed) return retval; } break; default: goto loop29; } } while (true); loop29: ; // Stops C# compiler whining that label 'loop29' has no statements Match(input, Token.UP, null); if (state.failed) return retval; } } break; case 3 : // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:4: ^( ALIAS_REF ( . )* ) { Match(input,ALIAS_REF,FOLLOW_ALIAS_REF_in_selectAtom771); if (state.failed) return retval; if ( input.LA(1) == Token.DOWN ) { Match(input, Token.DOWN, null); if (state.failed) return retval; // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:16: ( . )* do { int alt30 = 2; int LA30_0 = input.LA(1); if ( ((LA30_0 >= ALL && LA30_0 <= BOGUS)) ) { alt30 = 1; } else if ( (LA30_0 == UP) ) { alt30 = 2; } switch (alt30) { case 1 : // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:163:16: . { MatchAny(input); if (state.failed) return retval; } break; default: goto loop30; } } while (true); loop30: ; // Stops C# compiler whining that label 'loop30' has no statements Match(input, Token.UP, null); if (state.failed) return retval; } } break; case 4 : // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:4: ^( SELECT_EXPR ( . )* ) { Match(input,SELECT_EXPR,FOLLOW_SELECT_EXPR_in_selectAtom781); if (state.failed) return retval; if ( input.LA(1) == Token.DOWN ) { Match(input, Token.DOWN, null); if (state.failed) return retval; // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:18: ( . )* do { int alt31 = 2; int LA31_0 = input.LA(1); if ( ((LA31_0 >= ALL && LA31_0 <= BOGUS)) ) { alt31 = 1; } else if ( (LA31_0 == UP) ) { alt31 = 2; } switch (alt31) { case 1 : // /Users/Steve/Projects/NHibernate/Trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/SqlGenerator.g:164:18: . { MatchAny(input); if (state.failed) return retval; } break; default: goto loop31; } } while (true); loop31: ; // Stops C# compiler whining that label 'loop31' has no statements Match(input, Token.UP, null); if (state.failed) return retval; } } break; } } catch (RecognitionException re) { ReportError(re); Recover(input,re); } finally { } return retval; }
// $ANTLR start "selectAtom" // SqlGenerator.g:165:1: selectAtom : ( ^( DOT ( . )* ) | ^( SQL_TOKEN ( . )* ) | ^( ALIAS_REF ( . )* ) | ^( SELECT_EXPR ( . )* ) ); public SqlGenerator.selectAtom_return selectAtom() // throws RecognitionException [1] { SqlGenerator.selectAtom_return retval = new SqlGenerator.selectAtom_return(); retval.Start = input.LT(1); try { // SqlGenerator.g:166:2: ( ^( DOT ( . )* ) | ^( SQL_TOKEN ( . )* ) | ^( ALIAS_REF ( . )* ) | ^( SELECT_EXPR ( . )* ) ) int alt34 = 4; switch ( input.LA(1) ) { case DOT: { alt34 = 1; } break; case SQL_TOKEN: { alt34 = 2; } break; case ALIAS_REF: { alt34 = 3; } break; case SELECT_EXPR: { alt34 = 4; } break; default: if ( state.backtracking > 0 ) {state.failed = true; return retval;} NoViableAltException nvae_d34s0 = new NoViableAltException("", 34, 0, input); throw nvae_d34s0; } switch (alt34) { case 1 : // SqlGenerator.g:166:4: ^( DOT ( . )* ) { Match(input,DOT,FOLLOW_DOT_in_selectAtom786); if (state.failed) return retval; if ( input.LA(1) == Token.DOWN ) { Match(input, Token.DOWN, null); if (state.failed) return retval; // SqlGenerator.g:166:10: ( . )* do { int alt30 = 2; int LA30_0 = input.LA(1); if ( ((LA30_0 >= ALL && LA30_0 <= BOGUS)) ) { alt30 = 1; } else if ( (LA30_0 == UP) ) { alt30 = 2; } switch (alt30) { case 1 : // SqlGenerator.g:166:10: . { MatchAny(input); if (state.failed) return retval; } break; default: goto loop30; } } while (true); loop30: ; // Stops C# compiler whining that label 'loop30' has no statements Match(input, Token.UP, null); if (state.failed) return retval; } } break; case 2 : // SqlGenerator.g:167:4: ^( SQL_TOKEN ( . )* ) { Match(input,SQL_TOKEN,FOLLOW_SQL_TOKEN_in_selectAtom796); if (state.failed) return retval; if ( input.LA(1) == Token.DOWN ) { Match(input, Token.DOWN, null); if (state.failed) return retval; // SqlGenerator.g:167:16: ( . )* do { int alt31 = 2; int LA31_0 = input.LA(1); if ( ((LA31_0 >= ALL && LA31_0 <= BOGUS)) ) { alt31 = 1; } else if ( (LA31_0 == UP) ) { alt31 = 2; } switch (alt31) { case 1 : // SqlGenerator.g:167:16: . { MatchAny(input); if (state.failed) return retval; } break; default: goto loop31; } } while (true); loop31: ; // Stops C# compiler whining that label 'loop31' has no statements Match(input, Token.UP, null); if (state.failed) return retval; } } break; case 3 : // SqlGenerator.g:168:4: ^( ALIAS_REF ( . )* ) { Match(input,ALIAS_REF,FOLLOW_ALIAS_REF_in_selectAtom806); if (state.failed) return retval; if ( input.LA(1) == Token.DOWN ) { Match(input, Token.DOWN, null); if (state.failed) return retval; // SqlGenerator.g:168:16: ( . )* do { int alt32 = 2; int LA32_0 = input.LA(1); if ( ((LA32_0 >= ALL && LA32_0 <= BOGUS)) ) { alt32 = 1; } else if ( (LA32_0 == UP) ) { alt32 = 2; } switch (alt32) { case 1 : // SqlGenerator.g:168:16: . { MatchAny(input); if (state.failed) return retval; } break; default: goto loop32; } } while (true); loop32: ; // Stops C# compiler whining that label 'loop32' has no statements Match(input, Token.UP, null); if (state.failed) return retval; } } break; case 4 : // SqlGenerator.g:169:4: ^( SELECT_EXPR ( . )* ) { Match(input,SELECT_EXPR,FOLLOW_SELECT_EXPR_in_selectAtom816); if (state.failed) return retval; if ( input.LA(1) == Token.DOWN ) { Match(input, Token.DOWN, null); if (state.failed) return retval; // SqlGenerator.g:169:18: ( . )* do { int alt33 = 2; int LA33_0 = input.LA(1); if ( ((LA33_0 >= ALL && LA33_0 <= BOGUS)) ) { alt33 = 1; } else if ( (LA33_0 == UP) ) { alt33 = 2; } switch (alt33) { case 1 : // SqlGenerator.g:169:18: . { MatchAny(input); if (state.failed) return retval; } break; default: goto loop33; } } while (true); loop33: ; // Stops C# compiler whining that label 'loop33' has no statements Match(input, Token.UP, null); if (state.failed) return retval; } } break; } } catch (RecognitionException re) { ReportError(re); Recover(input,re); } finally { } return retval; }