NAME
YAML::LibYAML::API - Wrapper around the C libyaml library
SYNOPSIS
use YAML::LibYAML::API::XS;
my $version = YAML::LibYAML::API::XS::libyaml_version();
my $yaml = <<'EOM';
---
foo: &ALIAS bar
'alias': *ALIAS
tag: !!int 23
list:
- "doublequoted"
- >
folded
- |-
literal
EOM
my $events = [];
YAML::LibYAML::API::XS::parse_string_events($yaml, $events);
# or:
YAML::LibYAML::API::XS::parse_file_events($filename, $events);
YAML::LibYAML::API::XS::parse_filehandle_events($fh, $events);
DESCRIPTION
This module provides a thin wrapper around the C libyaml API. Currently it only provides functions for getting a list of parsing events for an input string, file or file handle. Functions for emitting and the document loading API are still todo.
This is just one of the first releases. The function names will eventually be changed.
libyaml-dev
has to be installed. It might be included in a future release.
SEE ALSO
AUTHOR
Tina Müller <tinita@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2018 by Tina Müller
This library is free software and may be distributed under the same terms as perl itself.