{ $description "yaml_parser_parse returned with status 0. The slots of this error give more information." } ;
HELP:yaml-no-document
{ $description "The input of " { $link yaml> } " had no documents." } ;
HELP:yaml-undefined-anchor
{ $values
{ "anchor"string } { "anchors"sequence }
}
{ $description "The document references an undefined anchor " { $snippet "anchor" } ". For information, the list of currently defined anchors in the document is " { $snippet "anchors" } "." } ;
ARTICLE: "yaml-mapping""Mapping between Factor and YAML types"
{ $heading "Types mapping" }
"The rules in the table below are used to convert between yaml and factor objects."
" They are based on " { $url "http://www.yaml.org/spec/1.2/spec.html" } ", section \"10.3. Core Schema\" and " { $url "http://yaml.org/type/" } ", adapted to factor's conventions."
{ $table
{ { $snippet "yaml" } { $snippet "factor" } }
{ { $snippet "scalars" } "" }
{ "!!null" { $link f } }
{ "!!bool" { $link boolean } }
{ "!!int" { $link integer } }
{ "!!float" { $link float } }
{ "!!str" { $link string } }
{ "!!binary" { $link byte-array } }
{ "!!timestamp""Not supported yet" }
{ { $snippet "sequences" } "" }
{ "!!seq" { $link array } }
{ "!!omap" { $link linked-assoc } }
{ "!!pairs" { $link "alists" } }
{ { $snippet "mappings" } "" }
{ "!!map" { $link hashtable } }
{ "!!set" { $link hash-set } }
}
{ $heading "YAML to Factor Round Tripping" }
"The following YAML types are not preserved:"
{ $list
{ "!!null -> " { $link boolean } " -> !!bool" }
{ "!!pairs -> " { $link "alists" } " -> !!seq" }
}
{ $heading "Factor to YAML Round Tripping" }
"The following Factor types are not preserved, unless another type has precedence:"
"LibYAML exposes error when parsing/emitting yaml. See " { $url "http://pyyaml.org/wiki/LibYAML" } ". More information is available directly in pyyaml's source code in their C interface. They are groupped in the following errors:"
{ $list
{ $link libyaml-parser-error }
{ $link libyaml-emitter-error }
{ $link libyaml-initialize-error }
}
{ $heading "Conversion errors" }
"Additional errors are thrown when converting to/from factor objects:"
{ $list
{ $link yaml-undefined-anchor }
{ $link yaml-no-document }
"Or many errors thrown by library words (eg unparseable numbers, converting unsupported objects to yaml, etc)"
}
{ $heading "Bugs" }
"The following error probably means that there is a bug in the implementation: " { $link yaml-unexpected-event }
"The " { $vocab-link "yaml" } " vocabulary implements YAML serialization/deserialization. It uses LibYAML, a YAML parser and emitter written in C (" { $url "http://pyyaml.org/wiki/LibYAML" } ")."