TokenStack Derived Type

type, public :: TokenStack


Contents


Components

TypeVisibilityAttributesNameInitial
type(Token), public, allocatable:: tokens(:)
integer, public :: top_index =0

Type-Bound Procedures

procedure, public :: Construct => Construct_TokenStack

  • public subroutine Construct_TokenStack(stack, N)

    Arguments

    TypeIntentOptionalAttributesName
    class(TokenStack), intent(out) :: stack
    integer, intent(in) :: N

procedure, public :: Finalize => Finalize_TokenStack

procedure, public :: IsEmpty => IsEmpty_TokenStack

procedure, public :: Pop => Pop_TokenStack

  • public subroutine Pop_TokenStack(stack, tok)

    Arguments

    TypeIntentOptionalAttributesName
    class(TokenStack), intent(inout) :: stack
    type(Token), intent(out) :: tok

procedure, public :: Push => Push_TokenStack

  • public subroutine Push_TokenStack(stack, tok)

    Arguments

    TypeIntentOptionalAttributesName
    class(TokenStack), intent(inout) :: stack
    type(Token), intent(in) :: tok

procedure, public :: TopToken

  • public function TopToken(stack)

    Arguments

    TypeIntentOptionalAttributesName
    class(TokenStack) :: stack

    Return Value type(Token)