1YAML::Parser(3) User Contributed Perl Documentation YAML::Parser(3)
2
3
4
6 YAML::Parser - Generated Reference Parser for YAML 1.2
7
9 This document describes YAML::Parser version 0.0.5.
10
12 To get a set of event objects:
13
14 my @events = YAML::Parser->new->parse($yaml_string)->events;
15
16 To get the yaml-test-suite event output string:
17
18 my $receiver = PerlYamlReferenceParserTestReceiver->new;
19 my $output = YAML::Parser->new(receiver => $receiver)
20 ->parse($yaml_string)
21 ->receiver
22 ->output;
23
25 YAML::Parser is the first 100% YAML 1.2 spec compliant parser for Perl.
26 The Perl code is generated directly from the YAML 1.2 specification.
27
29 • <https://github.com/yaml/yaml-reference-parser/tree/master#readme>
30
31 • <https://github.com/yaml/yaml-grammar/blob/master/yaml-spec-1.2.yaml>
32
33 • <https://yaml.org/spec/1.2/spec.html#id2770814>
34
35 • <https://github.com/yaml/yaml-test-suite/tree/master/test>
36
38 Ingy döt Net <ingy@cpan.org>
39
41 Copyright 2020-2021. Ingy döt Net.
42
43 This program is free software; you can redistribute it and/or modify it
44 under the same terms as Perl itself.
45
46 See <http://www.perl.com/perl/misc/Artistic.html>
47
48
49
50perl v5.36.0 2022-07-22 YAML::Parser(3)