tomlf_type_value Module

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.



Derived Types

type, public ::  toml_key

Thin wrapper around the deferred-size character intrinisc

Components

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

type, public, abstract ::  toml_value

Abstract base value for TOML data types

Components

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

Type-Bound Procedures

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

type, public, abstract ::  toml_visitor

Abstract visitor for TOML values

Type-Bound Procedures

procedure(visit), public, deferred :: visit

Visitor visiting a TOML value