sha256 650e7a5510fd50ed51fbf41aa56933dccebf57c5054aff96f70bf65e2f1f9afe
---
# c1
- # c2
!foo
# c3
- false # c4
# c5
- # c6
!!map
# c7
? &a1 "\x33\x41\x2E\x2E\x42\x48\x65"
: .nan # c8
# c9
- *a1 # c10
# c11
- # c12
!
# c13
? 1_000
: ! "\x20" # c14
# c15
- # c16
# c17
? "\x21\x61"
: >4-
- a
# c18
? "\x21\x61"
: >4-
aliased
| grammar | valid, vouched for up to construct |
| key/duplicate | reject from parse on, 3.2.1.1: it is an error for two equal keys to appear in the same mapping node |
| features | break/crlf node/alias node/anchor node/tag-local node/tag-non-specific node/tag-shorthand presentation/block-folded presentation/block-indicator presentation/comment-above presentation/comment-inline presentation/document-marker presentation/escape-hex presentation/explicit-key presentation/plain presentation/property-line presentation/quoted-double presentation/tab-separation value/bool value/float value/float-special value/mapping value/non-string-key value/sequence value/string |
| meaning (none stated) | |
go-yaml
refuse by the loader
libfyaml yaml.v3
refuse by the parser
perlref yamlstar
accept
yamlstar
No source answered.
| parser | verdict | value | round trip | reason | message |
|---|---|---|---|---|---|
| perlref | accepted accept | n/i | n/i | key/duplicate: the grammar has no production against a key written twice, and the reference parser implements the grammar alone, so it does not check this settled rule | |
| libfyaml | rejected, explained refuse by the parser | not scored | n/i | tab-after-explicit-key: fy-tool rejects the ':' of an explicit entry whose '?' a tab follows: "?\ta\n: b" is rejected, where s-separate takes the tab before a scalar key | stdin:20:5: error: Indentation used tabs for ':' indicator |
| yamlstar | accepted accept | not scored | n/i | key/duplicate: the loader does not check this settled rule: it keeps the last value of a key written twice, so "a: 1\na: 2" loads as {"a": 2} | |
| yaml.v3 | rejected, settled refuse by the parser | not scored | refused | key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node | yaml.v3: yaml: line 3: found character that cannot start any token |
| go-yaml | rejected, settled refuse by the loader | not scored | refused | key/duplicate: 3.2.1.1: it is an error for two equal keys to appear in the same mapping node | [12:11] JSON has no number for .nan |
Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.