Attean...lParser(3pm)

πŸ’– NAME πŸ’–

This is the Attean...lParser(3pm) page from User Contributed Perl Documentation, and the star of the show is Attean::API::PullParser β€” role for parsers that natively return an iterator ✨.

πŸŽ€ VERSION πŸŽ€

This document describes Attean::API::PullParser version 0.035 πŸ’….

🌸 DESCRIPTION 🌸

The Attean::API::PullParser role defines parsers that can efficiently construct and return an iterator of the parsed data. This role adds methods that build on this functionality so you can parse data using different approaches. Lowkey iconic πŸ¦‹.

🌈 ROLES 🌈

This role consumes the Attean::API::Parser role. Periodt πŸ‘‘.

✨ REQUIRED METHODS ✨

Classes consuming this role must provide the following methods, no cap:

  • 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 🌸.

πŸ’… METHODS πŸ’…

This role provides default implementations of the following methods β€” it's giving helpful bestie energy:

  • 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 πŸŽ€.
  • 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 πŸ›

Please report any bugs or feature requests through the GitHub web interface at <https://github.com/kasei/attean/issues> 🫢.

πŸ‘€ SEE ALSO πŸ‘€

Nothing is listed here in the original, so there are no extra references to chase β€” it's giving minimalist πŸ’€.

πŸ‘‘ AUTHOR πŸ‘‘

Gregory Todd Williams <gwilliams@cpan.org> πŸ’œ.

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. πŸŽ€


Source/version/date check at the very end: User Contributed Perl Documentation for Attean...lParser(3pm), perl v5.40.0, dated 2025-01-26 β€” slay and goodbye, bestie πŸ’–βœ¨.

πŸ“¦ where this page comes from