toml_parser_config Derived Type

type, public :: toml_parser_config

Configuration of the TOML parser


Components

Type Visibility Attributes Name Initial
type(toml_terminal), public :: color = toml_terminal()

Use colorful output for diagnostics

integer, public :: context_detail = 0

Record all tokens


Constructor

public interface toml_parser_config

  • private pure function new_parser_config(color, context_detail) result(config)

    Create new configuration for the TOML parser

    Arguments

    Type IntentOptional Attributes Name
    logical, intent(in), optional :: color

    Color support for diagnostics

    integer, intent(in), optional :: context_detail

    Record all tokens

    Return Value type(toml_parser_config)

    Configuration of the parser


Source Code

   type :: toml_parser_config
      !> Use colorful output for diagnostics
      type(toml_terminal) :: color = toml_terminal()
      !> Record all tokens
      integer :: context_detail = 0
   end type toml_parser_config