line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
PPIx::Regexp::Token::Unmatched - Represent an unmatched right bracket |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 SYNOPSIS |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use PPIx::Regexp::Dumper; |
8
|
|
|
|
|
|
|
PPIx::Regexp::Dumper->new( 'qr{)}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 to represent an unmatched right bracket of any sort - |
21
|
|
|
|
|
|
|
parenthesis, square bracket, curly bracket, or whatever. |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
This class is not generated by the tokenizer; instead the lexer |
24
|
|
|
|
|
|
|
reblesses a |
25
|
|
|
|
|
|
|
L into it |
26
|
|
|
|
|
|
|
when it is found to be unmatched. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 METHODS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
This class provides no public methods beyond those provided by its |
31
|
|
|
|
|
|
|
superclass. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
package PPIx::Regexp::Token::Unmatched; |
36
|
|
|
|
|
|
|
|
37
|
9
|
|
|
9
|
|
81
|
use strict; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
246
|
|
38
|
9
|
|
|
9
|
|
46
|
use warnings; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
251
|
|
39
|
|
|
|
|
|
|
|
40
|
9
|
|
|
9
|
|
45
|
use base qw{ PPIx::Regexp::Token }; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
4198
|
|
41
|
|
|
|
|
|
|
|
42
|
9
|
|
|
9
|
|
66
|
use PPIx::Regexp::Constant qw{ @CARP_NOT }; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
1028
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
our $VERSION = '0.087_01'; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# Return true if the token can be quantified, and false otherwise |
47
|
|
|
|
|
|
|
# sub can_be_quantified { return }; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub explain { |
50
|
1
|
|
|
1
|
1
|
4
|
return 'Unmatched token'; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |