The items of a source text, in order.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | n | = | 0 |
number of items |
|
| type(statement_t), | public, | allocatable | :: | s(:) |
storage; only |
append an item
Append item s, growing the storage as needed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(statement_list_t), | intent(inout) | :: | self |
the item list |
||
| type(statement_t), | intent(in) | :: | s |
item to append |
type, public :: statement_list_t !! The items of a source text, in order. type(statement_t), allocatable :: s(:) !! storage; only `s(1:n)` is in use integer :: n = 0 !! number of items contains procedure :: push !! append an item end type statement_list_t