traceIn("relativePathExpr"); try { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST relativePathExpr_AST = null;
returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST relativePathExpr_AST = null;  stepExpr(); astFactory.addASTChild(currentAST, returnAST); { _loop151: do { if ((LA(1)==SLASH||LA(1)==DSLASH)) { { switch ( LA(1)) { case SLASH: { org.exist.xquery.parser.XQueryAST tmp236_AST = null; tmp236_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp236_AST); match(SLASH); break; } case DSLASH: { org.exist.xquery.parser.XQueryAST tmp237_AST = null; tmp237_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp237_AST); match(DSLASH); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } stepExpr(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop151; }
	public final void relativePathExpr() throws RecognitionException, TokenStreamException {				traceIn("relativePathExpr");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST relativePathExpr_AST = null;						stepExpr();			astFactory.addASTChild(currentAST, returnAST);			{			_loop151:			do {				if ((LA(1)==SLASH||LA(1)==DSLASH)) {					{					switch ( LA(1)) {					case SLASH:					{						org.exist.xquery.parser.XQueryAST tmp236_AST = null;						tmp236_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp236_AST);						match(SLASH);						break;					}					case DSLASH:					{						org.exist.xquery.parser.XQueryAST tmp237_AST = null;						tmp237_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp237_AST);						match(DSLASH);						break;					}					default:					{						throw new NoViableAltException(LT(1), getFilename());					}					}					}					stepExpr();					astFactory.addASTChild(currentAST, returnAST);				}				else {					break _loop151;				}							} while (true);			}			relativePathExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = relativePathExpr_AST;		} finally { // debugging			traceOut("relativePathExpr");		}	}