YAML Framework Matrix

Test #F2C7 - Anchors and Tags

YAML

 - &a !!str a
 - !!int 2
 - !!int &c 4
 - &d d

Expected Events

+STR
+DOC
+SEQ
=VAL &a <tag:yaml.org,2002:str> :a
=VAL <tag:yaml.org,2002:int> :2
=VAL &c <tag:yaml.org,2002:int> :4
=VAL &d :d
-SEQ
-DOC
-STR

Expected JSON



cpp-event

 ok

java-event

 ok

java-json

 n/a
[
  "a",
  2,
  4,
  "d"
]

js-yaml-json

 n/a
[
  "a",
  2,
  4,
  "d"
]

libyaml-event

 ok

luajit-json

 n/a
["a",2,4,"d"]

nimyaml-event

 ok

perl5-pegex-event

 ok

perl5-pm-json

 n/a
["a",2,4,"d"]

perl5-pm-pl

 n/a
[
  'a',
  2,
  4,
  'd'
]

perl5-pp-event

 ok

perl5-pp-json

 n/a
[
   "a",
   2,
   4,
   "d"
]

perl5-pp-pl

 n/a
[
  'a',
  2,
  4,
  'd'
]

perl5-syck-json

 n/a
["a",2,4,"d"]

perl5-syck-pl

 n/a
[
  'a',
  2,
  4,
  'd'
]

perl5-tiny-json

 error
YAML::Tiny found bad indenting in line ' - &a !!str a' 

perl5-tiny-pl

 error
YAML::Tiny found bad indenting in line ' - &a !!str a' 

perl5-xs-json

 error
YAML::XS Error: bad tag found for scalar: 'tag:yaml.org,2002:str' 

perl5-xs-pl

 error
YAML::XS Error: bad tag found for scalar: 'tag:yaml.org,2002:str' 

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 n/a
["a",2,4,"d"]