line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Regexp::Parser; |
2
|
|
|
|
|
|
|
|
3
|
8
|
|
|
8
|
|
80
|
use strict; |
|
8
|
|
|
|
|
49
|
|
|
8
|
|
|
|
|
225
|
|
4
|
8
|
|
|
8
|
|
37
|
use warnings; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
244
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
my $ENUM; |
7
|
8
|
|
|
8
|
|
163
|
BEGIN { $ENUM = 0 } |
8
|
|
|
|
|
|
|
|
9
|
8
|
|
|
8
|
|
33
|
use constant RPe_ZQUANT => --$ENUM, 'Quantifier unexpected on zero-length expression'; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
600
|
|
10
|
8
|
|
|
8
|
|
44
|
use constant RPe_NOTIMP => --$ENUM, 'Sequence (?%.*s...) not implemented'; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
392
|
|
11
|
8
|
|
|
8
|
|
41
|
use constant RPe_NOTERM => --$ENUM, 'Sequence (?#... not terminated'; |
|
8
|
|
|
|
|
104
|
|
|
8
|
|
|
|
|
355
|
|
12
|
8
|
|
|
8
|
|
43
|
use constant RPe_LOGDEP => --$ENUM, '(?p{}) is deprecated -- use (??{})'; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
318
|
|
13
|
8
|
|
|
8
|
|
33
|
use constant RPe_NOTBAL => --$ENUM, 'Sequence (?{...}) not terminated or not {}-balanced'; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
298
|
|
14
|
8
|
|
|
8
|
|
34
|
use constant RPe_SWNREC => --$ENUM, 'Switch condition not recognized'; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
323
|
|
15
|
8
|
|
|
8
|
|
41
|
use constant RPe_SWBRAN => --$ENUM, 'Switch (?(condition)... contains too many branches'; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
362
|
|
16
|
8
|
|
|
8
|
|
38
|
use constant RPe_SWUNKN => --$ENUM, 'Unknown switch condition (?(%.2s'; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
403
|
|
17
|
8
|
|
|
8
|
|
41
|
use constant RPe_SEQINC => --$ENUM, 'Sequence (? incomplete'; |
|
8
|
|
|
|
|
17
|
|
|
8
|
|
|
|
|
855
|
|
18
|
8
|
|
|
8
|
|
37
|
use constant RPe_BADFLG => --$ENUM, 'Useless (?%s%s) -- %suse /%s modifier'; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
296
|
|
19
|
8
|
|
|
8
|
|
35
|
use constant RPe_NOTREC => --$ENUM, 'Sequence (?%.*s...) not recognized'; |
|
8
|
|
|
|
|
9
|
|
|
8
|
|
|
|
|
318
|
|
20
|
8
|
|
|
8
|
|
34
|
use constant RPe_LPAREN => --$ENUM, 'Unmatched ('; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
280
|
|
21
|
8
|
|
|
8
|
|
35
|
use constant RPe_RPAREN => --$ENUM, 'Unmatched )'; |
|
8
|
|
|
|
|
10
|
|
|
8
|
|
|
|
|
296
|
|
22
|
8
|
|
|
8
|
|
32
|
use constant RPe_BCURLY => --$ENUM, 'Can\'t do {n,m} with n > m'; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
281
|
|
23
|
8
|
|
|
8
|
|
34
|
use constant RPe_NULNUL => --$ENUM, '%s matches null string many times'; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
277
|
|
24
|
8
|
|
|
8
|
|
32
|
use constant RPe_NESTED => --$ENUM, 'Nested quantifiers'; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
301
|
|
25
|
8
|
|
|
8
|
|
34
|
use constant RPe_LBRACK => --$ENUM, 'Unmatched ['; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
292
|
|
26
|
8
|
|
|
8
|
|
60
|
use constant RPe_EQUANT => --$ENUM, 'Quantifier follows nothing'; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
294
|
|
27
|
8
|
|
|
8
|
|
35
|
use constant RPe_BRACES => --$ENUM, 'Missing braces on \%s{}'; |
|
8
|
|
|
|
|
14
|
|
|
8
|
|
|
|
|
299
|
|
28
|
8
|
|
|
8
|
|
35
|
use constant RPe_RBRACE => --$ENUM, 'Missing right brace on \%s{}'; |
|
8
|
|
|
|
|
45
|
|
|
8
|
|
|
|
|
313
|
|
29
|
8
|
|
|
8
|
|
38
|
use constant RPe_BGROUP => --$ENUM, 'Reference to nonexistent group'; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
287
|
|
30
|
8
|
|
|
8
|
|
35
|
use constant RPe_ESLASH => --$ENUM, 'Trailing \\'; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
325
|
|
31
|
8
|
|
|
8
|
|
35
|
use constant RPe_BADESC => --$ENUM, 'Unrecognized escape \\%s%s passed through'; |
|
8
|
|
|
|
|
12
|
|
|
8
|
|
|
|
|
278
|
|
32
|
8
|
|
|
8
|
|
33
|
use constant RPe_BADPOS => --$ENUM, 'POSIX class [:%s:] unknown'; |
|
8
|
|
|
|
|
15
|
|
|
8
|
|
|
|
|
313
|
|
33
|
8
|
|
|
8
|
|
36
|
use constant RPe_OUTPOS => --$ENUM, 'POSIX syntax [%s %s] belongs inside character classes'; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
283
|
|
34
|
8
|
|
|
8
|
|
34
|
use constant RPe_EMPTYB => --$ENUM, 'Empty \%s{}'; |
|
8
|
|
|
|
|
10
|
|
|
8
|
|
|
|
|
276
|
|
35
|
8
|
|
|
8
|
|
33
|
use constant RPe_FRANGE => --$ENUM, 'False [] range "%s-%s"'; |
|
8
|
|
|
|
|
13
|
|
|
8
|
|
|
|
|
272
|
|
36
|
8
|
|
|
8
|
|
33
|
use constant RPe_IRANGE => --$ENUM, 'Invalid [] range "%s-%s"'; |
|
8
|
|
|
|
|
16
|
|
|
8
|
|
|
|
|
281
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |