Error records were redefined:
o #yaml_invalid_option{}
o #yaml_parsing_error{}
An exception now has always the form:
#yaml_exception{errors = [
#yaml_invalid_option{} | #yaml_parsing_error{}
]}
This new #yaml_exception{} record is public and can be accessed
directly. But the yaml_errors module provides functions to get only
errors or warnings.
The document version can be forced using the following option:
{doc_version, {Major, Minor}}
where Major and Minor are positive integers.
When this option is specified, {Major, Minor} will be used, even if a
%YAML directive indicates another version.
This parser is written against the YAML 1.2 specification. It may
therefore be used as a JSON parser as well.
The project is an Erlang application. The module "yaml_parser" parses a
YAML source (a string, a file, whatever) and runs a callback function
for each token scanned. It's more or less like a SAX XML parser.
The testsuite provided isn't complete yet, though it contains all the
example found in the specification.