Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(r4fp64Stack), | intent(inout) | :: | stack | |||
real(kind=real64), | intent(out) | :: | tok(:,:,:,:) |
subroutine Pop_r4fp64Stack(stack,tok)
class(r4fp64Stack),intent(inout) :: stack
real(real64),intent(out) :: tok(:,:,:,:)
if(stack%top_index <= 0) then
print*,"Attempt to pop from empty token stack"
else
tok(:,:,:,:) = stack%tokens(:,:,:,:,stack%top_index)
stack%top_index = stack%top_index-1
endif
endsubroutine Pop_r4fp64Stack