toml_loads Interface

public interface toml_loads

Load a TOML data structure from a string


Module Procedures

private subroutine toml_load_string(table, string, config, context, error)

Load TOML data structure from string

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(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