generated/2950

sha256 cda9b5bcc963a5619801ba4b96804f8a9343f988e56b93be8f7d4adddfb1515f

Document

%YAML 1.1
---
# c1
base: &m4	# c2
 # c3
 o9:	-7	# c4
# c5
o: !!omap	# c6
 # c7
 -	# c8
  # c9
  o0:	0	# c10
 # c11
 -	# c12
  # c13
  <<:	*m4	# c14
 # c15
 -	# c16
  # c17
  o8:	*m4	# c18
# c19
p: !!pairs	# c20
 # c21
 -	# c22
  # c23
  p0:	1	# c24
 # c25
 -	# c26
  # c27
  p0:	2	# c28
# c29
s: !!set	# c30
 # c31
 s0:	Null	# c32

Corpus

grammarvalid, vouched for up to construct
representation/ordered-mapopen from construct on: each parser's stance decides
featuresnode/alias node/anchor node/tag-shorthand presentation/comment-above presentation/comment-inline presentation/document-marker presentation/plain presentation/tab-separation presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key value/null value/sequence
meaning (yaml-1.2-core){"base":{"o9":-7},"o":{"o0":0,"o9":-7,"o8":{"o9":-7}},"p":[{"p0":1},{"p0":2}],"s":{"s0":null}}

Answer groups

verdict split

go-yaml libfyaml perlref yamlstar

accept

yaml.v3

refuse by the parser

value split

go-yaml

{"base":{"o9":-7},"o":{"o0":0,"o8":{"o9":-7},"o9":-7},"p":[{"p0":1},{"p0":2}],"s":{"s0":null}}

libfyaml yamlstar

{"base":{"o9":-7},"o":[{"o0":0},{"o9":-7},{"o8":{"o9":-7}}],"p":[{"p0":1},{"p0":2}],"s":{"s0":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 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 10: 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.