int _cnt36=0; _loop36: do { if ((_tokenSet_0.member(LA(1)))) { result=regularexpr(expr); if ( inputState.guessing==0 ) {
{ int _cnt946=0; _loop946: do { if ((_tokenSet_0.member(LA(1)))) { result=regularexpr(expr); if ( inputState.guessing==0 ) {  if(result instanceof Step && ((Step)result).getAxis() == -1) ((Step)result).setAxis(Constants.CHILD_AXIS);  } } else { if ( _cnt946>=1 ) { break _loop946; } else {throw new NoViableAltException(LT(1), getFilename());} }  _cnt946++; } while (true); } break; } case LPAREN: { match(LPAREN); if ( inputState.guessing==0 ) { path = new PathExpr(pool); } or_expr(path); match(RPAREN); if ( inputState.guessing==0 ) {  expr.addPath(path);
	public final void pathexpr(		PathExpr expr	) throws RecognitionException, TokenStreamException, PermissionDeniedException,EXistException {				Expression result = null;						{		int _cnt36=0;		_loop36:		do {			if ((_tokenSet_0.member(LA(1)))) {				result=regularexpr(expr);				if ( inputState.guessing==0 ) {												if(result instanceof Step && ((Step)result).getAxis() == -1)								((Step)result).setAxis(Constants.CHILD_AXIS);										}			}			else {				if ( _cnt36>=1 ) { break _loop36; } else {throw new NoViableAltException(LT(1), getFilename());}			}						_cnt36++;		} while (true);		}	}