generated/1997/alias renamed to nothing

sha256 f7fc715be6f61b0f181500f713a7cf2c2f0bd4b5d78464c817e145e8efe48c1b

Document

%YAML 1.1
%TAG !n-1! tag:yaml.org,2002:
---
# c1
base:
      &m1
      # c2
      b0: -7
# c3
!foo item:
      # c4
      !n-1!merge <<: *unanchored
      # c5
      d0: -3

Corpus

grammarvalid, vouched for up to construct
anchor/alias-undefinedreject from compose on, 7.1: an alias refers to the most recent preceding node having the given anchor, and there is none
featuresnode/alias node/anchor node/tag-handle node/tag-local presentation/comment-above presentation/document-marker presentation/plain presentation/property-line presentation/tag-directive presentation/yaml-directive value/int value/mapping value/merge-key value/non-string-key
meaning (none stated)

Answer groups

verdict split

go-yaml yaml.v3

refuse by the composer

libfyaml

accept, then the loader refuses past parse

perlref

accept

yamlstar

refuse by the loader

value

No source answered.

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml accepted refuse by the loader not scored n/i ValueError: Failed to parse YAML/JSON
yamlstar rejected, settled refuse by the loader not scored n/i anchor/alias-undefined: 7.1: an alias refers to the most recent preceding node having the given anchor, and there is none Error: Unknown tag: !foo
yaml.v3 rejected, settled refuse by the composer not scored refused anchor/alias-undefined: 7.1: an alias refers to the most recent preceding node having the given anchor, and there is none yaml.v3: yaml: unknown anchor 'unanchored' referenced
go-yaml rejected, settled refuse by the composer not scored refused anchor/alias-undefined: 7.1: an alias refers to the most recent preceding node having the given anchor, and there is none [12:23] could not find alias "unanchored"

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.