Abstract base types for TOML values
This module defines the abstract toml_value base type from which all concrete TOML types (toml_table, toml_array, toml_keyval) inherit. It also provides the toml_visitor abstract type for implementing the visitor pattern.
Most users will not need to work with these types directly, but they are useful for implementing custom algorithms that traverse TOML data structures.
Thin wrapper around the deferred-size character intrinisc
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(kind=tfc, len=:), | public, | allocatable | :: | key |
Raw representation of the key to the TOML value |
||
| integer, | public | :: | origin | = | 0 |
Original source of the value |
Abstract base value for TOML data types
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(kind=tfc, len=:), | public, | allocatable | :: | key |
Raw representation of the key to the TOML value |
||
| integer, | public | :: | origin | = | 0 |
Original source of the value |
| procedure, public :: accept | Accept a visitor to transverse the data structure |
| procedure(destroy), public, deferred :: destroy | Release allocation hold by TOML value |
| procedure, public :: get_key | Get escaped key to TOML value |
| procedure, public :: match_key | Compare raw key of TOML value to input key |
Abstract visitor for TOML values
| procedure(visit), public, deferred :: visit | Visitor visiting a TOML value |