File Coverage

blib/lib/PPIx/Regexp/Token/Unmatched.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 19 19 100.0


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   64 use strict;
  9         21  
  9         272  
38 9     9   47 use warnings;
  9         32  
  9         247  
39              
40 9     9   52 use base qw{ PPIx::Regexp::Token };
  9         17  
  9         4446  
41              
42 9     9   65 use PPIx::Regexp::Constant qw{ @CARP_NOT };
  9         28  
  9         1043  
43              
44             our $VERSION = '0.087';
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 6 return 'Unmatched token';
51             }
52              
53             1;
54              
55             __END__