Attean...eParser(3pm)
Attean::API::AtOnceParser is the main character of this page from the User Contributed Perl Documentation, 3pm section. Let's get into it, bestie. π«Ά
π NAME π
Attean::API::AtOnceParser β a role for parsers that natively parse all input before returning any data.
πΈ VERSION πΈ
This page describes Attean::API::AtOnceParser version 0.035, no cap.
β¨ DESCRIPTION β¨
The Attean::API::AtOnceParser role defines parsers that have to parse all the input data before any objects are constructed and returned, or passed to callback functions. It's giving "finish the whole snack before sharing," honestly. π
This role adds methods that build on that all-at-once functionality so you can parse data using different approaches. Obsessed with the flexibility, lowkey. β¨
π ROLES π
This role consumes the Attean::API::Parser role. Periodt. π
π§ REQUIRED METHODS π§
Any class consuming this role must provide the following methods, fr fr:
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.
π METHODS π
This role provides default implementations of the following methods:
parse_iter_from_io( $fh )β returns anAttean::API::Iteratorthat results from parsing the data read from theIO::Handleobject$fh.parse_iter_from_bytes( $data )β returns anAttean::API::Iteratorthat results from parsing the data read from the UTF-8 encoded byte string$data.parse_cb_from_io( $fh )β calls the$parser->handlerfunction once for each object that results from parsing the data read from theIO::Handleobject$fh.parse_cb_from_bytes( $data )β calls the$parser->handlerfunction once for each object that results from parsing the data read from the UTF-8 encoded byte string$data.
π BUGS π
Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/attean/issues>. The maintainers wanna hear it, bestie β don't gatekeep the bug reports. π¦
π SEE ALSO π
The original page has this heading but lists no entries under it. So, like, nothing extra to link here β but we keep the section because structure is iconic. π
π AUTHOR π
Gregory Todd Williams "<gwilliams@cpan.org>" β yes, that's the author credit, exactly as written. π
π 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 that's the page! footer vibes: perl v5.40.0, dated 2025-01-26, on the Attean...eParser(3pm) page. byeee π
π¦ 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