Expression result = null;
Expression result = null; PathExpr path = null;
	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);		}	}