Subject: | No support for language-independent types |
Support for !!omap/!!map/!!pairs/!!bool etc is missing and generates an
error (bad tag found for scalar: 'tag:yaml.org,2002:bool' etc)
A dumb patch can be done at line 297 of perl_libyaml.c, which is only
slightly cleverer than s/!!omap/!Data::Omap/g in that it only changes
actual tags:
...
if (tag && strEQ(tag, TAG_PERL_PREFIX "array"))
tag = NULL;
+ if (tag && strEQ(tag, "tag:yaml.org,2002:omap"))
+ tag = "!Data::Omap";
+ if (tag && strEQ(tag, "tag:yaml.org,2002:pairs"))
+ tag = "!Data::Pairs";
if (tag) {
...
but that doesn't fix writing the yaml, only reading it, and I'm sure
the code could be better (and Data::Omap is sub-optimal :-))
I'm also sure that support will fall out from Ingy's work on the PyYAML
port :-)