Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(TokenStack) | :: | stack |
logical function IsEmpty_TokenStack(stack)
class(TokenStack) :: stack
IsEmpty_TokenStack = .false.
if(stack%top_index <= 0) then
IsEmpty_TokenStack = .true.
endif
endfunction IsEmpty_TokenStack