Skip to content

toml.token #

enum Kind #

enum Kind {
	unknown
	eof
	bare
	boolean
	number
	quoted
	plus
	minus
	underscore
	comma
	colon
	hash
	assign
	lcbr
	rcbr
	lsbr
	rsbr
	nl
	cr
	tab
	whitespace
	period
	_end_
}

Kind represents a logical type of entity found in any given TOML document.

struct Position #

struct Position {
pub:
	len     int
	line_nr int
	pos     int
	col     int
}

Position represents a position in a TOML document.

struct Token #

struct Token {
pub:
	kind    Kind
	lit     string
	col     int
	line_nr int
	pos     int
	len     int
}

Token holds information about the current scan of bytes.

fn (Token) position #

fn (tok &Token) position() Position