Provides a definition for a token
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(enum_token), | public, | parameter | :: | token_kind | = | enum_token() |
Actual enumerator for token kinds |
Reallocate a list of tokens
Reallocate list of tokens
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(toml_token), | intent(inout), | allocatable | :: | var(:) |
Instance of the array to be resized |
|
| integer, | intent(in), | optional | :: | n |
Dimension of the final array size |
Token containing
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | chunk | = | 0 |
Identifier for the chunk index in case of buffered reading |
|
| integer, | public | :: | first | = | 0 |
Starting position of the token in character stream |
|
| integer, | public | :: | kind | = | token_kind%newline |
Kind of token |
|
| integer, | public | :: | last | = | 0 |
Last position of the token in character stream |
Represent a token as string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(toml_token), | intent(in) | :: | token |
Token to represent as string |
String representation of token