sha256 745c0d0f0109c87736f929e3555cc4eae87975ad8cc72410fe07967396c24794
# c1
base|: &m4 {o9: -5}
# c2
o: &m3 !!omap [{<<: *m4}, {o0: -4}, {o1: 0o2}]
# c3
again: *m3
# c4
!foo p: !!pairs [{p0: 0o1}, {p0: 0o2}]
# c5
!!str s: !!set {s0: , s1: , s2: }
| grammar | valid, vouched for up to parse |
| tags | none |
| features | none |
| meaning (none stated) | |
go-yaml libfyaml yaml.v3
accept
perlref yamlstar
refuse by the parser
go-yaml
{"again":{"\u003c\u003c":{"o9":-5},"o0":-4,"o1":2},"base|":{"o9":-5},"o":{"\u003c\u003c":{"o9":-5},"o0":-4,"o1":2},"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null,"s2":null}}libfyaml
{"again":{"\u003c\u003c":{"o9":-5}},"base|":{"o9":-5},"o":[{"\u003c\u003c":{"o9":-5}},{"o0":-4},{"o1":2}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null,"s2":null}}yaml.v3
{"again":[{"o9":-5},{"o0":-4},{"o1":2}],"base|":{"o9":-5},"o":[{"o9":-5},{"o0":-4},{"o1":2}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null,"s2":null}}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | rejected, explained refuse by the parser | n/i | n/i | lone-cr-break: the parser takes a lone CR as a line break in some places and not in others: "x\r\r", "x\r# c", "!foo\r- a", "\r!" and an empty line written "\n\r" reject the document, where [28] b-break takes a lone CR. Any valid document holding a lone CR is covered, so a defect of another kind in such a document is hidden | |
| libfyaml | accepted accept | not scored | n/i | ||
| yamlstar | rejected, explained refuse by the parser | not scored | n/i | lone-cr-break: the reference parser takes a lone CR as a line break in some places and not in others: "x\r\r", "x\r# c", "!foo\r- a", "\r!" and an empty line written "\n\r" reject the document, where [28] b-break takes a lone CR. Any valid document holding a lone CR is covered, so a defect of another kind in such a document is hidden | Error: parse: Parser finished before end of input |
| yaml.v3 | accepted accept | not scored | differentdocument 0written again:
- o9: -5
- o0: -4
- o1: 2
base|:
o9: -5
o:
- o9: -5
- o0: -4
- o1: 2
p:
- p0: 1
- p0: 2
s:
s0: null
s1: null
s2: null
read back {"again":[{"o9":-5},{"o0":-4},{"o1":2}],"base|":{"o9":-5},"o":[{"o9":-5},{"o0":-4},{"o1":2}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null,"s2":null}} |
||
| go-yaml | accepted accept | not scored | same |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.