toml::tokens

The toml::tokens namespace contains definitions used by toml::lex.

Index

Types

type boolean = bool;
type comma = void;
type comment = str;
type datetime = date::virtual;
type dot = void;
type eof = void;
type eq = void;
type float = f64;
type integer = i64;
type key = str;
type lbrace = void;
type lbracket = void;
type lbracket2 = void;
type newline = void;
type rbrace = void;
type rbracket = void;
type rbracket2 = void;
type string = str;
type token = (string | comment | lbrace | rbrace | lbracket | lbracket2 | rbracket | rbracket2 | newline | dot | eq | comma | integer | float | boolean | datetime | key | eof);

Types

type boolean[link]

type boolean = bool;

A boolean.

type comma[link]

type comma = void;

A "," character.

type comment[link]

type comment = str;

A comment. Contains the contents of the comment, excluding the "#" at the beginning and any newline at the end.

type datetime[link]

type datetime = date::virtual;

A date and/or time.

type dot[link]

type dot = void;

A "." character.

type eof[link]

type eof = void;

End-of-file.

type eq[link]

type eq = void;

A "=" character.

type float[link]

type float = f64;

A floating-point number.

type integer[link]

type integer = i64;

An integer.

type key[link]

type key = str;

A component of a key. This may be a quoted key, in which case it's processed the same way a string is. If a sequence of dotted keys is encountered, each individual key is a separate token.

type lbrace[link]

type lbrace = void;

A "{" character.

type lbracket[link]

type lbracket = void;

A "[" character.

type lbracket2[link]

type lbracket2 = void;

Two "[" characters in-a-row.

type newline[link]

type newline = void;

A newline.

type rbrace[link]

type rbrace = void;

A "}" character.

type rbracket[link]

type rbracket = void;

A "]" character.

type rbracket2[link]

type rbracket2 = void;

Two "]" characters in-a-row.

type string[link]

type string = str;

A string. Contains the processed string, with character escapes translated.

type token[link]

type token = (string | comment | lbrace | rbrace | lbracket | lbracket2 | rbracket | rbracket2 | newline | dot | eq | comma | integer | float | boolean | datetime | key | eof);

A token returned by the lexer.