Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(TokenStack), | intent(out) | :: | stack | |||
integer, | intent(in) | :: | N |
subroutine Construct_TokenStack(stack,N)
class(TokenStack),intent(out) :: stack
integer,intent(in) :: N
allocate(stack%tokens(1:N))
stack%top_index = 0
endsubroutine Construct_TokenStack