} { switch ( LA(1)) { case LITERAL_order: { orderByClause(); astFactory.addASTChild(currentAST, returnAST); break; } case LITERAL_return: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } org.exist.xquery.parser.XQueryAST tmp167_AST = null; tmp167_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp167_AST); match(LITERAL_return); exprSingle();
_cnt74++; } while (true); } { switch ( LA(1)) { case LITERAL_where: { org.exist.xquery.parser.XQueryAST tmp166_AST = null; tmp166_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp166_AST); match(LITERAL_where); expr();
	public final void flworExpr() throws RecognitionException, TokenStreamException {				traceIn("flworExpr");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST flworExpr_AST = null;						{			int _cnt74=0;			_loop74:			do {				switch ( LA(1)) {				case LITERAL_for:				{					forClause();					astFactory.addASTChild(currentAST, returnAST);					break;				}				case LITERAL_let:				{					letClause();					astFactory.addASTChild(currentAST, returnAST);					break;				}				default:				{					if ( _cnt74>=1 ) { break _loop74; } else {throw new NoViableAltException(LT(1), getFilename());}				}				}				_cnt74++;			} while (true);			}			{			switch ( LA(1)) {			case LITERAL_where:			{				org.exist.xquery.parser.XQueryAST tmp166_AST = null;				tmp166_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp166_AST);				match(LITERAL_where);				expr();				astFactory.addASTChild(currentAST, returnAST);				break;			}			case LITERAL_return:			case LITERAL_order:			{				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}			{			switch ( LA(1)) {			case LITERAL_order:			{				orderByClause();				astFactory.addASTChild(currentAST, returnAST);				break;			}			case LITERAL_return:			{				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}			org.exist.xquery.parser.XQueryAST tmp167_AST = null;			tmp167_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.makeASTRoot(currentAST, tmp167_AST);			match(LITERAL_return);			exprSingle();			astFactory.addASTChild(currentAST, returnAST);			flworExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = flworExpr_AST;		} finally { // debugging			traceOut("flworExpr");		}	}