dyaml.token

YAML tokens. Code based on PyYAML: http://www.pyyaml.org

Members

Aliases

streamEndToken
alias streamEndToken = simpleToken!(TokenID.StreamEnd)

Aliases for construction of simple token types.

tagToken
alias tagToken = simpleValueToken!(TokenID.Tag)

Alias for construction of tag token.

Enums

DirectiveType
enum DirectiveType

Specifies the type of a tag directive token.

TokenID
enum TokenID

Token types.

Functions

directiveToken
Token directiveToken(const Mark start, const Mark end, char[] value, DirectiveType directive, const uint nameEnd)

Construct a directive token.

scalarToken
Token scalarToken(const Mark start, const Mark end, char[] value, const ScalarStyle style)

Construct a scalar token.

simpleToken
Token simpleToken(const Mark start, const Mark end)

Construct a simple (no value) token with specified type.

simpleValueToken
Token simpleValueToken(const Mark start, const Mark end, char[] value, const uint valueDivider = uint.max)

Construct a simple token with value with specified type.

streamStartToken
Token streamStartToken(const Mark start, const Mark end, const Encoding encoding)

Construct a stream start token.

Structs

Token
struct Token

Token produced by scanner.

Meta