| 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 38 | 9 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 39 | |||
| 40 | 9 | ▶ | use base qw{ PPIx::Regexp::Token }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | |||
| 42 | 9 | ▶ | use PPIx::Regexp::Constant qw{ @CARP_NOT }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 43 | |||
| 44 | 9 | our $VERSION = '0.092'; | |
| 45 | |||
| 46 | # Return true if the token can be quantified, and false otherwise | ||
| 47 | # sub can_be_quantified { return }; | ||
| 48 | |||
| 49 | 1 | ▶ | sub explain { |
|
Subroutine
explain: called CC=1 SCAR=0.0
Pod
documented
| |||
| 50 | 1 | return 'Unmatched token'; | |
| 51 | } | ||
| 52 | |||
| 53 | 9 | 1; | |
| 54 | |||
| 55 | __END__ | ||