generated/2368

sha256 e7153ec0df1d5b267184f20d07925df5d3276079041dc72feeaa728b00036750

Document

%YAML 1.2
---
&a1 >-
  D1#3

Corpus

grammarvalid, vouched for up to construct
encoding/bomopen from parse on: each parser's stance decides
featuresbreak/cr encoding/byte-order-mark node/anchor presentation/block-folded presentation/document-marker presentation/yaml-directive value/string
meaning (yaml-1.2-core)"D1#3"

Answer groups

verdict split

go-yaml libfyaml perlref yamlstar

accept

yaml.v3

refuse by the parser

value split

go-yaml libfyaml

"D1#3"

yamlstar

"  D1#3"

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept ok n/i
yamlstar accepted accept different, explained n/i value: block-scalar-lone-cr: in a block scalar broken by lone CRs, the reference parser keeps the first space of the indentation as content: "a: |\r x\r" gives " x\n" for "x\n"
yaml.v3 rejected, explained refuse by the parser rejected, explained refused yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
value: yaml-directive-1.1-only: yaml.v3 accepts a %YAML directive for version 1.1 only, so "%YAML 1.2" rejects the document
yaml.v3: yaml: found incompatible YAML document
go-yaml accepted accept ok same

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