generated/1489

sha256 44a9b19ea134650fbda2f3be6d209704ffb49f47b3fb4bf5627f2acca56067a3

Document

{? base: &m1 {? b0: -4, ? b1: -8, ? b2: 0x5}, ? !foo item: {? <<: !!map {? c0: 0x1, ? c1: 0x4}, ? d0: -1, ? d1: 0x5, ? b0: !!int 0x63}}

Corpus

grammarvalid, vouched for up to construct
encoding/bomopen from parse on: each parser's stance decides
featuresencoding/byte-order-mark node/anchor node/tag-local node/tag-shorthand presentation/explicit-key presentation/flow-collection presentation/number-hex presentation/plain value/int value/mapping value/merge-key value/non-string-key
meaning (yaml-1.2-core){"base":{"b0":-4,"b1":-8,"b2":5},"item":{"\u003c\u003c":{"c0":1,"c1":4},"b0":99,"d0":-1,"d1":5}}

Answer groups

verdict split

go-yaml libfyaml yaml.v3

accept

perlref yamlstar

refuse by the parser

value split

go-yaml libfyaml

{"base":{"b0":-4,"b1":-8,"b2":5},"item":{"\u003c\u003c":{"c0":1,"c1":4},"b0":99,"d0":-1,"d1":5}}

yaml.v3

{"base":{"b0":-4,"b1":-8,"b2":5},"item":{"b0":99,"c0":1,"c1":4,"d0":-1,"d1":5}}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref rejected, explained refuse by the parser n/i n/i bom-before-content: the parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document
libfyaml accepted accept ok n/i
yamlstar rejected, explained refuse by the parser rejected, explained n/i bom-before-content: the reference parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document
value: bom-before-content: the reference parser takes a byte order mark before "---", a directive, a space or a break, and rejects one right before content or a comment, where [202] l-document-prefix takes it: "\ufeffa: 1" rejects the document
Error: parse: Parser finished before end of input
yaml.v3 accepted accept different, explained different
document 0

written

base:
    b0: -4
    b1: -8
    b2: 5
item:
    b0: 99
    c0: 1
    c1: 4
    d0: -1
    d1: 5

read back

{"base":{"b0":-4,"b1":-8,"b2":5},"item":{"b0":99,"c0":1,"c1":4,"d0":-1,"d1":5}}
value: merge-key-applied: yaml.v3 applies the 1.1 merge key: it merges the mapping under "<<" into the mapping that holds it, where the core schema keeps "<<" as a plain key
go-yaml accepted accept ok same

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.