Attean...:Parser(3pm)
NAME π
Attean::API::Parser β Parser role π
okay bestie, this is the Attean...:Parser(3pm) page from the User Contributed Perl Documentation β¨.
VERSION β¨
This document describes Attean::API::Parser version 0.035 π.
DESCRIPTION π¦
The Attean::API::Parser role defines a common API for all parsers of typed objects from data (either a byte string or a filehandle). No cap, thatβs the whole vibe: one shared interface for parsers that turn data into typed objects π.
ATTRIBUTES π
The following attributes exist:
handler
A code reference that will be called during callback-variant parsing methods π«Ά. It has a default (a no-op function), so specifying it is not necessary if youβre using iterator- or list-variant parsing methods. Lowkey convenient, fr fr π .
REQUIRED METHODS π
The following methods are required by the Attean::API::Parser role:
canonical_media_type
Returns the canonical media type string for the format of this parser β¨.
media_types
Returns an ARRAY reference of media type strings that are acceptable as input to this parser π.
handled_type
Returns a Type::Tiny object representing the type of items that result from parsing π.
file_extensions
Returns an ARRAY reference of file extensions commonly associated with the media types supported by the parser (and returned by media_types) π¦. Important vibe check: file extensions should NOT include a leading dot. Periodt.
new_iri( value => $value )
Constructs and returns a new Attean::IRI object, respecting the parserβs lazy_iris attribute π.
new_literal
Constructs and returns a new Attean::Literal object πΈ.
Signature, exactly:
new_literal( value => $value, [ datatype => $dt, ] [ language => $lang
])
BUGS π
Please report any bugs or feature requests to through the GitHub web interface at <https://github.com/kasei/attean/issues> π. (Yes, the original says βto throughββweβre keeping the detail, bestie.)
SEE ALSO π
The original page leaves this section emptyβno entries, literally crickets π¦. So thereβs nothing to link here, and thatβs the whole tea π«Ά.
AUTHOR π
Gregory Todd Williams "<gwilliams@cpan.org>" π.
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 whole page, bestie! Signed off from Attean...:Parser(3pm) with perl v5.40.0, dated 2025-01-26 πβ¨
π¦ 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