tomlf_de_context Module

Provides a container to store tokens for later use



Derived Types

type, public ::  toml_context

Container storing tokens

Components

Type Visibility Attributes Name Initial
character(kind=tfc, len=:), public, allocatable :: filename

Filename of the input

character(kind=tfc, len=:), public, allocatable :: source

Actual source

type(toml_token), public, allocatable :: token(:)

Stack of stored tokens

integer, public :: top = 0

Last stored token

Type-Bound Procedures

procedure, public :: push_back

Push a new token to the stack

generic, public :: report => report1, report2

Create a report

procedure, public :: report1

Create a report with a single label

procedure, public :: report2

Create a report with a two labels