toml_parse Interface

public interface toml_parse

Parse a TOML document.

This interface is deprecated in favor of toml_load and toml_loads


Module Procedures

private subroutine toml_parse_unit(table, unit, error)

Parse a TOML input from a given IO unit.

Note

This procedure is deprectated

Arguments

Type IntentOptional 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

private subroutine toml_parse_string(table, string, error)

Wrapper to parse a TOML string.

Note

This procedure is deprectated

Arguments

Type IntentOptional 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