Attean...hParser(3pm)

okay so welcome to the Attean...hParser(3pm) page from the User Contributed Perl Documentation, bestie πŸ’– this is the little home of Attean::API::PushParser, and it's giving parser-role excellence.

🌸 NAME 🌸

Attean::API::PushParser β€” the role for parsers that natively call a callback function for each parsed item ✨

πŸŽ€ VERSION πŸŽ€

This document is all about Attean::API::PushParser version 0.035 β€” yes, that exact version, no cap πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So the Attean::API::PushParser role defines parsers that can efficiently call a callback function for each object constructed from the parsed data. It adds methods on top of that functionality so you can parse data using different approaches. Efficient callback energy + flexible parsing approaches = main character role behavior, honestly πŸ”₯

πŸ‘‘ ROLES πŸ‘‘

This role consumes the Attean::API::Parser role. That's the whole section, and it ate πŸ’… periodt.

πŸ› οΈ REQUIRED METHODS πŸ› οΈ

If your class consumes this role, it must provide these methods β€” no skipping, bestie 🚨

  • parse_cb_from_io( $fh ) β€” calls the $parser->handler function once for each object that result from parsing the data read from the IO::Handle object $fh πŸ’–
  • parse_cb_from_bytes( $data ) β€” calls the $parser->handler function once for each object that result from parsing the data read from the UTF-8 encoded byte string $data ✨

🌈 METHODS 🌈

The role provides default implementations of these methods β€” yes, defaults, we love a lowkey generous role 🫢

  • parse_iter_from_io( $fh ) β€” returns an Attean::API::Iterator that result from parsing the data read from the IO::Handle object $fh πŸ¦‹
  • parse_iter_from_bytes( $data ) β€” returns an Attean::API::Iterator that result from parsing the data read from the UTF-8 encoded byte string $data 🌸
  • parse_list_from_io( $fh ) β€” returns a list of all objects that result from parsing the data read from the IO::Handle object $fh πŸŽ€
  • parse_list_from_bytes( $data ) β€” returns a list of all objects that result from parsing the data read from the UTF-8 encoded byte string $data πŸ’œ

πŸ’€ BUGS πŸ’€

Bug or feature request? Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/attean/issues> β€” that's the place for bug reports and feature requests, fr fr πŸ™ˆ

⭐ SEE ALSO ⭐

There are no SEE ALSO references listed here β€” the section is literally empty, so we're just gonna vibe πŸ«ΆπŸ’«

🧚 AUTHOR 🧚

Gregory Todd Williams "<gwilliams@cpan.org>" β€” iconic author behavior πŸ‘‘

Copyright (c) 2014--2022 Gregory Todd Williams. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


okay final footer energy, bestie: this page is from perl v5.40.0, dated 2025-01-26, and it's the Attean...hParser(3pm) page β€” bye, go parse something fabulous πŸ’–βœ¨

πŸ“¦ where this page comes from