1Attean::API::Parser(3)User Contributed Perl DocumentationAttean::API::Parser(3)
2
3
4

NAME

6       Attean::API::Parser - Parser role
7

VERSION

9       This document describes Attean::API::Parser version 0.025
10

DESCRIPTION

12       The Attean::API::Parser role defines a common API for all parsers of
13       typed objects from data (either a byte string or a filehandle).
14

ATTRIBUTES

16       The following attributes exist:
17
18       "handler"
19           A code reference that will be called during callback-variant
20           parsing  methods.  This attribute has a default (no-op function),
21           so specifying it is not necessary if using iterator- or list-
22           variant parsing methods.
23

REQUIRED METHODS

25       The following methods are required by the Attean::API::Parser role:
26
27       "canonical_media_type"
28           Returns the canonical media type string for the format of this
29           parser.
30
31       "media_types"
32           Returns an ARRAY reference of media type strings that are
33           acceptable as input to this parser.
34
35       "handled_type"
36           Returns a Type::Tiny object representing the type of items that
37           result from parsing.
38
39       "new_iri( value => $value )"
40           Constructs and returns a new Attean::IRI object, respecting the
41           parser's "lazy_iris" attribute.
42

BUGS

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

SEE ALSO

AUTHOR

49       Gregory Todd Williams  "<gwilliams@cpan.org>"
50
52       Copyright (c) 2014--2019 Gregory Todd Williams.  This program is free
53       software; you can redistribute it and/or modify it under the same terms
54       as Perl itself.
55
56
57
58perl v5.30.1                      2020-01-29            Attean::API::Parser(3)
Impressum