| 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<PPIx::Regexp::Token::Unmatched> is a |
|
14
|
|
|
|
|
|
|
L<PPIx::Regexp::Token|PPIx::Regexp::Token>. |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
C<PPIx::Regexp::Token::Unmatched> 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<PPIx::Regexp::Token::Structure|PPIx::Regexp::Token::Structure> 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
|
|
48
|
use strict; |
|
|
9
|
|
|
|
|
209
|
|
|
|
9
|
|
|
|
|
252
|
|
|
38
|
9
|
|
|
9
|
|
28
|
use warnings; |
|
|
9
|
|
|
|
|
11
|
|
|
|
9
|
|
|
|
|
339
|
|
|
39
|
|
|
|
|
|
|
|
|
40
|
9
|
|
|
9
|
|
32
|
use base qw{ PPIx::Regexp::Token }; |
|
|
9
|
|
|
|
|
187
|
|
|
|
9
|
|
|
|
|
3841
|
|
|
41
|
|
|
|
|
|
|
|
|
42
|
9
|
|
|
9
|
|
45
|
use PPIx::Regexp::Constant qw{ @CARP_NOT }; |
|
|
9
|
|
|
|
|
11
|
|
|
|
9
|
|
|
|
|
981
|
|
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
our $VERSION = '0.091'; |
|
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
|
3
|
return 'Unmatched token'; |
|
51
|
|
|
|
|
|
|
} |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 SUPPORT |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Support is by the author. Please file bug reports at |
|
60
|
|
|
|
|
|
|
L<https://rt.cpan.org/Public/Dist/Display.html?Name=PPIx-Regexp>, |
|
61
|
|
|
|
|
|
|
L<https://github.com/trwyant/perl-PPIx-Regexp/issues>, or in |
|
62
|
|
|
|
|
|
|
electronic mail to the author. |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 AUTHOR |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Thomas R. Wyant, III F<wyant at cpan dot org> |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Copyright (C) 2009-2023, 2025 by Thomas R. Wyant, III |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
|
73
|
|
|
|
|
|
|
under the same terms as Perl 5.10.0. For more details, see the full text |
|
74
|
|
|
|
|
|
|
of the licenses in the directory LICENSES. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but |
|
77
|
|
|
|
|
|
|
without any warranty; without even the implied warranty of |
|
78
|
|
|
|
|
|
|
merchantability or fitness for a particular purpose. |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
# ex: set textwidth=72 : |