Type::Parser - Online Linux Manual Page
Section : 3pm
Updated : 2021-02-24
Source : perl v5.32.1
Note : User Contributed Perl Documentation
NAMEType::Parser − parse type constraint strings
SYNOPSIS use v5.10;
use strict;
use warnings;
use Type::Parser qw( eval_type );
use Type::Registry;
my $reg = Type::Registry−>for_me;
$reg−>add_types("Types::Standard");
my $type = eval_type("Int | ArrayRef[Int]", $reg);
$type−>check(10); # true
$type−>check([1..4]); # true
$type−>check({foo=>1}); # false
STATUSThis module is covered by the Type-Tiny stability policy.
DESCRIPTIONGenerally speaking, you probably don't want to be using this module directly. Instead use the lookup method from Type::Registry which wraps it.
Functionsparse($string) Parse the type constraint string into something like an AST. If called in list context, also returns any ‟tail” found on the original string. extract_type($string, $registry) Compile a type constraint string into a Type::Tiny object. If called in list context, also returns any ‟tail” found on the original string. eval_type($string, $registry) Compile a type constraint string into a Type::Tiny object. Throws an error if the ‟tail” contains any non-whitespace character.
ConstantsThe following constants correspond to values returned by $token−>type. TYPE QUOTELIKE STRING CLASS L_BRACKET R_BRACKET COMMA SLURPY UNION INTERSECT NOT L_PAREN R_PAREN MYSTERY
BUGSPlease report any bugs to <https://github.com/tobyink/p5−type−tiny/issues>.
SEE ALSOType::Registry.
AUTHORToby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCEThis software is copyright (c) 2013−2014, 2017−2021 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIESTHIS PACKAGE IS PROVIDED ‟AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 0
Johanes Gumabo
Data Size : 11,999 byte
man-Type::Parser.3pmBuild : 2025-03-22, 13:26 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 1,208,727
Visitor ID : :
Visitor IP : 3.145.26.180 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|254|Type::Parser.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|160|Type::Parser.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|254|Type::Parser.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|160|Type::Parser.3pm|43|'br══─}─══ |'br══─}─══
)