generated/975

sha256 5718ab6080928bbd86b3355c9470db779087e69a6ddb9c6137f8bc5abb5e70ab

Document

%YAML 1.1
%TAG !e! tag:yaml.org,2002:
---
# c1
? base
:
      &m4
      # c2
      ? o9
      : -2
# c3
? o
:
      !e!omap &m3
      # c4
      -
            # c5
            ? o0
            : -5
      # c6
      -
            # c7
            ? o1
            : -9
      # c8
      -
            # c9
            ? <<
            :
                  # c10
                  ? o9
                  : 7
      # c11
      -
            # c12
            ? o2
            : 0
      # c13
      -
            # c14
            ? o8
            : *m4
# c15
? again
: *m3
# c16
? p
:
      !e!pairs
      # c17
      -
            # c18
            ? p0
            : 1
      # c19
      -
            # c20
            ? p0
            : 2
# c21
? s
:
      !e!set
      # c22
      ? s0
      : Null
      # c23
      ? s1
      : Null

Corpus

grammarvalid, vouched for up to construct
representation/ordered-mapopen from construct on: each parser's stance decides
featuresbreak/crlf node/alias node/anchor node/tag-handle presentation/comment-above presentation/document-marker presentation/explicit-key presentation/plain presentation/property-line presentation/tag-before-anchor presentation/tag-directive presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/null value/sequence
meaning (yaml-1.2-core){"again":{"o0":-5,"o1":-9,"o9":7,"o2":0,"o8":{"o9":-2}},"base":{"o9":-2},"o":{"o0":-5,"o1":-9,"o9":7,"o2":0,"o8":{"o9":-2}},"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null}}

Answer groups

verdict

go-yaml libfyaml perlref yaml.v3 yamlstar

accept

value split

go-yaml

{"again":{"o0":-5,"o1":-9,"o2":0,"o8":{"o9":-2},"o9":7},"base":{"o9":-2},"o":{"o0":-5,"o1":-9,"o2":0,"o8":{"o9":-2},"o9":7},"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null}}

libfyaml

{"again":{"o0":-5},"base":{"o9":-2},"o":[{"o0":-5},{"o1":-9},{"o9":7},{"o2":0},{"o8":{"o9":-2}}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null}}

yaml.v3 yamlstar

{"again":[{"o0":-5},{"o1":-9},{"o9":7},{"o2":0},{"o8":{"o9":-2}}],"base":{"o9":-2},"o":[{"o0":-5},{"o1":-9},{"o9":7},{"o2":0},{"o8":{"o9":-2}}],"p":[{"p0":1},{"p0":2}],"s":{"s0":null,"s1":null}}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted accept different, explained n/i value: ordered-map-as-sequence: the Python binding has no ordered map, and returns !!omap as a sequence of one-pair mappings
yamlstar accepted accept different, explained n/i value: merge-key-applied: the loader 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
yaml.v3 accepted accept different, explained same 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.