tomlf_constants Module



Variables

Type Visibility Attributes Name Initial
character(kind=tfc, len=*), public, parameter :: TOML_BACKSPACE = achar(8)
character(kind=tfc, len=*), public, parameter :: TOML_BAREKEY = TOML_LETTERS//TOML_DIGITS//'_-'

Allowed characters in TOML bare keys.

character(kind=tfc, len=*), public, parameter :: TOML_BINDIGITS = '01'
character(kind=tfc, len=*), public, parameter :: TOML_CARRIAGE_RETURN = achar(13)
character(kind=tfc, len=*), public, parameter :: TOML_DIGITS = '0123456789'
character(kind=tfc, len=*), public, parameter :: TOML_DQUOTE = '"'

Double quotes denote strings (with escape character possible)

character(kind=tfc, len=*), public, parameter :: TOML_FORMFEED = achar(12)
character(kind=tfc, len=*), public, parameter :: TOML_HEXDIGITS = '0123456789ABCDEFabcdef'
character(kind=tfc, len=*), public, parameter :: TOML_LETTERS = TOML_LOWERCASE//TOML_UPPERCASE
character(kind=tfc, len=*), public, parameter :: TOML_LITERALS = TOML_LETTERS//TOML_DIGITS//'_-+.'
character(kind=tfc, len=*), public, parameter :: TOML_LOWERCASE = 'abcdefghijklmnopqrstuvwxyz'
character(kind=tfc, len=*), public, parameter :: TOML_NEWLINE = new_line('a')
character(kind=tfc, len=*), public, parameter :: TOML_OCTDIGITS = '01234567'
character(kind=tfc, len=*), public, parameter :: TOML_SQUOTE = "'"

Single quotes denote literal strings

character(kind=tfc, len=*), public, parameter :: TOML_TABULATOR = achar(9)
character(kind=tfc, len=*), public, parameter :: TOML_TIMESTAMP = TOML_DIGITS//'.:+-T Zz'
character(kind=tfc, len=*), public, parameter :: TOML_UPPERCASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
character(kind=tfc, len=*), public, parameter :: TOML_WHITESPACE = ' '//toml_escape%tabulator

Whitespace in TOML are blanks and tabs.

integer, public, parameter :: tf_dp = selected_real_kind(15)

Double precision real numbers

integer, public, parameter :: tf_i1 = selected_int_kind(2)

Char length for integers

integer, public, parameter :: tf_i2 = selected_int_kind(4)

Short length for integers

integer, public, parameter :: tf_i4 = selected_int_kind(9)

Length of default integers

integer, public, parameter :: tf_i8 = selected_int_kind(18)

Long length for integers

integer, public, parameter :: tf_sp = selected_real_kind(6)

Single precision real numbers

integer, public, parameter :: tfc = selected_char_kind('DEFAULT')

Default character kind

integer, public, parameter :: tfi = tf_i8

Default integer precision, 64 bit (signed long) range expected

integer, public, parameter :: tfout = output_unit

Default output channel

integer, public, parameter :: tfr = tf_dp

Default float precision, IEEE 754 binary64 values expected

type(enum_escape), public, parameter :: toml_escape = enum_escape()

Actual enumerator with TOML escape characters

type(enum_type), public, parameter :: toml_type = enum_type()

Actual enumerator with TOML value types