IsEmpty_TokenStack Function

public function IsEmpty_TokenStack(stack)

Arguments

TypeIntentOptionalAttributesName
class(TokenStack) :: stack

Return Value logical


Contents

Source Code


Source Code

  logical function IsEmpty_TokenStack(stack)
    class(TokenStack) :: stack

    IsEmpty_TokenStack = .false.

    if(stack%top_index <= 0) then
      IsEmpty_TokenStack = .true.
    endif

  endfunction IsEmpty_TokenStack