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->handlerfunction once for each object that result from parsing the data read from theIO::Handleobject$fhπparse_cb_from_bytes( $data )β calls the$parser->handlerfunction 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 anAttean::API::Iteratorthat result from parsing the data read from theIO::Handleobject$fhπ¦parse_iter_from_bytes( $data )β returns anAttean::API::Iteratorthat 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 theIO::Handleobject$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 π
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
- debian trixie: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libattean-perl 0.035-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms