toml_parser Derived Type

type, public :: toml_parser

TOML parser


Components

Type Visibility Attributes Name Initial
type(toml_parser_config), public :: config

Configuration of the parser

type(toml_context), public :: context

Context for producing diagnostics

type(toml_table), public, pointer :: current

Pointer to the currently processed table

type(toml_diagnostic), public, allocatable :: diagnostic

Diagnostic produced while parsing

type(toml_table), public, allocatable :: root

Table containing the document root

type(toml_token), public :: token

Current token


Source Code

   type :: toml_parser
      !> Current token
      type(toml_token) :: token
      !> Table containing the document root
      type(toml_table), allocatable :: root
      !> Pointer to the currently processed table
      type(toml_table), pointer :: current
      !> Diagnostic produced while parsing
      type(toml_diagnostic), allocatable :: diagnostic
      !> Context for producing diagnostics
      type(toml_context) :: context
      !> Configuration of the parser
      type(toml_parser_config) :: config
   end type toml_parser