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