traceIn("ifExpr"); try { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST ifExpr_AST = null;  org.exist.xquery.parser.XQueryAST tmp172_AST = null; tmp172_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp172_AST); match(LITERAL_if); match(LPAREN); expr(); astFactory.addASTChild(currentAST, returnAST); match(RPAREN); match(LITERAL_then); exprSingle(); astFactory.addASTChild(currentAST, returnAST); match(LITERAL_else); exprSingle(); astFactory.addASTChild(currentAST, returnAST); ifExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = ifExpr_AST; } finally { traceOut("ifExpr"); }
returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST ifExpr_AST = null;  org.exist.xquery.parser.XQueryAST tmp172_AST = null; tmp172_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp172_AST); match(LITERAL_if); match(LPAREN); expr(); astFactory.addASTChild(currentAST, returnAST); match(RPAREN); match(LITERAL_then); exprSingle(); astFactory.addASTChild(currentAST, returnAST); match(LITERAL_else); exprSingle(); astFactory.addASTChild(currentAST, returnAST); ifExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = ifExpr_AST;
	public final void ifExpr() throws RecognitionException, TokenStreamException {				traceIn("ifExpr");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST ifExpr_AST = null;						org.exist.xquery.parser.XQueryAST tmp172_AST = null;			tmp172_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));			astFactory.makeASTRoot(currentAST, tmp172_AST);			match(LITERAL_if);			match(LPAREN);			expr();			astFactory.addASTChild(currentAST, returnAST);			match(RPAREN);			match(LITERAL_then);			exprSingle();			astFactory.addASTChild(currentAST, returnAST);			match(LITERAL_else);			exprSingle();			astFactory.addASTChild(currentAST, returnAST);			ifExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = ifExpr_AST;		} finally { // debugging			traceOut("ifExpr");		}	}