Proxy module for providing loading and deserialization of TOML data structures
Load a TOML data structure from the provided source
Load TOML data structure from file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(out), | allocatable | :: | table |
Instance of the TOML data structure, not allocated in case of error |
|
character(kind=tfc, len=*), | intent(in) | :: | filename | |||
type(toml_parser_config), | intent(in), | optional | :: | config |
Configuration for the parser |
|
type(toml_context), | intent(out), | optional | :: | context |
Context tracking the origin of the data structure to allow rich reports |
|
type(toml_error), | intent(out), | optional, | allocatable | :: | error |
Error handling, provides detailed diagnostic in case of error |
Load TOML data structure from unit
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(out), | allocatable | :: | table |
Instance of the TOML data structure, not allocated in case of error |
|
integer, | intent(in) | :: | io |
Unit to read from |
||
type(toml_parser_config), | intent(in), | optional | :: | config |
Configuration for the parser |
|
type(toml_context), | intent(out), | optional | :: | context |
Context tracking the origin of the data structure to allow rich reports |
|
type(toml_error), | intent(out), | optional, | allocatable | :: | error |
Error handling, provides detailed diagnostic in case of error |
Load a TOML data structure from a string
Load TOML data structure from string
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(out), | allocatable | :: | table |
Instance of the TOML data structure, not allocated in case of error |
|
character(kind=tfc, len=*), | intent(in) | :: | string |
String containing TOML document |
||
type(toml_parser_config), | intent(in), | optional | :: | config |
Configuration for the parser |
|
type(toml_context), | intent(out), | optional | :: | context |
Context tracking the origin of the data structure to allow rich reports |
|
type(toml_error), | intent(out), | optional, | allocatable | :: | error |
Error handling, provides detailed diagnostic in case of error |
Parse a TOML document.
This interface is deprecated in favor of toml_load and toml_loads
Parse a TOML input from a given IO unit.
Note
This procedure is deprectated
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(out), | allocatable | :: | table |
Instance of the TOML data structure, not allocated in case of error |
|
integer, | intent(in) | :: | unit |
Unit to read from |
||
type(toml_error), | intent(out), | optional, | allocatable | :: | error |
Error handling, provides detailed diagnostic in case of error |
Wrapper to parse a TOML string.
Note
This procedure is deprectated
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_table), | intent(out), | allocatable | :: | table |
Instance of the TOML data structure, not allocated in case of error |
|
character(len=*), | intent(in), | target | :: | string |
String containing TOML document |
|
type(toml_error), | intent(out), | optional, | allocatable | :: | error |
Error handling, provides detailed diagnostic in case of error |