Regexp/Token/GroupType/Subexpression.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Regexp/Token/GroupType/Script_Run.pm ↑ Summary Regexp/Token/GroupType/Switch.pm »
1 =head1 NAME
2  
3 PPIx::Regexp::Token::GroupType::Subexpression - Represent an independent subexpression marker
4  
5 =head1 SYNOPSIS
6  
7 use PPIx::Regexp::Dumper;
8 PPIx::Regexp::Dumper->new( 'qr{foo(?>bar)}smx' )
9 ->print();
10  
11 =head1 INHERITANCE
12  
13 C<PPIx::Regexp::Token::GroupType::Subexpression> is a
14 L<PPIx::Regexp::Token::GroupType|PPIx::Regexp::Token::GroupType>.
15  
16 C<PPIx::Regexp::Token::GroupType::Subexpression> has no descendants.
17  
18 =head1 DESCRIPTION
19  
20 This class represents the '?>' after a left parenthesis that identifies
21 an independent subexpression.
22  
23 =head1 METHODS
24  
25 This class provides no public methods beyond those provided by its
26 superclass.
27  
28 =cut
29  
30 package PPIx::Regexp::Token::GroupType::Subexpression;
31  
32 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
33 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
34  
35 9 ▶use base qw{ PPIx::Regexp::Token::GroupType };
Subroutine BEGIN: called CC=1 SCAR=0.0
36  
37 9 ▶use PPIx::Regexp::Constant qw{ @CARP_NOT };
Subroutine BEGIN: called CC=1 SCAR=0.0
38  
39 9 our $VERSION = '0.092';
40  
41 9 ▶use constant EXPL => 'Match subexpression without backtracking';
Subroutine BEGIN: called CC=1 SCAR=0.0
42  
43 9 ▶use constant DEF => {
Subroutine BEGIN: called CC=1 SCAR=0.0
44 '?>' => {
45 expl => EXPL,
46 intro => '5.005',
47 },
48 '*atomic:' => {
49 expl => EXPL,
50 intro =>'5.027009',
51 },
52 9 };
53  
54 9 __PACKAGE__->__setup_class();
55  
56 9 1;
57  
58 __END__
« Regexp/Token/GroupType/Script_Run.pm ↑ Summary Regexp/Token/GroupType/Switch.pm »