dyaml.scanner

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

Members

Aliases

isBChar
alias isBChar = among!('\n', '\r', '\u0085', '\u2028', '\u2029')
Undocumented in source.
isBreak
alias isBreak = among!('\0', '\n', '\r', '\u0085', '\u2028', '\u2029')

Scanner produces tokens of the following types: STREAM-START STREAM-END DIRECTIVE(name, value) DOCUMENT-START DOCUMENT-END BLOCK-SEQUENCE-START BLOCK-MAPPING-START BLOCK-END FLOW-SEQUENCE-START FLOW-MAPPING-START FLOW-SEQUENCE-END FLOW-MAPPING-END BLOCK-ENTRY FLOW-ENTRY KEY VALUE ALIAS(value) ANCHOR(value) TAG(value) SCALAR(value, plain, style)

isBreakOrSpace
alias isBreakOrSpace = among!(' ', '\0', '\n', '\r', '\u0085', '\u2028', '\u2029')
Undocumented in source.
isFlowScalarBreakSpace
alias isFlowScalarBreakSpace = among!(' ', '\t', '\0', '\n', '\r', '\u0085', '\u2028', '\u2029', '\'', '"', '\\')
Undocumented in source.
isNSChar
alias isNSChar = among!(' ', '\n', '\r', '\u0085', '\u2028', '\u2029')
Undocumented in source.
isNonLinebreakWhitespace
alias isNonLinebreakWhitespace = among!(' ', '\t')
Undocumented in source.
isNonScalarStartCharacter
alias isNonScalarStartCharacter = among!('-', '?', ':', ',', '[', ']', '{', '}', '#', '&', '*', '!', '|', '>', '\'', '"', '%', '@', '`', ' ', '\t', '\0', '\n', '\r', '\u0085', '\u2028', '\u2029')
Undocumented in source.
isURIChar
alias isURIChar = among!('-', ';', '/', '?', ':', '@', '&', '=', '+', '$', ',', '_', '.', '!', '~', '*', '\'', '(', ')', '[', ']', '%')
Undocumented in source.
isWhiteSpace
alias isWhiteSpace = among!(' ', '\t', '\0', '\n', '\r', '\u0085', '\u2028', '\u2029')
Undocumented in source.

Classes

ScannerException
class ScannerException

Marked exception thrown at scanner errors.

Structs

Scanner
struct Scanner

Generates tokens from data provided by a Reader.

Meta