extension PureYAML.Parsing.LibYAML { /// A scanner token kind, mirroring `yaml_token_type_t`. The flow-collection, /// anchor, tag, alias, and directive kinds are added as their fetchers are /// ported; the block + plain-scalar core is present. enum TokenType: Equatable { case streamStart case streamEnd case documentStart case documentEnd case blockSequenceStart case blockMappingStart case blockEnd case blockEntry case flowSequenceStart case flowMappingStart case flowSequenceEnd case flowMappingEnd case flowEntry case key case value case versionDirective(major: Int, minor: Int) case tagDirective(handle: String, prefix: String) case reservedDirective case anchor(name: String) case alias(name: String) case tag(handle: String, suffix: String) case scalar(value: String, style: PureYAML.Parsing.ScalarStyle) } }