traceIn("rangeExpr"); try { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST rangeExpr_AST = null;
returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST rangeExpr_AST = null;  additiveExpr(); astFactory.addASTChild(currentAST, returnAST); { switch ( LA(1)) { case LITERAL_to: { org.exist.xquery.parser.XQueryAST tmp222_AST = null; tmp222_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp222_AST); match(LITERAL_to);
	public final void rangeExpr() throws RecognitionException, TokenStreamException {				traceIn("rangeExpr");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST rangeExpr_AST = null;						additiveExpr();			astFactory.addASTChild(currentAST, returnAST);			{			switch ( LA(1)) {			case LITERAL_to:			{				org.exist.xquery.parser.XQueryAST tmp222_AST = null;				tmp222_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp222_AST);				match(LITERAL_to);				additiveExpr();				astFactory.addASTChild(currentAST, returnAST);				break;			}			case EOF:			case RPAREN:			case EQ:			case RCURLY:			case COMMA:			case LITERAL_empty:			case LITERAL_for:			case LITERAL_let:			case LITERAL_where:			case LITERAL_return:			case LITERAL_order:			case LITERAL_ascending:			case LITERAL_descending:			case LITERAL_satisfies:			case LITERAL_else:			case LITERAL_or:			case LITERAL_and:			case LITERAL_cast:			case LT:			case GT:			case LITERAL_eq:			case LITERAL_ne:			case LITERAL_lt:			case LITERAL_le:			case LITERAL_gt:			case LITERAL_ge:			case NEQ:			case GTEQ:			case LTEQ:			case LITERAL_is:			case LITERAL_isnot:			case ANDEQ:			case OREQ:			case RPPAREN:			{				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}			rangeExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = rangeExpr_AST;		} finally { // debugging			traceOut("rangeExpr");		}	}