TOML serializer to produduce a TOML document from a datastructure
Create standard constructor
Default constructor for TOML serializer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_ser_config), | intent(in), | optional | :: | config |
Configuration for serializer |
Instance of the TOML serializer
Visit a TOML value
Visit a TOML value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_serializer), | intent(inout) | :: | self |
Instance of the TOML serializer |
||
class(toml_value), | intent(inout) | :: | val |
TOML value to visit |
type, extends(toml_visitor) :: toml_serializer private !> Output string character(:), allocatable :: output !> Configuration for serializer type(toml_ser_config) :: config = toml_ser_config() !> Special mode for printing array of tables logical, private :: array_of_tables = .false. !> Special mode for printing inline arrays logical, private :: inline_array = .false. !> Top of the key stack integer, private :: top = 0 !> Key stack to create table headers type(toml_key), allocatable, private :: stack(:) contains !> Visit a TOML value procedure :: visit end type toml_serializer