sha256 2bf1d73f0cda31554961cb8560df952b7dcc17306a0f70a1c727851ff500fa50
!foo
# c1
'base':
&m1
# c2
'b0': 0
# c3
'item':
# c4
!!merge <<:
# c5
- *m1
# c6
-
# c7
!!str 'c0': 6
# c8
'd0': !!int 8
| grammar | valid, vouched for up to construct |
| encoding/bom | open from parse on: each parser's stance decides |
| features | encoding/byte-order-mark node/alias node/anchor node/tag-local node/tag-shorthand presentation/comment-above presentation/plain presentation/property-line presentation/quoted-single presentation/tab-separation value/int value/mapping value/merge-key value/non-string-key value/sequence |
| meaning (yaml-1.2-core) | {"base":{"b0":0},"item":{"b0":0,"c0":6,"d0":8}} |
go-yaml libfyaml
accept
perlref yaml.v3 yamlstar
refuse by the parser
go-yaml
{"base":{"b0":0},"item":{"b0":0,"c0":6,"d0":8}}libfyaml
{"base":{"b0":0},"item":{"\u003c\u003c":[{"b0":0},{"c0":6}],"d0":8}}
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| 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 | different, explained | n/i | value: explicit-merge-not-applied: the Python binding does not apply the merge key, even under an explicit !!merge tag, and keeps "<<" as a plain key | |
| 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 | rejected, explained refuse by the parser | rejected, explained | refused | tab-as-separation: yaml.v3 rejects a tab after a block indicator or before the node on a line, where s-separate-in-line takes a tab: "-\tfalse" and "?\ta" reject the document value: tab-as-separation: yaml.v3 rejects a tab after a block indicator or before the node on a line, where s-separate-in-line takes a tab: "-\tfalse" and "?\ta" reject the document |
yaml.v3: yaml: line 12: found character that cannot start any token |
| go-yaml | accepted accept | ok | same |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.