YAML::Parser(3)

πŸ“¦
version 0.0.5 Β· 2 versions
, in fedora 43

✨ NAME ✨

okay bestie, meet YAML::Parser β€” the Generated Reference Parser for YAML 1.2 πŸ’– it lives in the User Contributed Perl Documentation section, and yes, that's the whole flex.


πŸŽ€ VERSION πŸŽ€

this doc is describing YAML::Parser version 0.0.5. that's the one. no cap. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

so like, you wanna get a set of event objects? bet:

my @events = YAML::Parser->new->parse($yaml_string)->events;

and if what you actually want is the yaml-test-suite event output string πŸ‘‘:

my $receiver = PerlYamlReferenceParserTestReceiver->new;
my $output = YAML::Parser->new(receiver => $receiver)
 ->parse($yaml_string)
 ->receiver
 ->output;

it's giving method chaining, it's giving main character energy, we love to see it πŸ’…


🌸 DESCRIPTION 🌸

okay so YAML::Parser is the first 100% YAML 1.2 spec compliant parser for Perl πŸŽ‰πŸ† literally the moment. not "mostly compliant", not "compliant-ish", we said 100% and we meant it fr fr.

and the way it works? the Perl code is generated directly from the YAML 1.2 specification ✨ so the spec IS the source of truth, periodt.


πŸ’œ SEE πŸ’œ

go be nosy, bestie, all the receipts are right here 🫢:


πŸ‘‘ AUTHOR πŸ‘‘

shoutout to Ingy dΓΆt Net <ingy@cpan.org> β€” icon behavior, truly πŸ’–


Copyright 2020-2021. Ingy dΓΆt Net.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See <http://www.perl.com/perl/misc/Artistic.html>


and that's a wrap, bestie πŸ’… this page shipped with perl v5.42.0 and it's dated 2025-07-25, so like… go forth and parse some YAML, you absolute legend πŸŒˆβœ¨πŸ¦‹
πŸ“¦ where this page comes from