| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
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
|
|
|
9
|
|
42
|
use strict; |
|
|
9
|
|
|
|
|
12
|
|
|
|
9
|
|
|
|
|
241
|
|
|
33
|
9
|
|
|
9
|
|
29
|
use warnings; |
|
|
9
|
|
|
|
|
27
|
|
|
|
9
|
|
|
|
|
330
|
|
|
34
|
|
|
|
|
|
|
|
|
35
|
9
|
|
|
9
|
|
33
|
use base qw{ PPIx::Regexp::Token::GroupType }; |
|
|
9
|
|
|
|
|
20
|
|
|
|
9
|
|
|
|
|
800
|
|
|
36
|
|
|
|
|
|
|
|
|
37
|
9
|
|
|
9
|
|
60
|
use PPIx::Regexp::Constant qw{ @CARP_NOT }; |
|
|
9
|
|
|
|
|
13
|
|
|
|
9
|
|
|
|
|
941
|
|
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
our $VERSION = '0.091'; |
|
40
|
|
|
|
|
|
|
|
|
41
|
9
|
|
|
9
|
|
43
|
use constant EXPL => 'Match subexpression without backtracking'; |
|
|
9
|
|
|
|
|
10
|
|
|
|
9
|
|
|
|
|
659
|
|
|
42
|
|
|
|
|
|
|
|
|
43
|
9
|
|
|
|
|
614
|
use constant DEF => { |
|
44
|
|
|
|
|
|
|
'?>' => { |
|
45
|
|
|
|
|
|
|
expl => EXPL, |
|
46
|
|
|
|
|
|
|
intro => '5.005', |
|
47
|
|
|
|
|
|
|
}, |
|
48
|
|
|
|
|
|
|
'*atomic:' => { |
|
49
|
|
|
|
|
|
|
expl => EXPL, |
|
50
|
|
|
|
|
|
|
intro =>'5.027009', |
|
51
|
|
|
|
|
|
|
}, |
|
52
|
9
|
|
|
9
|
|
36
|
}; |
|
|
9
|
|
|
|
|
19
|
|
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__PACKAGE__->__setup_class(); |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
1; |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 SUPPORT |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Support is by the author. Please file bug reports at |
|
63
|
|
|
|
|
|
|
L<https://rt.cpan.org/Public/Dist/Display.html?Name=PPIx-Regexp>, |
|
64
|
|
|
|
|
|
|
L<https://github.com/trwyant/perl-PPIx-Regexp/issues>, or in |
|
65
|
|
|
|
|
|
|
electronic mail to the author. |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 AUTHOR |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Thomas R. Wyant, III F<wyant at cpan dot org> |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Copyright (C) 2009-2023, 2025 by Thomas R. Wyant, III |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
|
76
|
|
|
|
|
|
|
under the same terms as Perl 5.10.0. For more details, see the full text |
|
77
|
|
|
|
|
|
|
of the licenses in the directory LICENSES. |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but |
|
80
|
|
|
|
|
|
|
without any warranty; without even the implied warranty of |
|
81
|
|
|
|
|
|
|
merchantability or fitness for a particular purpose. |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
# ex: set textwidth=72 : |