dyaml.token

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

Members

Aliases

aliasToken
alias aliasToken = simpleValueToken!(TokenID.alias_)
Undocumented in source.
anchorToken
alias anchorToken = simpleValueToken!(TokenID.anchor)
Undocumented in source.
blockEndToken
alias blockEndToken = simpleToken!(TokenID.blockEnd)
Undocumented in source.
blockEntryToken
alias blockEntryToken = simpleToken!(TokenID.blockEntry)
Undocumented in source.
blockMappingStartToken
alias blockMappingStartToken = simpleToken!(TokenID.blockMappingStart)
Undocumented in source.
blockSequenceStartToken
alias blockSequenceStartToken = simpleToken!(TokenID.blockSequenceStart)
Undocumented in source.
flowEntryToken
alias flowEntryToken = simpleToken!(TokenID.flowEntry)
Undocumented in source.
keyToken
alias keyToken = simpleToken!(TokenID.key)
Undocumented in source.
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.

valueToken
alias valueToken = simpleToken!(TokenID.value)
Undocumented in source.

Enums

DirectiveType
enum DirectiveType

Specifies the type of a tag directive token.

TokenID
enum TokenID

Token types.

Functions

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

Construct a directive token.

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

Construct a scalar token.

simpleToken
Token simpleToken(Mark start, Mark end)

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

simpleValueToken
Token simpleValueToken(Mark start, Mark end, char[] value, uint valueDivider)

Construct a simple token with value with specified type.

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

Construct a stream start token.

Structs

Token
struct Token

Token produced by scanner.

Meta