line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
PPIx::Regexp::Structure::Unknown - Represent an unknown structure. |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 SYNOPSIS |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use PPIx::Regexp::Dumper; |
8
|
|
|
|
|
|
|
PPIx::Regexp::Dumper->new( 'qr{(?(foo)bar|baz|burfle)}smx' ) |
9
|
|
|
|
|
|
|
->print(); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 INHERITANCE |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
C is a |
14
|
|
|
|
|
|
|
L. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
C has no descendants. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
This class is used for a structure which the lexer recognizes as being |
21
|
|
|
|
|
|
|
improperly constructed. |
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::Structure::Unknown; |
31
|
|
|
|
|
|
|
|
32
|
9
|
|
|
9
|
|
59
|
use strict; |
|
9
|
|
|
|
|
22
|
|
|
9
|
|
|
|
|
242
|
|
33
|
9
|
|
|
9
|
|
60
|
use warnings; |
|
9
|
|
|
|
|
16
|
|
|
9
|
|
|
|
|
222
|
|
34
|
|
|
|
|
|
|
|
35
|
9
|
|
|
9
|
|
48
|
use base qw{ PPIx::Regexp::Structure }; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
788
|
|
36
|
|
|
|
|
|
|
|
37
|
9
|
|
|
9
|
|
69
|
use PPIx::Regexp::Constant qw{ @CARP_NOT }; |
|
9
|
|
|
|
|
32
|
|
|
9
|
|
|
|
|
760
|
|
38
|
9
|
|
|
9
|
|
63
|
use PPIx::Regexp::Util; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
2215
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our $VERSION = '0.087_01'; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub __new { |
43
|
0
|
|
|
0
|
|
|
my ( $class, $content, %arg ) = @_; |
44
|
|
|
|
|
|
|
|
45
|
0
|
|
|
|
|
|
my $self = $class->SUPER::__new( $content, %arg ); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
defined $arg{error} |
48
|
0
|
0
|
|
|
|
|
and $self->{explanation} = $self->{error} = $arg{error}; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
defined $arg{explanation} |
51
|
0
|
0
|
|
|
|
|
and $self->{explanation} = $arg{explanation}; |
52
|
|
|
|
|
|
|
|
53
|
0
|
|
|
|
|
|
return $self; |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub width { |
57
|
0
|
|
|
0
|
1
|
|
return ( undef, undef ); |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
sub explain { |
61
|
0
|
|
|
0
|
1
|
|
my ( $self ) = @_; |
62
|
0
|
|
0
|
|
|
|
return $self->{explanation} || $self->SUPER::explain(); |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
*__PPIX_ELEM__post_reblessing = \&PPIx::Regexp::Util::__post_rebless_error; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
1; |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
__END__ |