Provides a container to store tokens for later use
Container storing tokens
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(kind=tfc, len=:), | public, | allocatable | :: | filename |
Filename of the input |
||
character(kind=tfc, len=:), | public, | allocatable | :: | source |
Actual source |
||
type(toml_token), | public, | allocatable | :: | token(:) |
Stack of stored tokens |
||
integer, | public | :: | top | = | 0 |
Last stored token |
procedure, public :: push_back | ../../ Push a new token to the stack |
generic, public :: report => report1, report2 | ../../ Create a report |
procedure, public :: report1 | ../../ Create a report with a single label |
procedure, public :: report2 | ../../ Create a report with a two labels |