blib/lib/Parse/RecDescent.pm

filter: Statementstmt 94.1% 4486 / 4767 Branchbran 69.0% 1843 / 2668 Conditioncond 62.1% 725 / 1166 MC/DCmcdc 16.4% 105 / 637 Subroutinesub 98.4% 253 / 257 Podpod 0.0% 0 / 8 totaltotal 78.0% 7412 / 9503 CC 4239 SCAR 41.9
CC
4239
Cov
82%
_generate
609.6
test6
136.7
test1
84.1
CRAP 66.2
↑ Summary
1 # GENERATE RECURSIVE DESCENT PARSER OBJECTS FROM A GRAMMAR
2  
3 18 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 package Parse::RecDescent;
7  
8 17 ▶use Text::Balanced qw ( extract_codeblock extract_bracketed extract_quotelike extract_delimited );
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 17 ▶use vars qw ( $skip );
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 27 *defskip = \ '\s*'; # DEFAULT SEPARATOR IS OPTIONAL WHITESPACE
13 27 $skip = '\s*'; # UNIVERSAL SEPARATOR IS OPTIONAL WHITESPACE
14 27 my $MAXREP = 100_000_000; # REPETITIONS MATCH AT MOST 100,000,000 TIMES
15  
16  
17 #ifndef RUNTIME
18 sub import # IMPLEMENT PRECOMPILER BEHAVIOUR UNDER:
19 # perl -MParse::RecDescent - <grammarfile> <classname> [runtimeclassname]
20 16 ▶{
Subroutine import: called CC=6 SCAR=20.9
21 16 ▶ local *_die = sub { print @_, "\n"; exit };
Subroutine __ANON__: called CC=1 SCAR=0.0
22  
23 16 my ($package, $file, $line) = caller;
24  
25 16 ▶ if ($file eq '-' && $line == 0)
Branch: 1 branch
BranchTrueFalseTotal
if ($file eq "-" and $line == 0) 0 13 13
Condition33%1/3
$file eq "-" and $line == 0
!ll&&!rl&&r
1300
MC/DC0%0/2
$file eq "-" and $line == 0
$file eq "-" $line == 0
Truth table33%1/3
A and B
A= $file eq "-"B= $line == 0
ABresult
0X0
100
111
26 {
27 3 ▶ _die("Usage: perl -MLocalTest - <grammarfile> <classname>")
Branch: 1 branch
BranchTrueFalseTotal
unless @ARGV >= 2 and $ARGV <= 3 0 0 0
Condition0%0/3
@ARGV >= 2 and $ARGV <= 3
!ll&&!rl&&r
000
MC/DC0%0/2
@ARGV >= 2 and $ARGV <= 3
@ARGV >= 2 $ARGV <= 3
Truth table0%0/3
A and B
A= @ARGV >= 2B= $ARGV <= 3
ABresult
0X0
100
111
28 unless @ARGV >= 2 and $ARGV <= 3;
29  
30 3 my ($sourcefile, $class, $runtime_class) = @ARGV;
31  
32 3 local *IN;
33 3 ▶ open IN, $sourcefile
Branch: 1 branch
BranchTrueFalseTotal
open IN, $sourcefile or _die(qq[Can't open grammar file "$sourcefile"]) 0 0 0
34 or _die(qq{Can't open grammar file "$sourcefile"});
35 3 local $/; #
36 3 my $grammar = <IN>;
37 3 close IN;
38  
39 3 Parse::RecDescent->Precompile({ -runtime_class => $runtime_class },
40 $grammar, $class, $sourcefile);
41 3 exit;
42 }
43 }
44  
45 sub Save
46 3 ▶{
Subroutine Save: called CC=2 SCAR=7.0
Pod undocumented
47 3 my $self = shift;
48 3 my %opt;
49 3 ▶ if ('HASH' eq ref $_[0]) {
Branch: 1 branch
BranchTrueFalseTotal
if ("HASH" eq ref $_[0]) 0 0 0
50 3 %opt = (%opt, %{$_[0]});
51 3 shift;
52 }
53 3 my ($class) = @_;
54 3 $self->{saving} = 1;
55 3 $self->Precompile(undef,$class);
56 3 $self->{saving} = 0;
57 }
58  
59 sub PrecompiledRuntime
60 3 ▶{
Subroutine PrecompiledRuntime: called CC=1 SCAR=0.0
Pod undocumented
61 3 my ($self, $class) = @_;
62 2 my $opt = {
63 -standalone => 1,
64 -runtime_class => $class,
65 };
66 2 $self->Precompile($opt, '', $class);
67 }
68  
69 sub Precompile
70 12 ▶{
Subroutine Precompile: called CC=25 SCAR=33.0
Pod undocumented
71 11 my $self = shift;
72 11 my %opt = ( -standalone => 0,
73 );
74 11 ▶ if ('HASH' eq ref $_[0]) {
Branch: 1 branch
BranchTrueFalseTotal
if ("HASH" eq ref $_[0]) 9 0 9
75 11 %opt = (%opt, %{$_[0]});
76 11 shift;
77 }
78 11 my ($grammar, $class, $sourcefile) = @_;
79  
80 11 ▶ $class =~ /^(\w+::)*\w+$/ or croak("Bad class name: $class");
Branch: 1 branch
BranchTrueFalseTotal
$class =~ /^(\w+::)*\w+$/ or croak("Bad class name: $class") 9 0 9
81  
82 11 my $modulefile = $class;
83 11 $modulefile =~ s/.*:://;
84 11 $modulefile .= ".pm";
85  
86 11 my $code = '';
87  
88 11 local *OUT;
89 11 ▶ open OUT, ">", $modulefile
Branch: 1 branch
BranchTrueFalseTotal
open OUT, ">", $modulefile or croak("Can't write to new module file '${modulefile}'") 9 0 9
90 or croak("Can't write to new module file '$modulefile'");
91  
92 11 print OUT "#\n",
93 "# This parser was generated with\n",
94 "# Parse::RecDescent version $Parse::RecDescent::VERSION\n",
95 "#\n\n";
96  
97 11 ▶ print STDERR "precompiling grammar from file '$sourcefile'\n",
Branch: 1 branch
BranchTrueFalseTotal
if $grammar and $sourcefile 0 9 9
Condition33%1/3
$grammar and $sourcefile
!ll&&!rl&&r
090
MC/DC0%0/2
$grammar and $sourcefile
$grammar $sourcefile
Truth table33%1/3
A and B
A= $grammarB= $sourcefile
ABresult
0X0
100
111
98 "to class $class in module file '$modulefile'\n"
99 if $grammar && $sourcefile;
100  
101 12 ▶ if ($grammar) {
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar) 9 0 9
102 12 ▶ $self = Parse::RecDescent->new($grammar, # $grammar
Branch: 1 branch
BranchTrueFalseTotal
if $grammar 9 0 9
Condition50%1/2
'Parse::RecDescent'->new($grammar, 1, $class) || croak(q[Can't compile bad grammar])
l!l
90
MC/DC0%0/1
'Parse::RecDescent'->new($grammar, 1, $class) || croak(q[Can't compile bad grammar])
'Parse::RecDescent'->new($grammar, 1, $class)
Truth table50%1/2
A
A= 'Parse::RecDescent'->new($grammar, 1, $class)
Aresult
11
00
103 1, # $compiling
104 $class # $namespace
105 )
106 || croak("Can't compile bad grammar")
107 if $grammar;
108  
109 # Do not allow &DESTROY to remove the precompiled namespace
110 12 delete $self->{_not_precompiled};
111  
112 12 foreach ( keys %{$self->{rules}} ) {
113 567 $self->{rules}{$_}{changed} = 1;
114 }
115  
116 12 $code = $self->_code();
117 }
118  
119 # If a name for the runtime package was not provided,
120 # generate one based on the module output name and the generated
121 # code
122 12 ▶ if (not defined($opt{-runtime_class})) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $opt{"-runtime_class"}) 9 0 9
123 12 ▶ if ($opt{-standalone}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opt{'-standalone'}) { } 8 1 9
124 11 my $basename = $class . '::_Runtime';
125  
126 11 my $name = $basename;
127  
128 11 ▶ for (my $i = 0; $code =~ /$basename/; ++$i) {
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /$basename/) 0 8 8
129 2 $name = sprintf("%s%06d", $basename, $i);
130 }
131  
132 10 $opt{-runtime_class} = $name;
133 } else {
134 3 my $package = ref $self;
135 3 ▶ local $::RD_HINT = defined $::RD_HINT ? $::RD_HINT : 1;
Branch: 1 branch
BranchTrueFalseTotal
defined $main::RD_HINT ? : 1 0 1
136 3 _hint(<<EOWARNING);
137 The precompiled grammar did not specify the -runtime_class
138 option. The resulting parser will "use $package". Future changes to
139 $package may cause $class to stop working.
140  
141 Consider building a -standalone parser, or providing the
142 -runtime_class option as described in Parse::RecDescent's POD.
143  
144 Use \$::RD_HINT = 0 to disable this message.
145 EOWARNING
146 3 $opt{-runtime_class} = $package;
147 }
148 }
149  
150 11 $code =~ s/Parse::RecDescent/$opt{-runtime_class}/gs;
151  
152 # Make the resulting pre-compiled parser stand-alone by including
153 # the contents of Parse::RecDescent as -runtime_class in the
154 # resulting precompiled parser.
155 11 ▶ if ($opt{-standalone}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($opt{"-standalone"}) 8 1 9
156 10 local *IN;
157 10 ▶ open IN, '<', $Parse::RecDescent::_FILENAME
Branch: 1 branch
BranchTrueFalseTotal
open IN, "<", $Parse::RecDescent::_FILENAME or croak("Can't open $Parse::RecDescent::_FILENAME for standalone pre-compilation: $!\n") 8 0 8
158 or croak("Can't open $Parse::RecDescent::_FILENAME for standalone pre-compilation: $!\n");
159 10 my $exclude = 0;
160 10 print OUT "{\n";
161 10 ▶ while (<IN>) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined($_ = readline IN)) 28272 0 28272
162 28274 ▶ if ($_ =~ /^\s*#\s*ifndef\s+RUNTIME\s*$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ =~ /^\s*#\s*ifndef\s+RUNTIME\s*$/) 8 28264 28272
163 10 ++$exclude;
164 }
165 28274 ▶ if ($exclude) {
Branch: 1 branch
BranchTrueFalseTotal
if ($exclude) { } 1592 26680 28272
166 1594 ▶ if ($_ =~ /^\s*#\s*endif\s$/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ =~ /^\s*#\s*endif\s$/) 8 1584 1592
167 10 --$exclude;
168 }
169 } else {
170 26682 ▶ if ($_ =~ m/^__END__/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($_ =~ /^__END__/) 8 26672 26680
171 10 last;
172 }
173  
174 # Standalone parsers shouldn't trigger the CPAN
175 # indexer to index the runtime, as it shouldn't be
176 # exposed as a user-consumable package.
177 #
178 # Trick the indexer by including a newline in the package declarations
179 26674 s/^package /package # this should not be indexed by CPAN\n/gs;
180 26674 s/Parse::RecDescent/$opt{-runtime_class}/gs;
181 26674 print OUT $_;
182 }
183 }
184 10 close IN;
185 10 print OUT "}\n";
186 }
187  
188 11 ▶ if ($grammar) {
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar) 9 0 9
189 11 print OUT "package $class;\n";
190 }
191  
192 11 ▶ if (not $opt{-standalone}) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($opt{"-standalone"}) 1 8 9
193 3 print OUT "use $opt{-runtime_class};\n";
194 }
195  
196 11 ▶ if ($grammar) {
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar) 9 0 9
197 11 print OUT "{ my \$ERRORS;\n\n";
198  
199 11 print OUT $code;
200  
201 11 print OUT "}\npackage $class; sub new { ";
202 11 print OUT "my ";
203  
204 11 $code = $self->_dump([$self], [qw(self)]);
205 11 $code =~ s/Parse::RecDescent/$opt{-runtime_class}/gs;
206  
207 11 print OUT $code;
208  
209 11 print OUT "}";
210 }
211  
212 11 ▶ close OUT
Branch: 1 branch
BranchTrueFalseTotal
close OUT or croak("Can't write to new module file '${modulefile}'") 9 0 9
213 or croak("Can't write to new module file '$modulefile'");
214 }
215 #endif
216  
217 package Parse::RecDescent::LineCounter;
218  
219  
220 sub TIESCALAR # ($classname, \$text, $thisparser, $prevflag)
221 855 ▶{
Subroutine TIESCALAR: called CC=2 SCAR=6.9
222 854 ▶ bless {
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 119 733 852
223 text => $_[1],
224 parser => $_[2],
225 prev => $_[3]?1:0,
226 }, $_[0];
227 }
228  
229 sub FETCH
230 618 ▶{
Subroutine FETCH: called CC=2 SCAR=6.9
231 617 my $parser = $_[0]->{parser};
232 617 my $cache = $parser->{linecounter_cache};
233 617 my $from = $parser->{fulltextlen}-length(${$_[0]->{text}})-$_[0]->{prev}
234 617 ;
235  
236 617 ▶ unless (exists $cache->{$from})
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $cache->{$from}) 291 324 615
237 {
238 $parser->{lastlinenum} = $parser->{offsetlinenum}
239 294 - Parse::RecDescent::_linecount(substr($parser->{fulltext},$from))
240 + 1;
241 294 $cache->{$from} = $parser->{lastlinenum};
242 }
243 618 return $cache->{$from};
244 }
245  
246 sub STORE
247 3 ▶{
Subroutine STORE: called CC=1 SCAR=0.0
248 3 my $parser = $_[0]->{parser};
249 3 $parser->{offsetlinenum} -= $parser->{lastlinenum} - $_[1];
250 3 return undef;
251 }
252  
253 sub resync # ($linecounter)
254 2 ▶{
Subroutine resync: called CC=2 SCAR=7.1
255 3 my $self = tied($_[0]);
256 3 ▶ die "Tried to alter something other than a LineCounter\n"
Branch: 1 branch
BranchTrueFalseTotal
unless $self =~ /Parse::RecDescent::LineCounter/ 0 0 0
257 unless $self =~ /Parse::RecDescent::LineCounter/;
258  
259 3 my $parser = $self->{parser};
260 my $apparently = $parser->{offsetlinenum}
261 3 - Parse::RecDescent::_linecount(${$self->{text}})
262 + 1;
263  
264 3 $parser->{offsetlinenum} += $parser->{lastlinenum} - $apparently;
265 2 return 1;
266 }
267  
268 package Parse::RecDescent::ColCounter;
269  
270 sub TIESCALAR # ($classname, \$text, $thisparser, $prevflag)
271 240 ▶{
Subroutine TIESCALAR: called CC=2 SCAR=6.9
272 240 ▶ bless {
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 119 119 238
273 text => $_[1],
274 parser => $_[2],
275 prev => $_[3]?1:0,
276 }, $_[0];
277 }
278  
279 sub FETCH
280 617 ▶{
Subroutine FETCH: called CC=1 SCAR=0.0
281 617 my $parser = $_[0]->{parser};
282 617 my $missing = $parser->{fulltextlen}-length(${$_[0]->{text}})-$_[0]->{prev}+1;
283 617 substr($parser->{fulltext},0,$missing) =~ m/^(.*)\Z/m;
284 617 return length($1);
285 }
286  
287 sub STORE
288 2 ▶{
Subroutine STORE: called CC=1 SCAR=0.0
289 2 die "Can't set column number via \$thiscolumn\n";
290 }
291  
292  
293 package Parse::RecDescent::OffsetCounter;
294  
295 sub TIESCALAR # ($classname, \$text, $thisparser, $prev)
296 240 ▶{
Subroutine TIESCALAR: called CC=2 SCAR=6.9
297 240 ▶ bless {
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 119 119 238
298 text => $_[1],
299 parser => $_[2],
300 prev => $_[3]?-1:0,
301 }, $_[0];
302 }
303  
304 sub FETCH
305 445 ▶{
Subroutine FETCH: called CC=1 SCAR=0.0
306 445 my $parser = $_[0]->{parser};
307 445 return $parser->{fulltextlen}-length(${$_[0]->{text}})+$_[0]->{prev};
308 }
309  
310 sub STORE
311 3 ▶{
Subroutine STORE: called CC=1 SCAR=0.0
312 2 die "Can't set current offset via \$thisoffset or \$prevoffset\n";
313 }
314  
315  
316  
317 package Parse::RecDescent::Rule;
318  
319 sub new ($$$$$)
320 713 ▶{
Subroutine new: called CC=5 SCAR=16.4
321 712 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
07100
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
322 712 my $name = $_[1];
323 712 my $owner = $_[2];
324 712 my $line = $_[3];
325 712 my $replace = $_[4];
326  
327 712 ▶ if (defined $owner->{"rules"}{$name})
Branch: 1 branch
BranchTrueFalseTotal
if (defined $owner->{'rules'}{$name}) { } 4 706 710
328 {
329 6 my $self = $owner->{"rules"}{$name};
330 6 ▶ if ($replace && !$self->{"changed"})
Branch: 1 branch
BranchTrueFalseTotal
if ($replace and not $self->{"changed"}) 0 4 4
Condition66%2/3
$replace and not $self->{"changed"}
!ll&&!rl&&r
310
MC/DC0%0/2
$replace and not $self->{"changed"}
$replace not $self->{"changed"}
Truth table66%2/3
A and not(B)
A= $replaceB= not $self->{"changed"}
ABresult
0X0
100
111
331 {
332 2 $self->reset;
333 }
334 6 return $self;
335 }
336 else
337 {
338 708 return $owner->{"rules"}{$name} =
339 bless
340 {
341 "name" => $name,
342 "prods" => [],
343 "calls" => [],
344 "changed" => 0,
345 "line" => $line,
346 "impcount" => 0,
347 "opcount" => 0,
348 "vars" => "",
349 }, $class;
350 }
351 }
352  
353 sub reset($)
354 3 ▶{
Subroutine reset: called CC=1 SCAR=0.0
355 2 @{$_[0]->{"prods"}} = ();
356 2 @{$_[0]->{"calls"}} = ();
357 2 $_[0]->{"changed"} = 0;
358 2 $_[0]->{"impcount"} = 0;
359 2 $_[0]->{"opcount"} = 0;
360 2 $_[0]->{"vars"} = "";
361 }
362  
363 3 ▶sub DESTROY {}
Subroutine DESTROY: called CC=1 SCAR=0.0
364  
365 sub hasleftmost($$)
366 2697 ▶{
Subroutine hasleftmost: called CC=3 SCAR=11.0
367 2697 my ($self, $ref) = @_;
368  
369 2697 my $prod;
370 2697 foreach $prod ( @{$self->{"prods"}} )
371 {
372 5946 ▶ return 1 if $prod->hasleftmost($ref);
Branch: 1 branch
BranchTrueFalseTotal
if $prod->hasleftmost($ref) 1307 4637 5944
373 }
374  
375 1390 return 0;
376 }
377  
378 sub leftmostsubrules($)
379 2341 ▶{
Subroutine leftmostsubrules: called CC=2 SCAR=6.9
380 2341 my $self = shift;
381 2341 my @subrules = ();
382  
383 2341 my $prod;
384 2341 foreach $prod ( @{$self->{"prods"}} )
385 {
386 5163 push @subrules, $prod->leftmostsubrule();
387 }
388  
389 2341 return @subrules;
390 }
391  
392 sub expected($)
393 752 ▶{
Subroutine expected: called CC=4 SCAR=13.9
394 753 my $self = shift;
395 753 my @expected = ();
396  
397 753 my $prod;
398 753 foreach $prod ( @{$self->{"prods"}} )
399 {
400 1387 my $next = $prod->expected();
401 1387 ▶ unless (! $next or _contains($next,@expected) )
Branch: 1 branch
BranchTrueFalseTotal
unless (not $next or &_contains($next, @expected)) 1304 80 1384
Condition100%3/3
not $next or &_contains($next, @expected)
l!l&&r!l&&!r
22581304
MC/DC100%2/2
not $next or &_contains($next, @expected)
not $next &_contains($next, @expected)
Truth table100%3/3
not(A) or B
A= not $nextB= &_contains($next, @expected)
ABresult
1X1
011
000
402 {
403 1307 push @expected, $next;
404 }
405 }
406  
407 753 return join ', or ', @expected;
408 }
409  
410 sub _contains($@)
411 4116 ▶{
Subroutine _contains: called CC=3 SCAR=11.0
412 4117 my $target = shift;
413 4117 my $item;
414 4117 ▶ foreach $item ( @_ ) { return 1 if $target eq $item; }
Branch: 1 branch
BranchTrueFalseTotal
if $target eq $item 553 9780 10333
415 3563 return 0;
416 }
417  
418 sub addcall($$)
419 1389 ▶{
Subroutine addcall: called CC=2 SCAR=6.9
420 1389 my ( $self, $subrule ) = @_;
421 1389 ▶ unless ( _contains($subrule, @{$self->{"calls"}}) )
Branch: 1 branch
BranchTrueFalseTotal
unless (&_contains($subrule, @{$$self{"calls"};})) 1074 313 1387
422 {
423 1076 push @{$self->{"calls"}}, $subrule;
424 }
425 }
426  
427 sub addprod($$)
428 1326 ▶{
Subroutine addprod: called CC=1 SCAR=0.0
429 1326 my ( $self, $prod ) = @_;
430 1326 push @{$self->{"prods"}}, $prod;
431 1326 $self->{"changed"} = 1;
432 1326 $self->{"impcount"} = 0;
433 1326 $self->{"opcount"} = 0;
434 1326 $prod->{"number"} = $#{$self->{"prods"}};
435 1326 return $prod;
436 }
437  
438 sub addvar
439 3 ▶{
Subroutine addvar: called CC=2 SCAR=7.0
440 3 my ( $self, $var, $parser ) = @_;
441 3 ▶ if ($var =~ /\A\s*local\s+([%@\$]\w+)/)
Branch: 1 branch
BranchTrueFalseTotal
if ($var =~ /\A\s*local\s+([%\@\$]\w+)/) { } 0 1 1
442 {
443 2 $parser->{localvars} .= " $1";
444 2 $self->{"vars"} .= "$var;\n" }
445 else
446 3 { $self->{"vars"} .= "my $var;\n" }
447 3 $self->{"changed"} = 1;
448 3 return 1;
449 }
450  
451 sub addautoscore
452 2 ▶{
Subroutine addautoscore: called CC=1 SCAR=0.0
453 2 my ( $self, $code ) = @_;
454 2 $self->{"autoscore"} = $code;
455 2 $self->{"changed"} = 1;
456 2 return 1;
457 }
458  
459 sub nextoperator($)
460 2 ▶{
Subroutine nextoperator: called CC=1 SCAR=0.0
461 2 my $self = shift;
462 2 my $prodcount = scalar @{$self->{"prods"}};
463 2 my $opcount = ++$self->{"opcount"};
464 2 return "_operator_${opcount}_of_production_${prodcount}_of_rule_$self->{name}";
465 }
466  
467 sub nextimplicit($)
468 43 ▶{
Subroutine nextimplicit: called CC=1 SCAR=0.0
469 43 my $self = shift;
470 43 my $prodcount = scalar @{$self->{"prods"}};
471 43 my $impcount = ++$self->{"impcount"};
472 43 return "_alternation_${impcount}_of_production_${prodcount}_of_rule_$self->{name}";
473 }
474  
475  
476 sub code
477 711 ▶{
Subroutine code: called CC=13 SCAR=26.3
478 711 my ($self, $namespace, $parser, $check) = @_;
479  
480 711 ▶eval 'undef &' . $namespace . '::' . $self->{"name"} unless $parser->{saving};
Branch: 1 branch
BranchTrueFalseTotal
unless $parser->{"saving"} 709 0 709
481  
482 my $code =
483 '
484 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
485 sub ' . $namespace . '::' . $self->{"name"} . '
486 {
487 my $thisparser = $_[0];
488 use vars q{$tracelevel};
489 local $tracelevel = ($tracelevel||0)+1;
490 $ERRORS = 0;
491 my $thisrule = $thisparser->{"rules"}{"' . $self->{"name"} . '"};
492  
493 Parse::RecDescent::_trace(q{Trying rule: [' . $self->{"name"} . ']},
494 Parse::RecDescent::_tracefirst($_[1]),
495 q{' . $self->{"name"} . '},
496 $tracelevel)
497 if defined $::RD_TRACE;
498  
499 ' . ($parser->{deferrable}
500 ? 'my $def_at = @{$thisparser->{deferred}};'
501 : '') .
502 '
503 my $err_at = @{$thisparser->{errors}};
504  
505 my $score;
506 my $score_return;
507 my $_tok;
508 my $return = undef;
509 my $_matched=0;
510 my $commit=0;
511 my @item = ();
512 my %item = ();
513 my $repeating = $_[2];
514 my $_noactions = $_[3];
515 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
516 my $_itempos = $_[5];
517 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
518 my $text;
519 my $lastsep;
520 my $current_match;
521 my $expectation = new Parse::RecDescent::Expectation(q{' . $self->expected() . '});
522 $expectation->at($_[1]);
523 '. ($parser->{_check}{thisoffset}?'
524 my $thisoffset;
525 tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser;
526 ':'') . ($parser->{_check}{prevoffset}?'
527 my $prevoffset;
528 tie $prevoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser, 1;
529 ':'') . ($parser->{_check}{thiscolumn}?'
530 my $thiscolumn;
531 tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser;
532 ':'') . ($parser->{_check}{prevcolumn}?'
533 my $prevcolumn;
534 tie $prevcolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser, 1;
535 ':'') . ($parser->{_check}{prevline}?'
536 my $prevline;
537 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
538 ':'') . '
539 my $thisline;
540 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
541  
542 711 ▶ '. $self->{vars} .'
Branch: 6 branches
BranchTrueFalseTotal
$parser->{'deferrable'} ? : 0 709 709
$parser->{'_check'}{'thisoffset'} ? : 40 669 709
$parser->{'_check'}{'prevoffset'} ? : 40 669 709
$parser->{'_check'}{'thiscolumn'} ? : 40 669 709
$parser->{'_check'}{'prevcolumn'} ? : 40 669 709
$parser->{'_check'}{'prevline'} ? : 40 669 709
543 ';
544  
545 711 my $prod;
546 711 foreach $prod ( @{$self->{"prods"}} )
547 {
548 1331 ▶ $prod->addscore($self->{autoscore},0,0) if $self->{autoscore};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"autoscore"} 0 1329 1329
549 1331 ▶ next unless $prod->checkleftmost();
Branch: 1 branch
BranchTrueFalseTotal
unless $prod->checkleftmost 0 1329 1329
550 1332 $code .= $prod->code($namespace,$self,$parser);
551  
552 $code .= $parser->{deferrable}
553 1332 ▶ ? ' splice
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'deferrable'} ? : 0 1329 1329
554 @{$thisparser->{deferred}}, $def_at unless $_matched;
555 '
556 : '';
557 }
558  
559 $code .=
560 '
561 unless ( $_matched || defined($score) )
562 {
563 ' .($parser->{deferrable}
564 ? ' splice @{$thisparser->{deferred}}, $def_at;
565 '
566 : '') . '
567  
568 $_[1] = $text; # NOT SURE THIS IS NEEDED
569 Parse::RecDescent::_trace(q{<<'.Parse::RecDescent::_matchtracemessage($self,1).' rule>>},
570 Parse::RecDescent::_tracefirst($_[1]),
571 q{' . $self->{"name"} .'},
572 $tracelevel)
573 if defined $::RD_TRACE;
574 return undef;
575 }
576 if (!defined($return) && defined($score))
577 {
578 Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
579 q{' . $self->{"name"} .'},
580 $tracelevel)
581 if defined $::RD_TRACE;
582 $return = $score_return;
583 }
584 splice @{$thisparser->{errors}}, $err_at;
585 $return = $item[$#item] unless defined $return;
586 if (defined $::RD_TRACE)
587 {
588 Parse::RecDescent::_trace(q{>>'.Parse::RecDescent::_matchtracemessage($self).' rule<< (return value: [} .
589 $return . q{])}, "",
590 q{' . $self->{"name"} .'},
591 $tracelevel);
592 Parse::RecDescent::_trace(q{(consumed: [} .
593 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
594 Parse::RecDescent::_tracefirst($text),
595 712 ▶ , q{' . $self->{"name"} .'},
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'deferrable'} ? : 0 709 709
596 $tracelevel)
597 }
598 $_[1] = $text;
599 return $return;
600 }
601 ';
602  
603 712 return $code;
604 }
605  
606 27 my @left;
607 sub isleftrec($$)
608 711 ▶{
Subroutine isleftrec: called CC=6 SCAR=17.9
609 712 my ($self, $rules) = @_;
610 712 my $root = $self->{"name"};
611 712 @left = $self->leftmostsubrules();
612 712 my $next;
613 712 foreach $next ( @left )
614 {
615 1822 ▶ next unless defined $rules->{$next}; # SKIP NON-EXISTENT RULES
Branch: 1 branch
BranchTrueFalseTotal
unless defined $rules->{$next} 189 1630 1819
616 1633 ▶ return 1 if $next eq $root;
Branch: 1 branch
BranchTrueFalseTotal
if $next eq $root 0 1630 1630
617 1633 my $child;
618 1632 foreach $child ( $rules->{$next}->leftmostsubrules() )
619 {
620 1367 ▶ push(@left, $child)
Branch: 1 branch
BranchTrueFalseTotal
unless &_contains($child, @left) 1183 182 1365
621 if ! _contains($child, @left) ;
622 }
623 }
624 711 return 0;
625 }
626  
627 package Parse::RecDescent::Production;
628  
629 sub describe ($;$)
630 2660 ▶{
Subroutine describe: called CC=2 SCAR=7.0
631 2660 ▶ return join ' ', map { $_->describe($_[1]) or () } @{$_[0]->{items}};
Condition66%2/3
$_->describe($_[1]) || ()
l!l&&r!l&&!r
46182500
MC/DC0%0/2
$_->describe($_[1]) || ()
$_->describe($_[1]) ()
Truth table66%2/3
A || B
A= $_->describe($_[1])B= ()
ABresult
1X1
011
000
632 }
633  
634 sub new ($$;$$)
635 1326 ▶{
Subroutine new: called CC=2 SCAR=7.6
636 1326 my ($self, $line, $uncommit, $error) = @_;
637 1326 ▶ my $class = ref($self) || $self;
Condition33%1/3
ref $self || $self
l!l&&r!l&&!r
013240
MC/DC0%0/2
ref $self || $self
ref $self $self
Truth table33%1/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
638  
639 1326 bless
640 {
641 "items" => [],
642 "uncommit" => $uncommit,
643 "error" => $error,
644 "line" => $line,
645 strcount => 0,
646 patcount => 0,
647 dircount => 0,
648 actcount => 0,
649 }, $class;
650 }
651  
652 sub expected ($)
653 1386 ▶{
Subroutine expected: called CC=2 SCAR=7.1
654 1386 my $itemcount = scalar @{$_[0]->{"items"}};
655 1386 ▶ return ($itemcount) ? $_[0]->{"items"}[0]->describe(1) : '';
Branch: 1 branch
BranchTrueFalseTotal
$itemcount ? : 1384 0 1384
656 }
657  
658 sub hasleftmost ($$)
659 5947 ▶{
Subroutine hasleftmost: called CC=2 SCAR=7.0
660 5946 my ($self, $ref) = @_;
661 5946 ▶ return ${$self->{"items"}}[0] eq $ref if scalar @{$self->{"items"}};
Branch: 1 branch
BranchTrueFalseTotal
if scalar @{$self->{"items"};} 5944 0 5944
662 2 return 0;
663 }
664  
665 sub isempty($)
666 1332 ▶{
Subroutine isempty: called CC=1 SCAR=0.0
667 1331 my $self = shift;
668 1331 return 0 == @{$self->{"items"}};
669 }
670  
671 sub leftmostsubrule($)
672 5164 ▶{
Subroutine leftmostsubrule: called CC=3 SCAR=11.0
673 5163 my $self = shift;
674  
675 5163 ▶ if ( $#{$self->{"items"}} >= 0 )
Branch: 1 branch
BranchTrueFalseTotal
if ($#{$$self{"items"};} >= 0) 5161 0 5161
676 {
677 5163 my $subrule = $self->{"items"}[0]->issubrule();
678 5163 ▶ return $subrule if defined $subrule;
Branch: 1 branch
BranchTrueFalseTotal
if defined $subrule 2001 3160 5161
679 }
680  
681 3162 return ();
682 }
683  
684 sub checkleftmost($)
685 1332 ▶{
Subroutine checkleftmost: called CC=15 SCAR=31.1
686 1331 my @items = @{$_[0]->{"items"}};
687 1331 ▶ if (@items==1 && ref($items[0]) =~ /\AParse::RecDescent::Error/
Branch: 3 branches
BranchTrueFalseTotal
if (@items == 1 and ref($items[0]) =~ /\AParse::RecDescent::Error/ and $items[0]{'commitonly'}) { } 0 1329 1329
elsif (@items == 1 and ($items[0]->describe || '') =~ /<rulevar|<autoscore/) { } 1 1328 1329
elsif (@items and ref($items[0]) =~ /\AParse::RecDescent::UncondReject/ || ($items[0]->describe || '') =~ /<autoscore/) { } 0 1328 1328
Condition83%5/6
@items == 1 and ref($items[0]) =~ /\AParse::RecDescent::Error/ and $items[0]{"commitonly"}
!ll&&!rl&&r
132270
@items == 1 and ref($items[0]) =~ /\AParse::RecDescent::Error/
!ll&&!rl&&r
5477757
MC/DC0%0/3
@items == 1 and ref($items[0]) =~ /\AParse::RecDescent::Error/ and $items[0]{"commitonly"}
@items == 1 ref($items[0]) =~ /\AParse::RecDescent::Error/ $items[0]{"commitonly"}
Truth table75%3/4
A and B and C
A= @items == 1B= ref($items[0]) =~ /\AParse::RecDescent::Error/C= $items[0]{"commitonly"}
ABCresult
0XX0
10X0
1100
1111
688 && $items[0]->{commitonly} )
689 {
690 2 Parse::RecDescent::_warn(2,"Lone <error?> in production treated
691 as <error?> <reject>");
692 2 Parse::RecDescent::_hint("A production consisting of a single
693 conditional <error?> directive would
694 normally succeed (with the value zero) if the
695 rule is not 'commited' when it is
696 tried. Since you almost certainly wanted
697 '<error?> <reject>' Parse::RecDescent
698 supplied it for you.");
699 2 push @{$_[0]->{items}},
700 Parse::RecDescent::UncondReject->new(0,0,'<reject>');
701 }
702 ▶ elsif (@items==1 && ($items[0]->describe||"") =~ /<rulevar|<autoscore/)
Condition100%5/5
@items == 1 and ($items[0]->describe || "") =~ /<rulevar|<autoscore/
!ll&&!rl&&r
5477811
$items[0]->describe || ''
l!l
7802
MC/DC100%2/2
@items == 1 and ($items[0]->describe || "") =~ /<rulevar|<autoscore/
@items == 1 $items[0]->describe
Truth table100%3/3
A and B
A= @items == 1B= $items[0]->describe
ABresult
0X0
100
111
703 {
704 # Do nothing
705 }
706 ▶ elsif (@items &&
Condition50%4/8
@items and ref($items[0]) =~ /\AParse::RecDescent::UncondReject/ || ($items[0]->describe || "") =~ /<autoscore/
!ll&&!rl&&r
013280
ref($items[0]) =~ /\AParse::RecDescent::UncondReject/ or ($items[0]->describe || "") =~ /<autoscore/
l!l&&r!l&&!r
001328
$items[0]->describe || ''
l!l
13262
MC/DC33%1/3
@items and ref($items[0]) =~ /\AParse::RecDescent::UncondReject/ || ($items[0]->describe || "") =~ /<autoscore/
@items ref($items[0]) =~ /\AParse::RecDescent::UncondReject/ $items[0]->describe
Truth table50%2/4
A and B or C
A= @itemsB= ref($items[0]) =~ /\AParse::RecDescent::UncondReject/C= $items[0]->describe
ABCresult
0XX0
1000
11X1
1011
707 ( ref($items[0]) =~ /\AParse::RecDescent::UncondReject/
708 || ($items[0]->describe||"") =~ /<autoscore/
709 ))
710 {
711 2 Parse::RecDescent::_warn(1,"Optimizing away production: [". $_[0]->describe ."]");
712 2 ▶ my $what = $items[0]->describe =~ /<rulevar/
Branch: 2 branches
BranchTrueFalseTotal
$items[0]->describe =~ /<rulevar/ ? : 0 0 0
$items[0]->describe =~ /<autoscore/ ? : 0 0 0
713 ? "a <rulevar> (which acts like an unconditional <reject> during parsing)"
714 : $items[0]->describe =~ /<autoscore/
715 ? "an <autoscore> (which acts like an unconditional <reject> during parsing)"
716 : "an unconditional <reject>";
717 2 ▶ my $caveat = $items[0]->describe =~ /<rulevar/
Branch: 1 branch
BranchTrueFalseTotal
$items[0]->describe =~ /<rulevar/ ? : 0 0 0
718 ? " after the specified variable was set up"
719 : "";
720 2 ▶ my $advice = @items > 1
Branch: 1 branch
BranchTrueFalseTotal
@items > 1 ? : 0 0 0
721 ? "However, there were also other (useless) items after the leading "
722 . $items[0]->describe
723 . ", so you may have been expecting some other behaviour."
724 : "You can safely ignore this message.";
725 2 Parse::RecDescent::_hint("The production starts with $what. That means that the
726 production can never successfully match, so it was
727 optimized out of the final parser$caveat. $advice");
728 2 return 0;
729 }
730 1331 return 1;
731 }
732  
733 sub changesskip($)
734 1331 ▶{
Subroutine changesskip: called CC=4 SCAR=13.9
735 1331 my $item;
736 1331 foreach $item (@{$_[0]->{"items"}})
737 {
738 2427 ▶ if (ref($item) =~ /Parse::RecDescent::(Action|Directive)/)
Branch: 1 branch
BranchTrueFalseTotal
if (ref($item) =~ /Parse::RecDescent::(Action|Directive)/) 138 2287 2425
739 {
740 140 ▶ return 1 if $item->{code} =~ /\$skip\s*=/;
Branch: 1 branch
BranchTrueFalseTotal
if $item->{"code"} =~ /\$skip\s*=/ 3 135 138
741 }
742 }
743 1327 return 0;
744 }
745  
746 sub adddirective
747 139 ▶{
Subroutine adddirective: called CC=1 SCAR=0.0
748 138 my ( $self, $whichop, $line, $name ) = @_;
749 138 push @{$self->{op}},
750 { type=>$whichop, line=>$line, name=>$name,
751 138 offset=> scalar(@{$self->{items}}) };
752 }
753  
754 sub addscore
755 2 ▶{
Subroutine addscore: called CC=2 SCAR=8.1
756 1 my ( $self, $code, $lookahead, $line ) = @_;
757 $self->additem(Parse::RecDescent::Directive->new(
758 "local \$^W;
759 my \$thisscore = do { $code } + 0;
760 if (!defined(\$score) || \$thisscore>\$score)
761 { \$score=\$thisscore; \$score_return=\$item[-1]; }
762 undef;", $lookahead, $line,"<score: $code>") )
763 1 ▶ unless $self->{items}[-1]->describe =~ /<score/;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"items"}[-1]->describe =~ /<score/ 0 0 0
764 1 return 1;
765 }
766  
767 sub check_pending
768 1248 ▶{
Subroutine check_pending: called CC=3 SCAR=11.0
769 1247 my ( $self, $line ) = @_;
770 1247 ▶ if ($self->{op})
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"op"}) 137 1109 1246
771 {
772 138 ▶ while (my $next = pop @{$self->{op}})
Branch: 1 branch
BranchTrueFalseTotal
if (my $next = pop @{$$self{"op"};}) 0 137 137
773 {
774 1 Parse::RecDescent::_error("Incomplete <$next->{type}op:...>.", $line);
775 1 Parse::RecDescent::_hint(
776 "The current production ended without completing the
777 <$next->{type}op:...> directive that started near line
778 $next->{line}. Did you forget the closing '>'?");
779 }
780 }
781 1247 return 1;
782 }
783  
784 sub enddirective
785 139 ▶{
Subroutine enddirective: called CC=4 SCAR=13.9
786 138 my ( $self, $line, $minrep, $maxrep ) = @_;
787 138 ▶ unless ($self->{op})
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"op"}) 0 137 137
788 {
789 1 Parse::RecDescent::_error("Unmatched > found.", $line);
790 1 Parse::RecDescent::_hint(
791 "A '>' angle bracket was encountered, which typically
792 indicates the end of a directive. However no suitable
793 preceding directive was encountered. Typically this
794 indicates either a extra '>' in the grammar, or a
795 problem inside the previous directive.");
796 1 return;
797 }
798 138 my $op = pop @{$self->{op}};
799 138 my $span = @{$self->{items}} - $op->{offset};
800 138 ▶ if ($op->{type} =~ /left|right/)
Branch: 1 branch
BranchTrueFalseTotal
if ($op->{"type"} =~ /left|right/) 137 0 137
801 {
802 138 ▶ if ($span != 3)
Branch: 1 branch
BranchTrueFalseTotal
if ($span != 3) { } 0 137 137
803 {
804 1 Parse::RecDescent::_error(
805 "Incorrect <$op->{type}op:...> specification:
806 expected 3 args, but found $span instead", $line);
807 1 Parse::RecDescent::_hint(
808 "The <$op->{type}op:...> directive requires a
809 sequence of exactly three elements. For example:
810 <$op->{type}op:leftarg /op/ rightarg>");
811 }
812 else
813 {
814 138 push @{$self->{items}},
815 Parse::RecDescent::Operator->new(
816 138 $op->{type}, $minrep, $maxrep, splice(@{$self->{"items"}}, -3));
817 138 $self->{items}[-1]->sethashname($self);
818 138 $self->{items}[-1]{name} = $op->{name};
819 }
820 }
821 }
822  
823 sub prevwasreturn
824 2 ▶{
Subroutine prevwasreturn: called CC=2 SCAR=7.1
825 1 my ( $self, $line ) = @_;
826 1 ▶ unless (@{$self->{items}})
Branch: 1 branch
BranchTrueFalseTotal
unless (@{$self->{"items"};}) 0 0 0
827 {
828 1 Parse::RecDescent::_error(
829 "Incorrect <return:...> specification:
830 expected item missing", $line);
831 1 Parse::RecDescent::_hint(
832 "The <return:...> directive requires a
833 sequence of at least one item. For example:
834 <return: list>");
835 1 return;
836 }
837 1 push @{$self->{items}},
838 Parse::RecDescent::Result->new();
839 }
840  
841 sub additem
842 2704 ▶{
Subroutine additem: called CC=1 SCAR=0.0
843 2703 my ( $self, $item ) = @_;
844 2703 $item->sethashname($self);
845 2703 push @{$self->{"items"}}, $item;
846 2703 return $item;
847 }
848  
849 sub _duplicate_itempos
850 13 ▶{
Subroutine _duplicate_itempos: called CC=2 SCAR=6.9
851 12 my ($src) = @_;
852 12 my $dst = {};
853  
854 12 foreach (keys %$src)
855 {
856 34 %{$dst->{$_}} = %{$src->{$_}};
857 }
858 12 $dst;
859 }
860  
861 sub _update_itempos
862 179 ▶{
Subroutine _update_itempos: called CC=4 SCAR=14.0
863 178 my ($dst, $src, $typekeys, $poskeys) = @_;
864  
865 178 ▶ my @typekeys = 'ARRAY' eq ref $typekeys ?
Branch: 1 branch
BranchTrueFalseTotal
'ARRAY' eq ref $typekeys ? : 0 177 177
866 @$typekeys :
867 keys %$src;
868  
869 178 foreach my $k (keys %$src)
870 {
871 532 ▶ if ('ARRAY' eq ref $poskeys)
Branch: 1 branch
BranchTrueFalseTotal
if ('ARRAY' eq ref $poskeys) { } 531 0 531
872 {
873 532 @{$dst->{$k}}{@$poskeys} = @{$src->{$k}}{@$poskeys};
874 }
875 else
876 {
877 1 %{$dst->{$k}} = %{$src->{$k}};
878 }
879 }
880 }
881  
882 sub preitempos
883 114 ▶{
Subroutine preitempos: called CC=1 SCAR=0.0
884 return q
885 113 {
886 push @itempos, {'offset' => {'from'=>$thisoffset, 'to'=>undef},
887 'line' => {'from'=>$thisline, 'to'=>undef},
888 'column' => {'from'=>$thiscolumn, 'to'=>undef} };
889 }
890 }
891  
892 sub incitempos
893 59 ▶{
Subroutine incitempos: called CC=1 SCAR=0.0
894 return q
895 58 {
896 $itempos[$#itempos]{'offset'}{'from'} += length($lastsep);
897 $itempos[$#itempos]{'line'}{'from'} = $thisline;
898 $itempos[$#itempos]{'column'}{'from'} = $thiscolumn;
899 }
900 }
901  
902 sub unincitempos
903 59 ▶{
Subroutine unincitempos: called CC=1 SCAR=0.0
904 # the next incitempos will properly set these two fields, but
905 # {'offset'}{'from'} needs to be decreased by length($lastsep)
906 # $itempos[$#itempos]{'line'}{'from'}
907 # $itempos[$#itempos]{'column'}{'from'}
908 return q
909 58 {
910 $itempos[$#itempos]{'offset'}{'from'} -= length($lastsep) if defined $lastsep;
911 }
912 }
913  
914 sub postitempos
915 114 ▶{
Subroutine postitempos: called CC=1 SCAR=0.0
916 return q
917 113 {
918 $itempos[$#itempos]{'offset'}{'to'} = $prevoffset;
919 $itempos[$#itempos]{'line'}{'to'} = $prevline;
920 $itempos[$#itempos]{'column'}{'to'} = $prevcolumn;
921 }
922 }
923  
924 sub code($$$$)
925 1331 ▶{
Subroutine code: called CC=19 SCAR=30.2
926 1330 my ($self,$namespace,$rule,$parser) = @_;
927 my $code =
928 '
929 while (!$_matched'
930 . (defined $self->{"uncommit"} ? '' : ' && !$commit')
931 . ')
932 {
933 ' .
934 ($self->changesskip()
935 ? 'local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip;'
936 : '') .'
937 Parse::RecDescent::_trace(q{Trying production: ['
938 . $self->describe . ']},
939 Parse::RecDescent::_tracefirst($_[1]),
940 q{' . $rule ->{name}. '},
941 $tracelevel)
942 if defined $::RD_TRACE;
943 my $thisprod = $thisrule->{"prods"}[' . $self->{"number"} . '];
944 ' . (defined $self->{"error"} ? '' : '$text = $_[1];' ) . '
945 my $_savetext;
946 @item = (q{' . $rule->{"name"} . '});
947 1330 ▶ %item = (__RULE__ => q{' . $rule->{"name"} . '});
Branch: 3 branches
BranchTrueFalseTotal
defined $self->{'uncommit'} ? : 8 1321 1329
$self->changesskip ? : 3 1326 1329
defined $self->{'error'} ? : 7 1322 1329
948 my $repcount = 0;
949  
950 ';
951 $code .=
952 ' my @itempos = ({});
953 1330 ▶' if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 51 1278 1329
954  
955 1330 my $item;
956 my $i;
957  
958 1330 ▶ for ($i = 0; $i < @{$self->{"items"}}; $i++)
Branch: 1 branch
BranchTrueFalseTotal
if ($i < @{$self->{"items"};}) 2434 1329 3763
959 {
960 2435 $item = ${$self->{items}}[$i];
961  
962 2435 ▶ $code .= preitempos() if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 112 2322 2434
963  
964 2435 $code .= $item->code($namespace,$rule,$parser->{_check});
965  
966 2435 ▶ $code .= postitempos() if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 112 2322 2434
967  
968 }
969  
970 1330 ▶ if ($parser->{_AUTOACTION} && defined($item) && !$item->isa("Parse::RecDescent::Action"))
Branch: 2 branches
BranchTrueFalseTotal
if ($parser->{'_AUTOACTION'} and defined $item and not $item->isa('Parse::RecDescent::Action')) { } 0 1329 1329
elsif ($parser->{'_AUTOTREE'} and defined $item and not $item->isa('Parse::RecDescent::Action')) { } 27 2604 2631
Condition33%2/6
$parser->{"_AUTOACTION"} and defined $item and not $item->isa("Parse::RecDescent::Action")
!ll&&!rl&&r
132900
$parser->{"_AUTOACTION"} and defined $item
!ll&&!rl&&r
132900
MC/DC0%0/3
$parser->{"_AUTOACTION"} and defined $item and not $item->isa("Parse::RecDescent::Action")
$parser->{"_AUTOACTION"} defined $item not $item->isa("Parse::RecDescent::Action")
Truth table25%1/4
A and B and not(C)
A= $parser->{"_AUTOACTION"}B= defined $itemC= not $item->isa("Parse::RecDescent::Action")
ABCresult
0XX0
10X0
1100
1111
971 {
972 1 $code .= $parser->{_AUTOACTION}->code($namespace,$rule);
973 1 ▶ Parse::RecDescent::_warn(1,"Autogenerating action in rule
Branch: 1 branch
BranchTrueFalseTotal
&Parse::RecDescent::_warn(1, qq[Autogenerating action in rule\n "$rule->{"name"}":\n $parser->{"_AUTOACTION"}{"code"}]) and &Parse::RecDescent::_hint("The \$::RD_AUTOACTION was defined,\n so any production not ending in an\n explicit action has the specified\n \"auto-action\" automatically\n appended.") 0 0 0
974 \"$rule->{name}\":
975 $parser->{_AUTOACTION}{code}")
976 and
977 Parse::RecDescent::_hint("The \$::RD_AUTOACTION was defined,
978 so any production not ending in an
979 explicit action has the specified
980 \"auto-action\" automatically
981 appended.");
982 }
983 ▶ elsif ($parser->{_AUTOTREE} && defined($item) && !$item->isa("Parse::RecDescent::Action"))
Condition66%4/6
$parser->{"_AUTOTREE"} and defined $item and not $item->isa("Parse::RecDescent::Action")
!ll&&!rl&&r
1302027
$parser->{"_AUTOTREE"} and defined $item
!ll&&!rl&&r
1302027
MC/DC33%1/3
$parser->{"_AUTOTREE"} and defined $item and not $item->isa("Parse::RecDescent::Action")
$parser->{"_AUTOTREE"} defined $item not $item->isa("Parse::RecDescent::Action")
Truth table50%2/4
A and B and not(C)
A= $parser->{"_AUTOTREE"}B= defined $itemC= not $item->isa("Parse::RecDescent::Action")
ABCresult
0XX0
10X0
1100
1111
984 {
985 28 ▶ if ($i==1 && $item->isterminal)
Branch: 1 branch
BranchTrueFalseTotal
if ($i == 1 and $item->isterminal) { } 6 21 27
Condition100%3/3
$i == 1 and $item->isterminal
!ll&&!rl&&r
9126
MC/DC100%2/2
$i == 1 and $item->isterminal
$i == 1 $item->isterminal
Truth table100%3/3
A and B
A= $i == 1B= $item->isterminal
ABresult
0X0
100
111
986 {
987 7 $code .= $parser->{_AUTOTREE}{TERMINAL}->code($namespace,$rule);
988 }
989 else
990 {
991 22 $code .= $parser->{_AUTOTREE}{NODE}->code($namespace,$rule);
992 }
993 28 ▶ Parse::RecDescent::_warn(1,"Autogenerating tree-building action in rule
Branch: 1 branch
BranchTrueFalseTotal
&Parse::RecDescent::_warn(1, qq[Autogenerating tree-building action in rule\n "$rule->{"name"}"]) and &Parse::RecDescent::_hint("The directive <autotree> was specified,\n so any production not ending\n in an explicit action has\n some parse-tree building code\n automatically appended.") 0 27 27
994 \"$rule->{name}\"")
995 and
996 Parse::RecDescent::_hint("The directive <autotree> was specified,
997 so any production not ending
998 in an explicit action has
999 some parse-tree building code
1000 automatically appended.");
1001 }
1002  
1003 $code .=
1004 '
1005 Parse::RecDescent::_trace(q{>>'.Parse::RecDescent::_matchtracemessage($self).' production: ['
1006 . $self->describe . ']<<},
1007 Parse::RecDescent::_tracefirst($text),
1008 q{' . $rule->{name} . '},
1009 $tracelevel)
1010 if defined $::RD_TRACE;
1011  
1012 1330 ▶' . ( $parser->{_check}{itempos} ? '
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'_check'}{'itempos'} ? : 51 1278 1329
1013 if ( defined($_itempos) )
1014 {
1015 Parse::RecDescent::Production::_update_itempos($_itempos, $itempos[ 1], undef, [qw(from)]);
1016 Parse::RecDescent::Production::_update_itempos($_itempos, $itempos[-1], undef, [qw(to)]);
1017 }
1018 ' : '' ) . '
1019  
1020 $_matched = 1;
1021 last;
1022 }
1023  
1024 ';
1025 1330 return $code;
1026 }
1027  
1028 27 1;
1029  
1030 package Parse::RecDescent::Action;
1031  
1032 257 ▶sub describe { undef }
Subroutine describe: called CC=1 SCAR=0.0
1033  
1034 125 ▶sub sethashname { $_[0]->{hashname} = '__ACTION' . ++$_[1]->{actcount} .'__'; }
Subroutine sethashname: called CC=1 SCAR=0.0
1035  
1036 sub new
1037 142 ▶{
Subroutine new: called CC=2 SCAR=8.1
1038 140 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
01390
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1039 139 bless
1040 {
1041 "code" => $_[1],
1042 "lookahead" => $_[2],
1043 "line" => $_[3],
1044 }, $class;
1045 }
1046  
1047 4 ▶sub issubrule { undef }
Subroutine issubrule: called CC=1 SCAR=0.0
1048 0 ▶sub isterminal { 0 }
Subroutine isterminal: called CC=1 SCAR=6.9
1049  
1050 sub code($$$$)
1051 154 ▶{
Subroutine code: called CC=5 SCAR=17.4
1052 152 my ($self, $namespace, $rule) = @_;
1053  
1054 '
1055 Parse::RecDescent::_trace(q{Trying action},
1056 Parse::RecDescent::_tracefirst($text),
1057 q{' . $rule->{name} . '},
1058 $tracelevel)
1059 if defined $::RD_TRACE;
1060 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
1061  
1062 $_tok = ($_noactions) ? 0 : do ' . $self->{"code"} . ';
1063 ' . ($self->{"lookahead"}<0?'if':'unless') . ' (defined $_tok)
1064 {
1065 Parse::RecDescent::_trace(q{<<'.Parse::RecDescent::_matchtracemessage($self,1).' action>> (return value: [undef])})
1066 if defined $::RD_TRACE;
1067 last;
1068 }
1069 Parse::RecDescent::_trace(q{>>'.Parse::RecDescent::_matchtracemessage($self).' action<< (return value: [}
1070 . $_tok . q{])},
1071 Parse::RecDescent::_tracefirst($text))
1072 if defined $::RD_TRACE;
1073 push @item, $_tok;
1074 ' . ($self->{line}>=0 ? '$item{'. $self->{hashname} .'}=$_tok;' : '' ) .'
1075 152 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 4 branches
BranchTrueFalseTotal
$self->{'lookahead'} ? : 0 152 152
$self->{'lookahead'} < 0 ? : 0 152 152
$self->{'line'} >= 0 ? : 125 27 152
$self->{'lookahead'} ? : 0 152 152
1076 '
1077 }
1078  
1079  
1080 31 1;
1081  
1082 package Parse::RecDescent::Directive;
1083  
1084 16 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: called CC=1 SCAR=0.0
1085  
1086 19 ▶sub issubrule { undef }
Subroutine issubrule: called CC=1 SCAR=0.0
1087 0 ▶sub isterminal { 0 }
Subroutine isterminal: called CC=1 SCAR=6.9
1088 79 ▶sub describe { $_[1] ? '' : $_[0]->{name} }
Subroutine describe: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 12 67 79
1089  
1090 sub new ($$$$$)
1091 25 ▶{
Subroutine new: called CC=2 SCAR=8.1
1092 23 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
0230
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1093 23 bless
1094 {
1095 "code" => $_[1],
1096 "lookahead" => $_[2],
1097 "line" => $_[3],
1098 "name" => $_[4],
1099 }, $class;
1100 }
1101  
1102 sub code($$$$)
1103 25 ▶{
Subroutine code: called CC=5 SCAR=18.9
1104 23 my ($self, $namespace, $rule) = @_;
1105  
1106 '
1107 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
1108  
1109 Parse::RecDescent::_trace(q{Trying directive: ['
1110 . $self->describe . ']},
1111 Parse::RecDescent::_tracefirst($text),
1112 q{' . $rule->{name} . '},
1113 $tracelevel)
1114 if defined $::RD_TRACE; ' .'
1115 $_tok = do { ' . $self->{"code"} . ' };
1116 if (defined($_tok))
1117 {
1118 Parse::RecDescent::_trace(q{>>'.Parse::RecDescent::_matchtracemessage($self).' directive<< (return value: [}
1119 . $_tok . q{])},
1120 Parse::RecDescent::_tracefirst($text))
1121 if defined $::RD_TRACE;
1122 }
1123 else
1124 {
1125 Parse::RecDescent::_trace(q{<<'.Parse::RecDescent::_matchtracemessage($self,1).' directive>>},
1126 Parse::RecDescent::_tracefirst($text))
1127 if defined $::RD_TRACE;
1128 }
1129 ' . ($self->{"lookahead"} ? '$text = $_savetext and ' : '' ) .'
1130 last '
1131 . ($self->{"lookahead"}<0?'if':'unless') . ' defined $_tok;
1132 push @item, $item{'.$self->{hashname}.'}=$_tok;
1133 23 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 4 branches
BranchTrueFalseTotal
$self->{'lookahead'} ? : 0 23 23
$self->{'lookahead'} ? : 0 23 23
$self->{'lookahead'} < 0 ? : 0 23 23
$self->{'lookahead'} ? : 0 23 23
1134 '
1135 }
1136  
1137 26 1;
1138  
1139 package Parse::RecDescent::UncondReject;
1140  
1141 1 ▶sub issubrule { undef }
Subroutine issubrule: called CC=1 SCAR=0.0
1142 0 ▶sub isterminal { 0 }
Subroutine isterminal: called CC=1 SCAR=6.9
1143 8 ▶sub describe { $_[1] ? '' : $_[0]->{name} }
Subroutine describe: called CC=2 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 1 7 8
1144 2 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: called CC=1 SCAR=0.0
1145  
1146 sub new ($$$;$)
1147 4 ▶{
Subroutine new: called CC=2 SCAR=8.1
1148 2 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
020
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1149 2 bless
1150 {
1151 "lookahead" => $_[1],
1152 "line" => $_[2],
1153 "name" => $_[3],
1154 }, $class;
1155 }
1156  
1157 # MARK, YOU MAY WANT TO OPTIMIZE THIS.
1158  
1159  
1160 sub code($$$$)
1161 4 ▶{
Subroutine code: called CC=4 SCAR=15.8
1162 2 my ($self, $namespace, $rule) = @_;
1163  
1164 '
1165 Parse::RecDescent::_trace(q{>>Rejecting production<< (found '
1166 . $self->describe . ')},
1167 Parse::RecDescent::_tracefirst($text),
1168 q{' . $rule->{name} . '},
1169 $tracelevel)
1170 if defined $::RD_TRACE;
1171 undef $return;
1172 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
1173  
1174 $_tok = undef;
1175 ' . ($self->{"lookahead"} ? '$text = $_savetext and ' : '' ) .'
1176 last '
1177 2 ▶ . ($self->{"lookahead"}<0?'if':'unless') . ' defined $_tok;
Branch: 3 branches
BranchTrueFalseTotal
$self->{'lookahead'} ? : 0 2 2
$self->{'lookahead'} ? : 0 2 2
$self->{'lookahead'} < 0 ? : 0 2 2
1178 '
1179 }
1180  
1181 26 1;
1182  
1183 package Parse::RecDescent::Error;
1184  
1185 7 ▶sub issubrule { undef }
Subroutine issubrule: called CC=1 SCAR=0.0
1186 0 ▶sub isterminal { 0 }
Subroutine isterminal: called CC=1 SCAR=6.9
1187 42 ▶sub describe { $_[1] ? '' : $_[0]->{commitonly} ? '<error?:...>' : '<error...>' }
Subroutine describe: called CC=3 SCAR=11.2
Branch: 2 branches
BranchTrueFalseTotal
$_[1] ? : 7 35 42
$_[0]{'commitonly'} ? : 0 35 35
1188 7 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: called CC=1 SCAR=0.0
1189  
1190 sub new ($$$$$)
1191 10 ▶{
Subroutine new: called CC=2 SCAR=8.1
1192 7 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
070
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1193 7 bless
1194 {
1195 "msg" => $_[1],
1196 "lookahead" => $_[2],
1197 "commitonly" => $_[3],
1198 "line" => $_[4],
1199 }, $class;
1200 }
1201  
1202 sub code($$$$)
1203 10 ▶{
Subroutine code: called CC=3 SCAR=11.4
1204 7 my ($self, $namespace, $rule) = @_;
1205  
1206 7 my $action = '';
1207  
1208 7 ▶ if ($self->{"msg"}) # ERROR MESSAGE SUPPLIED
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'msg'}) { } 0 7 7
1209 {
1210 #WAS: $action .= "Parse::RecDescent::_error(qq{$self->{msg}}" . ',$thisline);';
1211 0 $action .= 'push @{$thisparser->{errors}}, [qq{'.$self->{msg}.'},$thisline];';
1212  
1213 }
1214 else # GENERATE ERROR MESSAGE DURING PARSE
1215 {
1216 7 $action .= '
1217 my $rule = $item[0];
1218 $rule =~ s/_/ /g;
1219 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
1220 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
1221 ';
1222 }
1223  
1224 my $dir =
1225 new Parse::RecDescent::Directive('if (' .
1226 ($self->{"commitonly"} ? '$commit' : '1') .
1227 ") { do {$action} unless ".' $_noactions; undef } else {0}',
1228 7 ▶ $self->{"lookahead"},0,$self->describe);
Branch: 1 branch
BranchTrueFalseTotal
$self->{'commitonly'} ? : 0 7 7
1229 7 $dir->{hashname} = $self->{hashname};
1230 7 return $dir->code($namespace, $rule, 0);
1231 }
1232  
1233 26 1;
1234  
1235 package Parse::RecDescent::Token;
1236  
1237 240 ▶sub sethashname { $_[0]->{hashname} = '__PATTERN' . ++$_[1]->{patcount} . '__'; }
Subroutine sethashname: called CC=1 SCAR=0.0
1238  
1239 537 ▶sub issubrule { undef }
Subroutine issubrule: called CC=1 SCAR=0.0
1240 143 ▶sub isterminal { 1 }
Subroutine isterminal: called CC=1 SCAR=0.0
1241 986 ▶sub describe ($) { shift->{'description'}}
Subroutine describe: called CC=1 SCAR=0.0
1242  
1243  
1244 # ARGS ARE: $self, $pattern, $left_delim, $modifiers, $lookahead, $linenum
1245 sub new ($$$$$$)
1246 242 ▶{
Subroutine new: called CC=5 SCAR=16.2
1247 240 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
02400
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1248 240 my $pattern = $_[1];
1249 240 my $pat = $_[1];
1250 240 my $ldel = $_[2];
1251 240 my $rdel = $ldel;
1252 240 $rdel =~ tr/{[(</}])>/;
1253  
1254 240 my $mod = $_[3];
1255  
1256 240 my $desc;
1257  
1258 240 ▶ if ($ldel eq '/') { $desc = "$ldel$pattern$rdel$mod" }
Branch: 1 branch
BranchTrueFalseTotal
if ($ldel eq '/') { } 240 0 240
1259 0 else { $desc = "m$ldel$pattern$rdel$mod" }
1260 240 $desc =~ s/\\/\\\\/g;
1261 240 $desc =~ s/\$$/\\\$/g;
1262 240 $desc =~ s/}/\\}/g;
1263 240 $desc =~ s/{/\\{/g;
1264  
1265 240 ▶ if (!eval "no strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
if (not eval "no strict;\n local \$SIG{__WARN__} = sub {0};\n '' =~ m$ldel$pattern$rdel$mod" and $@) 0 240 240
Condition66%2/3
not eval "no strict;\n local \$SIG{__WARN__} = sub {0};\n '' =~ m$ldel$pattern$rdel$mod" and $@
!ll&&!rl&&r
32370
MC/DC0%0/2
not eval "no strict;\n local \$SIG{__WARN__} = sub {0};\n '' =~ m$ldel$pattern$rdel$mod" and $@
not eval "no strict;\n local \$SIG{__WARN__} = sub {0};\n '' =~ m$ldel$pattern$rdel$mod" $@
Truth table66%2/3
not(A) and B
A= not eval "no strict;\n local \$SIG{__WARN__} = sub {0};\n '' =~ m$ldel$pattern$rdel$mod"B= $@
ABresult
0X0
100
111
1266 local \$SIG{__WARN__} = sub {0};
1267 '' =~ m$ldel$pattern$rdel$mod" and $@)
1268 {
1269 0 Parse::RecDescent::_warn(3, "Token pattern \"m$ldel$pattern$rdel$mod\"
1270 may not be a valid regular expression",
1271 $_[5]);
1272 0 $@ =~ s/ at \(eval.*/./;
1273 0 Parse::RecDescent::_hint($@);
1274 }
1275  
1276 # QUIETLY PREVENT (WELL-INTENTIONED) CALAMITY
1277 240 $mod =~ s/[gc]//g;
1278 240 $pattern =~ s/(\A|[^\\])\\G/$1/g;
1279  
1280 240 bless
1281 {
1282 "pattern" => $pattern,
1283 "ldelim" => $ldel,
1284 "rdelim" => $rdel,
1285 "mod" => $mod,
1286 "lookahead" => $_[4],
1287 "line" => $_[5],
1288 "description" => $desc,
1289 }, $class;
1290 }
1291  
1292  
1293 sub code($$$$$)
1294 243 ▶{
Subroutine code: called CC=8 SCAR=21.3
1295 241 my ($self, $namespace, $rule, $check) = @_;
1296 241 my $ldel = $self->{"ldelim"};
1297 241 my $rdel = $self->{"rdelim"};
1298 241 my $sdel = $ldel;
1299 241 my $mod = $self->{"mod"};
1300  
1301 241 $sdel =~ s/[[{(<]/{}/;
1302  
1303 my $code = '
1304 Parse::RecDescent::_trace(q{Trying terminal: [' . $self->describe
1305 . ']}, Parse::RecDescent::_tracefirst($text),
1306 q{' . $rule->{name} . '},
1307 $tracelevel)
1308 if defined $::RD_TRACE;
1309 undef $lastsep;
1310 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1311 : $self->describe ) . '})->at($text);
1312 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1313  
1314 ' . ($self->{"lookahead"}<0?'if':'unless')
1315 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1316 . ($check->{itempos}? 'do {'.Parse::RecDescent::Production::incitempos().' 1} and ' : '')
1317 . ' $text =~ m' . $ldel . '\A(?:' . $self->{"pattern"} . ')' . $rdel . $mod . ')
1318 {
1319 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;') .
1320 ($check->{itempos} ? Parse::RecDescent::Production::unincitempos() : '') . '
1321 $expectation->failed();
1322 Parse::RecDescent::_trace(q{<<Didn\'t match terminal>>},
1323 Parse::RecDescent::_tracefirst($text))
1324 if defined $::RD_TRACE;
1325  
1326 last;
1327 }
1328 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1329 substr($text,0,length($current_match),q{});
1330 Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
1331 . $current_match . q{])},
1332 Parse::RecDescent::_tracefirst($text))
1333 if defined $::RD_TRACE;
1334 push @item, $item{'.$self->{hashname}.'}=$current_match;
1335 241 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 7 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 98 143 241
$self->{'lookahead'} ? : 0 241 241
$self->{'lookahead'} < 0 ? : 0 241 241
$check->{'itempos'} ? : 19 222 241
$self->{'lookahead'} ? : 0 241 241
$check->{'itempos'} ? : 19 222 241
$self->{'lookahead'} ? : 0 241 241
1336 ';
1337  
1338 241 return $code;
1339 }
1340  
1341 30 1;
1342  
1343 package Parse::RecDescent::Literal;
1344  
1345 919 ▶sub sethashname { $_[0]->{hashname} = '__STRING' . ++$_[1]->{strcount} . '__'; }
Subroutine sethashname: called CC=1 SCAR=0.0
1346  
1347 2586 ▶sub issubrule { undef }
Subroutine issubrule: called CC=1 SCAR=0.0
1348 0 ▶sub isterminal { 1 }
Subroutine isterminal: called CC=1 SCAR=6.9
1349 4583 ▶sub describe ($) { shift->{'description'} }
Subroutine describe: called CC=1 SCAR=0.0
1350  
1351 sub new ($$$$)
1352 921 ▶{
Subroutine new: called CC=2 SCAR=7.1
1353 919 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
09190
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1354  
1355 919 my $pattern = $_[1];
1356  
1357 919 my $desc = $pattern;
1358 919 $desc=~s/\\/\\\\/g;
1359 919 $desc=~s/}/\\}/g;
1360 919 $desc=~s/{/\\{/g;
1361  
1362 919 bless
1363 {
1364 "pattern" => $pattern,
1365 "lookahead" => $_[2],
1366 "line" => $_[3],
1367 "description" => "'$desc'",
1368 }, $class;
1369 }
1370  
1371  
1372 sub code($$$$)
1373 925 ▶{
Subroutine code: called CC=8 SCAR=21.8
1374 923 my ($self, $namespace, $rule, $check) = @_;
1375  
1376 my $code = '
1377 Parse::RecDescent::_trace(q{Trying terminal: [' . $self->describe
1378 . ']},
1379 Parse::RecDescent::_tracefirst($text),
1380 q{' . $rule->{name} . '},
1381 $tracelevel)
1382 if defined $::RD_TRACE;
1383 undef $lastsep;
1384 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1385 : $self->describe ) . '})->at($text);
1386 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1387  
1388 ' . ($self->{"lookahead"}<0?'if':'unless')
1389 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1390 . ($check->{itempos}? 'do {'.Parse::RecDescent::Production::incitempos().' 1} and ' : '')
1391 . ' $text =~ m/\A' . quotemeta($self->{"pattern"}) . '/)
1392 {
1393 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;').'
1394 '. ($check->{itempos} ? Parse::RecDescent::Production::unincitempos() : '') . '
1395 $expectation->failed();
1396 Parse::RecDescent::_trace(qq{<<Didn\'t match terminal>>},
1397 Parse::RecDescent::_tracefirst($text))
1398 if defined $::RD_TRACE;
1399 last;
1400 }
1401 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1402 substr($text,0,length($current_match),q{});
1403 Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
1404 . $current_match . q{])},
1405 Parse::RecDescent::_tracefirst($text))
1406 if defined $::RD_TRACE;
1407 push @item, $item{'.$self->{hashname}.'}=$current_match;
1408 923 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 7 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 569 354 923
$self->{'lookahead'} ? : 0 923 923
$self->{'lookahead'} < 0 ? : 0 923 923
$check->{'itempos'} ? : 35 888 923
$self->{'lookahead'} ? : 0 923 923
$check->{'itempos'} ? : 35 888 923
$self->{'lookahead'} ? : 0 923 923
1409 ';
1410  
1411 923 return $code;
1412 }
1413  
1414 28 1;
1415  
1416 package Parse::RecDescent::InterpLit;
1417  
1418 5 ▶sub sethashname { $_[0]->{hashname} = '__STRING' . ++$_[1]->{strcount} . '__'; }
Subroutine sethashname: called CC=1 SCAR=0.0
1419  
1420 6 ▶sub issubrule { undef }
Subroutine issubrule: called CC=1 SCAR=0.0
1421 0 ▶sub isterminal { 1 }
Subroutine isterminal: called CC=1 SCAR=6.9
1422 27 ▶sub describe ($) { shift->{'description'} }
Subroutine describe: called CC=1 SCAR=0.0
1423  
1424 sub new ($$$$)
1425 6 ▶{
Subroutine new: called CC=2 SCAR=7.1
1426 5 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
050
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1427  
1428 5 my $pattern = $_[1];
1429 5 $pattern =~ s#/#\\/#g;
1430  
1431 5 my $desc = $pattern;
1432 5 $desc=~s/\\/\\\\/g;
1433 5 $desc=~s/}/\\}/g;
1434 5 $desc=~s/{/\\{/g;
1435  
1436 5 bless
1437 {
1438 "pattern" => $pattern,
1439 "lookahead" => $_[2],
1440 "line" => $_[3],
1441 "description" => "'$desc'",
1442 }, $class;
1443 }
1444  
1445 sub code($$$$)
1446 6 ▶{
Subroutine code: called CC=8 SCAR=21.8
1447 5 my ($self, $namespace, $rule, $check) = @_;
1448  
1449 my $code = '
1450 Parse::RecDescent::_trace(q{Trying terminal: [' . $self->describe
1451 . ']},
1452 Parse::RecDescent::_tracefirst($text),
1453 q{' . $rule->{name} . '},
1454 $tracelevel)
1455 if defined $::RD_TRACE;
1456 undef $lastsep;
1457 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1458 : $self->describe ) . '})->at($text);
1459 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1460  
1461 ' . ($self->{"lookahead"}<0?'if':'unless')
1462 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1463 . ($check->{itempos}? 'do {'.Parse::RecDescent::Production::incitempos().' 1} and ' : '')
1464 . ' do { $_tok = "' . $self->{"pattern"} . '"; 1 } and
1465 substr($text,0,length($_tok)) eq $_tok and
1466 do { substr($text,0,length($_tok)) = ""; 1; }
1467 )
1468 {
1469 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;').'
1470 '. ($check->{itempos} ? Parse::RecDescent::Production::unincitempos() : '') . '
1471 $expectation->failed();
1472 Parse::RecDescent::_trace(q{<<Didn\'t match terminal>>},
1473 Parse::RecDescent::_tracefirst($text))
1474 if defined $::RD_TRACE;
1475 last;
1476 }
1477 Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
1478 . $_tok . q{])},
1479 Parse::RecDescent::_tracefirst($text))
1480 if defined $::RD_TRACE;
1481 push @item, $item{'.$self->{hashname}.'}=$_tok;
1482 5 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 7 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 4 1 5
$self->{'lookahead'} ? : 0 5 5
$self->{'lookahead'} < 0 ? : 0 5 5
$check->{'itempos'} ? : 3 2 5
$self->{'lookahead'} ? : 0 5 5
$check->{'itempos'} ? : 3 2 5
$self->{'lookahead'} ? : 0 5 5
1483 ';
1484  
1485 5 return $code;
1486 }
1487  
1488 23 1;
1489  
1490 package Parse::RecDescent::Subrule;
1491  
1492 1656 ▶sub issubrule ($) { return $_[0]->{"subrule"} }
Subroutine issubrule: called CC=1 SCAR=0.0
1493 9 ▶sub isterminal { 0 }
Subroutine isterminal: called CC=1 SCAR=0.0
1494 1053 ▶sub sethashname {}
Subroutine sethashname: called CC=1 SCAR=0.0
1495  
1496 sub describe ($)
1497 3558 ▶{
Subroutine describe: called CC=3 SCAR=11.4
1498 3557 ▶ my $desc = $_[0]->{"implicit"} || $_[0]->{"subrule"};
Condition33%1/3
$_[0]{'implicit'} || $_[0]{'subrule'}
l!l&&r!l&&!r
035570
MC/DC0%0/2
$_[0]{'implicit'} || $_[0]{'subrule'}
$_[0]{'implicit'} $_[0]{'subrule'}
Truth table33%1/3
A || B
A= $_[0]{'implicit'}B= $_[0]{'subrule'}
ABresult
1X1
011
000
1499 3557 ▶ $desc = "<matchrule:$desc>" if $_[0]->{"matchrule"};
Branch: 1 branch
BranchTrueFalseTotal
if $_[0]{"matchrule"} 7 3550 3557
1500 3557 return $desc;
1501 }
1502  
1503 sub callsyntax($$)
1504 1053 ▶{
Subroutine callsyntax: called CC=2 SCAR=6.9
1505 1052 ▶ if ($_[0]->{"matchrule"})
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0]{'matchrule'}) { } 2 1050 1052
1506 {
1507 2 return "&{'$_[1]'.qq{$_[0]->{subrule}}}";
1508 }
1509 else
1510 {
1511 1050 return $_[1].$_[0]->{"subrule"};
1512 }
1513 }
1514  
1515 sub new ($$$$;$$$)
1516 1053 ▶{
Subroutine new: called CC=4 SCAR=15.2
1517 1052 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
010520
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1518 1052 ▶ bless
Condition75%3/4
$_[4] || undef
l!l
01052
$_[6] || undef
l!l
11051
MC/DC0%0/1
$_[4] || undef
$_[4]
MC/DC100%1/1
$_[6] || undef
$_[6]
Truth table50%1/2
A
A= $_[4]
Aresult
11
00
Truth table100%2/2
A
A= $_[6]
Aresult
11
00
1519 {
1520 "subrule" => $_[1],
1521 "lookahead" => $_[2],
1522 "line" => $_[3],
1523 "implicit" => $_[4] || undef,
1524 "matchrule" => $_[5],
1525 "argcode" => $_[6] || undef,
1526 }, $class;
1527 }
1528  
1529  
1530 sub code($$$$)
1531 1053 ▶{
Subroutine code: called CC=9 SCAR=22.0
1532 1052 my ($self, $namespace, $rule, $check) = @_;
1533  
1534 '
1535 Parse::RecDescent::_trace(q{Trying subrule: [' . $self->{"subrule"} . ']},
1536 Parse::RecDescent::_tracefirst($text),
1537 q{' . $rule->{"name"} . '},
1538 $tracelevel)
1539 if defined $::RD_TRACE;
1540 if (1) { no strict qw{refs};
1541 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1542 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1543 : 'q{'.$self->describe.'}' ) . ')->at($text);
1544 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' )
1545 . ($self->{"lookahead"}<0?'if':'unless')
1546 . ' (defined ($_tok = '
1547 . $self->callsyntax($namespace.'::')
1548 . '($thisparser,$text,$repeating,'
1549 . ($self->{"lookahead"}?'1':'$_noactions')
1550 . ($self->{argcode} ? ",sub { return $self->{argcode} }"
1551 : ',sub { \\@arg }')
1552 . ($check->{"itempos"}?',$itempos[$#itempos]':',undef')
1553 . ')))
1554 {
1555 '.($self->{"lookahead"} ? '$text = $_savetext;' : '').'
1556 Parse::RecDescent::_trace(q{<<'.Parse::RecDescent::_matchtracemessage($self,1).' subrule: ['
1557 . $self->{subrule} . ']>>},
1558 Parse::RecDescent::_tracefirst($text),
1559 q{' . $rule->{"name"} .'},
1560 $tracelevel)
1561 if defined $::RD_TRACE;
1562 $expectation->failed();
1563 last;
1564 }
1565 Parse::RecDescent::_trace(q{>>'.Parse::RecDescent::_matchtracemessage($self).' subrule: ['
1566 . $self->{subrule} . ']<< (return value: [}
1567 . $_tok . q{]},
1568  
1569 Parse::RecDescent::_tracefirst($text),
1570 q{' . $rule->{"name"} .'},
1571 $tracelevel)
1572 if defined $::RD_TRACE;
1573 $item{q{' . $self->{subrule} . '}} = $_tok;
1574 push @item, $_tok;
1575 1052 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 8 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 410 642 1052
$self->{'lookahead'} ? : 8 1044 1052
$self->{'lookahead'} < 0 ? : 1 1051 1052
$self->{'lookahead'} ? : 8 1044 1052
$self->{'argcode'} ? : 1 1051 1052
$check->{'itempos'} ? : 40 1012 1052
$self->{'lookahead'} ? : 8 1044 1052
$self->{'lookahead'} ? : 8 1044 1052
1576 }
1577 '
1578 }
1579  
1580 package Parse::RecDescent::Repetition;
1581  
1582 157 ▶sub issubrule ($) { return $_[0]->{"subrule"} }
Subroutine issubrule: called CC=1 SCAR=0.0
1583 3 ▶sub isterminal { 0 }
Subroutine isterminal: called CC=1 SCAR=0.0
1584 338 ▶sub sethashname { }
Subroutine sethashname: called CC=1 SCAR=0.0
1585  
1586 sub describe ($)
1587 1826 ▶{
Subroutine describe: called CC=3 SCAR=11.4
1588 1825 ▶ my $desc = $_[0]->{"expected"} || $_[0]->{"subrule"};
Condition66%2/3
$_[0]{'expected'} || $_[0]{'subrule'}
l!l&&r!l&&!r
21016150
MC/DC0%0/2
$_[0]{'expected'} || $_[0]{'subrule'}
$_[0]{'expected'} $_[0]{'subrule'}
Truth table66%2/3
A || B
A= $_[0]{'expected'}B= $_[0]{'subrule'}
ABresult
1X1
011
000
1589 1825 ▶ $desc = "<matchrule:$desc>" if $_[0]->{"matchrule"};
Branch: 1 branch
BranchTrueFalseTotal
if $_[0]{"matchrule"} 0 1825 1825
1590 1825 return $desc;
1591 }
1592  
1593 sub callsyntax($$)
1594 338 ▶{
Subroutine callsyntax: called CC=2 SCAR=8.1
1595 337 ▶ if ($_[0]->{matchrule})
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0]{'matchrule'}) { } 0 337 337
1596 0 { return "sub { goto &{''.qq{$_[1]$_[0]->{subrule}}} }"; }
1597 else
1598 337 { return "\\&$_[1]$_[0]->{subrule}"; }
1599 }
1600  
1601 sub new ($$$$$$$$$$)
1602 338 ▶{
Subroutine new: called CC=7 SCAR=24.1
1603 337 my ($self, $subrule, $repspec, $min, $max, $lookahead, $line, $parser, $matchrule, $argcode) = @_;
1604 337 ▶ my $class = ref($self) || $self;
Condition33%1/3
ref $self || $self
l!l&&r!l&&!r
03370
MC/DC0%0/2
ref $self || $self
ref $self $self
Truth table33%1/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
1605 337 ▶ ($max, $min) = ( $min, $max) if ($max<$min);
Branch: 1 branch
BranchTrueFalseTotal
if $max < $min 0 337 337
1606  
1607 337 my $desc;
1608 337 ▶ if ($subrule=~/\A_alternation_\d+_of_production_\d+_of_rule/)
Branch: 1 branch
BranchTrueFalseTotal
if ($subrule =~ /\A_alternation_\d+_of_production_\d+_of_rule/) 41 296 337
1609 41 { $desc = $parser->{"rules"}{$subrule}->expected }
1610  
1611 337 ▶ if ($lookahead)
Branch: 1 branch
BranchTrueFalseTotal
if ($lookahead) 0 337 337
1612 {
1613 0 ▶ if ($min>0)
Branch: 1 branch
BranchTrueFalseTotal
if ($min > 0) { } 0 0 0
1614 {
1615 0 return new Parse::RecDescent::Subrule($subrule,$lookahead,$line,$desc,$matchrule,$argcode);
1616 }
1617 else
1618 {
1619 0 Parse::RecDescent::_error("Not symbol (\"!\") before
1620 \"$subrule\" doesn't make
1621 sense.",$line);
1622 0 Parse::RecDescent::_hint("Lookahead for negated optional
1623 repetitions (such as
1624 \"!$subrule($repspec)\" can never
1625 succeed, since optional items always
1626 match (zero times at worst).
1627 Did you mean a single \"!$subrule\",
1628 instead?");
1629 }
1630 }
1631 bless
1632 {
1633 337 ▶ "subrule" => $subrule,
Condition50%1/2
$argcode || undef
l!l
0337
MC/DC0%0/1
$argcode || undef
$argcode
Truth table50%1/2
A
A= $argcode
Aresult
11
00
1634 "repspec" => $repspec,
1635 "min" => $min,
1636 "max" => $max,
1637 "lookahead" => $lookahead,
1638 "line" => $line,
1639 "expected" => $desc,
1640 "argcode" => $argcode || undef,
1641 "matchrule" => $matchrule,
1642 }, $class;
1643 }
1644  
1645 sub code($$$$)
1646 338 ▶{
Subroutine code: called CC=7 SCAR=20.5
1647 337 my ($self, $namespace, $rule, $check) = @_;
1648  
1649 my ($subrule, $repspec, $min, $max, $lookahead) =
1650 337 @{$self}{ qw{subrule repspec min max lookahead} };
1651  
1652 '
1653 Parse::RecDescent::_trace(q{Trying repeated subrule: [' . $self->describe . ']},
1654 Parse::RecDescent::_tracefirst($text),
1655 q{' . $rule->{"name"} . '},
1656 $tracelevel)
1657 if defined $::RD_TRACE;
1658 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1659 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1660 : 'q{'.$self->describe.'}' ) . ')->at($text);
1661 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
1662 unless (defined ($_tok = $thisparser->_parserepeat($text, '
1663 . $self->callsyntax($namespace.'::')
1664 . ', ' . $min . ', ' . $max . ', '
1665 . ($self->{"lookahead"}?'1':'$_noactions')
1666 . ',$expectation,'
1667 . ($self->{argcode} ? "sub { return $self->{argcode} }"
1668 : 'sub { \\@arg }')
1669 . ($check->{"itempos"}?',$itempos[$#itempos]':',undef')
1670 . ')))
1671 {
1672 Parse::RecDescent::_trace(q{<<'.Parse::RecDescent::_matchtracemessage($self,1).' repeated subrule: ['
1673 . $self->describe . ']>>},
1674 Parse::RecDescent::_tracefirst($text),
1675 q{' . $rule->{"name"} .'},
1676 $tracelevel)
1677 if defined $::RD_TRACE;
1678 last;
1679 }
1680 Parse::RecDescent::_trace(q{>>'.Parse::RecDescent::_matchtracemessage($self).' repeated subrule: ['
1681 . $self->{subrule} . ']<< (}
1682 . @$_tok . q{ times)},
1683  
1684 Parse::RecDescent::_tracefirst($text),
1685 q{' . $rule->{"name"} .'},
1686 $tracelevel)
1687 if defined $::RD_TRACE;
1688 $item{q{' . "$self->{subrule}($self->{repspec})" . '}} = $_tok;
1689 push @item, $_tok;
1690 337 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 6 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 94 243 337
$self->{'lookahead'} ? : 0 337 337
$self->{'lookahead'} ? : 0 337 337
$self->{'argcode'} ? : 0 337 337
$check->{'itempos'} ? : 3 334 337
$self->{'lookahead'} ? : 0 337 337
1691  
1692 '
1693 }
1694  
1695 package Parse::RecDescent::Result;
1696  
1697 0 ▶sub issubrule { 0 }
Subroutine issubrule: called CC=1 SCAR=6.9
1698 0 ▶sub isterminal { 0 }
Subroutine isterminal: called CC=1 SCAR=6.9
1699 0 ▶sub describe { '' }
Subroutine describe: called CC=1 SCAR=6.9
1700  
1701 sub new
1702 1 ▶{
Subroutine new: called CC=1 SCAR=6.9
1703 0 my ($class, $pos) = @_;
1704  
1705 0 bless {}, $class;
1706 }
1707  
1708 sub code($$$$)
1709 1 ▶{
Subroutine code: called CC=1 SCAR=6.9
1710 0 my ($self, $namespace, $rule) = @_;
1711  
1712 0 '
1713 $return = $item[-1];
1714 ';
1715 }
1716  
1717 package Parse::RecDescent::Operator;
1718  
1719 28 my @opertype = ( " non-optional", "n optional" );
1720  
1721 188 ▶sub issubrule { 0 }
Subroutine issubrule: called CC=1 SCAR=0.0
1722 0 ▶sub isterminal { 0 }
Subroutine isterminal: called CC=1 SCAR=6.9
1723  
1724 1084 ▶sub describe { $_[0]->{"expected"} }
Subroutine describe: called CC=1 SCAR=0.0
1725 137 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: called CC=1 SCAR=0.0
1726  
1727  
1728 sub new
1729 138 ▶{
Subroutine new: called CC=1 SCAR=0.0
1730 137 my ($class, $type, $minrep, $maxrep, $leftarg, $op, $rightarg) = @_;
1731  
1732 137 bless
1733 {
1734 "type" => "${type}op",
1735 "leftarg" => $leftarg,
1736 "op" => $op,
1737 "min" => $minrep,
1738 "max" => $maxrep,
1739 "rightarg" => $rightarg,
1740 "expected" => "<${type}op: ".$leftarg->describe." ".$op->describe." ".$rightarg->describe.">",
1741 }, $class;
1742 }
1743  
1744 sub code($$$$)
1745 138 ▶{
Subroutine code: called CC=15 SCAR=27.9
1746 137 my ($self, $namespace, $rule, $check) = @_;
1747  
1748 137 my @codeargs = @_[1..$#_];
1749  
1750 my ($leftarg, $op, $rightarg) =
1751 137 @{$self}{ qw{leftarg op rightarg} };
1752  
1753 my $code = '
1754 Parse::RecDescent::_trace(q{Trying operator: [' . $self->describe . ']},
1755 Parse::RecDescent::_tracefirst($text),
1756 137 ▶ q{' . $rule->{"name"} . '},
Branch: 1 branch
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 132 5 137
1757 $tracelevel)
1758 if defined $::RD_TRACE;
1759 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1760 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1761 : 'q{'.$self->describe.'}' ) . ')->at($text);
1762  
1763 $_tok = undef;
1764 OPLOOP: while (1)
1765 {
1766 $repcount = 0;
1767 my @item;
1768 my %item;
1769 ';
1770  
1771 $code .= '
1772 my $_itempos = $itempos[-1];
1773 my $itemposfirst;
1774 137 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 8 129 137
1775  
1776 137 ▶ if ($self->{type} eq "leftop" )
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'type'} eq 'leftop') { } 133 4 137
1777 {
1778 133 $code .= '
1779 # MATCH LEFTARG
1780 ' . $leftarg->code(@codeargs) . '
1781  
1782 ';
1783  
1784 $code .= '
1785 if (defined($_itempos) and !defined($itemposfirst))
1786 {
1787 $itemposfirst = Parse::RecDescent::Production::_duplicate_itempos($_itempos);
1788 }
1789 133 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 4 129 133
1790  
1791 $code .= '
1792 $repcount++;
1793  
1794 my $savetext = $text;
1795 my $backtrack;
1796  
1797 # MATCH (OP RIGHTARG)(s)
1798 while ($repcount < ' . $self->{max} . ')
1799 {
1800 $backtrack = 0;
1801 ' . $op->code(@codeargs) . '
1802 ' . ($op->isterminal() ? 'pop @item;' : '$backtrack=1;' ) . '
1803 ' . (ref($op) eq 'Parse::RecDescent::Token'
1804 133 ▶ ? 'if (defined $1) {push @item, $item{'.($self->{name}||$self->{hashname}).'}=$1; $backtrack=1;}'
Branch: 2 branches
BranchTrueFalseTotal
$op->isterminal ? : 133 0 133
ref $op eq 'Parse::RecDescent::Token' ? : 133 0 133
Condition66%2/3
$self->{'name'} || $self->{'hashname'}
l!l&&r!l&&!r
12760
MC/DC0%0/2
$self->{'name'} || $self->{'hashname'}
$self->{'name'} $self->{'hashname'}
Truth table66%2/3
A || B
A= $self->{'name'}B= $self->{'hashname'}
ABresult
1X1
011
000
1805 : "" ) . '
1806 ' . $rightarg->code(@codeargs) . '
1807 $savetext = $text;
1808 $repcount++;
1809 }
1810 $text = $savetext;
1811 pop @item if $backtrack;
1812  
1813 ';
1814 }
1815 else
1816 {
1817 $code .= '
1818 my $savetext = $text;
1819 my $backtrack;
1820 # MATCH (LEFTARG OP)(s)
1821 4 while ($repcount < ' . $self->{max} . ')
1822 {
1823 $backtrack = 0;
1824 ' . $leftarg->code(@codeargs) . '
1825 ';
1826 $code .= '
1827 if (defined($_itempos) and !defined($itemposfirst))
1828 {
1829 $itemposfirst = Parse::RecDescent::Production::_duplicate_itempos($_itempos);
1830 }
1831 4 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 4 0 4
1832  
1833 $code .= '
1834 $repcount++;
1835 $backtrack = 1;
1836 ' . $op->code(@codeargs) . '
1837 $savetext = $text;
1838 ' . ($op->isterminal() ? 'pop @item;' : "" ) . '
1839 4 ▶ ' . (ref($op) eq 'Parse::RecDescent::Token' ? 'do { push @item, $item{'.($self->{name}||$self->{hashname}).'}=$1; } if defined $1;' : "" ) . '
Branch: 2 branches
BranchTrueFalseTotal
$op->isterminal ? : 4 0 4
ref $op eq 'Parse::RecDescent::Token' ? : 4 0 4
Condition33%1/3
$self->{'name'} || $self->{'hashname'}
l!l&&r!l&&!r
040
MC/DC0%0/2
$self->{'name'} || $self->{'hashname'}
$self->{'name'} $self->{'hashname'}
Truth table33%1/3
A || B
A= $self->{'name'}B= $self->{'hashname'}
ABresult
1X1
011
000
1840 }
1841 $text = $savetext;
1842 pop @item if $backtrack;
1843  
1844 # MATCH RIGHTARG
1845 ' . $rightarg->code(@codeargs) . '
1846 $repcount++;
1847 ';
1848 }
1849  
1850 137 ▶ $code .= 'unless (@item) { undef $_tok; last }' unless $self->{min}==0;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"min"} == 0 134 3 137
1851  
1852 137 $code .= '
1853 $_tok = [ @item ];
1854 ';
1855  
1856  
1857 $code .= '
1858 if (defined $itemposfirst)
1859 {
1860 Parse::RecDescent::Production::_update_itempos(
1861 $_itempos, $itemposfirst, undef, [qw(from)]);
1862 }
1863 137 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 8 129 137
1864  
1865 137 $code .= '
1866 last;
1867 } # end of OPLOOP
1868 ';
1869  
1870 $code .= '
1871 unless ($repcount>='.$self->{min}.')
1872 {
1873 Parse::RecDescent::_trace(q{<<'.Parse::RecDescent::_matchtracemessage($self,1).' operator: ['
1874 . $self->describe
1875 . ']>>},
1876 Parse::RecDescent::_tracefirst($text),
1877 q{' . $rule->{"name"} .'},
1878 $tracelevel)
1879 if defined $::RD_TRACE;
1880 $expectation->failed();
1881 last;
1882 }
1883 Parse::RecDescent::_trace(q{>>'.Parse::RecDescent::_matchtracemessage($self).' operator: ['
1884 . $self->describe
1885 . ']<< (return value: [}
1886 . qq{@{$_tok||[]}} . q{]},
1887 Parse::RecDescent::_tracefirst($text),
1888 q{' . $rule->{"name"} .'},
1889 $tracelevel)
1890 if defined $::RD_TRACE;
1891  
1892 137 ▶ push @item, $item{'.($self->{name}||$self->{hashname}).'}=$_tok||[];
Condition66%2/3
$self->{'name'} || $self->{'hashname'}
l!l&&r!l&&!r
127100
MC/DC0%0/2
$self->{'name'} || $self->{'hashname'}
$self->{'name'} $self->{'hashname'}
Truth table66%2/3
A || B
A= $self->{'name'}B= $self->{'hashname'}
ABresult
1X1
011
000
1893 ';
1894  
1895 137 return $code;
1896 }
1897  
1898  
1899 package Parse::RecDescent::Expectation;
1900  
1901 sub new ($)
1902 734 ▶{
Subroutine new: called CC=1 SCAR=0.0
1903 733 bless {
1904 "failed" => 0,
1905 "expected" => "",
1906 "unexpected" => "",
1907 "lastexpected" => "",
1908 "lastunexpected" => "",
1909 "defexpected" => $_[1],
1910 };
1911 }
1912  
1913 sub is ($$)
1914 1249 ▶{
Subroutine is: called CC=1 SCAR=0.0
1915 1248 $_[0]->{lastexpected} = $_[1]; return $_[0];
1916 }
1917  
1918 sub at ($$)
1919 2166 ▶{
Subroutine at: called CC=1 SCAR=0.0
1920 2166 $_[0]->{lastunexpected} = $_[1]; return $_[0];
1921 }
1922  
1923 sub failed ($)
1924 495 ▶{
Subroutine failed: called CC=4 SCAR=14.2
1925 495 ▶ return unless $_[0]->{lastexpected};
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"lastexpected"} 480 15 495
1926 15 ▶ $_[0]->{expected} = $_[0]->{lastexpected} unless $_[0]->{failed};
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"failed"} 15 0 15
1927 15 ▶ $_[0]->{unexpected} = $_[0]->{lastunexpected} unless $_[0]->{failed};
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"failed"} 15 0 15
1928 15 $_[0]->{failed} = 1;
1929 }
1930  
1931 sub message ($)
1932 0 ▶{
Subroutine message: not called CC=4 SCAR=30.0
1933 0 my ($self) = @_;
1934 0 ▶ $self->{expected} = $self->{defexpected} unless $self->{expected};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"expected"} 0 0 0
1935 0 $self->{expected} =~ s/_/ /g;
1936 0 ▶ if (!$self->{unexpected} || $self->{unexpected} =~ /\A\s*\Z/s)
Branch: 1 branch
BranchTrueFalseTotal
if (not $self->{'unexpected'} or $self->{'unexpected'} =~ /\A\s*\Z/s) { } 0 0 0
Condition0%0/3
not $self->{"unexpected"} or $self->{"unexpected"} =~ /\A\s*\Z/s
l!l&&r!l&&!r
000
MC/DC0%0/2
not $self->{"unexpected"} or $self->{"unexpected"} =~ /\A\s*\Z/s
not $self->{"unexpected"} $self->{"unexpected"} =~ /\A\s*\Z/s
Truth table0%0/3
not(A) or B
A= not $self->{"unexpected"}B= $self->{"unexpected"} =~ /\A\s*\Z/s
ABresult
1X1
011
000
1937 {
1938 0 return "Was expecting $self->{expected}";
1939 }
1940 else
1941 {
1942 0 $self->{unexpected} =~ /\s*(.*)/;
1943 0 return "Was expecting $self->{expected} but found \"$1\" instead";
1944 }
1945 }
1946  
1947 28 1;
1948  
1949 package Parse::RecDescent;
1950  
1951 17 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
1952 15 ▶use vars qw ( $AUTOLOAD $VERSION $_FILENAME);
Subroutine BEGIN: called CC=1 SCAR=0.0
1953  
1954 33 my $ERRORS = 0;
1955  
1956 28 our $VERSION = '1.967015';
1957 23 $VERSION = eval $VERSION;
1958 28 $_FILENAME=__FILE__;
1959  
1960 # BUILDING A PARSER
1961  
1962 33 my $nextnamespace = "namespace000001";
1963  
1964 sub _nextnamespace()
1965 24 ▶{
Subroutine _nextnamespace: called CC=1 SCAR=0.0
1966 24 return "Parse::RecDescent::" . $nextnamespace++;
1967 }
1968  
1969 # ARGS ARE: $class, $grammar, $compiling, $namespace
1970 sub new ($$$$)
1971 33 ▶{
Subroutine new: called CC=5 SCAR=19.8
Pod undocumented
1972 33 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
0330
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1973 33 local $Parse::RecDescent::compiling = $_[2];
1974 33 ▶ my $name_space_name = defined $_[3]
Branch: 1 branch
BranchTrueFalseTotal
defined $_[3] ? : 9 24 33
1975 ? "Parse::RecDescent::".$_[3]
1976 : _nextnamespace();
1977 33 my $self =
1978 {
1979 "rules" => {},
1980 "namespace" => $name_space_name,
1981 "startcode" => '',
1982 "localvars" => '',
1983 "_AUTOACTION" => undef,
1984 "_AUTOTREE" => undef,
1985  
1986 # Precompiled parsers used to set _precompiled, but that
1987 # wasn't present in some versions of Parse::RecDescent used to
1988 # build precompiled parsers. Instead, set a new
1989 # _not_precompiled flag, which is remove from future
1990 # Precompiled parsers at build time.
1991 "_not_precompiled" => 1,
1992 };
1993  
1994  
1995 33 ▶ if ($::RD_AUTOACTION) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::RD_AUTOACTION) 0 33 33
1996 0 my $sourcecode = $::RD_AUTOACTION;
1997 0 ▶ $sourcecode = "{ $sourcecode }"
Branch: 1 branch
BranchTrueFalseTotal
unless $sourcecode =~ /\A\s*\{.*\}\s*\Z/ 0 0 0
1998 unless $sourcecode =~ /\A\s*\{.*\}\s*\Z/;
1999 $self->{_check}{itempos} =
2000 0 $sourcecode =~ /\@itempos\b|\$itempos\s*\[/;
2001 $self->{_AUTOACTION}
2002 0 = new Parse::RecDescent::Action($sourcecode,0,-1)
2003 }
2004  
2005 33 bless $self, $class;
2006 33 return $self->Replace($_[1])
2007 }
2008  
2009 0 ▶sub Compile($$$$) {
Subroutine Compile: not called CC=1 SCAR=6.9
Pod undocumented
2010 0 die "Compilation of Parse::RecDescent grammars not yet implemented\n";
2011 }
2012  
2013 31 ▶sub DESTROY {
Subroutine DESTROY: called CC=4 SCAR=13.9
2014 31 my ($self) = @_;
2015 31 my $namespace = $self->{namespace};
2016 31 $namespace =~ s/Parse::RecDescent:://;
2017 31 ▶ if ($self->{_not_precompiled}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"_not_precompiled"}) 21 10 31
2018 # BEGIN WORKAROUND
2019 # Perl has a bug that creates a circular reference between
2020 # @ISA and that variable's stash:
2021 # https://rt.perl.org/rt3/Ticket/Display.html?id=92708
2022 # Emptying the array before deleting the stash seems to
2023 # prevent the leak. Once the ticket above has been resolved,
2024 # these two lines can be removed.
2025 15 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
2026 21 @{$self->{namespace} . '::ISA'} = ();
2027 # END WORKAROUND
2028  
2029 # Some grammars may contain circular references between rules,
2030 # such as:
2031 # a: 'ID' | b
2032 # b: '(' a ')'
2033 # Unless these references are broken, the subs stay around on
2034 # stash deletion below. Iterate through the stash entries and
2035 # for each defined code reference, set it to reference sub {}
2036 # instead.
2037 {
2038 21 local $^W; # avoid 'sub redefined' warnings.
2039 21 ▶ my $blank_sub = sub {};
Subroutine __ANON__: not called CC=1 SCAR=0.0
2040 21 ▶ while (my ($name, $glob) = each %{"Parse::RecDescent::$namespace\::"}) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %{"Parse::RecDescent::${namespace}::";}) 238 21 259
2041 238 ▶ *$glob = $blank_sub if defined &$glob;
Branch: 1 branch
BranchTrueFalseTotal
if defined &$glob 133 105 238
2042 }
2043 }
2044  
2045 # Delete the namespace's stash
2046 21 delete $Parse::RecDescent::{$namespace.'::'};
2047 }
2048 }
2049  
2050 # BUILDING A GRAMMAR....
2051  
2052 # ARGS ARE: $self, $grammar, $isimplicit, $isleftop
2053 sub Replace ($$)
2054 33 ▶{
Subroutine Replace: called CC=1 SCAR=0.0
Pod undocumented
2055 # set $replace = 1 for _generate
2056 33 splice(@_, 2, 0, 1);
2057  
2058 33 return _generate(@_);
2059 }
2060  
2061 # ARGS ARE: $self, $grammar, $isimplicit, $isleftop
2062 sub Extend ($$)
2063 4 ▶{
Subroutine Extend: called CC=1 SCAR=0.0
Pod undocumented
2064 # set $replace = 0 for _generate
2065 4 splice(@_, 2, 0, 0);
2066  
2067 4 return _generate(@_);
2068 }
2069  
2070 sub _no_rule ($$;$)
2071 0 ▶{
Subroutine _no_rule: not called CC=2 SCAR=17.9
2072 0 _error("Ruleless $_[0] at start of grammar.",$_[1]);
2073 0 ▶ my $desc = $_[2] ? "\"$_[2]\"" : "";
Branch: 1 branch
BranchTrueFalseTotal
$_[2] ? : 0 0 0
2074 0 _hint("You need to define a rule for the $_[0] $desc
2075 to be part of.");
2076 }
2077  
2078 33 my $NEGLOOKAHEAD = '\G(\s*\.\.\.\!)';
2079 34 my $POSLOOKAHEAD = '\G(\s*\.\.\.)';
2080 29 my $RULE = '\G\s*(\w+)[ \t]*:';
2081 29 my $PROD = '\G\s*([|])';
2082 34 my $TOKEN = q{\G\s*/((\\\\/|\\\\\\\\|[^/])*)/([cgimsox]*)};
2083 34 my $MTOKEN = q{\G\s*(m\s*[^\w\s])};
2084 30 my $LITERAL = q{\G\s*'((\\\\['\\\\]|[^'])*)'};
2085 30 my $INTERPLIT = q{\G\s*"((\\\\["\\\\]|[^"])*)"};
2086 29 my $SUBRULE = '\G\s*(\w+)';
2087 29 my $MATCHRULE = '\G(\s*<matchrule:)';
2088 29 my $SIMPLEPAT = '((\\s+/[^/\\\\]*(?:\\\\.[^/\\\\]*)*/)?)';
2089 29 my $OPTIONAL = '\G\((\?)'.$SIMPLEPAT.'\)';
2090 20 my $ANY = '\G\((s\?)'.$SIMPLEPAT.'\)';
2091 20 my $MANY = '\G\((s|\.\.)'.$SIMPLEPAT.'\)';
2092 20 my $EXACTLY = '\G\(([1-9]\d*)'.$SIMPLEPAT.'\)';
2093 20 my $BETWEEN = '\G\((\d+)\.\.([1-9]\d*)'.$SIMPLEPAT.'\)';
2094 20 my $ATLEAST = '\G\((\d+)\.\.'.$SIMPLEPAT.'\)';
2095 20 my $ATMOST = '\G\(\.\.([1-9]\d*)'.$SIMPLEPAT.'\)';
2096 20 my $BADREP = '\G\((-?\d+)?\.\.(-?\d+)?'.$SIMPLEPAT.'\)';
2097 20 my $ACTION = '\G\s*\{';
2098 19 my $IMPLICITSUBRULE = '\G\s*\(';
2099 19 my $COMMENT = '\G\s*(#.*)';
2100 20 my $COMMITMK = '\G\s*<commit>';
2101 20 my $UNCOMMITMK = '\G\s*<uncommit>';
2102 20 my $QUOTELIKEMK = '\G\s*<perl_quotelike>';
2103 20 my $CODEBLOCKMK = '\G\s*<perl_codeblock(?:\s+([][()<>{}]+))?>';
2104 20 my $VARIABLEMK = '\G\s*<perl_variable>';
2105 20 my $NOCHECKMK = '\G\s*<nocheck>';
2106 30 my $AUTOACTIONPATMK = '\G\s*<autoaction:';
2107 29 my $AUTOTREEMK = '\G\s*<autotree(?::\s*([\w:]+)\s*)?>';
2108 29 my $AUTOSTUBMK = '\G\s*<autostub>';
2109 29 my $AUTORULEMK = '\G\s*<autorule:(.*?)>';
2110 20 my $REJECTMK = '\G\s*<reject>';
2111 19 my $CONDREJECTMK = '\G\s*<reject:';
2112 19 my $SCOREMK = '\G\s*<score:';
2113 20 my $AUTOSCOREMK = '\G\s*<autoscore:';
2114 20 my $SKIPMK = '\G\s*<skip:';
2115 20 my $OPMK = '\G\s*<(left|right)op(?:=(\'.*?\'))?:';
2116 20 my $ENDDIRECTIVEMK = '\G\s*>';
2117 19 my $RESYNCMK = '\G\s*<resync>';
2118 18 my $RESYNCPATMK = '\G\s*<resync:';
2119 19 my $RULEVARPATMK = '\G\s*<rulevar:';
2120 19 my $DEFERPATMK = '\G\s*<defer:';
2121 24 my $TOKENPATMK = '\G\s*<token:';
2122 24 my $AUTOERRORMK = '\G\s*<error(\??)>';
2123 24 my $MSGERRORMK = '\G\s*<error(\??):';
2124 24 my $NOCHECK = '\G\s*<nocheck>';
2125 24 my $WARNMK = '\G\s*<warn((?::\s*(\d+)\s*)?)>';
2126 24 my $HINTMK = '\G\s*<hint>';
2127 24 my $TRACEBUILDMK = '\G\s*<trace_build((?::\s*(\d+)\s*)?)>';
2128 23 my $TRACEPARSEMK = '\G\s*<trace_parse((?::\s*(\d+)\s*)?)>';
2129 23 my $UNCOMMITPROD = $PROD.'\s*<uncommit';
2130 24 my $ERRORPROD = $PROD.'\s*<error';
2131 24 my $LONECOLON = '\G\s*:';
2132 24 my $OTHER = '\G\s*([^\s]+)';
2133  
2134 24 my @lines = 0;
2135  
2136 sub _generate
2137 78 ▶{
Subroutine _generate: called CC=238 SCAR=64.1
2138 78 my ($self, $grammar, $replace, $isimplicit, $isleftop) = (@_, 0);
2139  
2140 78 my $aftererror = 0;
2141 78 my $lookahead = 0;
2142 78 my $lookaheadspec = "";
2143 78 my $must_pop_lines;
2144 78 ▶ if (! $lines[-1]) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($lines[-1]) 37 41 78
2145 37 push @lines, _linecount($grammar) ;
2146 37 $must_pop_lines = 1;
2147 }
2148 $self->{_check}{itempos} = ($grammar =~ /\@itempos\b|\$itempos\s*\[/)
2149 78 ▶ unless $self->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"_check"}{"itempos"} 73 5 78
2150 78 for (qw(thisoffset thiscolumn prevline prevoffset prevcolumn))
2151 {
2152 $self->{_check}{$_} =
2153 ($grammar =~ /\$$_/) || $self->{_check}{itempos}
2154 390 ▶ unless $self->{_check}{$_};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"_check"}{$_} 365 25 390
Condition66%2/3
$grammar =~ /\$$_/ || $self->{'_check'}{'itempos'}
l!l&&r!l&&!r
010355
MC/DC50%1/2
$grammar =~ /\$$_/ || $self->{'_check'}{'itempos'}
$grammar =~ /\$$_/ $self->{'_check'}{'itempos'}
Truth table66%2/3
A || B
A= $grammar =~ /\$$_/B= $self->{'_check'}{'itempos'}
ABresult
1X1
011
000
2155 }
2156 78 my $line;
2157  
2158 78 my $rule = undef;
2159 78 my $prod = undef;
2160 78 my $item = undef;
2161 78 my $lastgreedy = '';
2162 78 pos $grammar = 0;
2163 78 study $grammar;
2164  
2165 78 local $::RD_HINT = $::RD_HINT;
2166 78 local $::RD_WARN = $::RD_WARN;
2167 78 local $::RD_TRACE = $::RD_TRACE;
2168 78 local $::RD_CHECK = $::RD_CHECK;
2169  
2170 78 ▶ while (pos $grammar < length $grammar)
Branch: 1 branch
BranchTrueFalseTotal
if (pos $grammar < length $grammar) 4540 78 4618
2171 {
2172 4540 $line = $lines[-1] - _linecount($grammar) + 1;
2173 4540 my $commitonly;
2174 4540 my $code = "";
2175 4540 my @components = ();
2176 4540 ▶ if ($grammar =~ m/$COMMENT/gco)
Branch: 19 branches
BranchTrueFalseTotal
if ($grammar =~ /$COMMENT/cog) { } 51 4489 4540
elsif ($grammar =~ /$NEGLOOKAHEAD/cog) { } 1 4488 4489
elsif ($grammar =~ /$POSLOOKAHEAD/cog) { } 7 4481 4488
elsif ($grammar =~ /(?=$ACTION)/cog and do { ($code) = &extract_codeblock($grammar); $code }) { } 133 4348 4481
elsif ($grammar =~ /(?=$IMPLICITSUBRULE)/cog and do { ($code) = &extract_codeblock($grammar, '{([', undef, '(', 1); $code }) { } 41 4307 4348
elsif ($grammar =~ /$ENDDIRECTIVEMK/cog) { } 137 4170 4307
elsif ($grammar =~ /\G\s*<[^m]/cg) { } 166 4004 4170
elsif ($grammar =~ /$RULE/cog) { } 710 3294 4004
elsif ($grammar =~ /$UNCOMMITPROD/cog) { } 1 3293 3294
elsif ($grammar =~ /$ERRORPROD/cog) { } 7 3286 3293
elsif ($grammar =~ /$PROD/cog) { } 606 2680 3286
elsif ($grammar =~ /$LITERAL/cog) { } 919 1761 2680
elsif ($grammar =~ /$INTERPLIT/cog) { } 5 1756 1761
elsif ($grammar =~ /$TOKEN/cog) { } 240 1516 1756
elsif ($grammar =~ /(?=$MTOKEN)/cog and do { ($code, undef, @components) = &extract_quotelike($grammar); $code }) { } 0 1516 1516
elsif ($grammar =~ /(?=$MATCHRULE)/cog and do { ($code) = &extract_bracketed($grammar, '<'); $code } or $grammar =~ /$SUBRULE/cog and $code = $1) { } 1516 0 1516
elsif ($grammar =~ /$LONECOLON/cog) { } 0 0 0
elsif ($grammar =~ /$ACTION/cog) { } 0 0 0
elsif ($grammar =~ /$OTHER/cog) { } 0 0 0
2177 {
2178 51 _parse("a comment",0,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2179 51 next;
2180 }
2181 elsif ($grammar =~ m/$NEGLOOKAHEAD/gco)
2182 {
2183 1 _parse("a negative lookahead",$aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2184 1 ▶ $lookahead = $lookahead ? -$lookahead : -1;
Branch: 1 branch
BranchTrueFalseTotal
$lookahead ? : 0 1 1
2185 1 $lookaheadspec .= $1;
2186 1 next; # SKIP LOOKAHEAD RESET AT END OF while LOOP
2187 }
2188 elsif ($grammar =~ m/$POSLOOKAHEAD/gco)
2189 {
2190 7 _parse("a positive lookahead",$aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2191 7 ▶ $lookahead = $lookahead ? $lookahead : 1;
Branch: 1 branch
BranchTrueFalseTotal
$lookahead ? : 0 7 7
2192 7 $lookaheadspec .= $1;
2193 7 next; # SKIP LOOKAHEAD RESET AT END OF while LOOP
2194 }
2195 ▶ elsif ($grammar =~ m/(?=$ACTION)/gco
Condition66%2/3
$grammar =~ /(?=$ACTION)/cog and do { ($code) = &extract_codeblock($grammar); $code }
!ll&&!rl&&r
43480133
MC/DC50%1/2
$grammar =~ /(?=$ACTION)/cog and do { ($code) = &extract_codeblock($grammar); $code }
$grammar =~ /(?=$ACTION)/cog do { ($code) = &extract_codeblock($grammar); $code }
Truth table66%2/3
A and B
A= $grammar =~ /(?=$ACTION)/cogB= do { ($code) = &extract_codeblock($grammar); $code }
ABresult
0X0
100
111
2196 133 and do { ($code) = extract_codeblock($grammar); $code })
2197 {
2198 133 _parse("an action", $aftererror, $line, $code);
2199 133 $item = new Parse::RecDescent::Action($code,$lookahead,$line);
2200 133 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or $self->_addstartcode($code) 124 9 133
Condition66%2/3
$prod and $prod->additem($item)
!ll&&!rl&&r
90124
MC/DC50%1/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table66%2/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2201 or $self->_addstartcode($code);
2202 }
2203 ▶ elsif ($grammar =~ m/(?=$IMPLICITSUBRULE)/gco
Condition66%2/3
$grammar =~ /(?=$IMPLICITSUBRULE)/cog and do { ($code) = &extract_codeblock($grammar, "{([", undef, "(", 1); $code }
!ll&&!rl&&r
4307041
MC/DC50%1/2
$grammar =~ /(?=$IMPLICITSUBRULE)/cog and do { ($code) = &extract_codeblock($grammar, "{([", undef, "(", 1); $code }
$grammar =~ /(?=$IMPLICITSUBRULE)/cog do { ($code) = &extract_codeblock($grammar, "{([", undef, "(", 1); $code }
Truth table66%2/3
A and B
A= $grammar =~ /(?=$IMPLICITSUBRULE)/cogB= do { ($code) = &extract_codeblock($grammar, "{([", undef, "(", 1); $code }
ABresult
0X0
100
111
2204 41 and do { ($code) = extract_codeblock($grammar,'{([',undef,'(',1);
2205 41 $code })
2206 {
2207 41 $code =~ s/\A\s*\(|\)\Z//g;
2208 41 _parse("an implicit subrule", $aftererror, $line,
2209 "( $code )");
2210 41 my $implicit = $rule->nextimplicit;
2211 return undef
2212 41 ▶ if !$self->_generate("$implicit : $code",$replace,1);
Branch: 1 branch
BranchTrueFalseTotal
unless $self->_generate("$implicit : $code", $replace, 1) 0 41 41
2213 41 my $pos = pos $grammar;
2214 41 substr($grammar,$pos,0,$implicit);
2215 41 pos $grammar = $pos;;
2216 }
2217 elsif ($grammar =~ m/$ENDDIRECTIVEMK/gco)
2218 {
2219  
2220 # EXTRACT TRAILING REPETITION SPECIFIER (IF ANY)
2221  
2222 137 my ($minrep,$maxrep) = (1,$MAXREP);
2223 137 ▶ if ($grammar =~ m/\G[(]/gc)
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar =~ /\G[(]/cg) 3 134 137
2224 {
2225 3 pos($grammar)--;
2226  
2227 3 ▶ if ($grammar =~ m/$OPTIONAL/gco)
Branch: 8 branches
BranchTrueFalseTotal
if ($grammar =~ /$OPTIONAL/cog) { } 0 3 3
elsif ($grammar =~ /$ANY/cog) { } 3 0 3
elsif ($grammar =~ /$EXACTLY/cog) { } 0 0 0
elsif ($grammar =~ /$BETWEEN/cog) { } 0 0 0
elsif ($grammar =~ /$ATLEAST/cog) { } 0 0 0
elsif ($grammar =~ /$ATMOST/cog) { } 0 0 0
elsif ($grammar =~ /$MANY/cog) { } 0 0 0
elsif ($grammar =~ /$BADREP/cog) { } 0 0 0
2228 0 { ($minrep, $maxrep) = (0,1) }
2229 elsif ($grammar =~ m/$ANY/gco)
2230 3 { $minrep = 0 }
2231 elsif ($grammar =~ m/$EXACTLY/gco)
2232 0 { ($minrep, $maxrep) = ($1,$1) }
2233 elsif ($grammar =~ m/$BETWEEN/gco)
2234 0 { ($minrep, $maxrep) = ($1,$2) }
2235 elsif ($grammar =~ m/$ATLEAST/gco)
2236 0 { $minrep = $1 }
2237 elsif ($grammar =~ m/$ATMOST/gco)
2238 0 { $maxrep = $1 }
2239 elsif ($grammar =~ m/$MANY/gco)
2240 { }
2241 elsif ($grammar =~ m/$BADREP/gco)
2242 {
2243 0 _parse("an invalid repetition specifier", 0,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2244 0 _error("Incorrect specification of a repeated directive",
2245 $line);
2246 0 _hint("Repeated directives cannot have
2247 a maximum repetition of zero, nor can they have
2248 negative components in their ranges.");
2249 }
2250 }
2251  
2252 137 ▶ $prod && $prod->enddirective($line,$minrep,$maxrep);
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->enddirective($line, $minrep, $maxrep) 137 0 137
2253 }
2254 elsif ($grammar =~ m/\G\s*<[^m]/gc)
2255 {
2256 166 pos($grammar)-=2;
2257  
2258 166 ▶ if ($grammar =~ m/$OPMK/gco)
Branch: 29 branches
BranchTrueFalseTotal
if ($grammar =~ /$OPMK/cog) { } 137 29 166
elsif ($grammar =~ /$UNCOMMITMK/cog) { } 2 27 29
elsif ($grammar =~ /$QUOTELIKEMK/cog) { } 0 27 27
elsif ($grammar =~ /$CODEBLOCKMK/cog) { } 0 27 27
elsif ($grammar =~ /$VARIABLEMK/cog) { } 0 27 27
elsif ($grammar =~ /$NOCHECKMK/cog) { } 0 27 27
elsif ($grammar =~ /$AUTOSTUBMK/cog) { } 0 27 27
elsif ($grammar =~ /$AUTORULEMK/cog) { } 0 27 27
elsif ($grammar =~ /$AUTOTREEMK/cog) { } 3 24 27
elsif ($grammar =~ /$REJECTMK/cog) { } 1 23 24
elsif ($grammar =~ /(?=$CONDREJECTMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 2 21 23
elsif ($grammar =~ /(?=$SCOREMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 21 21
elsif ($grammar =~ /(?=$AUTOSCOREMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 21 21
elsif ($grammar =~ /$RESYNCMK/cog) { } 8 13 21
elsif ($grammar =~ /(?=$RESYNCPATMK)/cog and do { ($code) = &extract_bracketed($grammar, '<'); $code }) { } 0 13 13
elsif ($grammar =~ /(?=$SKIPMK)/cog and do { ($code) = &extract_codeblock($grammar, '<'); $code }) { } 4 9 13
elsif ($grammar =~ /(?=$RULEVARPATMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 1 8 9
elsif ($grammar =~ /(?=$AUTOACTIONPATMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 8 8
elsif ($grammar =~ /(?=$DEFERPATMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 8 8
elsif ($grammar =~ /(?=$TOKENPATMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 8 8
elsif ($grammar =~ /$COMMITMK/cog) { } 1 7 8
elsif ($grammar =~ /$NOCHECKMK/cog) { } 0 7 7
elsif ($grammar =~ /$HINTMK/cog) { } 0 7 7
elsif ($grammar =~ /$WARNMK/cog) { } 0 7 7
elsif ($grammar =~ /$TRACEBUILDMK/cog) { } 0 7 7
elsif ($grammar =~ /$TRACEPARSEMK/cog) { } 0 7 7
elsif ($grammar =~ /$AUTOERRORMK/cog) { } 7 0 7
elsif ($grammar =~ /(?=$MSGERRORMK)/cog and do { $commitonly = $1; ($code) = &extract_bracketed($grammar, '<'); $code }) { } 0 0 0
elsif (do { $commitonly = $1; ($code) = &extract_bracketed($grammar, '<'); $code }) { } 0 0 0
2259 {
2260 # $DB::single=1;
2261 137 _parse("a $1-associative operator directive", $aftererror, $line, "<$1op:...>");
2262 137 ▶ $prod->adddirective($1, $line,$2||'');
Condition100%2/2
$2 || ''
l!l
12710
MC/DC100%1/1
$2 || ''
$2
Truth table100%2/2
A
A= $2
Aresult
11
00
2263 }
2264 elsif ($grammar =~ m/$UNCOMMITMK/gco)
2265 {
2266 2 _parse("an uncommit marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2267 2 $item = new Parse::RecDescent::Directive('$commit=0;1',
2268 $lookahead,$line,"<uncommit>");
2269 2 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<uncommit>", $line) 2 0 2
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
002
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2270 or _no_rule("<uncommit>",$line);
2271 }
2272 elsif ($grammar =~ m/$QUOTELIKEMK/gco)
2273 {
2274 0 _parse("an perl quotelike marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2275 0 $item = new Parse::RecDescent::Directive(
2276 'my ($match,@res);
2277 ($match,$text,undef,@res) =
2278 Text::Balanced::extract_quotelike($text,$skip);
2279 $match ? \@res : undef;
2280 ', $lookahead,$line,"<perl_quotelike>");
2281 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<perl_quotelike>", $line) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2282 or _no_rule("<perl_quotelike>",$line);
2283 }
2284 elsif ($grammar =~ m/$CODEBLOCKMK/gco)
2285 {
2286 0 ▶ my $outer = $1||"{}";
Condition0%0/2
$1 || '{}'
l!l
00
MC/DC0%0/1
$1 || '{}'
$1
Truth table0%0/2
A
A= $1
Aresult
11
00
2287 0 _parse("an perl codeblock marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2288 0 $item = new Parse::RecDescent::Directive(
2289 'Text::Balanced::extract_codeblock($text,undef,$skip,\''.$outer.'\');
2290 ', $lookahead,$line,"<perl_codeblock>");
2291 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<perl_codeblock>", $line) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2292 or _no_rule("<perl_codeblock>",$line);
2293 }
2294 elsif ($grammar =~ m/$VARIABLEMK/gco)
2295 {
2296 0 _parse("an perl variable marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2297 0 $item = new Parse::RecDescent::Directive(
2298 'Text::Balanced::extract_variable($text,$skip);
2299 ', $lookahead,$line,"<perl_variable>");
2300 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<perl_variable>", $line) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2301 or _no_rule("<perl_variable>",$line);
2302 }
2303 elsif ($grammar =~ m/$NOCHECKMK/gco)
2304 {
2305 0 _parse("a disable checking marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2306 0 ▶ if ($rule)
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 0 0 0
2307 {
2308 0 _error("<nocheck> directive not at start of grammar", $line);
2309 0 _hint("The <nocheck> directive can only
2310 be specified at the start of a
2311 grammar (before the first rule
2312 is defined.");
2313 }
2314 else
2315 {
2316 0 local $::RD_CHECK = 1;
2317 }
2318 }
2319 elsif ($grammar =~ m/$AUTOSTUBMK/gco)
2320 {
2321 0 _parse("an autostub marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2322 0 $::RD_AUTOSTUB = "";
2323 }
2324 elsif ($grammar =~ m/$AUTORULEMK/gco)
2325 {
2326 0 _parse("an autorule marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2327 0 $::RD_AUTOSTUB = $1;
2328 }
2329 elsif ($grammar =~ m/$AUTOTREEMK/gco)
2330 {
2331 3 ▶ my $base = defined($1) ? $1 : "";
Branch: 1 branch
BranchTrueFalseTotal
defined $1 ? : 2 1 3
2332 3 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
2333 3 ▶ $base .= "::" if $base && $base !~ /::$/;
Branch: 1 branch
BranchTrueFalseTotal
if $base and not $base =~ /::$/ 1 2 3
Condition100%3/3
$base and not $base =~ /::$/
!ll&&!rl&&r
111
MC/DC100%2/2
$base and not $base =~ /::$/
$base not $base =~ /::$/
Truth table100%3/3
A and not(B)
A= $baseB= not $base =~ /::$/
ABresult
0X0
100
111
2334 3 _parse("an autotree marker", $aftererror,$line, $current_match);
2335 3 ▶ if ($rule)
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 0 3 3
2336 {
2337 0 _error("<autotree> directive not at start of grammar", $line);
2338 0 _hint("The <autotree> directive can only
2339 be specified at the start of a
2340 grammar (before the first rule
2341 is defined.");
2342 }
2343 else
2344 {
2345 3 undef $self->{_AUTOACTION};
2346 $self->{_AUTOTREE}{NODE}
2347 3 = new Parse::RecDescent::Action(q({bless \%item, ').$base.q('.$item[0]}),0,-1);
2348 $self->{_AUTOTREE}{TERMINAL}
2349 3 = new Parse::RecDescent::Action(q({bless {__VALUE__=>$item[1]}, ').$base.q('.$item[0]}),0,-1);
2350 }
2351 }
2352  
2353 elsif ($grammar =~ m/$REJECTMK/gco)
2354 {
2355 1 _parse("an reject marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2356 1 $item = new Parse::RecDescent::UncondReject($lookahead,$line,"<reject>");
2357 1 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<reject>", $line) 1 0 1
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
001
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2358 or _no_rule("<reject>",$line);
2359 }
2360 ▶ elsif ($grammar =~ m/(?=$CONDREJECTMK)/gco
Condition66%2/3
$grammar =~ /(?=$CONDREJECTMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
!ll&&!rl&&r
2102
MC/DC50%1/2
$grammar =~ /(?=$CONDREJECTMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$CONDREJECTMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table66%2/3
A and B
A= $grammar =~ /(?=$CONDREJECTMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2361 2 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2362 2 $code })
2363 {
2364 2 _parse("a (conditional) reject marker", $aftererror,$line, $code );
2365 2 $code =~ /\A\s*<reject:(.*)>\Z/s;
2366 2 my $cond = $1;
2367 2 $item = new Parse::RecDescent::Directive(
2368 "($1) ? undef : 1", $lookahead,$line,"<reject:$cond>");
2369 2 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<reject:$cond>", $line) 2 0 2
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
002
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2370 or _no_rule("<reject:$cond>",$line);
2371 }
2372 ▶ elsif ($grammar =~ m/(?=$SCOREMK)/gco
Condition33%1/3
$grammar =~ /(?=$SCOREMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
!ll&&!rl&&r
2100
MC/DC0%0/2
$grammar =~ /(?=$SCOREMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$SCOREMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table33%1/3
A and B
A= $grammar =~ /(?=$SCOREMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2373 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2374 0 $code })
2375 {
2376 0 _parse("a score marker", $aftererror,$line, $code );
2377 0 $code =~ /\A\s*<score:(.*)>\Z/s;
2378 0 ▶ $prod and $prod->addscore($1, $lookahead, $line)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->addscore($1, $lookahead, $line) or &_no_rule($code, $line) 0 0 0
Condition0%0/3
$prod and $prod->addscore($1, $lookahead, $line)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->addscore($1, $lookahead, $line)
$prod $prod->addscore($1, $lookahead, $line)
Truth table0%0/3
A and B
A= $prodB= $prod->addscore($1, $lookahead, $line)
ABresult
0X0
100
111
2379 or _no_rule($code,$line);
2380 }
2381 ▶ elsif ($grammar =~ m/(?=$AUTOSCOREMK)/gco
Condition33%1/3
$grammar =~ /(?=$AUTOSCOREMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
!ll&&!rl&&r
2100
MC/DC0%0/2
$grammar =~ /(?=$AUTOSCOREMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$AUTOSCOREMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table33%1/3
A and B
A= $grammar =~ /(?=$AUTOSCOREMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2382 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2383 0 $code;
2384 } )
2385 {
2386 0 _parse("an autoscore specifier", $aftererror,$line,$code);
2387 0 $code =~ /\A\s*<autoscore:(.*)>\Z/s;
2388  
2389 0 ▶ $rule and $rule->addautoscore($1,$self)
Branch: 1 branch
BranchTrueFalseTotal
$rule and $rule->addautoscore($1, $self) or &_no_rule($code, $line) 0 0 0
Condition0%0/3
$rule and $rule->addautoscore($1, $self)
!ll&&!rl&&r
000
MC/DC0%0/2
$rule and $rule->addautoscore($1, $self)
$rule $rule->addautoscore($1, $self)
Truth table0%0/3
A and B
A= $ruleB= $rule->addautoscore($1, $self)
ABresult
0X0
100
111
2390 or _no_rule($code,$line);
2391  
2392 0 $item = new Parse::RecDescent::UncondReject($lookahead,$line,$code);
2393 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule($code, $line) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2394 or _no_rule($code,$line);
2395 }
2396 elsif ($grammar =~ m/$RESYNCMK/gco)
2397 {
2398 8 _parse("a resync to newline marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2399 8 $item = new Parse::RecDescent::Directive(
2400 'if ($text =~ s/(\A[^\n]*\n)//) { $return = 0; $1; } else { undef }',
2401 $lookahead,$line,"<resync>");
2402 8 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<resync>", $line) 8 0 8
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
008
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2403 or _no_rule("<resync>",$line);
2404 }
2405 ▶ elsif ($grammar =~ m/(?=$RESYNCPATMK)/gco
Condition33%1/3
$grammar =~ /(?=$RESYNCPATMK)/cog and do { ($code) = &extract_bracketed($grammar, "<"); $code }
!ll&&!rl&&r
1300
MC/DC0%0/2
$grammar =~ /(?=$RESYNCPATMK)/cog and do { ($code) = &extract_bracketed($grammar, "<"); $code }
$grammar =~ /(?=$RESYNCPATMK)/cog do { ($code) = &extract_bracketed($grammar, "<"); $code }
Truth table33%1/3
A and B
A= $grammar =~ /(?=$RESYNCPATMK)/cogB= do { ($code) = &extract_bracketed($grammar, "<"); $code }
ABresult
0X0
100
111
2406 0 and do { ($code) = extract_bracketed($grammar,'<');
2407 0 $code })
2408 {
2409 0 _parse("a resync with pattern marker", $aftererror,$line, $code );
2410 0 $code =~ /\A\s*<resync:(.*)>\Z/s;
2411 0 $item = new Parse::RecDescent::Directive(
2412 'if ($text =~ s/(\A'.$1.')//) { $return = 0; $1; } else { undef }',
2413 $lookahead,$line,$code);
2414 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule($code, $line) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2415 or _no_rule($code,$line);
2416 }
2417 ▶ elsif ($grammar =~ m/(?=$SKIPMK)/gco
Condition66%2/3
$grammar =~ /(?=$SKIPMK)/cog and do { ($code) = &extract_codeblock($grammar, "<"); $code }
!ll&&!rl&&r
904
MC/DC50%1/2
$grammar =~ /(?=$SKIPMK)/cog and do { ($code) = &extract_codeblock($grammar, "<"); $code }
$grammar =~ /(?=$SKIPMK)/cog do { ($code) = &extract_codeblock($grammar, "<"); $code }
Truth table66%2/3
A and B
A= $grammar =~ /(?=$SKIPMK)/cogB= do { ($code) = &extract_codeblock($grammar, "<"); $code }
ABresult
0X0
100
111
2418 4 and do { ($code) = extract_codeblock($grammar,'<');
2419 4 $code })
2420 {
2421 4 _parse("a skip marker", $aftererror,$line, $code );
2422 4 $code =~ /\A\s*<skip:(.*)>\Z/s;
2423 4 ▶ if ($rule) {
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 3 1 4
2424 3 $item = new Parse::RecDescent::Directive(
2425 'my $oldskip = $skip; $skip='.$1.'; $oldskip',
2426 $lookahead,$line,$code);
2427 3 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule($code, $line) 3 0 3
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
003
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2428 or _no_rule($code,$line);
2429 } else {
2430 #global <skip> directive
2431 1 $self->{skip} = $1;
2432 }
2433 }
2434 ▶ elsif ($grammar =~ m/(?=$RULEVARPATMK)/gco
Condition66%2/3
$grammar =~ /(?=$RULEVARPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
!ll&&!rl&&r
801
MC/DC50%1/2
$grammar =~ /(?=$RULEVARPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$RULEVARPATMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table66%2/3
A and B
A= $grammar =~ /(?=$RULEVARPATMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2435 1 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2436 1 $code;
2437 } )
2438 {
2439 1 _parse("a rule variable specifier", $aftererror,$line,$code);
2440 1 $code =~ /\A\s*<rulevar:(.*)>\Z/s;
2441  
2442 1 ▶ $rule and $rule->addvar($1,$self)
Branch: 1 branch
BranchTrueFalseTotal
$rule and $rule->addvar($1, $self) or &_no_rule($code, $line) 1 0 1
Condition33%1/3
$rule and $rule->addvar($1, $self)
!ll&&!rl&&r
001
MC/DC0%0/2
$rule and $rule->addvar($1, $self)
$rule $rule->addvar($1, $self)
Truth table33%1/3
A and B
A= $ruleB= $rule->addvar($1, $self)
ABresult
0X0
100
111
2443 or _no_rule($code,$line);
2444  
2445 1 $item = new Parse::RecDescent::UncondReject($lookahead,$line,$code);
2446 1 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule($code, $line) 1 0 1
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
001
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2447 or _no_rule($code,$line);
2448 }
2449 ▶ elsif ($grammar =~ m/(?=$AUTOACTIONPATMK)/gco
Condition33%1/3
$grammar =~ /(?=$AUTOACTIONPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
!ll&&!rl&&r
800
MC/DC0%0/2
$grammar =~ /(?=$AUTOACTIONPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$AUTOACTIONPATMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table33%1/3
A and B
A= $grammar =~ /(?=$AUTOACTIONPATMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2450 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2451 0 $code;
2452 } )
2453 {
2454 0 _parse("an autoaction specifier", $aftererror,$line,$code);
2455 0 $code =~ s/\A\s*<autoaction:(.*)>\Z/$1/s;
2456 0 ▶ if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) 0 0 0
2457 0 $code = "{ $code }"
2458 }
2459 $self->{_check}{itempos} =
2460 0 $code =~ /\@itempos\b|\$itempos\s*\[/;
2461 $self->{_AUTOACTION}
2462 0 = new Parse::RecDescent::Action($code,0,-$line)
2463 }
2464 ▶ elsif ($grammar =~ m/(?=$DEFERPATMK)/gco
Condition33%1/3
$grammar =~ /(?=$DEFERPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
!ll&&!rl&&r
800
MC/DC0%0/2
$grammar =~ /(?=$DEFERPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$DEFERPATMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table33%1/3
A and B
A= $grammar =~ /(?=$DEFERPATMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2465 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2466 0 $code;
2467 } )
2468 {
2469 0 _parse("a deferred action specifier", $aftererror,$line,$code);
2470 0 $code =~ s/\A\s*<defer:(.*)>\Z/$1/s;
2471 0 ▶ if ($code =~ /\A\s*[^{]|[^}]\s*\Z/)
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) 0 0 0
2472 {
2473 0 $code = "{ $code }"
2474 }
2475  
2476 0 $item = new Parse::RecDescent::Directive(
2477 "push \@{\$thisparser->{deferred}}, sub $code;",
2478 $lookahead,$line,"<defer:$code>");
2479 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<defer:$code>", $line) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2480 or _no_rule("<defer:$code>",$line);
2481  
2482 0 $self->{deferrable} = 1;
2483 }
2484 ▶ elsif ($grammar =~ m/(?=$TOKENPATMK)/gco
Condition33%1/3
$grammar =~ /(?=$TOKENPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
!ll&&!rl&&r
800
MC/DC0%0/2
$grammar =~ /(?=$TOKENPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$TOKENPATMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table33%1/3
A and B
A= $grammar =~ /(?=$TOKENPATMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2485 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2486 0 $code;
2487 } )
2488 {
2489 0 _parse("a token constructor", $aftererror,$line,$code);
2490 0 $code =~ s/\A\s*<token:(.*)>\Z/$1/s;
2491  
2492 0 ▶ my $types = eval 'no strict; local $SIG{__WARN__} = sub {0}; my @arr=('.$code.'); @arr' || ();
Condition0%0/3
eval 'no strict; local $SIG{__WARN__} = sub {0}; my @arr=(' . $code . '); @arr' || ()
l!l&&r!l&&!r
000
MC/DC0%0/2
eval 'no strict; local $SIG{__WARN__} = sub {0}; my @arr=(' . $code . '); @arr' || ()
eval 'no strict; local $SIG{__WARN__} = sub {0}; my @arr=(' . $code . '); @arr' ()
Truth table0%0/3
A || B
A= eval 'no strict; local $SIG{__WARN__} = sub {0}; my @arr=(' . $code . '); @arr'B= ()
ABresult
1X1
011
000
2493 0 ▶ if (!$types)
Branch: 1 branch
BranchTrueFalseTotal
if (not $types) { } 0 0 0
2494 {
2495 0 _error("Incorrect token specification: \"$@\"", $line);
2496 0 _hint("The <token:...> directive requires a list
2497 of one or more strings representing possible
2498 types of the specified token. For example:
2499 <token:NOUN,VERB>");
2500 }
2501 else
2502 {
2503 0 $item = new Parse::RecDescent::Directive(
2504 'no strict;
2505 $return = { text => $item[-1] };
2506 @{$return->{type}}{'.$code.'} = (1..'.$types.');',
2507 $lookahead,$line,"<token:$code>");
2508 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<token:$code>", $line) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2509 or _no_rule("<token:$code>",$line);
2510 }
2511 }
2512 elsif ($grammar =~ m/$COMMITMK/gco)
2513 {
2514 1 _parse("an commit marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2515 1 $item = new Parse::RecDescent::Directive('$commit = 1',
2516 $lookahead,$line,"<commit>");
2517 1 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<commit>", $line) 1 0 1
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
001
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2518 or _no_rule("<commit>",$line);
2519 }
2520 elsif ($grammar =~ m/$NOCHECKMK/gco) {
2521 0 _parse("an hint request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2522 0 $::RD_CHECK = 0;
2523 }
2524 elsif ($grammar =~ m/$HINTMK/gco) {
2525 0 _parse("an hint request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2526 0 $::RD_HINT = $self->{__HINT__} = 1;
2527 }
2528 elsif ($grammar =~ m/$WARNMK/gco) {
2529 0 _parse("an warning request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2530 0 ▶ $::RD_WARN = $self->{__WARN__} = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2531 }
2532 elsif ($grammar =~ m/$TRACEBUILDMK/gco) {
2533 0 _parse("an grammar build trace request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2534 0 ▶ $::RD_TRACE = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2535 }
2536 elsif ($grammar =~ m/$TRACEPARSEMK/gco) {
2537 0 _parse("an parse trace request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2538 0 ▶ $self->{__TRACE__} = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2539 }
2540 elsif ($grammar =~ m/$AUTOERRORMK/gco)
2541 {
2542 7 $commitonly = $1;
2543 7 _parse("an error marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2544 7 $item = new Parse::RecDescent::Error('',$lookahead,$1,$line);
2545 7 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<error>", $line) 7 0 7
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
007
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2546 or _no_rule("<error>",$line);
2547 7 $aftererror = !$commitonly;
2548 }
2549 ▶ elsif ($grammar =~ m/(?=$MSGERRORMK)/gco
Condition0%0/3
$grammar =~ /(?=$MSGERRORMK)/cog and do { $commitonly = $1; ($code) = &extract_bracketed($grammar, "<"); $code }
!ll&&!rl&&r
000
MC/DC0%0/2
$grammar =~ /(?=$MSGERRORMK)/cog and do { $commitonly = $1; ($code) = &extract_bracketed($grammar, "<"); $code }
$grammar =~ /(?=$MSGERRORMK)/cog do { $commitonly = $1; ($code) = &extract_bracketed($grammar, "<"); $code }
Truth table0%0/3
A and B
A= $grammar =~ /(?=$MSGERRORMK)/cogB= do { $commitonly = $1; ($code) = &extract_bracketed($grammar, "<"); $code }
ABresult
0X0
100
111
2550 0 and do { $commitonly = $1;
2551 0 ($code) = extract_bracketed($grammar,'<');
2552 0 $code })
2553 {
2554 0 _parse("an error marker", $aftererror,$line,$code);
2555 0 $code =~ /\A\s*<error\??:(.*)>\Z/s;
2556 0 $item = new Parse::RecDescent::Error($1,$lookahead,$commitonly,$line);
2557 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("$code", $line) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2558 or _no_rule("$code",$line);
2559 0 $aftererror = !$commitonly;
2560 }
2561 0 elsif (do { $commitonly = $1;
2562 0 ($code) = extract_bracketed($grammar,'<');
2563 0 $code })
2564 {
2565 0 ▶ if ($code =~ /^<[A-Z_]+>$/)
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /^<[A-Z_]+>$/) { } 0 0 0
2566 {
2567 0 _error("Token items are not yet
2568 supported: \"$code\"",
2569 $line);
2570 0 _hint("Items like $code that consist of angle
2571 brackets enclosing a sequence of
2572 uppercase characters will eventually
2573 be used to specify pre-lexed tokens
2574 in a grammar. That functionality is not
2575 yet implemented. Or did you misspell
2576 \"$code\"?");
2577 }
2578 else
2579 {
2580 0 _error("Untranslatable item encountered: \"$code\"",
2581 $line);
2582 0 _hint("Did you misspell \"$code\"
2583 or forget to comment it out?");
2584 }
2585 }
2586 }
2587 elsif ($grammar =~ m/$RULE/gco)
2588 {
2589 710 ▶ _parseunneg("a rule declaration", 0,
Branch: 1 branch
BranchTrueFalseTotal
&_parseunneg("a rule declaration", 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0])) or next 710 0 710
2590 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2591 710 my $rulename = $1;
2592 710 ▶ if ($rulename =~ /Replace|Extend|Precompile|PrecompiledRuntime|Save/ )
Branch: 1 branch
BranchTrueFalseTotal
if ($rulename =~ /Replace|Extend|Precompile|PrecompiledRuntime|Save/) 0 710 710
2593 {
2594 0 ▶ _warn(2,"Rule \"$rulename\" hidden by method
Branch: 1 branch
BranchTrueFalseTotal
&_warn(2, qq[Rule "$rulename" hidden by method\n Parse::RecDescent::$rulename], $line) and &_hint(qq[The rule named "$rulename" cannot be directly\n called through the Parse::RecDescent object\n for this grammar (although it may still\n be used as a subrule of other rules).\n It can't be directly called because\n Parse::RecDescent::$rulename is already defined (it\n is the standard method of all\n parsers).]) 0 0 0
2595 Parse::RecDescent::$rulename",$line)
2596 and
2597 _hint("The rule named \"$rulename\" cannot be directly
2598 called through the Parse::RecDescent object
2599 for this grammar (although it may still
2600 be used as a subrule of other rules).
2601 It can't be directly called because
2602 Parse::RecDescent::$rulename is already defined (it
2603 is the standard method of all
2604 parsers).");
2605 }
2606 710 $rule = new Parse::RecDescent::Rule($rulename,$self,$line,$replace);
2607 710 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 632 78 710
2608 710 $prod = $rule->addprod( new Parse::RecDescent::Production );
2609 710 $aftererror = 0;
2610 }
2611 elsif ($grammar =~ m/$UNCOMMITPROD/gco)
2612 {
2613 1 pos($grammar)-=9;
2614 1 ▶ _parseunneg("a new (uncommitted) production",
Branch: 1 branch
BranchTrueFalseTotal
&_parseunneg("a new (uncommitted) production", 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0])) or next 1 0 1
2615 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2616  
2617 1 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 1 0 1
2618 1 $prod = new Parse::RecDescent::Production($line,1);
2619 1 ▶ $rule and $rule->addprod($prod)
Branch: 1 branch
BranchTrueFalseTotal
$rule and $rule->addprod($prod) or &_no_rule("<uncommit>", $line) 1 0 1
Condition33%1/3
$rule and $rule->addprod($prod)
!ll&&!rl&&r
001
MC/DC0%0/2
$rule and $rule->addprod($prod)
$rule $rule->addprod($prod)
Truth table33%1/3
A and B
A= $ruleB= $rule->addprod($prod)
ABresult
0X0
100
111
2620 or _no_rule("<uncommit>",$line);
2621 1 $aftererror = 0;
2622 }
2623 elsif ($grammar =~ m/$ERRORPROD/gco)
2624 {
2625 7 pos($grammar)-=6;
2626 7 ▶ _parseunneg("a new (error) production", $aftererror,
Branch: 1 branch
BranchTrueFalseTotal
&_parseunneg("a new (error) production", $aftererror, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0])) or next 7 0 7
2627 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2628 7 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 7 0 7
2629 7 $prod = new Parse::RecDescent::Production($line,0,1);
2630 7 ▶ $rule and $rule->addprod($prod)
Branch: 1 branch
BranchTrueFalseTotal
$rule and $rule->addprod($prod) or &_no_rule("<error>", $line) 7 0 7
Condition33%1/3
$rule and $rule->addprod($prod)
!ll&&!rl&&r
007
MC/DC0%0/2
$rule and $rule->addprod($prod)
$rule $rule->addprod($prod)
Truth table33%1/3
A and B
A= $ruleB= $rule->addprod($prod)
ABresult
0X0
100
111
2631 or _no_rule("<error>",$line);
2632 7 $aftererror = 0;
2633 }
2634 elsif ($grammar =~ m/$PROD/gco)
2635 {
2636 606 ▶ _parseunneg("a new production", 0,
Branch: 1 branch
BranchTrueFalseTotal
&_parseunneg("a new production", 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0])) or next 606 0 606
2637 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2638 606 ▶ $rule
Branch: 1 branch
BranchTrueFalseTotal
$rule and !$prod || $prod->check_pending($line) and $prod = $rule->addprod("Parse::RecDescent::Production"->new($line)) or &_no_rule("production", $line) 606 0 606
Condition33%3/9
$rule and !$prod || $prod->check_pending($line) and $prod = $rule->addprod("Parse::RecDescent::Production"->new($line))
!ll&&!rl&&r
00606
$rule and !$prod || $prod->check_pending($line)
!ll&&!rl&&r
00606
not $prod or $prod->check_pending($line)
l!l&&r!l&&!r
06060
MC/DC0%0/4
$rule and !$prod || $prod->check_pending($line) and $prod = $rule->addprod("Parse::RecDescent::Production"->new($line))
$rule not $prod $prod->check_pending($line) $prod = $rule->addprod("Parse::RecDescent::Production"->new($line))
Truth table16%1/6
A and not(B) or C and D
A= $ruleB= not $prodC= $prod->check_pending($line)D= $prod = $rule->addprod("Parse::RecDescent::Production"->new($line))
ABCDresult
0XXX0
100X0
11X00
10100
11X11
10111
2639 and (!$prod || $prod->check_pending($line))
2640 and $prod = $rule->addprod(new Parse::RecDescent::Production($line))
2641 or _no_rule("production",$line);
2642 606 $aftererror = 0;
2643 }
2644 elsif ($grammar =~ m/$LITERAL/gco)
2645 {
2646 919 my $literal = $1;
2647 919 ($code = $literal) =~ s/\\\\/\\/g;
2648 919 _parse("a literal terminal", $aftererror,$line,$literal);
2649 919 $item = new Parse::RecDescent::Literal($code,$lookahead,$line);
2650 919 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("literal terminal", $line, "'${literal}'") 919 0 919
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
00919
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2651 or _no_rule("literal terminal",$line,"'$literal'");
2652 }
2653 elsif ($grammar =~ m/$INTERPLIT/gco)
2654 {
2655 5 _parse("an interpolated literal terminal", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2656 5 $item = new Parse::RecDescent::InterpLit($1,$lookahead,$line);
2657 5 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("interpolated literal terminal", $line, "'$1'") 5 0 5
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
005
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2658 or _no_rule("interpolated literal terminal",$line,"'$1'");
2659 }
2660 elsif ($grammar =~ m/$TOKEN/gco)
2661 {
2662 240 _parse("a /../ pattern terminal", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2663 240 ▶ $item = new Parse::RecDescent::Token($1,'/',$3?$3:'',$lookahead,$line);
Branch: 1 branch
BranchTrueFalseTotal
$3 ? : 42 198 240
2664 240 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("pattern terminal", $line, "/$1/") 240 0 240
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
00240
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2665 or _no_rule("pattern terminal",$line,"/$1/");
2666 }
2667 ▶ elsif ($grammar =~ m/(?=$MTOKEN)/gco
Condition33%1/3
$grammar =~ /(?=$MTOKEN)/cog and do { ($code, undef, @components) = &extract_quotelike($grammar); $code }
!ll&&!rl&&r
151600
MC/DC0%0/2
$grammar =~ /(?=$MTOKEN)/cog and do { ($code, undef, @components) = &extract_quotelike($grammar); $code }
$grammar =~ /(?=$MTOKEN)/cog do { ($code, undef, @components) = &extract_quotelike($grammar); $code }
Truth table33%1/3
A and B
A= $grammar =~ /(?=$MTOKEN)/cogB= do { ($code, undef, @components) = &extract_quotelike($grammar); $code }
ABresult
0X0
100
111
2668 0 and do { ($code, undef, @components)
2669 = extract_quotelike($grammar);
2670 0 $code }
2671 )
2672  
2673 {
2674 0 _parse("an m/../ pattern terminal", $aftererror,$line,$code);
2675 0 $item = new Parse::RecDescent::Token(@components[3,2,8],
2676 $lookahead,$line);
2677 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("pattern terminal", $line, $code) 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2678 or _no_rule("pattern terminal",$line,$code);
2679 }
2680 ▶ elsif ($grammar =~ m/(?=$MATCHRULE)/gco
Condition66%4/6
$grammar =~ /(?=$MATCHRULE)/cog and do { ($code) = &extract_bracketed($grammar, "<"); $code } or $grammar =~ /$SUBRULE/cog and $code = $1
l!l&&r!l&&!r
215140
$grammar =~ /(?=$MATCHRULE)/cog and do { ($code) = &extract_bracketed($grammar, "<"); $code }
!ll&&!rl&&r
151402
MC/DC0%0/3
$grammar =~ /(?=$MATCHRULE)/cog and do { ($code) = &extract_bracketed($grammar, "<"); $code } or $grammar =~ /$SUBRULE/cog and $code = $1
$grammar =~ /(?=$MATCHRULE)/cog do { ($code) = &extract_bracketed($grammar, "<"); $code } $grammar =~ /$SUBRULE/cog and $code = $1
Truth table40%2/5
A and B or C
A= $grammar =~ /(?=$MATCHRULE)/cogB= do { ($code) = &extract_bracketed($grammar, "<"); $code }C= $grammar =~ /$SUBRULE/cog and $code = $1
ABCresult
11X1
0X11
1011
0X00
1000
2681 2 and do { ($code) = extract_bracketed($grammar,'<');
2682 2 ▶ $code
Condition33%1/3
$grammar =~ /$SUBRULE/cog and $code = $1
!ll&&!rl&&r
001514
MC/DC0%0/2
$grammar =~ /$SUBRULE/cog and $code = $1
$grammar =~ /$SUBRULE/cog $code = $1
Truth table33%1/3
A and B
A= $grammar =~ /$SUBRULE/cogB= $code = $1
ABresult
0X0
100
111
2683 }
2684 or $grammar =~ m/$SUBRULE/gco
2685 and $code = $1)
2686 {
2687 1516 my $name = $code;
2688 1516 my $matchrule = 0;
2689 1516 ▶ if (substr($name,0,1) eq '<')
Branch: 1 branch
BranchTrueFalseTotal
if (substr($name, 0, 1) eq "<") 2 1514 1516
2690 {
2691 2 $name =~ s/$MATCHRULE\s*//;
2692 2 $name =~ s/\s*>\Z//;
2693 2 $matchrule = 1;
2694 }
2695  
2696 # EXTRACT TRAILING ARG LIST (IF ANY)
2697  
2698 1516 ▶ my ($argcode) = extract_codeblock($grammar, "[]",'') || '';
Condition100%2/2
&extract_codeblock($grammar, '[]', '') || ''
l!l
11515
MC/DC100%1/1
&extract_codeblock($grammar, '[]', '') || ''
&extract_codeblock($grammar, '[]', '')
Truth table100%2/2
A
A= &extract_codeblock($grammar, '[]', '')
Aresult
11
00
2699  
2700 # EXTRACT TRAILING REPETITION SPECIFIER (IF ANY)
2701  
2702 1516 ▶ if ($grammar =~ m/\G[(]/gc)
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar =~ /\G[(]/cg) { } 464 1052 1516
2703 {
2704 464 pos($grammar)--;
2705  
2706 464 ▶ if ($grammar =~ m/$OPTIONAL/gco)
Branch: 8 branches
BranchTrueFalseTotal
if ($grammar =~ /$OPTIONAL/cog) { } 246 218 464
elsif ($grammar =~ /$ANY/cog) { } 30 188 218
elsif ($grammar =~ /$MANY/cog) { } 187 1 188
elsif ($grammar =~ /$EXACTLY/cog) { } 0 1 1
elsif ($grammar =~ /$BETWEEN/cog) { } 1 0 1
elsif ($grammar =~ /$ATLEAST/cog) { } 0 0 0
elsif ($grammar =~ /$ATMOST/cog) { } 0 0 0
elsif ($grammar =~ /$BADREP/cog) { } 0 0 0
2707 {
2708 246 _parse("an zero-or-one subrule match", $aftererror,$line,"$code$argcode($1)");
2709 246 $item = new Parse::RecDescent::Repetition($name,$1,0,1,
2710 $lookahead,$line,
2711 $self,
2712 $matchrule,
2713 $argcode);
2714 246 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("repetition", $line, "$code$argcode($1)") 246 0 246
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
00246
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2715 or _no_rule("repetition",$line,"$code$argcode($1)");
2716  
2717 246 ▶ !$matchrule and $rule and $rule->addcall($name);
Branch: 1 branch
BranchTrueFalseTotal
not $matchrule and $rule and $rule->addcall($name) 246 0 246
Condition33%1/3
not $matchrule and $rule
!ll&&!rl&&r
00246
MC/DC0%0/2
not $matchrule and $rule
not $matchrule $rule
Truth table33%1/3
not(A) and B
A= not $matchruleB= $rule
ABresult
0X0
100
111
2718 }
2719 elsif ($grammar =~ m/$ANY/gco)
2720 {
2721 30 _parse("a zero-or-more subrule match", $aftererror,$line,"$code$argcode($1)");
2722 30 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 1 29 30
2723 {
2724 1 my $pos = pos $grammar;
2725 1 substr($grammar,$pos,0,
2726 "<leftop='$name(s?)': $name $2 $name>(s?) ");
2727  
2728 1 pos $grammar = $pos;
2729 }
2730 else
2731 {
2732 29 $item = new Parse::RecDescent::Repetition($name,$1,0,$MAXREP,
2733 $lookahead,$line,
2734 $self,
2735 $matchrule,
2736 $argcode);
2737 29 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("repetition", $line, "$code$argcode($1)") 29 0 29
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
0029
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2738 or _no_rule("repetition",$line,"$code$argcode($1)");
2739  
2740 29 ▶ !$matchrule and $rule and $rule->addcall($name);
Branch: 1 branch
BranchTrueFalseTotal
not $matchrule and $rule and $rule->addcall($name) 29 0 29
Condition33%1/3
not $matchrule and $rule
!ll&&!rl&&r
0029
MC/DC0%0/2
not $matchrule and $rule
not $matchrule $rule
Truth table33%1/3
not(A) and B
A= not $matchruleB= $rule
ABresult
0X0
100
111
2741  
2742 29 ▶ _check_insatiable($name,$1,$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 29 0 29
2743 }
2744 }
2745 elsif ($grammar =~ m/$MANY/gco)
2746 {
2747 187 _parse("a one-or-more subrule match", $aftererror,$line,"$code$argcode($1)");
2748 187 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 126 61 187
2749 {
2750 # $DB::single=1;
2751 126 my $pos = pos $grammar;
2752 126 substr($grammar,$pos,0,
2753 "<leftop='$name(s)': $name $2 $name> ");
2754  
2755 126 pos $grammar = $pos;
2756 }
2757 else
2758 {
2759 61 $item = new Parse::RecDescent::Repetition($name,$1,1,$MAXREP,
2760 $lookahead,$line,
2761 $self,
2762 $matchrule,
2763 $argcode);
2764  
2765 61 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("repetition", $line, "$code$argcode($1)") 61 0 61
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
0061
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2766 or _no_rule("repetition",$line,"$code$argcode($1)");
2767  
2768 61 ▶ !$matchrule and $rule and $rule->addcall($name);
Branch: 1 branch
BranchTrueFalseTotal
not $matchrule and $rule and $rule->addcall($name) 61 0 61
Condition33%1/3
not $matchrule and $rule
!ll&&!rl&&r
0061
MC/DC0%0/2
not $matchrule and $rule
not $matchrule $rule
Truth table33%1/3
not(A) and B
A= not $matchruleB= $rule
ABresult
0X0
100
111
2769  
2770 61 ▶ _check_insatiable($name,$1,$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 61 0 61
2771 }
2772 }
2773 elsif ($grammar =~ m/$EXACTLY/gco)
2774 {
2775 0 _parse("an exactly-$1-times subrule match", $aftererror,$line,"$code$argcode($1)");
2776 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2777 {
2778 0 my $pos = pos $grammar;
2779 0 substr($grammar,$pos,0,
2780 "<leftop='$name($1)': $name $2 $name>($1) ");
2781  
2782 0 pos $grammar = $pos;
2783 }
2784 else
2785 {
2786 0 $item = new Parse::RecDescent::Repetition($name,$1,$1,$1,
2787 $lookahead,$line,
2788 $self,
2789 $matchrule,
2790 $argcode);
2791 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("repetition", $line, "$code$argcode($1)") 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2792 or _no_rule("repetition",$line,"$code$argcode($1)");
2793  
2794 0 ▶ !$matchrule and $rule and $rule->addcall($name);
Branch: 1 branch
BranchTrueFalseTotal
not $matchrule and $rule and $rule->addcall($name) 0 0 0
Condition0%0/3
not $matchrule and $rule
!ll&&!rl&&r
000
MC/DC0%0/2
not $matchrule and $rule
not $matchrule $rule
Truth table0%0/3
not(A) and B
A= not $matchruleB= $rule
ABresult
0X0
100
111
2795 }
2796 }
2797 elsif ($grammar =~ m/$BETWEEN/gco)
2798 {
2799 1 _parse("a $1-to-$2 subrule match", $aftererror,$line,"$code$argcode($1..$2)");
2800 1 ▶ if ($3)
Branch: 1 branch
BranchTrueFalseTotal
if ($3) { } 0 1 1
2801 {
2802 0 my $pos = pos $grammar;
2803 0 substr($grammar,$pos,0,
2804 "<leftop='$name($1..$2)': $name $3 $name>($1..$2) ");
2805  
2806 0 pos $grammar = $pos;
2807 }
2808 else
2809 {
2810 1 $item = new Parse::RecDescent::Repetition($name,"$1..$2",$1,$2,
2811 $lookahead,$line,
2812 $self,
2813 $matchrule,
2814 $argcode);
2815 1 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("repetition", $line, "$code$argcode($1..$2)") 1 0 1
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
001
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2816 or _no_rule("repetition",$line,"$code$argcode($1..$2)");
2817  
2818 1 ▶ !$matchrule and $rule and $rule->addcall($name);
Branch: 1 branch
BranchTrueFalseTotal
not $matchrule and $rule and $rule->addcall($name) 1 0 1
Condition33%1/3
not $matchrule and $rule
!ll&&!rl&&r
001
MC/DC0%0/2
not $matchrule and $rule
not $matchrule $rule
Truth table33%1/3
not(A) and B
A= not $matchruleB= $rule
ABresult
0X0
100
111
2819 }
2820 }
2821 elsif ($grammar =~ m/$ATLEAST/gco)
2822 {
2823 0 _parse("a $1-or-more subrule match", $aftererror,$line,"$code$argcode($1..)");
2824 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2825 {
2826 0 my $pos = pos $grammar;
2827 0 substr($grammar,$pos,0,
2828 "<leftop='$name($1..)': $name $2 $name>($1..) ");
2829  
2830 0 pos $grammar = $pos;
2831 }
2832 else
2833 {
2834 0 $item = new Parse::RecDescent::Repetition($name,"$1..",$1,$MAXREP,
2835 $lookahead,$line,
2836 $self,
2837 $matchrule,
2838 $argcode);
2839 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("repetition", $line, "$code$argcode($1..)") 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2840 or _no_rule("repetition",$line,"$code$argcode($1..)");
2841  
2842 0 ▶ !$matchrule and $rule and $rule->addcall($name);
Branch: 1 branch
BranchTrueFalseTotal
not $matchrule and $rule and $rule->addcall($name) 0 0 0
Condition0%0/3
not $matchrule and $rule
!ll&&!rl&&r
000
MC/DC0%0/2
not $matchrule and $rule
not $matchrule $rule
Truth table0%0/3
not(A) and B
A= not $matchruleB= $rule
ABresult
0X0
100
111
2843 0 ▶ _check_insatiable($name,"$1..",$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 0 0 0
2844 }
2845 }
2846 elsif ($grammar =~ m/$ATMOST/gco)
2847 {
2848 0 _parse("a one-to-$1 subrule match", $aftererror,$line,"$code$argcode(..$1)");
2849 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2850 {
2851 0 my $pos = pos $grammar;
2852 0 substr($grammar,$pos,0,
2853 "<leftop='$name(..$1)': $name $2 $name>(..$1) ");
2854  
2855 0 pos $grammar = $pos;
2856 }
2857 else
2858 {
2859 0 $item = new Parse::RecDescent::Repetition($name,"..$1",1,$1,
2860 $lookahead,$line,
2861 $self,
2862 $matchrule,
2863 $argcode);
2864 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("repetition", $line, "$code$argcode(..$1)") 0 0 0
Condition0%0/3
$prod and $prod->additem($item)
!ll&&!rl&&r
000
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table0%0/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2865 or _no_rule("repetition",$line,"$code$argcode(..$1)");
2866  
2867 0 ▶ !$matchrule and $rule and $rule->addcall($name);
Branch: 1 branch
BranchTrueFalseTotal
not $matchrule and $rule and $rule->addcall($name) 0 0 0
Condition0%0/3
not $matchrule and $rule
!ll&&!rl&&r
000
MC/DC0%0/2
not $matchrule and $rule
not $matchrule $rule
Truth table0%0/3
not(A) and B
A= not $matchruleB= $rule
ABresult
0X0
100
111
2868 }
2869 }
2870 elsif ($grammar =~ m/$BADREP/gco)
2871 {
2872 0 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
2873 0 _parse("an subrule match with invalid repetition specifier", 0,$line, $current_match);
2874 0 _error("Incorrect specification of a repeated subrule",
2875 $line);
2876 0 _hint("Repeated subrules like \"$code$argcode$current_match\" cannot have
2877 a maximum repetition of zero, nor can they have
2878 negative components in their ranges.");
2879 }
2880 }
2881 else
2882 {
2883 1052 _parse("a subrule match", $aftererror,$line,$code);
2884 1052 my $desc;
2885 1052 ▶ if ($name=~/\A_alternation_\d+_of_production_\d+_of_rule/)
Branch: 1 branch
BranchTrueFalseTotal
if ($name =~ /\A_alternation_\d+_of_production_\d+_of_rule/) 0 1052 1052
2886 0 { $desc = $self->{"rules"}{$name}->expected }
2887 1052 $item = new Parse::RecDescent::Subrule($name,
2888 $lookahead,
2889 $line,
2890 $desc,
2891 $matchrule,
2892 $argcode);
2893  
2894 1052 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("(sub)rule", $line, $name) 1052 0 1052
Condition33%1/3
$prod and $prod->additem($item)
!ll&&!rl&&r
001052
MC/DC0%0/2
$prod and $prod->additem($item)
$prod $prod->additem($item)
Truth table33%1/3
A and B
A= $prodB= $prod->additem($item)
ABresult
0X0
100
111
2895 or _no_rule("(sub)rule",$line,$name);
2896  
2897 1052 ▶ !$matchrule and $rule and $rule->addcall($name);
Branch: 1 branch
BranchTrueFalseTotal
not $matchrule and $rule and $rule->addcall($name) 1050 2 1052
Condition66%2/3
not $matchrule and $rule
!ll&&!rl&&r
201050
MC/DC50%1/2
not $matchrule and $rule
not $matchrule $rule
Truth table66%2/3
not(A) and B
A= not $matchruleB= $rule
ABresult
0X0
100
111
2898 }
2899 }
2900 elsif ($grammar =~ m/$LONECOLON/gco )
2901 {
2902 0 _error("Unexpected colon encountered", $line);
2903 0 _hint("Did you mean \"|\" (to start a new production)?
2904 Or perhaps you forgot that the colon
2905 in a rule definition must be
2906 on the same line as the rule name?");
2907 }
2908 elsif ($grammar =~ m/$ACTION/gco ) # BAD ACTION, ALREADY FAILED
2909 {
2910 0 _error("Malformed action encountered",
2911 $line);
2912 0 _hint("Did you forget the closing curly bracket
2913 or is there a syntax error in the action?");
2914 }
2915 elsif ($grammar =~ m/$OTHER/gco )
2916 {
2917 0 _error("Untranslatable item encountered: \"$1\"",
2918 $line);
2919 0 _hint("Did you misspell \"$1\"
2920 or forget to comment it out?");
2921 }
2922  
2923 4481 ▶ if ($lookaheadspec =~ tr /././ > 3)
Branch: 1 branch
BranchTrueFalseTotal
if ($lookaheadspec =~ tr/.// > 3) 0 4481 4481
2924 {
2925 0 $lookaheadspec =~ s/\A\s+//;
2926 0 ▶ $lookahead = $lookahead<0
Branch: 1 branch
BranchTrueFalseTotal
$lookahead < 0 ? : 0 0 0
2927 ? 'a negative lookahead ("...!")'
2928 : 'a positive lookahead ("...")' ;
2929 0 ▶ _warn(1,"Found two or more lookahead specifiers in a
Branch: 1 branch
BranchTrueFalseTotal
&_warn(1, "Found two or more lookahead specifiers in a\n row.", $line) and &_hint(qq[Multiple positive and/or negative lookaheads\n are simply multiplied together to produce a\n single positive or negative lookahead\n specification. In this case the sequence\n "$lookaheadspec" was reduced to $lookahead.\n Was this your intention?]) 0 0 0
2930 row.",$line)
2931 and
2932 _hint("Multiple positive and/or negative lookaheads
2933 are simply multiplied together to produce a
2934 single positive or negative lookahead
2935 specification. In this case the sequence
2936 \"$lookaheadspec\" was reduced to $lookahead.
2937 Was this your intention?");
2938 }
2939 4481 $lookahead = 0;
2940 4481 $lookaheadspec = "";
2941  
2942 4481 $grammar =~ m/\G\s+/gc;
2943 }
2944  
2945 78 ▶ if ($must_pop_lines) {
Branch: 1 branch
BranchTrueFalseTotal
if ($must_pop_lines) 37 41 78
2946 37 pop @lines;
2947 }
2948  
2949 78 ▶ unless ($ERRORS or $isimplicit or !$::RD_CHECK)
Branch: 1 branch
BranchTrueFalseTotal
unless ($ERRORS or $isimplicit or not $main::RD_CHECK) 37 41 78
Condition66%4/6
$ERRORS or $isimplicit or not $main::RD_CHECK
l!l&&r!l&&!r
41037
$ERRORS or $isimplicit
l!l&&r!l&&!r
04137
MC/DC33%1/3
$ERRORS or $isimplicit or not $main::RD_CHECK
$ERRORS $isimplicit not $main::RD_CHECK
Truth table50%2/4
A or B or not(C)
A= $ERRORSB= $isimplicitC= not $main::RD_CHECK
ABCresult
1XX1
01X1
0011
0000
2950 {
2951 37 $self->_check_grammar();
2952 }
2953  
2954 78 ▶ unless ($ERRORS or $isimplicit or $Parse::RecDescent::compiling)
Branch: 1 branch
BranchTrueFalseTotal
unless ($ERRORS or $isimplicit or $Parse::RecDescent::compiling) 28 50 78
Condition83%5/6
$ERRORS or $isimplicit or $Parse::RecDescent::compiling
l!l&&r!l&&!r
41928
$ERRORS or $isimplicit
l!l&&r!l&&!r
04137
MC/DC66%2/3
$ERRORS or $isimplicit or $Parse::RecDescent::compiling
$ERRORS $isimplicit $Parse::RecDescent::compiling
Truth table75%3/4
A or B or C
A= $ERRORSB= $isimplicitC= $Parse::RecDescent::compiling
ABCresult
1XX1
01X1
0011
0000
2955 {
2956 28 my $code = $self->_code();
2957 28 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 28 28
2958 {
2959 0 ▶ my $mode = ($nextnamespace eq "namespace000002") ? '>' : '>>';
Branch: 1 branch
BranchTrueFalseTotal
$nextnamespace eq 'namespace000002' ? : 0 0 0
2960 0 print STDERR "printing code (", length($code),") to RD_TRACE\n";
2961 0 local *TRACE_FILE;
2962 0 ▶ open TRACE_FILE, $mode, "RD_TRACE"
Branch: 1 branch
BranchTrueFalseTotal
open TRACE_FILE, $mode, "RD_TRACE" and print TRACE_FILE "my \$ERRORS;\n$code" and close TRACE_FILE 0 0 0
Condition0%0/3
open TRACE_FILE, $mode, "RD_TRACE" and print TRACE_FILE "my \$ERRORS;\n$code"
!ll&&!rl&&r
000
MC/DC0%0/2
open TRACE_FILE, $mode, "RD_TRACE" and print TRACE_FILE "my \$ERRORS;\n$code"
open TRACE_FILE, $mode, "RD_TRACE" print TRACE_FILE "my \$ERRORS;\n$code"
Truth table0%0/3
A and B
A= open TRACE_FILE, $mode, "RD_TRACE"B= print TRACE_FILE "my \$ERRORS;\n$code"
ABresult
0X0
100
111
2963 and print TRACE_FILE "my \$ERRORS;\n$code"
2964 and close TRACE_FILE;
2965 }
2966  
2967 0 ▶ unless ( eval "$code 1" )
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Branch: 948 branches
BranchTrueFalseTotal
unless (eval "$code 1") 0 28 28
if defined $main::RD_TRACE 1 85 86
defined $_[4] ? : 84 2 86
$#arg & 1 ? : 84 2 86
unless ($_matched or $commit) 83 3 86
if defined $main::RD_TRACE 0 84 84
if defined $main::RD_TRACE 0 86 86
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aeasy/) 15 70 85
if defined $lastsep 29 3 32
if defined $lastsep 0 33 33
if defined $main::RD_TRACE 0 71 71
if defined $main::RD_TRACE 3 71 74
if defined $main::RD_TRACE 12 67 79
if (defined $_itempos) 4 14 18
unless ($_matched or defined $score) 0 81 81
if defined $main::RD_TRACE 11 7 18
if (not defined $return and defined $score) 71 10 81
if defined $main::RD_TRACE 16 60 76
unless defined $return 4 36 40
if (defined $main::RD_TRACE) 14 27 41
if defined $main::RD_TRACE 30 11 41
defined $_[4] ? : 27 7 34
$#arg & 1 ? : 2 28 30
unless ($_matched or $commit) 1 26 27
if defined $main::RD_TRACE 2 23 25
if defined $main::RD_TRACE 4 12 16
unless (defined($_tok = defn($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 0 7 7
if defined $main::RD_TRACE 0 19 19
if defined $main::RD_TRACE 0 16 16
if defined $main::RD_TRACE 4 15 19
if (defined $_itempos) 10 9 19
unless ($_matched or $commit) 2 29 31
if defined $main::RD_TRACE 5 17 22
if defined $main::RD_TRACE 8 13 21
unless (defined($_tok = typedef($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 5 19 24
if defined $main::RD_TRACE 0 22 22
if defined $main::RD_TRACE 20 22 42
if defined $main::RD_TRACE 30 16 46
if (defined $_itempos) 25 23 48
unless ($_matched or $commit) 18 16 34
if defined $main::RD_TRACE 6 34 40
if defined $main::RD_TRACE 16 19 35
unless (defined($_tok = fail($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 8 26 34
if defined $main::RD_TRACE 8 27 35
if defined $main::RD_TRACE 8 73 81
if defined $main::RD_TRACE 57 16 73
if (defined $_itempos) 54 6 60
unless ($_matched or defined $score) 54 13 67
if defined $main::RD_TRACE 1 67 68
if (not defined $return and defined $score) 0 65 65
if defined $main::RD_TRACE 50 16 66
unless defined $return 50 3 53
if (defined $main::RD_TRACE) 8 62 70
if defined $main::RD_TRACE 5 22 27
defined $_[4] ? : 7 22 29
$#arg & 1 ? : 4 13 17
unless ($_matched or $commit) 5 13 18
if defined $main::RD_TRACE 0 8 8
if defined $main::RD_TRACE 8 12 20
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/) 10 11 21
if defined $lastsep 10 14 24
if defined $lastsep 20 4 24
if defined $main::RD_TRACE 64 13 77
if defined $main::RD_TRACE 9 69 78
if defined $main::RD_TRACE 8 68 76
if (defined $_itempos) 21 59 80
unless ($_matched or defined $score) 3 30 33
if defined $main::RD_TRACE 0 56 56
if (not defined $return and defined $score) 1 55 56
if defined $main::RD_TRACE 10 58 68
unless defined $return 1 20 21
if (defined $main::RD_TRACE) 1 17 18
if defined $main::RD_TRACE 2 22 24
defined $_[4] ? : 0 23 23
$#arg & 1 ? : 17 16 33
unless ($_matched or $commit) 11 24 35
if defined $main::RD_TRACE 11 58 69
if defined $main::RD_TRACE 1 26 27
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "b"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 6 68 74
if defined $lastsep 11 18 29
if defined $lastsep 60 7 67
if defined $main::RD_TRACE 9 66 75
if defined $main::RD_TRACE 4 14 18
if defined $main::RD_TRACE 11 14 25
if (defined $_itempos) 11 15 26
unless ($_matched or defined $score) 7 8 15
if defined $main::RD_TRACE 10 6 16
if (not defined $return and defined $score) 4 9 13
if defined $main::RD_TRACE 5 13 18
unless defined $return 5 9 14
if (defined $main::RD_TRACE) 5 0 5
if defined $main::RD_TRACE 0 5 5
defined $_[4] ? : 0 1 1
$#arg & 1 ? : 0 4 4
unless ($_matched or $commit) 0 4 4
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 4 1 5
$arg[0] ne 'meows' ? : 0 5 5
if (defined $_tok) { } 0 1 1
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 3 3
unless defined $_tok 3 1 4
if defined $main::RD_TRACE 1 8 9
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Acat/) 4 2 6
if defined $lastsep 4 4 8
if defined $lastsep 4 0 4
if defined $main::RD_TRACE 3 5 8
if defined $main::RD_TRACE 0 8 8
if defined $main::RD_TRACE 9 6 15
$_noactions ? : 9 5 14
unless (defined $_tok) 5 5 10
if defined $main::RD_TRACE 5 0 5
if defined $main::RD_TRACE 1 5 6
if defined $main::RD_TRACE 0 6 6
if (defined $_itempos) 4 7 11
unless ($_matched or $commit) 10 0 10
if defined $main::RD_TRACE 10 0 10
if defined $main::RD_TRACE 6 4 10
$_noactions ? : 4 7 11
unless (defined $_tok) 0 11 11
if defined $main::RD_TRACE 5 2 7
if defined $main::RD_TRACE 5 0 5
if defined $main::RD_TRACE 0 6 6
if (defined $_itempos) 0 2 2
unless ($_matched or defined $score) 0 10 10
if defined $main::RD_TRACE 8 1 9
if (not defined $return and defined $score) 8 0 8
if defined $main::RD_TRACE 8 1 9
unless defined $return 0 10 10
if (defined $main::RD_TRACE) 0 10 10
if defined $main::RD_TRACE 6 3 9
defined $_[4] ? : 6 0 6
$#arg & 1 ? : 0 8 8
unless ($_matched or $commit) 0 4 4
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 0 3 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/) 0 2 2
if defined $lastsep 0 1 1
if defined $lastsep 0 4 4
if defined $main::RD_TRACE 5 4 9
if defined $main::RD_TRACE 6 8 14
if defined $main::RD_TRACE 0 8 8
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/) 0 2 2
if defined $lastsep 1 1 2
if defined $lastsep 2 2 4
if defined $main::RD_TRACE 1 8 9
if defined $main::RD_TRACE 10 9 19
if defined $main::RD_TRACE 14 4 18
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/) 14 1 15
if defined $lastsep 8 6 14
if defined $lastsep 1 14 15
if defined $main::RD_TRACE 5 10 15
if defined $main::RD_TRACE 11 3 14
if defined $main::RD_TRACE 7 5 12
if (defined $_itempos) 0 8 8
unless ($_matched or defined $score) 1 3 4
if defined $main::RD_TRACE 0 4 4
if (not defined $return and defined $score) 0 3 3
if defined $main::RD_TRACE 0 4 4
unless defined $return 0 1 1
if (defined $main::RD_TRACE) 0 3 3
if defined $main::RD_TRACE 0 2 2
defined $_[4] ? : 6 3 9
$#arg & 1 ? : 0 8 8
unless ($_matched or $commit) 0 4 4
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 2 1 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Avar/) 0 3 3
if defined $lastsep 0 12 12
if defined $lastsep 11 1 12
if defined $main::RD_TRACE 15 2 17
if defined $main::RD_TRACE 10 5 15
if defined $main::RD_TRACE 0 12 12
unless (defined($_tok = id($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 0 10 10
if defined $main::RD_TRACE 9 3 12
if defined $main::RD_TRACE 7 2 9
if defined $main::RD_TRACE 0 13 13
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aholds/) 6 3 9
if defined $lastsep 6 3 9
if defined $lastsep 6 3 9
if defined $main::RD_TRACE 0 9 9
if defined $main::RD_TRACE 0 6 6
if defined $main::RD_TRACE 0 9 9
unless (defined($_tok = typename($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 0 3 3
if defined $main::RD_TRACE 7 3 10
if defined $main::RD_TRACE 0 12 12
if defined $main::RD_TRACE 0 9 9
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A\;/) 0 6 6
if defined $lastsep 4 5 9
if defined $lastsep 0 4 4
if defined $main::RD_TRACE 0 15 15
if defined $main::RD_TRACE 10 6 16
if defined $main::RD_TRACE 10 5 15
$_noactions ? : 11 0 11
unless (defined $_tok) 0 16 16
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 12 3 15
if defined $main::RD_TRACE 7 5 12
if (defined $_itempos) 0 12 12
unless ($_matched or defined $score) 5 3 8
if defined $main::RD_TRACE 5 3 8
if (not defined $return and defined $score) 5 3 8
if defined $main::RD_TRACE 0 8 8
unless defined $return 0 5 5
if (defined $main::RD_TRACE) 0 8 8
if defined $main::RD_TRACE 0 3 3
defined $_[4] ? : 7 3 10
$#arg & 1 ? : 0 12 12
unless ($_matched or $commit) 0 8 8
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 3 5 8
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Adog/) 0 3 3
if defined $lastsep 0 13 13
if defined $lastsep 8 5 13
if defined $main::RD_TRACE 8 7 15
if defined $main::RD_TRACE 10 0 10
if defined $main::RD_TRACE 2 13 15
$_noactions ? : 2 8 10
unless (defined $_tok) 11 4 15
if defined $main::RD_TRACE 6 7 13
if defined $main::RD_TRACE 0 13 13
if defined $main::RD_TRACE 5 4 9
if (defined $_itempos) 5 2 7
unless ($_matched or defined $score) 5 4 9
if defined $main::RD_TRACE 0 9 9
if (not defined $return and defined $score) 2 5 7
if defined $main::RD_TRACE 0 9 9
unless defined $return 0 2 2
if (defined $main::RD_TRACE) 6 4 10
if defined $main::RD_TRACE 0 11 11
defined $_[4] ? : 2 7 9
$#arg & 1 ? : 0 7 7
unless ($_matched or $commit) 2 46 48
if defined $main::RD_TRACE 41 2 43
if defined $main::RD_TRACE 41 13 54
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:ee)/) 49 5 54
if defined $lastsep 8 46 54
if defined $lastsep 8 41 49
if defined $main::RD_TRACE 0 54 54
if defined $main::RD_TRACE 0 8 8
if defined $main::RD_TRACE 11 2 13
if (defined $_itempos) 6 5 11
unless ($_matched or defined $score) 0 52 52
if defined $main::RD_TRACE 5 43 48
if (not defined $return and defined $score) 46 2 48
if defined $main::RD_TRACE 5 43 48
unless defined $return 0 7 7
if (defined $main::RD_TRACE) 0 46 46
if defined $main::RD_TRACE 3 4 7
defined $_[4] ? : 44 2 46
$#arg & 1 ? : 6 46 52
unless ($_matched or $commit) 0 14 14
if defined $main::RD_TRACE 6 4 10
if defined $main::RD_TRACE 6 2 8
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Asome\ extension/) 8 0 8
if defined $lastsep 0 10 10
if defined $lastsep 0 12 12
if defined $main::RD_TRACE 5 7 12
if defined $main::RD_TRACE 5 0 5
if defined $main::RD_TRACE 5 0 5
if (defined $_itempos) 0 7 7
unless ($_matched or defined $score) 0 11 11
if defined $main::RD_TRACE 3 8 11
if (not defined $return and defined $score) 8 0 8
if defined $main::RD_TRACE 1 10 11
unless defined $return 0 4 4
if (defined $main::RD_TRACE) 0 8 8
if defined $main::RD_TRACE 0 2 2
defined $_[4] ? : 4 1 5
$#arg & 1 ? : 0 6 6
unless ($_matched or $commit) 0 3 3
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 3 4 7
$_noactions ? : 1 3 4
unless (defined $_tok) 0 5 5
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 4 4 8
if defined $main::RD_TRACE 0 4 4
if (defined $_itempos) 2 6 8
unless ($_matched or defined $score) 4 2 6
if defined $main::RD_TRACE 6 16 22
if (not defined $return and defined $score) 20 2 22
if defined $main::RD_TRACE 16 9 25
unless defined $return 21 4 25
if (defined $main::RD_TRACE) 8 17 25
if defined $main::RD_TRACE 8 16 24
defined $_[4] ? : 10 14 24
$#arg & 1 ? : 9 7 16
unless ($_matched or $commit) 4 12 16
if defined $main::RD_TRACE 3 6 9
if defined $main::RD_TRACE 0 10 10
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:[a-z] # LEADING ALPHABETIC \w* # FOLLOWED BY ALPHAS, DIGITS, OR UNDERSCORES )/xi) 9 8 17
if defined $lastsep 1 13 14
if defined $lastsep 0 14 14
if defined $main::RD_TRACE 8 5 13
if defined $main::RD_TRACE 4 8 12
if defined $main::RD_TRACE 0 10 10
if (defined $_itempos) 2 6 8
unless ($_matched or defined $score) 2 6 8
if defined $main::RD_TRACE 5 10 15
if (not defined $return and defined $score) 0 15 15
if defined $main::RD_TRACE 6 10 16
unless defined $return 8 2 10
if (defined $main::RD_TRACE) 14 2 16
if defined $main::RD_TRACE 0 17 17
defined $_[4] ? : 1 17 18
$#arg & 1 ? : 14 4 18
unless ($_matched or $commit) 14 0 14
if defined $main::RD_TRACE 9 5 14
if defined $main::RD_TRACE 0 14 14
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ais/) 0 14 14
if defined $lastsep 6 7 13
if defined $lastsep 6 4 10
if defined $main::RD_TRACE 0 6 6
if defined $main::RD_TRACE 0 8 8
if defined $main::RD_TRACE 0 8 8
if (defined $_itempos) 13 8 21
unless ($_matched or $commit) 0 14 14
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 3 4 7
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aare/) 7 1 8
if defined $lastsep 1 7 8
if defined $lastsep 0 15 15
if defined $main::RD_TRACE 11 3 14
if defined $main::RD_TRACE 14 7 21
if defined $main::RD_TRACE 11 3 14
if (defined $_itempos) 1 17 18
unless ($_matched or defined $score) 0 12 12
if defined $main::RD_TRACE 13 5 18
if (not defined $return and defined $score) 8 6 14
if defined $main::RD_TRACE 1 7 8
unless defined $return 1 4 5
if (defined $main::RD_TRACE) 0 5 5
if defined $main::RD_TRACE 0 5 5
defined $_[4] ? : 0 3 3
$#arg & 1 ? : 0 2 2
unless ($_matched or $commit) 0 5 5
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 4 3 7
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Afred/) 0 4 4
if defined $lastsep 0 5 5
if defined $lastsep 0 2 2
if defined $main::RD_TRACE 3 2 5
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 10 10
$_noactions ? : 8 2 10
unless (defined $_tok) 8 2 10
if defined $main::RD_TRACE 8 0 8
if defined $main::RD_TRACE 0 8 8
if defined $main::RD_TRACE 0 10 10
if (defined $_itempos) 4 6 10
unless ($_matched or defined $score) 4 2 6
if defined $main::RD_TRACE 0 6 6
if (not defined $return and defined $score) 0 4 4
if defined $main::RD_TRACE 0 6 6
unless defined $return 0 6 6
if (defined $main::RD_TRACE) 3 5 8
if defined $main::RD_TRACE 0 4 4
defined $_[4] ? : 0 5 5
$#arg & 1 ? : 1 3 4
unless ($_matched or $commit) 6 4 10
if defined $main::RD_TRACE 0 7 7
if defined $main::RD_TRACE 1 15 16
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:[a-z]\w*)/i) 13 0 13
if defined $lastsep 16 0 16
if defined $lastsep 12 4 16
if defined $main::RD_TRACE 0 20 20
if defined $main::RD_TRACE 7 13 20
if defined $main::RD_TRACE 7 12 19
$_noactions ? : 7 0 7
unless (defined $_tok) 0 8 8
if defined $main::RD_TRACE 0 20 20
if defined $main::RD_TRACE 4 16 20
if defined $main::RD_TRACE 4 12 16
if (defined $_itempos) 0 9 9
unless ($_matched or defined $score) 0 11 11
if defined $main::RD_TRACE 1 7 8
if (not defined $return and defined $score) 8 8 16
if defined $main::RD_TRACE 0 17 17
unless defined $return 2 0 2
if (defined $main::RD_TRACE) 2 7 9
if defined $main::RD_TRACE 2 3 5
defined $_[4] ? : 8 5 13
$#arg & 1 ? : 0 10 10
unless ($_matched or $commit) 0 15 15
if defined $main::RD_TRACE 10 0 10
if defined $main::RD_TRACE 13 0 13
unless (defined($_tok = string($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 10 3 13
if defined $main::RD_TRACE 0 18 18
if defined $main::RD_TRACE 6 12 18
if defined $main::RD_TRACE 6 12 18
unless ($_matched or defined $score) 6 0 6
if defined $main::RD_TRACE 0 6 6
if (not defined $return and defined $score) 0 16 16
if defined $main::RD_TRACE 3 15 18
unless defined $return 3 12 15
if (defined $main::RD_TRACE) 0 9 9
if defined $main::RD_TRACE 0 9 9
defined $_[4] ? : 0 7 7
$#arg & 1 ? : 6 7 13
unless ($_matched or $commit) 0 15 15
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 9 9
unless () 0 3 3
if defined $lastsep 7 3 10
if defined $main::RD_TRACE 0 7 7
if defined $main::RD_TRACE 0 9 9
if defined $main::RD_TRACE 4 2 6
unless ($_matched or defined $score) 7 2 9
if defined $main::RD_TRACE 4 3 7
if (not defined $return and defined $score) 0 12 12
if defined $main::RD_TRACE 6 6 12
unless defined $return 6 6 12
if (defined $main::RD_TRACE) 6 0 6
if defined $main::RD_TRACE 0 8 8
defined $_[4] ? : 0 12 12
$#arg & 1 ? : 3 9 12
unless ($_matched or $commit) 3 6 9
if defined $main::RD_TRACE 0 7 7
if defined $main::RD_TRACE 0 5 5
unless ($text =~ s/\A($Parse::RecDescent::namespace000006::skip)/$lastsep = $1 and "";/e and do { $_tok = "hello"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 9 9
if defined $lastsep 0 9 9
if defined $main::RD_TRACE 0 9 9
if defined $main::RD_TRACE 0 0 0
if defined $main::RD_TRACE 0 9 9
unless ($_matched or defined $score) 0 3 3
if defined $main::RD_TRACE 9 3 12
if (not defined $return and defined $score) 0 9 9
if defined $main::RD_TRACE 0 7 7
unless defined $return 4 0 4
if (defined $main::RD_TRACE) 7 0 7
if defined $main::RD_TRACE 4 3 7
defined $_[4] ? : 0 7 7
$#arg & 1 ? : 3 4 7
unless ($_matched or $commit) 4 3 7
if defined $main::RD_TRACE 4 0 4
if defined $main::RD_TRACE 0 4 4
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 6 6
if defined $lastsep 2 4 6
if defined $lastsep 2 3 5
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 4 4
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Athe/) 0 4 4
if defined $lastsep 0 2 2
if defined $lastsep 0 1 1
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 2 4 6
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "$main::first"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 3 3
if defined $lastsep 0 3 3
if defined $lastsep 0 3 3
if defined $main::RD_TRACE 1 2 3
if defined $main::RD_TRACE 1 1 2
if defined $main::RD_TRACE 0 4 4
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:te+st)/) 3 5 8
if defined $lastsep 6 2 8
if defined $lastsep 6 2 8
if defined $main::RD_TRACE 3 5 8
if defined $main::RD_TRACE 0 6 6
if defined $main::RD_TRACE 2 6 8
unless (defined($_tok = is($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 2 5 7
if defined $main::RD_TRACE 1 4 5
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 6 6
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::_alternation_1_of_production_1_of_rule_test1, 0, 100000000, $_noactions, $expectation, sub { \@arg; } , $itempos[$#itempos]))) 0 4 4
if defined $main::RD_TRACE 2 1 3
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 7 7
$_noactions ? : 3 4 7
unless (defined $_tok) 5 4 9
if defined $main::RD_TRACE 3 2 5
if defined $main::RD_TRACE 0 7 7
if defined $main::RD_TRACE 0 3 3
if (defined $_itempos) 5 2 7
unless ($_matched or defined $score) 1 4 5
if defined $main::RD_TRACE 0 6 6
if (not defined $return and defined $score) 5 2 7
if defined $main::RD_TRACE 5 2 7
unless defined $return 5 2 7
if (defined $main::RD_TRACE) 0 5 5
if defined $main::RD_TRACE 0 7 7
defined $_[4] ? : 1 6 7
$#arg & 1 ? : 1 2 3
unless ($_matched or $commit) 0 2 2
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 0 6 6
unless ($text =~ s/\A($Parse::RecDescent::namespace000002::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-z]+)/i) 0 6 6
if defined $lastsep 0 5 5
if defined $main::RD_TRACE 0 1 1
if defined $main::RD_TRACE 0 6 6
if defined $main::RD_TRACE 0 6 6
$_noactions ? : 1 6 7
unless (defined $_tok) 0 1 1
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 4 2 6
$_noactions ? : 0 6 6
unless (defined $_tok) 0 7 7
if defined $main::RD_TRACE 5 0 5
if defined $main::RD_TRACE 5 2 7
if defined $main::RD_TRACE 5 2 7
unless ($_matched or defined $score) 1 7 8
if defined $main::RD_TRACE 0 6 6
if (not defined $return and defined $score) 1 6 7
if defined $main::RD_TRACE 1 0 1
unless defined $return 2 1 3
if (defined $main::RD_TRACE) 0 5 5
if defined $main::RD_TRACE 0 7 7
defined $_[4] ? : 3 4 7
$#arg & 1 ? : 3 4 7
unless ($_matched or $commit) 3 0 3
if defined $main::RD_TRACE 0 7 7
if defined $main::RD_TRACE 0 7 7
unless (defined($_tok = &{'Parse::RecDescent::namespace000001::' . qq[$arg{"article"}];}($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 2 6 8
if defined $main::RD_TRACE 1 1 2
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 0 2 2
unless (defined($_tok = &{'Parse::RecDescent::namespace000001::' . "$arg[3]";}($thisparser, $text, $repeating, $_noactions, sub { return [$arg{"sound"}]; } , $itempos[$#itempos]))) 3 3 6
if defined $main::RD_TRACE 0 6 6
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 4 3 7
if (defined $_itempos) 4 2 6
unless ($_matched or defined $score) 4 3 7
if defined $main::RD_TRACE 0 5 5
if (not defined $return and defined $score) 0 5 5
if defined $main::RD_TRACE 1 6 7
unless defined $return 1 2 3
if (defined $main::RD_TRACE) 0 4 4
if defined $main::RD_TRACE 0 3 3
defined $_[4] ? : 1 5 6
$#arg & 1 ? : 0 6 6
unless ($_matched or $commit) 0 7 7
if defined $main::RD_TRACE 2 0 2
if defined $main::RD_TRACE 2 3 5
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::_alternation_1_of_production_1_of_rule_test3, 5, 10, $_noactions, $expectation, sub { \@arg; } , $itempos[$#itempos]))) 2 5 7
if defined $main::RD_TRACE 1 7 8
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 1 6 7
$_noactions ? : 0 1 1
unless (defined $_tok) 3 3 6
if defined $main::RD_TRACE 0 6 6
if defined $main::RD_TRACE 1 7 8
if defined $main::RD_TRACE 4 1 5
if (defined $_itempos) 4 3 7
unless ($_matched or defined $score) 4 1 5
if defined $main::RD_TRACE 2 5 7
if (not defined $return and defined $score) 1 7 8
if defined $main::RD_TRACE 1 4 5
unless defined $return 1 1 2
if (defined $main::RD_TRACE) 0 2 2
if defined $main::RD_TRACE 0 3 3
defined $_[4] ? : 0 4 4
$#arg & 1 ? : 0 4 4
unless ($_matched or $commit) 0 4 4
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 3 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/) 0 5 5
if defined $lastsep 1 3 4
if defined $lastsep 2 1 3
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 7 0 7
unless (defined($_tok = b($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 4 3 7
if defined $main::RD_TRACE 4 3 7
if defined $main::RD_TRACE 3 4 7
if defined $main::RD_TRACE 3 4 7
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:c)/) 7 0 7
if defined $lastsep 0 3 3
if defined $lastsep 0 3 3
if defined $main::RD_TRACE 5 2 7
if defined $main::RD_TRACE 1 4 5
if defined $main::RD_TRACE 0 5 5
$_noactions ? : 0 6 6
unless (defined $_tok) 0 2 2
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 4 4
if (defined $_itempos) 0 6 6
unless ($_matched or defined $score) 4 2 6
if defined $main::RD_TRACE 1 6 7
if (not defined $return and defined $score) 0 1 1
if defined $main::RD_TRACE 0 6 6
unless defined $return 0 4 4
if (defined $main::RD_TRACE) 3 3 6
if defined $main::RD_TRACE 1 2 3
defined $_[4] ? : 1 3 4
$#arg & 1 ? : 3 1 4
unless ($_matched or $commit) 3 3 6
if defined $main::RD_TRACE 3 3 6
if defined $main::RD_TRACE 3 3 6
if (defined($_tok = name($thisparser, $text, $repeating, 1, sub { \@arg; } , $itempos[$#itempos]))) 0 6 6
if defined $main::RD_TRACE 1 2 3
if defined $main::RD_TRACE 1 3 4
if defined $main::RD_TRACE 0 4 4
unless (defined($_tok = notname($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 1 4 5
if defined $main::RD_TRACE 1 2 3
if defined $main::RD_TRACE 1 2 3
if defined $main::RD_TRACE 0 3 3
if (defined $_itempos) 0 2 2
unless ($_matched or $commit) 0 4 4
if defined $main::RD_TRACE 1 3 4
if defined $main::RD_TRACE 2 3 5
unless (defined($_tok = name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 0 2 2
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 1 1 2
if defined $main::RD_TRACE 2 1 3
if (defined $_itempos) 0 3 3
unless ($_matched or defined $score) 0 3 3
if defined $main::RD_TRACE 2 0 2
if (not defined $return and defined $score) 2 1 3
if defined $main::RD_TRACE 2 1 3
unless defined $return 0 3 3
if (defined $main::RD_TRACE) 2 4 6
if defined $main::RD_TRACE 1 3 4
defined $_[4] ? : 1 2 3
$#arg & 1 ? : 0 3 3
unless ($_matched or $commit) 0 1 1
if defined $main::RD_TRACE 0 1 1
if defined $main::RD_TRACE 0 1 1
unless defined $_tok 0 3 3
if defined $main::RD_TRACE 0 2 2
if (defined $_itempos) 0 3 3
unless ($_matched or $commit) 0 3 3
if defined $main::RD_TRACE 1 1 2
if defined $main::RD_TRACE 0 3 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/) 0 3 3
if defined $lastsep 0 2 2
if defined $lastsep 2 3 5
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 3 0 3
if (defined $_tok) { } 2 1 3
if defined $main::RD_TRACE 2 0 2
if defined $main::RD_TRACE 0 3 3
unless defined $_tok 0 3 3
if defined $main::RD_TRACE 1 2 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ab/) 1 1 2
if defined $lastsep 0 1 1
if defined $lastsep 0 2 2
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 5 5
if (defined $_tok) { } 0 0 0
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 1 1
unless defined $_tok 5 1 6
if defined $main::RD_TRACE 0 5 5
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ac/) 0 2 2
if defined $lastsep 1 0 1
if defined $lastsep 2 0 2
if defined $main::RD_TRACE 1 1 2
if defined $main::RD_TRACE 0 11 11
if defined $main::RD_TRACE 10 1 11
$test6 && $text ? : 10 1 11
if (defined $_tok) { } 10 0 10
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 0 10 10
unless defined $_tok 8 3 11
if defined $main::RD_TRACE 0 9 9
$_noactions ? : 1 2 3
unless (defined $_tok) 1 2 3
if defined $main::RD_TRACE 8 3 11
if defined $main::RD_TRACE 0 8 8
if defined $main::RD_TRACE 0 9 9
if (defined $_itempos) 6 3 9
unless ($_matched or $commit) 0 7 7
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 2 2
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/) 6 4 10
if defined $lastsep 0 7 7
if defined $lastsep 0 7 7
if defined $main::RD_TRACE 4 3 7
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 2 2
$_noactions ? : 0 3 3
unless (defined $_tok) 4 7 11
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 1 3 4
if (defined $_itempos) 0 2 2
unless ($_matched) 0 3 3
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 1 10 11
if (defined $_tok) { } 0 2 2
if defined $main::RD_TRACE 1 9 10
if defined $main::RD_TRACE 1 0 1
unless defined $_tok 10 0 10
if defined $main::RD_TRACE 0 10 10
$_noactions ? : 0 12 12
unless (defined $_tok) 11 1 12
if defined $main::RD_TRACE 11 0 11
if defined $main::RD_TRACE 11 0 11
if defined $main::RD_TRACE 0 11 11
if (defined $_itempos) 0 12 12
unless ($_matched or defined $score) 10 2 12
if defined $main::RD_TRACE 0 11 11
if (not defined $return and defined $score) 0 1 1
if defined $main::RD_TRACE 0 2 2
unless defined $return 10 2 12
if (defined $main::RD_TRACE) 0 11 11
if defined $main::RD_TRACE 0 10 10
defined $_[4] ? : 7 3 10
$#arg & 1 ? : 0 7 7
unless ($_matched or $commit) 0 4 4
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 7 5 12
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ax/) 0 7 7
if defined $lastsep 0 7 7
if defined $lastsep 4 3 7
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 0 4 4
if ($text =~ s/(\A[^\n]*\n)//) { } 4 7 11
if (defined $_tok) { } 0 5 5
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 1 4 5
unless defined $_tok 0 1 1
if defined $main::RD_TRACE 0 3 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:y+)/) 0 3 3
if defined $lastsep 1 11 12
if defined $lastsep 0 2 2
if defined $main::RD_TRACE 0 11 11
if defined $main::RD_TRACE 0 1 1
if defined $main::RD_TRACE 10 0 10
$_noactions ? : 0 11 11
unless (defined $_tok) 0 11 11
if defined $main::RD_TRACE 10 1 11
if defined $main::RD_TRACE 10 1 11
if defined $main::RD_TRACE 10 0 10
if (defined $_itempos) 0 11 11
unless ($_matched or defined $score) 0 10 10
if defined $main::RD_TRACE 9 2 11
if (not defined $return and defined $score) 0 9 9
if defined $main::RD_TRACE 0 3 3
unless defined $return 1 2 3
if (defined $main::RD_TRACE) 9 2 11
if defined $main::RD_TRACE 1 8 9
defined $_[4] ? : 0 9 9
$#arg & 1 ? : 6 3 9
unless ($_matched or $commit) 0 7 7
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 2 2
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/) 6 4 10
if defined $lastsep 0 7 7
if defined $lastsep 0 7 7
if defined $main::RD_TRACE 3 4 7
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 4 4
unless (defined($_tok = b($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 0 4 4
if defined $main::RD_TRACE 3 8 11
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 3 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:c+)/) 1 2 3
if defined $lastsep 0 2 2
if defined $lastsep 0 3 3
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 1 10 11
if defined $main::RD_TRACE 0 1 1
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Adddd/) 0 10 10
if defined $lastsep 0 1 1
if defined $lastsep 9 1 10
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 4 1 5
unless (defined($_tok = e($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 4 0 4
if defined $main::RD_TRACE 5 0 5
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 6 6
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Af/) 6 0 6
if defined $lastsep 2 4 6
if defined $lastsep 2 0 2
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 4 2 6
if defined $main::RD_TRACE 0 6 6
$_noactions ? : 0 4 4
unless (defined $_tok) 3 1 4
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 3 3
if (defined $_itempos) 5 1 6
unless ($_matched or defined $score) 0 5 5
if defined $main::RD_TRACE 0 3 3
if (not defined $return and defined $score) 2 3 5
if defined $main::RD_TRACE 0 2 2
unless defined $return 2 1 3
if (defined $main::RD_TRACE) 0 3 3
if defined $main::RD_TRACE 2 6 8
defined $_[4] ? : 4 2 6
$#arg & 1 ? : 4 2 6
unless ($_matched or $commit) 5 1 6
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 0 5 5
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/) 0 5 5
if defined $lastsep 1 3 4
if defined $lastsep 0 1 1
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 0 4 4
if defined $main::RD_TRACE 3 4 7
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::d, 1, 100000000, $_noactions, $expectation, sub { \@arg; } , $itempos[$#itempos]))) 0 7 7
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 10 4 14
if defined $main::RD_TRACE 10 4 14
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:c)/) 10 4 14
if defined $lastsep 0 10 10
if defined $lastsep 0 10 10
if defined $main::RD_TRACE 8 2 10
if defined $main::RD_TRACE 0 12 12
if defined $main::RD_TRACE 0 6 6
$_noactions ? : 2 4 6
unless (defined $_tok) 8 4 12
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 6 4 10
if (defined $_itempos) 0 6 6
unless ($_matched or defined $score) 0 2 2
if defined $main::RD_TRACE 0 2 2
if (not defined $return and defined $score) 6 6 12
if defined $main::RD_TRACE 0 8 8
unless defined $return 0 8 8
if (defined $main::RD_TRACE) 4 4 8
if defined $main::RD_TRACE 0 4 4
defined $_[4] ? : 0 4 4
$#arg & 1 ? : 0 4 4
unless ($_matched or $commit) 6 6 12
if defined $main::RD_TRACE 2 6 8
if defined $main::RD_TRACE 0 6 6
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Athe/) 1 5 6
if defined $lastsep 0 1 1
if defined $lastsep 0 5 5
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 1 12 13
if defined $main::RD_TRACE 3 1 4
if (defined $_itempos) 3 9 12
unless ($_matched or defined $score) 3 0 3
if defined $main::RD_TRACE 9 3 12
if (not defined $return and defined $score) 0 12 12
if defined $main::RD_TRACE 3 11 14
unless defined $return 14 0 14
if (defined $main::RD_TRACE) 14 0 14
if defined $main::RD_TRACE 11 3 14
defined $_[4] ? : 0 11 11
$#arg & 1 ? : 0 11 11
unless ($_matched or $commit) 10 1 11
if defined $main::RD_TRACE 3 10 13
if defined $main::RD_TRACE 0 4 4
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Atype/) 0 4 4
if defined $lastsep 13 1 14
if defined $lastsep 3 10 13
if defined $main::RD_TRACE 3 10 13
if defined $main::RD_TRACE 7 6 13
if defined $main::RD_TRACE 0 7 7
unless (defined($_tok = id($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 0 3 3
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 10 4 14
if defined $main::RD_TRACE 0 10 10
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ais/) 0 10 10
if defined $lastsep 6 4 10
if defined $lastsep 2 4 6
if defined $main::RD_TRACE 2 3 5
if defined $main::RD_TRACE 0 5 5
if defined $main::RD_TRACE 4 8 12
unless (defined($_tok = typename($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , $itempos[$#itempos]))) 0 5 5
if defined $main::RD_TRACE 1 4 5
if defined $main::RD_TRACE 3 4 7
if defined $main::RD_TRACE 0 3 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A\;/) 0 4 4
if defined $lastsep 0 3 3
if defined $lastsep 2 10 12
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 0 0 0
$_noactions ? : 10 0 10
unless (defined $_tok) 0 10 10
if defined $main::RD_TRACE 0 10 10
if defined $main::RD_TRACE 10 0 10
if defined $main::RD_TRACE 10 0 10
if (defined $_itempos) 10 0 10
unless ($_matched or defined $score) 0 10 10
if defined $main::RD_TRACE 0 10 10
if (not defined $return and defined $score) 8 2 10
if defined $main::RD_TRACE 0 8 8
unless defined $return 0 2 2
if (defined $main::RD_TRACE) 0 2 2
if defined $main::RD_TRACE 8 2 10
defined $_[4] ? : 0 8 8
$#arg & 1 ? : 0 8 8
unless ($_matched or $commit) 6 2 8
if defined $main::RD_TRACE 0 6 6
if defined $main::RD_TRACE 0 2 2
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aint/) 0 2 2
if defined $lastsep 6 4 10
if defined $lastsep 0 6 6
if defined $main::RD_TRACE 0 6 6
if defined $main::RD_TRACE 3 3 6
if defined $main::RD_TRACE 0 3 3
if (defined $_itempos) 0 3 3
unless ($_matched or $commit) 0 3 3
if defined $main::RD_TRACE 3 7 10
if defined $main::RD_TRACE 0 3 3
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/) 0 3 3
if defined $lastsep 1 2 3
if defined $lastsep 0 1 1
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 1 9 10
if (defined $_itempos) 0 1 1
unless ($_matched or $commit) 0 9 9
if defined $main::RD_TRACE 0 0 0
if defined $main::RD_TRACE 9 0 9
unless ($text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ab/) 0 9 9
if defined $lastsep 0 4 4
if defined $lastsep 4 0 4
if defined $main::RD_TRACE 4 0 4
if defined $main::RD_TRACE 4 0 4
if defined $main::RD_TRACE 0 4 4
if (defined $_itempos) 0 4 4
unless ($_matched or defined $score) 4 0 4
if defined $main::RD_TRACE 0 4 4
if (not defined $return and defined $score) 0 0 0
if defined $main::RD_TRACE 0 0 0
unless defined $return 4 0 4
if (defined $main::RD_TRACE) 0 4 4
if defined $main::RD_TRACE 0 4 4
defined $_[4] ? : 3 1 4
$#arg & 1 ? : 0 3 3
unless ($_matched or $commit) 0 1 1
if defined $main::RD_TRACE 0 1 1
if defined $main::RD_TRACE 3 1 4
unless () 0 3 3
if defined $main::RD_TRACE 0 3 3
if defined $main::RD_TRACE 2 1 3
if defined $main::RD_TRACE 0 2 2
$_noactions ? : 0 1 1
unless (defined $_tok) 0 1 1
if defined $main::RD_TRACE 2 2 4
if defined $main::RD_TRACE 0 2 2
if defined $main::RD_TRACE 0 2 2
unless ($_matched or $commit) 1 1 2
if defined $main::RD_TRACE 0 1 1
if defined $main::RD_TRACE 0 1 1
unless () 0 1 1
if defined $main::RD_TRACE 1 3 4
if defined $main::RD_TRACE 0 1 1
if defined $main::RD_TRACE 0 3 3
$_noactions ? : 0 0 0
unless (defined $_tok) 3 0 3
if defined $main::RD_TRACE 0 3 3
Condition69%488/707
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
9203
$_matched or $commit
l!l&&r!l&&!r
0095
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aeasy/
!ll&&!rl&&r
02173
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
22657
($lastsep = $1) && ''
!ll
69422
$_matched or defined $score
l!l&&r!l&&!r
4733
not defined $return and defined $score
!ll&&!rl&&r
3481
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
3332
$_matched or $commit
l!l&&r!l&&!r
6823
$_matched or $commit
l!l&&r!l&&!r
9216
$_matched or $commit
l!l&&r!l&&!r
2649
$_matched or defined $score
l!l&&r!l&&!r
10157
not defined $return and defined $score
!ll&&!rl&&r
8142
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
2081
$_matched or $commit
l!l&&r!l&&!r
125617
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
!ll&&!rl&&r
17630
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
25061
($lastsep = $1) && ''
!ll
44729
$_matched or defined $score
l!l&&r!l&&!r
74410
not defined $return and defined $score
!ll&&!rl&&r
76119
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
5119
$_matched or $commit
l!l&&r!l&&!r
11100
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "b"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
3010
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "b"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
051
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "b"; 1 }
!ll&&!rl&&r
1003
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
2110
($lastsep = $1) && ''
!ll
376
$_matched or defined $score
l!l&&r!l&&!r
1030
not defined $return and defined $score
!ll&&!rl&&r
907
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
036
$_matched or $commit
l!l&&r!l&&!r
833
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Acat/
!ll&&!rl&&r
059
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
074
($lastsep = $1) && ''
!ll
920
$_matched or $commit
l!l&&r!l&&!r
218
$_matched or defined $score
l!l&&r!l&&!r
220
not defined $return and defined $score
!ll&&!rl&&r
1003
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
028
$_matched or $commit
l!l&&r!l&&!r
562
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/
!ll&&!rl&&r
805
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
238
($lastsep = $1) && ''
!ll
070
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/
!ll&&!rl&&r
602
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
026
($lastsep = $1) && ''
!ll
233
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/
!ll&&!rl&&r
620
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
4406
($lastsep = $1) && ''
!ll
0341
$_matched or defined $score
l!l&&r!l&&!r
16041
not defined $return and defined $score
!ll&&!rl&&r
0057
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
44013
$_matched or $commit
l!l&&r!l&&!r
45120
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Avar/
!ll&&!rl&&r
13413
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
6130
($lastsep = $1) && ''
!ll
1606
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aholds/
!ll&&!rl&&r
0121
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
0418
($lastsep = $1) && ''
!ll
1012
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A\;/
!ll&&!rl&&r
1705
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
0161
($lastsep = $1) && ''
!ll
1001
$_matched or defined $score
l!l&&r!l&&!r
0110
not defined $return and defined $score
!ll&&!rl&&r
246
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
660
$_matched or $commit
l!l&&r!l&&!r
2204
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Adog/
!ll&&!rl&&r
0616
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
1196
($lastsep = $1) && ''
!ll
4813
$_matched or defined $score
l!l&&r!l&&!r
7514
not defined $return and defined $score
!ll&&!rl&&r
1075
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
3106
$_matched or $commit
l!l&&r!l&&!r
955
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:ee)/
!ll&&!rl&&r
783
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
1108
($lastsep = $1) && ''
!ll
2414
$_matched or defined $score
l!l&&r!l&&!r
883
not defined $return and defined $score
!ll&&!rl&&r
1064
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
349
$_matched or $commit
l!l&&r!l&&!r
655
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Asome\ extension/
!ll&&!rl&&r
097
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
738
($lastsep = $1) && ''
!ll
690
$_matched or defined $score
l!l&&r!l&&!r
405
not defined $return and defined $score
!ll&&!rl&&r
231
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
802
$_matched or $commit
l!l&&r!l&&!r
027
$_matched or defined $score
l!l&&r!l&&!r
334
not defined $return and defined $score
!ll&&!rl&&r
703
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
415
$_matched or $commit
l!l&&r!l&&!r
070
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:[a-z] # LEADING ALPHABETIC \w* # FOLLOWED BY ALPHAS, DIGITS, OR UNDERSCORES )/xi
!ll&&!rl&&r
402
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
024
($lastsep = $1) && ''
!ll
024
$_matched or defined $score
l!l&&r!l&&!r
501
not defined $return and defined $score
!ll&&!rl&&r
304
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
130
$_matched or $commit
l!l&&r!l&&!r
400
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ais/
!ll&&!rl&&r
013
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
041
($lastsep = $1) && ''
!ll
302
$_matched or $commit
l!l&&r!l&&!r
104
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aare/
!ll&&!rl&&r
012
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
402
($lastsep = $1) && ''
!ll
006
$_matched or defined $score
l!l&&r!l&&!r
213
not defined $return and defined $score
!ll&&!rl&&r
402
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
303
$_matched or $commit
l!l&&r!l&&!r
230
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Afred/
!ll&&!rl&&r
402
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
006
($lastsep = $1) && ''
!ll
015
$_matched or defined $score
l!l&&r!l&&!r
402
not defined $return and defined $score
!ll&&!rl&&r
321
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
032
$_matched or $commit
l!l&&r!l&&!r
402
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:[a-z]\w*)/i
!ll&&!rl&&r
024
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
213
($lastsep = $1) && ''
!ll
420
$_matched or defined $score
l!l&&r!l&&!r
311
not defined $return and defined $score
!ll&&!rl&&r
031
$Parse::RecDescent::namespace000006::tracelevel || 0
l!l
401
$_matched or $commit
l!l&&r!l&&!r
104
$_matched or defined $score
l!l&&r!l&&!r
113
not defined $return and defined $score
!ll&&!rl&&r
410
|| 0
l!l
331
$_matched or $commit
l!l&&r!l&&!r
033
and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
600
and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
033
and do { $_tok = "hello"; 1 }
!ll&&!rl&&r
022
($lastsep = $1) && ''
!ll
301
$_matched or defined $score
l!l&&r!l&&!r
301
not defined $return and defined $score
!ll&&!rl&&r
030
$Parse::RecDescent::namespace000006::tracelevel || 0
l!l
31
$_matched or $commit
l!l&&r!l&&!r
004
$text =~ s/\A($Parse::RecDescent::namespace000006::skip)/$lastsep = $1 and "";/e and do { $_tok = "hello"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
013
$text =~ s/\A($Parse::RecDescent::namespace000006::skip)/$lastsep = $1 and "";/e and do { $_tok = "hello"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
301
$text =~ s/\A($Parse::RecDescent::namespace000006::skip)/$lastsep = $1 and "";/e and do { $_tok = "hello"; 1 }
!ll&&!rl&&r
301
($lastsep = $1) && ''
!ll
021
$_matched or defined $score
l!l&&r!l&&!r
201
not defined $return and defined $score
!ll&&!rl&&r
012
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
111
$_matched or $commit
l!l&&r!l&&!r
210
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
121
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
012
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "("; 1 }
!ll&&!rl&&r
301
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
202
($lastsep = $1) && ''
!ll
031
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Athe/
!ll&&!rl&&r
240
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
105
($lastsep = $1) && ''
!ll
014
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "$main::first"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
1004
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "$main::first"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0014
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "$main::first"; 1 }
!ll&&!rl&&r
608
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
419
($lastsep = $1) && ''
!ll
608
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:te+st)/
!ll&&!rl&&r
941
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
0102
($lastsep = $1) && ''
!ll
1103
$_matched or defined $score
l!l&&r!l&&!r
0311
not defined $return and defined $score
!ll&&!rl&&r
1111
$Parse::RecDescent::namespace000002::tracelevel || 0
l!l
519
$_matched or $commit
l!l&&r!l&&!r
706
$text =~ s/\A($Parse::RecDescent::namespace000002::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-z]+)/i
!ll&&!rl&&r
1003
($lastsep = $1) && ''
!ll
2100
$_matched or defined $score
l!l&&r!l&&!r
1400
not defined $return and defined $score
!ll&&!rl&&r
0410
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
218
$_matched or $commit
l!l&&r!l&&!r
407
$_matched or defined $score
l!l&&r!l&&!r
704
not defined $return and defined $score
!ll&&!rl&&r
902
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
190
$_matched or $commit
l!l&&r!l&&!r
401
$_matched or defined $score
l!l&&r!l&&!r
005
not defined $return and defined $score
!ll&&!rl&&r
014
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
203
$_matched or $commit
l!l&&r!l&&!r
302
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
!ll&&!rl&&r
311
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
031
($lastsep = $1) && ''
!ll
1001
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:c)/
!ll&&!rl&&r
0011
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
308
($lastsep = $1) && ''
!ll
407
$_matched or defined $score
l!l&&r!l&&!r
605
not defined $return and defined $score
!ll&&!rl&&r
911
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
091
$_matched or $commit
l!l&&r!l&&!r
1101
$_matched or $commit
l!l&&r!l&&!r
0111
$_matched or defined $score
l!l&&r!l&&!r
1011
not defined $return and defined $score
!ll&&!rl&&r
408
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
714
$_matched or $commit
l!l&&r!l&&!r
1101
$_matched or $commit
l!l&&r!l&&!r
0110
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
!ll&&!rl&&r
1010
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
0011
($lastsep = $1) && ''
!ll
209
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ab/
!ll&&!rl&&r
407
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
803
($lastsep = $1) && ''
!ll
902
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ac/
!ll&&!rl&&r
091
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
410
($lastsep = $1) && ''
!ll
104
$test6 and $text
!ll&&!rl&&r
014
$_matched or $commit
l!l&&r!l&&!r
303
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
!ll&&!rl&&r
204
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
303
($lastsep = $1) && ''
!ll
032
$_matched or defined $score
l!l&&r!l&&!r
200
not defined $return and defined $score
!ll&&!rl&&r
200
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
020
$_matched or $commit
l!l&&r!l&&!r
400
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ax/
!ll&&!rl&&r
004
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
004
($lastsep = $1) && ''
!ll
004
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:y+)/
!ll&&!rl&&r
130
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
004
($lastsep = $1) && ''
!ll
004
$_matched or defined $score
l!l&&r!l&&!r
040
not defined $return and defined $score
!ll&&!rl&&r
002
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
002
$_matched or $commit
l!l&&r!l&&!r
200
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
!ll&&!rl&&r
202
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
200
($lastsep = $1) && ''
!ll
30
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:c+)/
!ll&&!rl&&r
003
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
030
($lastsep = $1) && ''
!ll
003
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Adddd/
!ll&&!rl&&r
030
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
003
($lastsep = $1) && ''
!ll
030
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Af/
!ll&&!rl&&r
003
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }
!ll&&!rl&&r
030
($lastsep = $1) && ''
!ll
003
$_matched or defined $score
l!l&&r!l&&!r
021
not defined $return and defined $score
!ll&&!rl&&r
003
$Parse::RecDescent::namespace000001::tracelevel || 0
l!l
03
$_matched or $commit
l!l&&r!l&&!r
102
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
!ll&&!rl&&r
010
MC/DC0%0/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aeasy/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aeasy/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aa/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/5
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "b"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } do { $_tok = "b"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Acat/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Acat/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Ad/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Ad/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ad/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Ad/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Avar/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Avar/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC33%1/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aholds/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aholds/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A\;/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\A\;/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC50%1/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Adog/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Adog/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC100%2/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:ee)/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\A(?:ee)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Asome\ extension/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Asome\ extension/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:[a-z] # LEADING ALPHABETIC \w* # FOLLOWED BY ALPHAS, DIGITS, OR UNDERSCORES )/xi
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\A(?:[a-z] # LEADING ALPHABETIC \w* # FOLLOWED BY ALPHAS, DIGITS, OR UNDERSCORES )/xi
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ais/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Ais/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aare/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aare/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Afred/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Afred/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC0%0/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:[a-z]\w*)/i
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\A(?:[a-z]\w*)/i
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC0%0/1
$Parse::RecDescent::namespace000006::tracelevel || 0
$Parse::RecDescent::namespace000006::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
|| 0
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/4
and do { substr($text, 0, length $_tok) = ""; 1 }
do { $_tok = "hello"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000006::tracelevel || 0
$Parse::RecDescent::namespace000006::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::namespace000006::skip)/$lastsep = $1 and "";/e and do { $_tok = "hello"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::namespace000006::skip)/$lastsep = $1 and "";/e do { $_tok = "hello"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC0%0/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/5
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "("; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } do { $_tok = "("; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Athe/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Athe/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/5
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and do { $_tok = "$main::first"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } do { $_tok = "$main::first"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:te+st)/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\A(?:te+st)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC50%1/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000002::tracelevel || 0
$Parse::RecDescent::namespace000002::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::namespace000002::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[a-z]+)/i
$text =~ s/\A($Parse::RecDescent::namespace000002::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[a-z]+)/i
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aa/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:c)/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\A(?:c)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC0%0/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC100%1/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aa/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ab/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Ab/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ac/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Ac/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$test6 and $text
$test6 $text
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aa/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC0%0/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Ax/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Ax/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:y+)/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\A(?:y+)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC0%0/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC0%0/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aa/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\A(?:c+)/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\A(?:c+)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Adddd/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Adddd/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Af/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Af/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
MC/DC0%0/1
$Parse::RecDescent::namespace000001::tracelevel || 0
$Parse::RecDescent::namespace000001::tracelevel
MC/DC50%1/2
$_matched or $commit
$_matched $commit
MC/DC0%0/3
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e and do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } and $text =~ /\Aa/
$text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/e do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 } $text =~ /\Aa/
Truth table50%1/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table25%1/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aeasy/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aa/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/6
A and B and C and D and E
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= do { $_tok = "b"; 1 }D= substr($text, 0, length $_tok) eq $_tokE= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDEresult
0XXXX0
10XXX0
110XX0
1110X0
111100
111111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Acat/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Ad/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Ad/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Ad/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Avar/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table50%2/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aholds/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\A\;/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table66%2/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Adog/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table100%3/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\A(?:ee)/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Asome\ extension/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\A(?:[a-z] # LEADING ALPHABETIC \w* # FOLLOWED BY ALPHAS, DIGITS, OR UNDERSCORES )/xi
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Ais/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aare/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table25%1/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Afred/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table50%1/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\A(?:[a-z]\w*)/i
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table50%1/2
A
A= $Parse::RecDescent::namespace000006::tracelevel
Aresult
11
00
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A=
Aresult
11
00
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/5
A and B and C and D
A= B= do { $_tok = "hello"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000006::tracelevel
Aresult
11
00
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::namespace000006::skip)/$lastsep = $1 and "";/eB= do { $_tok = "hello"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table50%1/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/6
A and B and C and D and E
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= do { $_tok = "("; 1 }D= substr($text, 0, length $_tok) eq $_tokE= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDEresult
0XXXX0
10XXX0
110XX0
1110X0
111100
111111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Athe/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/6
A and B and C and D and E
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= do { $_tok = "$main::first"; 1 }D= substr($text, 0, length $_tok) eq $_tokE= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDEresult
0XXXX0
10XXX0
110XX0
1110X0
111100
111111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\A(?:te+st)/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table66%2/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000002::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::namespace000002::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[a-z]+)/i
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aa/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\A(?:c)/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table50%1/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table100%2/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aa/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Ab/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Ac/
ABCresult
0XX0
10X0
1100
1111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table33%1/3
A and B
A= $test6B= $text
ABresult
0X0
100
111
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aa/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table50%1/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Ax/
ABCresult
0XX0
10X0
1100
1111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\A(?:y+)/
ABCresult
0XX0
10X0
1100
1111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table0%0/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aa/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\A(?:c+)/
ABCresult
0XX0
10X0
1100
1111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Adddd/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Af/
ABCresult
0XX0
10X0
1100
1111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
Truth table50%1/2
A
A= $Parse::RecDescent::namespace000001::tracelevel
Aresult
11
00
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
Truth table0%0/4
A and B and C
A= $text =~ s/\A($Parse::RecDescent::namespace000001::skip)/$lastsep = $1 and "";/eB= do { $itempos[$#itempos]{"offset"}{"from"} += length $lastsep; $itempos[$#itempos]{"line"}{"from"} = $thisline; $itempos[$#itempos]{"column"}{"from"} = $thiscolumn; 1 }C= $text =~ /\Aa/
ABCresult
0XX0
10X0
1100
1111
2968 {
2969 0 _error("Internal error in generated parser code!");
2970 0 $@ =~ s/at grammar/in grammar at/;
2971 0 _hint($@);
2972 }
2973 }
2974  
2975 78 ▶ if ($ERRORS and !_verbosity("HINT"))
Branch: 1 branch
BranchTrueFalseTotal
if ($ERRORS and not &_verbosity("HINT")) 0 78 78
Condition33%1/3
$ERRORS and not &_verbosity("HINT")
!ll&&!rl&&r
7800
MC/DC0%0/2
$ERRORS and not &_verbosity("HINT")
$ERRORS not &_verbosity("HINT")
Truth table33%1/3
A and not(B)
A= $ERRORSB= not &_verbosity("HINT")
ABresult
0X0
100
111
2976 {
2977 0 ▶ local $::RD_HINT = defined $::RD_HINT ? $::RD_HINT : 1;
Branch: 1 branch
BranchTrueFalseTotal
defined $main::RD_HINT ? : 0 0 0
2978 0 _hint('Set $::RD_HINT (or -RD_HINT if you\'re using "perl -s")
2979 for hints on fixing these problems. Use $::RD_HINT = 0
2980 to disable this message.');
2981 }
2982 0 ▶ if ($ERRORS) { $ERRORS=0; return }
Branch: 1 branch
BranchTrueFalseTotal
if ($ERRORS) 0 78 78
2983 78 return $self;
2984 }
2985  
2986  
2987 sub _addstartcode($$)
2988 34 ▶{
Subroutine _addstartcode: called CC=1 SCAR=0.0
2989 34 my ($self, $code) = @_;
2990 37 $code =~ s/\A\s*\{(.*)\}\Z/$1/s;
2991  
2992 39 $self->{"startcode"} .= "$code;\n";
2993 }
2994  
2995 # CHECK FOR GRAMMAR PROBLEMS....
2996  
2997 sub _check_insatiable($$$$)
2998 114 ▶{
Subroutine _check_insatiable: called CC=14 SCAR=27.1
2999 119 my ($subrule,$repspec,$grammar,$line) = @_;
3000 119 pos($grammar)=pos($_[2]);
3001 120 ▶ return if $grammar =~ m/$OPTIONAL/gco || $grammar =~ m/$ANY/gco;
Branch: 1 branch
BranchTrueFalseTotal
if $grammar =~ /$OPTIONAL/cog or $grammar =~ /$ANY/cog 0 112 112
Condition66%2/3
$grammar =~ /$OPTIONAL/cog or $grammar =~ /$ANY/cog
l!l&&r!l&&!r
22090
MC/DC0%0/2
$grammar =~ /$OPTIONAL/cog or $grammar =~ /$ANY/cog
$grammar =~ /$OPTIONAL/cog $grammar =~ /$ANY/cog
Truth table33%1/3
A or B
A= $grammar =~ /$OPTIONAL/cogB= $grammar =~ /$ANY/cog
ABresult
1X1
011
000
3002 124 my $min = 1;
3003 121 ▶ if ( $grammar =~ m/$MANY/gco
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog or $grammar =~ /$BETWEEN/cog and do { $min = $2; 1 } or $grammar =~ /$ATLEAST/cog and do { $min = $2; 1 } or $grammar =~ /$SUBRULE(?!\s*:)/cog) 80 32 112
Condition83%15/18
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog or $grammar =~ /$BETWEEN/cog and do { $min = $2; 1 } or $grammar =~ /$ATLEAST/cog and do { $min = $2; 1 } or $grammar =~ /$SUBRULE(?!\s*:)/cog
l!l&&r!l&&!r
05854
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog or $grammar =~ /$BETWEEN/cog and do { $min = $2; 1 } or $grammar =~ /$ATLEAST/cog and do { $min = $2; 1 }
l!l&&r!l&&!r
110101
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog or $grammar =~ /$BETWEEN/cog and do { $min = $2; 1 }
l!l&&r!l&&!r
13099
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog
l!l&&r!l&&!r
10399
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog
l!l&&r!l&&!r
4792
$grammar =~ /$BETWEEN/cog and do { $min = $2; 1 }
!ll&&!rl&&r
10640
MC/DC0%0/7
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog or $grammar =~ /$BETWEEN/cog and do { $min = $2; 1 } or $grammar =~ /$ATLEAST/cog and do { $min = $2; 1 } or $grammar =~ /$SUBRULE(?!\s*:)/cog
$grammar =~ /$MANY/cog $grammar =~ /$EXACTLY/cog $grammar =~ /$ATMOST/cog $grammar =~ /$BETWEEN/cog do { $min = $2; 1 } $grammar =~ /$ATLEAST/cog and do { $min = $2; 1 } $grammar =~ /$SUBRULE(?!\s*:)/cog
Truth table0%0/10
A or B or C or D and E or F or G
A= $grammar =~ /$MANY/cogB= $grammar =~ /$EXACTLY/cogC= $grammar =~ /$ATMOST/cogD= $grammar =~ /$BETWEEN/cogE= do { $min = $2; 1 }F= $grammar =~ /$ATLEAST/cog and do { $min = $2; 1 }G= $grammar =~ /$SUBRULE(?!\s*:)/cog
ABCDEFGresult
1XXXXXX1
01XXXXX1
001XXXX1
00011XX1
0000X1X1
000101X1
0000X011
00010011
0000X000
00010000
3004 || $grammar =~ m/$EXACTLY/gco
3005 || $grammar =~ m/$ATMOST/gco
3006 31 ▶ || $grammar =~ m/$BETWEEN/gco && do { $min=$2; 1 }
Condition66%2/3
$grammar =~ /$ATLEAST/cog and do { $min = $2; 1 }
!ll&&!rl&&r
95016
MC/DC0%0/2
$grammar =~ /$ATLEAST/cog and do { $min = $2; 1 }
$grammar =~ /$ATLEAST/cog do { $min = $2; 1 }
Truth table0%0/3
A and B
A= $grammar =~ /$ATLEAST/cogB= do { $min = $2; 1 }
ABresult
0X0
100
111
3007 29 || $grammar =~ m/$ATLEAST/gco && do { $min=$2; 1 }
3008 || $grammar =~ m/$SUBRULE(?!\s*:)/gco
3009 )
3010 {
3011 86 ▶ return unless $1 eq $subrule && $min > 0;
Branch: 1 branch
BranchTrueFalseTotal
unless $1 eq $subrule and $min > 0 80 0 80
Condition100%3/3
$1 eq $subrule and $min > 0
!ll&&!rl&&r
59812
MC/DC100%2/2
$1 eq $subrule and $min > 0
$1 eq $subrule $min > 0
Truth table100%3/3
A and B
A= $1 eq $subruleB= $min > 0
ABresult
0X0
100
111
3012 27 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
3013 26 ▶ _warn(3,"Subrule sequence \"$subrule($repspec) $current_match\" will
Branch: 1 branch
BranchTrueFalseTotal
&_warn(3, qq[Subrule sequence "$subrule($repspec) $current_match" will\n (almost certainly) fail.], $line) and &_hint(qq[Unless subrule "$subrule" performs some cunning\n lookahead, the repetition "$subrule($repspec)" will\n insatiably consume as many matches of "$subrule" as it\n can, leaving none to match the "$current_match" that follows.]) 22 0 22
3014 (almost certainly) fail.",$line)
3015 and
3016 _hint("Unless subrule \"$subrule\" performs some cunning
3017 lookahead, the repetition \"$subrule($repspec)\" will
3018 insatiably consume as many matches of \"$subrule\" as it
3019 can, leaving none to match the \"$current_match\" that follows.");
3020 }
3021 }
3022  
3023 sub _check_grammar ($)
3024 60 ▶{
Subroutine _check_grammar: called CC=15 SCAR=27.3
3025 63 my $self = shift;
3026 66 my $rules = $self->{"rules"};
3027 66 my $rule;
3028 66 foreach $rule ( values %$rules )
3029 {
3030 811 ▶ next if ! $rule->{"changed"};
Branch: 1 branch
BranchTrueFalseTotal
unless $rule->{"changed"} 77 731 808
3031  
3032 # CHECK FOR UNDEFINED RULES
3033  
3034 731 my $call;
3035 728 foreach $call ( @{$rule->{"calls"}} )
3036 {
3037 1090 ▶ if (!defined ${$rules}{$call}
Branch: 1 branch
BranchTrueFalseTotal
unless (defined do { $rules }->{$call} or defined &{"Parse::RecDescent::$call";}) 0 1096 1096
Condition66%2/3
defined do { $rules }->{$call} or defined &{"Parse::RecDescent::$call";}
l!l&&r!l&&!r
108807
MC/DC50%1/2
defined do { $rules }->{$call} or defined &{"Parse::RecDescent::$call";}
defined do { $rules }->{$call} defined &{"Parse::RecDescent::$call";}
Truth table66%2/3
A or B
A= defined do { $rules }->{$call}B= defined &{"Parse::RecDescent::$call";}
ABresult
1X1
011
000
3038 19 &&!defined &{"Parse::RecDescent::$call"})
3039 {
3040 19 ▶ if (!defined $::RD_AUTOSTUB)
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $main::RD_AUTOSTUB) { } 15 7 22
3041 {
3042 16 ▶ _warn(3,"Undefined (sub)rule \"$call\"
Branch: 1 branch
BranchTrueFalseTotal
&_warn(3, qq[Undefined (sub)rule "$call"\n used in a production.]) and &_hint(qq[Will you be providing this rule\n later, or did you perhaps\n misspell "$call"? Otherwise\n it will be treated as an\n immediate <reject>.]) 10 5 15
3043 used in a production.")
3044 and
3045 _hint("Will you be providing this rule
3046 later, or did you perhaps
3047 misspell \"$call\"? Otherwise
3048 it will be treated as an
3049 immediate <reject>.");
3050 16 eval "sub $self->{namespace}::$call {undef}";
3051 }
3052 else # EXPERIMENTAL
3053 {
3054 19 my $rule = qq{'$call'};
3055 19 ▶ if ($::RD_AUTOSTUB and $::RD_AUTOSTUB ne "1") {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::RD_AUTOSTUB and $main::RD_AUTOSTUB ne 1) 2 9 11
Condition66%2/3
$main::RD_AUTOSTUB and $main::RD_AUTOSTUB ne 1
!ll&&!rl&&r
10011
MC/DC0%0/2
$main::RD_AUTOSTUB and $main::RD_AUTOSTUB ne 1
$main::RD_AUTOSTUB $main::RD_AUTOSTUB ne 1
Truth table0%0/3
A and B
A= $main::RD_AUTOSTUBB= $main::RD_AUTOSTUB ne 1
ABresult
0X0
100
111
3056 19 $rule = $::RD_AUTOSTUB;
3057 }
3058 16 ▶ _warn(1,"Autogenerating rule: $call")
Branch: 1 branch
BranchTrueFalseTotal
&_warn(1, "Autogenerating rule: $call") and &_hint(qq[A call was made to a subrule\n named "$call", but no such\n rule was specified. However,\n since \$::RD_AUTOSTUB\n was defined, a rule stub\n ($call : $rule) was\n automatically created.]) 0 5 5
3059 and
3060 _hint("A call was made to a subrule
3061 named \"$call\", but no such
3062 rule was specified. However,
3063 since \$::RD_AUTOSTUB
3064 was defined, a rule stub
3065 ($call : $rule) was
3066 automatically created.");
3067  
3068 16 $self->_generate("$call: $rule",0,1);
3069 }
3070 }
3071 }
3072  
3073 # CHECK FOR LEFT RECURSION
3074  
3075 729 ▶ if ($rule->isleftrec($rules))
Branch: 1 branch
BranchTrueFalseTotal
if ($rule->isleftrec($rules)) 0 716 716
3076 {
3077 25 _error("Rule \"$rule->{name}\" is left-recursive.");
3078 25 _hint("Redesign the grammar so it's not left-recursive.
3079 That will probably mean you need to re-implement
3080 repetitions using the '(s)' notation.
3081 For example: \"$rule->{name}(s)\".");
3082 22 next;
3083 }
3084  
3085 # CHECK FOR PRODUCTIONS FOLLOWING EMPTY PRODUCTIONS
3086 {
3087 731 my $hasempty;
3088 my $prod;
3089 728 foreach $prod ( @{$rule->{"prods"}} ) {
3090 1344 ▶ if ($hasempty) {
Branch: 1 branch
BranchTrueFalseTotal
if ($hasempty) 0 1336 1336
3091 15 _error("Production " . $prod->describe . " for \"$rule->{name}\"
3092 will never be reached (preceding empty production will
3093 always match first).");
3094 9 _hint("Reorder the grammar so that the empty production
3095 is last in the list or productions.");
3096 9 last;
3097 }
3098 1338 ▶ $hasempty ||= $prod->isempty();
Condition100%3/3
$hasempty ||= $prod->isempty
l!l&&r!l&&!r
571329
MC/DC0%0/2
$hasempty ||= $prod->isempty
$hasempty $prod->isempty
Truth table33%1/3
A ||= B
A= $hasemptyB= $prod->isempty
ABresult
1X1
011
000
3099 }
3100 }
3101 }
3102 }
3103  
3104 # GENERATE ACTUAL PARSER CODE
3105  
3106 sub _code($)
3107 59 ▶{
Subroutine _code: called CC=4 SCAR=13.9
3108 46 my $self = shift;
3109 my $initial_skip = defined($self->{skip}) ?
3110 46 ▶ '$skip = ' . $self->{skip} . ';' :
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'skip'} ? : 5 38 43
3111 $self->_dump([$skip],[qw(skip)]);
3112  
3113 45 my $code = qq!
3114 package $self->{namespace};
3115 use strict;
3116 use vars qw(\$skip \$AUTOLOAD $self->{localvars} );
3117 \@$self->{namespace}\::ISA = ();
3118 $initial_skip
3119 $self->{startcode}
3120  
3121 {
3122 local \$SIG{__WARN__} = sub {0};
3123 # PRETEND TO BE IN Parse::RecDescent NAMESPACE
3124 *$self->{namespace}::AUTOLOAD = sub
3125 {
3126 no strict 'refs';
3127 !
3128 # This generated code uses ${"AUTOLOAD"} rather than $AUTOLOAD in
3129 # order to avoid the circular reference documented here:
3130 # https://rt.perl.org/rt3/Public/Bug/Display.html?id=110248
3131 # As a result of the investigation of
3132 # https://rt.cpan.org/Ticket/Display.html?id=53710
3133 . qq!
3134 \${"AUTOLOAD"} =~ s/^$self->{namespace}/Parse::RecDescent/;
3135 goto &{\${"AUTOLOAD"}};
3136 }
3137 }
3138  
3139 !;
3140 45 $code .= "push \@$self->{namespace}\::ISA, 'Parse::RecDescent';";
3141 46 $self->{"startcode"} = '';
3142  
3143 44 my $rule;
3144 # sort the rules to ensure the output is reproducible
3145 44 foreach $rule ( sort { $a->{name} cmp $b->{name} }
3146 46 values %{$self->{"rules"}} )
3147 {
3148 800 ▶ if ($rule->{"changed"})
Branch: 1 branch
BranchTrueFalseTotal
if ($rule->{"changed"}) 711 82 793
3149 {
3150 722 $code .= $rule->code($self->{"namespace"},$self);
3151 722 $rule->{"changed"} = 0;
3152 }
3153 }
3154  
3155 50 return $code;
3156 }
3157  
3158 # A wrapper for Data::Dumper->Dump, which localizes some variables to
3159 # keep the output in a form suitable for Parse::RecDescent.
3160 #
3161 # List of variables and their defaults taken from
3162 # $Data::Dumper::VERSION == 2.158
3163  
3164 66 ▶sub _dump {
Subroutine _dump: called CC=1 SCAR=0.0
3165 66 require Data::Dumper;
3166  
3167 #
3168 # Allow the user's settings to persist for some features in case
3169 # RD_TRACE is set. These shouldn't affect the eval()-ability of
3170 # the resulting parser.
3171 #
3172  
3173 #local $Data::Dumper::Indent = 2;
3174 #local $Data::Dumper::Useqq = 0;
3175 #local $Data::Dumper::Quotekeys = 1;
3176 #local $Data::Dumper::Useperl = 0;
3177  
3178 #
3179 # These may affect whether the output is valid perl code for
3180 # eval(), and must be controlled. Set them to their default
3181 # values.
3182 #
3183  
3184 64 local $Data::Dumper::Purity = 0;
3185 64 local $Data::Dumper::Pad = "";
3186 64 local $Data::Dumper::Varname = "VAR";
3187 58 local $Data::Dumper::Terse = 0;
3188 56 local $Data::Dumper::Freezer = "";
3189 56 local $Data::Dumper::Toaster = "";
3190 58 local $Data::Dumper::Deepcopy = 0;
3191 56 local $Data::Dumper::Bless = "bless";
3192 56 local $Data::Dumper::Maxdepth = 0;
3193 56 local $Data::Dumper::Pair = ' => ';
3194 53 local $Data::Dumper::Deparse = 0;
3195 53 local $Data::Dumper::Sparseseen = 0;
3196  
3197 #
3198 # Modify the below options from their defaults.
3199 #
3200  
3201 # Sort the keys to ensure the output is reproducible
3202 55 local $Data::Dumper::Sortkeys = 1;
3203  
3204 # Don't stop recursing
3205 55 local $Data::Dumper::Maxrecurse = 0;
3206  
3207 63 return Data::Dumper->Dump(@_[1..$#_]);
3208 }
3209  
3210 # EXECUTING A PARSE....
3211  
3212 sub AUTOLOAD # ($parser, $text; $linenum, @args)
3213 78 ▶{
Subroutine AUTOLOAD: called CC=14 SCAR=26.5
3214 74 ▶ croak "Could not find method: $AUTOLOAD\n" unless ref $_[0];
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0] 0 61 61
3215 74 ▶ my $class = ref($_[0]) || $_[0];
Condition66%2/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
7350
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table33%1/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
3216 72 ▶ my $text = ref($_[1]) eq 'SCALAR' ? ${$_[1]} : "$_[1]";
Branch: 1 branch
BranchTrueFalseTotal
ref $_[1] eq 'SCALAR' ? : 5 63 68
3217 74 $_[0]->{lastlinenum} = _linecount($text);
3218 74 ▶ $_[0]->{lastlinenum} += ($_[2]||0) if @_ > 2;
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 2 11 60 71
Condition100%3/3
$_[2] || 0
l!l
1317
MC/DC100%1/1
$_[2] || 0
$_[2]
Truth table100%2/2
A
A= $_[2]
Aresult
11
00
3219 74 $_[0]->{offsetlinenum} = $_[0]->{lastlinenum};
3220 74 $_[0]->{fulltext} = $text;
3221 74 $_[0]->{fulltextlen} = length $text;
3222 78 $_[0]->{linecounter_cache} = {};
3223 75 $_[0]->{deferred} = [];
3224 75 $_[0]->{errors} = [];
3225 75 my @args = @_[3..$#_];
3226 75 ▶ my $args = sub { [ @args ] };
Subroutine __ANON__: called CC=1 SCAR=0.0
3227  
3228 75 $AUTOLOAD =~ s/$class/$_[0]->{namespace}/;
3229 15 ▶ no strict "refs";
Subroutine BEGIN: called CC=1 SCAR=0.0
3230  
3231 71 ▶ local $::RD_WARN = $::RD_WARN || $_[0]->{__WARN__};
Condition100%3/3
$main::RD_WARN || $_[0]{'__WARN__'}
l!l&&r!l&&!r
57107
MC/DC50%1/2
$main::RD_WARN || $_[0]{'__WARN__'}
$main::RD_WARN $_[0]{'__WARN__'}
Truth table66%2/3
A || B
A= $main::RD_WARNB= $_[0]{'__WARN__'}
ABresult
1X1
011
000
3232 71 ▶ local $::RD_HINT = $::RD_HINT || $_[0]->{__HINT__};
Condition66%2/3
$main::RD_HINT || $_[0]{'__HINT__'}
l!l&&r!l&&!r
14060
MC/DC50%1/2
$main::RD_HINT || $_[0]{'__HINT__'}
$main::RD_HINT $_[0]{'__HINT__'}
Truth table66%2/3
A || B
A= $main::RD_HINTB= $_[0]{'__HINT__'}
ABresult
1X1
011
000
3233 71 ▶ local $::RD_TRACE = $::RD_TRACE || $_[0]->{__TRACE__};
Condition66%2/3
$main::RD_TRACE || $_[0]{'__TRACE__'}
l!l&&r!l&&!r
6068
MC/DC50%1/2
$main::RD_TRACE || $_[0]{'__TRACE__'}
$main::RD_TRACE $_[0]{'__TRACE__'}
Truth table66%2/3
A || B
A= $main::RD_TRACEB= $_[0]{'__TRACE__'}
ABresult
1X1
011
000
3234  
3235 71 ▶ croak "Unknown starting rule ($AUTOLOAD) called\n"
Branch: 1 branch
BranchTrueFalseTotal
unless defined &$Parse::RecDescent::AUTOLOAD 4 69 73
3236 unless defined &$AUTOLOAD;
3237 71 my $retval = &{$AUTOLOAD}(
3238 $_[0], # $parser
3239 $text, # $text
3240 undef, # $repeating
3241 undef, # $_noactions
3242 $args, # \@args
3243 undef, # $_itempos
3244 );
3245  
3246  
3247 71 ▶ if (defined $retval)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $retval) { } 58 9 67
3248 {
3249 70 foreach ( @{$_[0]->{deferred}} ) { &$_; }
3250 }
3251 else
3252 {
3253 17 foreach ( @{$_[0]->{errors}} ) { _error(@$_); }
3254 }
3255  
3256 72 ▶ if (ref $_[1] eq 'SCALAR') { ${$_[1]} = $text }
Branch: 1 branch
BranchTrueFalseTotal
if (ref $_[1] eq "SCALAR") 0 64 64
3257  
3258 70 $ERRORS = 0;
3259 70 return $retval;
3260 }
3261  
3262 sub _parserepeat($$$$$$$$$) # RETURNS A REF TO AN ARRAY OF MATCHES
3263 43 ▶{
Subroutine _parserepeat: called CC=10 SCAR=23.0
3264 41 my ($parser, $text, $prod, $min, $max, $_noactions, $expectation, $argcode, $_itempos) = @_;
3265 41 my @tokens = ();
3266  
3267 41 my $itemposfirst;
3268 my $reps;
3269 43 ▶ for ($reps=0; $reps<$max;)
Branch: 1 branch
BranchTrueFalseTotal
if ($reps < $max) 192 3 195
3270 {
3271 201 $expectation->at($text);
3272 194 my $_savetext = $text;
3273 198 my $prevtextlen = length $text;
3274 198 my $_tok;
3275 202 ▶ if (! defined ($_tok = &$prod($parser,$text,1,$_noactions,$argcode,$_itempos)))
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = &$prod($parser, $text, 1, $_noactions, $argcode, $_itempos))) 30 164 194
3276 {
3277 31 $text = $_savetext;
3278 27 last;
3279 }
3280  
3281 167 ▶ if (defined($_itempos) and !defined($itemposfirst))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_itempos and not defined $itemposfirst) 8 169 177
Condition100%3/3
defined $_itempos and not defined $itemposfirst
!ll&&!rl&&r
149153
MC/DC100%2/2
defined $_itempos and not defined $itemposfirst
defined $_itempos not defined $itemposfirst
Truth table100%3/3
A and not(B)
A= defined $_itemposB= not defined $itemposfirst
ABresult
0X0
100
111
3282 {
3283 14 $itemposfirst = Parse::RecDescent::Production::_duplicate_itempos($_itempos);
3284 }
3285  
3286 171 ▶ push @tokens, $_tok if defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
if defined $_tok 170 7 177
3287 172 ▶ last if ++$reps >= $min and $prevtextlen == length $text;
Branch: 1 branch
BranchTrueFalseTotal
if ++$reps >= $min and $prevtextlen == length $text 11 164 175
Condition100%3/3
++$reps >= $min and $prevtextlen == length $text
!ll&&!rl&&r
221551
MC/DC100%2/2
++$reps >= $min and $prevtextlen == length $text
++$reps >= $min $prevtextlen == length $text
Truth table100%3/3
A and B
A= ++$reps >= $minB= $prevtextlen == length $text
ABresult
0X0
100
111
3288 }
3289  
3290 34 ▶ do { $expectation->failed(); return undef} if $reps<$min;
Branch: 1 branch
BranchTrueFalseTotal
if ($reps < $min) 15 29 44
3291  
3292 36 ▶ if (defined $itemposfirst)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $itemposfirst) 3 39 42
3293 {
3294 16 Parse::RecDescent::Production::_update_itempos($_itempos, $itemposfirst, undef, [qw(from)]);
3295 }
3296  
3297 39 $_[1] = $text;
3298 39 return [@tokens];
3299 }
3300  
3301 20 ▶sub set_autoflush {
Subroutine set_autoflush: called CC=1 SCAR=0.0
Pod undocumented
3302 13 my $orig_selected = select $_[0];
3303 13 $| = 1;
3304 13 select $orig_selected;
3305 21 return;
3306 }
3307  
3308 # ERROR REPORTING....
3309  
3310 22 ▶sub _write_ERROR {
Subroutine _write_ERROR: called CC=2 SCAR=6.9
3311 19 my ($errorprefix, $errortext) = @_;
3312 19 ▶ return if $errortext !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $errortext =~ /\S/ 3 14 17
3313 19 $errorprefix =~ s/\s+\Z//;
3314 13 local $^A = q{};
3315  
3316 11 formline(<<'END_FORMAT', $errorprefix, $errortext);
3317 @>>>>>>>>>>>>>>>>>>>>: ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
3318 END_FORMAT
3319 11 formline(<<'END_FORMAT', $errortext);
3320 ~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
3321 END_FORMAT
3322 13 print {*STDERR} $^A;
3323 }
3324  
3325 # TRACING
3326  
3327 24 my $TRACE_FORMAT = <<'END_FORMAT';
3328 @>|@|||||||||@^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|
3329 | ~~ |^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|
3330 END_FORMAT
3331  
3332 29 my $TRACECONTEXT_FORMAT = <<'END_FORMAT';
3333 @>|@|||||||||@ |^<<<<<<<<<<<<<<<<<<<<<<<<<<<
3334 | ~~ | |^<<<<<<<<<<<<<<<<<<<<<<<<<<<
3335 END_FORMAT
3336  
3337 20 ▶sub _write_TRACE {
Subroutine _write_TRACE: called CC=2 SCAR=6.9
3338 13 my ($tracelevel, $tracerulename, $tracemsg) = @_;
3339 13 ▶ return if $tracemsg !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $tracemsg =~ /\S/ 8 6 14
3340 11 $tracemsg =~ s/\s*\Z//;
3341 11 local $^A = q{};
3342 13 my $bar = '|';
3343 13 formline($TRACE_FORMAT, $tracelevel, $tracerulename, $bar, $tracemsg, $tracemsg);
3344 22 print {*STDERR} $^A;
3345 }
3346  
3347 21 ▶sub _write_TRACECONTEXT {
Subroutine _write_TRACECONTEXT: called CC=2 SCAR=6.9
3348 22 my ($tracelevel, $tracerulename, $tracecontext) = @_;
3349 22 ▶ return if $tracecontext !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $tracecontext =~ /\S/ 9 3 12
3350 22 $tracecontext =~ s/\s*\Z//;
3351 22 local $^A = q{};
3352 22 my $bar = '|';
3353 22 formline($TRACECONTEXT_FORMAT, $tracelevel, $tracerulename, $bar, $tracecontext, $tracecontext);
3354 22 print {*STDERR} $^A;
3355 }
3356  
3357 sub _verbosity($)
3358 4454 ▶{
Subroutine _verbosity: called CC=10 SCAR=23.1
3359 4452 ▶ defined $::RD_TRACE
Branch: 1 branch
BranchTrueFalseTotal
defined $main::RD_TRACE or defined $main::RD_HINT and $main::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/ or defined $main::RD_WARN and $main::RD_WARN and $_[0] =~ /ERRORS|WARN/ or defined $main::RD_ERRORS and $main::RD_ERRORS and $_[0] =~ /ERRORS/ 32 4414 4446
Condition88%24/27
defined $main::RD_TRACE || defined $main::RD_HINT && $main::RD_HINT && $_[0] =~ /ERRORS|WARN|HINT/ || defined $main::RD_WARN && $main::RD_WARN && $_[0] =~ /ERRORS|WARN/ || defined $main::RD_ERRORS && $main::RD_ERRORS && $_[0] =~ /ERRORS/
l!l&&r!l&&!r
2714420
defined $main::RD_TRACE or defined $main::RD_HINT and $main::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/ or defined $main::RD_WARN and $main::RD_WARN and $_[0] =~ /ERRORS|WARN/
l!l&&r!l&&!r
2424405
defined $main::RD_TRACE or defined $main::RD_HINT and $main::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/
l!l&&r!l&&!r
1164432
defined $main::RD_HINT and $main::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/
!ll&&!rl&&r
4431013
defined $main::RD_HINT and $main::RD_HINT
!ll&&!rl&&r
63437982
defined $main::RD_WARN and $main::RD_WARN and $_[0] =~ /ERRORS|WARN/
!ll&&!rl&&r
11440334
defined $main::RD_WARN and $main::RD_WARN
!ll&&!rl&&r
014442
defined $main::RD_ERRORS and $main::RD_ERRORS and $_[0] =~ /ERRORS/
!ll&&!rl&&r
644132
defined $main::RD_ERRORS and $main::RD_ERRORS
!ll&&!rl&&r
1204409
MC/DC10%1/10
defined $main::RD_TRACE || defined $main::RD_HINT && $main::RD_HINT && $_[0] =~ /ERRORS|WARN|HINT/ || defined $main::RD_WARN && $main::RD_WARN && $_[0] =~ /ERRORS|WARN/ || defined $main::RD_ERRORS && $main::RD_ERRORS && $_[0] =~ /ERRORS/
defined $main::RD_TRACE defined $main::RD_HINT $main::RD_HINT $_[0] =~ /ERRORS|WARN|HINT/ defined $main::RD_WARN $main::RD_WARN $_[0] =~ /ERRORS|WARN/ defined $main::RD_ERRORS $main::RD_ERRORS $_[0] =~ /ERRORS/
Truth table7%3/41
A or B and C and D or E and F and G || H and I and J
A= defined $main::RD_TRACEB= defined $main::RD_HINTC= $main::RD_HINTD= $_[0] =~ /ERRORS|WARN|HINT/E= defined $main::RD_WARNF= $main::RD_WARNG= $_[0] =~ /ERRORS|WARN/H= defined $main::RD_ERRORSI= $main::RD_ERRORSJ= $_[0] =~ /ERRORS/
ABCDEFGHIJresult
1XXXXXXXXX1
0111XXXXXX1
00XX111XXX1
010X111XXX1
0110111XXX1
00XX0XX1111
00XX10X1111
00XX1101111
010X0XX1111
010X10X1111
010X1101111
01100XX1111
011010X1111
01101101111
00XX0XX0XX0
00XX0XX10X0
00XX0XX1100
00XX10X0XX0
00XX10X10X0
00XX10X1100
00XX1100XX0
00XX11010X0
00XX1101100
010X0XX0XX0
010X0XX10X0
010X0XX1100
010X10X0XX0
010X10X10X0
010X10X1100
010X1100XX0
010X11010X0
010X1101100
01100XX0XX0
01100XX10X0
01100XX1100
011010X0XX0
011010X10X0
011010X1100
01101100XX0
011011010X0
01101101100
3360 or defined $::RD_HINT and $::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/
3361 or defined $::RD_WARN and $::RD_WARN and $_[0] =~ /ERRORS|WARN/
3362 or defined $::RD_ERRORS and $::RD_ERRORS and $_[0] =~ /ERRORS/
3363 }
3364  
3365 sub _error($;$)
3366 22 ▶{
Subroutine _error: called CC=4 SCAR=14.0
3367 22 $ERRORS++;
3368 22 ▶ return 0 if ! _verbosity("ERRORS");
Branch: 1 branch
BranchTrueFalseTotal
unless &_verbosity("ERRORS") 0 7 7
3369 22 my $errortext = $_[0];
3370 22 ▶ my $errorprefix = "ERROR" . ($_[1] ? " (line $_[1])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 8 8
3371 22 $errortext =~ s/\s+/ /g;
3372 22 ▶ print {*STDERR} "\n" if _verbosity("WARN");
Branch: 1 branch
BranchTrueFalseTotal
if &_verbosity("WARN") 2 6 8
3373 21 _write_ERROR($errorprefix, $errortext);
3374 21 return 1;
3375 }
3376  
3377 sub _warn($$;$)
3378 39 ▶{
Subroutine _warn: called CC=7 SCAR=19.6
3379 48 ▶ return 0 unless _verbosity("WARN") && ($::RD_HINT || $_[0] >= ($::RD_WARN||1));
Branch: 1 branch
BranchTrueFalseTotal
unless &_verbosity("WARN") and $main::RD_HINT || $_[0] >= ($main::RD_WARN || 1) 27 6 33
Condition88%8/9
&_verbosity("WARN") and $main::RD_HINT || $_[0] >= ($main::RD_WARN || 1)
!ll&&!rl&&r
2349
$main::RD_HINT or $_[0] >= ($main::RD_WARN || 1)
l!l&&r!l&&!r
2827
$main::RD_WARN || 1
l!l
3703
MC/DC0%0/3
&_verbosity("WARN") and $main::RD_HINT || $_[0] >= ($main::RD_WARN || 1)
&_verbosity("WARN") $main::RD_HINT $_[0] >= ($main::RD_WARN || 1)
MC/DC100%1/1
$main::RD_WARN || 1
$main::RD_WARN
Truth table25%1/4
A and B or C
A= &_verbosity("WARN")B= $main::RD_HINTC= $_[0] >= ($main::RD_WARN || 1)
ABCresult
0XX0
1000
11X1
1011
Truth table100%2/2
A
A= $main::RD_WARN
Aresult
11
00
3380 17 my $errortext = $_[1];
3381 17 ▶ my $errorprefix = "Warning" . ($_[2] ? " (line $_[2])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[2] ? : 0 4 4
3382 17 ▶ print {*STDERR} "\n" if _verbosity("HINT");
Branch: 1 branch
BranchTrueFalseTotal
if &_verbosity("HINT") 0 4 4
3383 16 $errortext =~ s/\s+/ /g;
3384 16 _write_ERROR($errorprefix, $errortext);
3385 16 return 1;
3386 }
3387  
3388 sub _hint($)
3389 12 ▶{
Subroutine _hint: called CC=3 SCAR=11.0
3390 13 ▶ return 0 unless $::RD_HINT;
Branch: 1 branch
BranchTrueFalseTotal
unless $main::RD_HINT 3 4 7
3391 12 my $errortext = $_[0];
3392 13 ▶ my $errorprefix = "Hint" . ($_[1] ? " (line $_[1])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 10 7 17
3393 13 $errortext =~ s/\s+/ /g;
3394 13 _write_ERROR($errorprefix, $errortext);
3395 13 return 1;
3396 }
3397  
3398 sub _tracemax($)
3399 16 ▶{
Subroutine _tracemax: called CC=5 SCAR=16.2
3400 13 ▶ if (defined $::RD_TRACE
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1 and $main::RD_TRACE + 10 < length $_[0]) { } 1 15 16
Condition77%7/9
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1 and $main::RD_TRACE + 10 < length $_[0]
!ll&&!rl&&r
1011
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1
!ll&&!rl&&r
188
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/
!ll&&!rl&&r
1020
MC/DC0%0/4
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1 and $main::RD_TRACE + 10 < length $_[0]
defined $main::RD_TRACE $main::RD_TRACE =~ /\d+/ $main::RD_TRACE > 1 $main::RD_TRACE + 10 < length $_[0]
Truth table0%0/5
A and B and C and D
A= defined $main::RD_TRACEB= $main::RD_TRACE =~ /\d+/C= $main::RD_TRACE > 1D= $main::RD_TRACE + 10 < length $_[0]
ABCDresult
0XXX0
10XX0
110X0
11100
11111
3401 && $::RD_TRACE =~ /\d+/
3402 && $::RD_TRACE>1
3403 && $::RD_TRACE+10<length($_[0]))
3404 {
3405 18 my $count = length($_[0]) - $::RD_TRACE;
3406 17 return substr($_[0],0,$::RD_TRACE/2)
3407 . "...<$count>..."
3408 . substr($_[0],-$::RD_TRACE/2);
3409 }
3410 else
3411 {
3412 17 return substr($_[0],0,500);
3413 }
3414 }
3415  
3416 sub _tracefirst($)
3417 16 ▶{
Subroutine _tracefirst: called CC=5 SCAR=16.2
3418 17 ▶ if (defined $::RD_TRACE
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1 and $main::RD_TRACE + 10 < length $_[0]) { } 0 5 5
Condition88%8/9
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1 and $main::RD_TRACE + 10 < length $_[0]
!ll&&!rl&&r
909
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1
!ll&&!rl&&r
226
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/
!ll&&!rl&&r
471
MC/DC0%0/4
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1 and $main::RD_TRACE + 10 < length $_[0]
defined $main::RD_TRACE $main::RD_TRACE =~ /\d+/ $main::RD_TRACE > 1 $main::RD_TRACE + 10 < length $_[0]
Truth table0%0/5
A and B and C and D
A= defined $main::RD_TRACEB= $main::RD_TRACE =~ /\d+/C= $main::RD_TRACE > 1D= $main::RD_TRACE + 10 < length $_[0]
ABCDresult
0XXX0
10XX0
110X0
11100
11111
3419 && $::RD_TRACE =~ /\d+/
3420 && $::RD_TRACE>1
3421 && $::RD_TRACE+10<length($_[0]))
3422 {
3423 17 my $count = length($_[0]) - $::RD_TRACE;
3424 20 return substr($_[0],0,$::RD_TRACE) . "...<+$count>";
3425 }
3426 else
3427 {
3428 19 return substr($_[0],0,500);
3429 }
3430 }
3431  
3432 28 my $lastcontext = '';
3433 28 my $lastrulename = '';
3434 28 my $lastlevel = '';
3435  
3436 sub _trace($;$$$)
3437 14 ▶{
Subroutine _trace: called CC=8 SCAR=20.9
3438 19 my $tracemsg = $_[0];
3439 19 ▶ my $tracecontext = $_[1]||$lastcontext;
Condition100%3/3
$_[1] || $lastcontext
l!l&&r!l&&!r
464
MC/DC0%0/2
$_[1] || $lastcontext
$_[1] $lastcontext
Truth table33%1/3
A || B
A= $_[1]B= $lastcontext
ABresult
1X1
011
000
3440 10 ▶ my $tracerulename = $_[2]||$lastrulename;
Condition66%2/3
$_[2] || $lastrulename
l!l&&r!l&&!r
045
MC/DC0%0/2
$_[2] || $lastrulename
$_[2] $lastrulename
Truth table33%1/3
A || B
A= $_[2]B= $lastrulename
ABresult
1X1
011
000
3441 10 ▶ my $tracelevel = $_[3]||$lastlevel;
Condition100%3/3
$_[3] || $lastlevel
l!l&&r!l&&!r
513
MC/DC0%0/2
$_[3] || $lastlevel
$_[3] $lastlevel
Truth table0%0/3
A || B
A= $_[3]B= $lastlevel
ABresult
1X1
011
000
3442 10 ▶ if ($tracerulename) { $lastrulename = $tracerulename }
Branch: 1 branch
BranchTrueFalseTotal
if ($tracerulename) 0 7 7
3443 8 ▶ if ($tracelevel) { $lastlevel = $tracelevel }
Branch: 1 branch
BranchTrueFalseTotal
if ($tracelevel) 2 0 2
3444  
3445 7 $tracecontext =~ s/\n/\\n/g;
3446 7 $tracecontext =~ s/\s+/ /g;
3447 6 $tracerulename = qq{$tracerulename};
3448 6 _write_TRACE($tracelevel, $tracerulename, $tracemsg);
3449 5 ▶ if ($tracecontext ne $lastcontext)
Branch: 1 branch
BranchTrueFalseTotal
if ($tracecontext ne $lastcontext) 5 4 9
3450 {
3451 5 ▶ if ($tracecontext)
Branch: 1 branch
BranchTrueFalseTotal
if ($tracecontext) { } 0 18 18
3452 {
3453 5 $lastcontext = _tracefirst($tracecontext);
3454 3 $tracecontext = qq{"$tracecontext"};
3455 }
3456 else
3457 {
3458 3 $tracecontext = qq{<NO TEXT LEFT>};
3459 }
3460 5 _write_TRACECONTEXT($tracelevel, $tracerulename, $tracecontext);
3461 }
3462 }
3463  
3464 sub _matchtracemessage
3465 6159 ▶{
Subroutine _matchtracemessage: called CC=6 SCAR=17.9
3466 6164 my ($self, $reject) = @_;
3467  
3468 6163 my $prefix = '';
3469 6163 my $postfix = '';
3470 6163 my $matched = not $reject;
3471 6158 my @t = ("Matched", "Didn't match");
3472 6154 ▶ if (exists $self->{lookahead} and $self->{lookahead})
Branch: 1 branch
BranchTrueFalseTotal
if (exists $self->{"lookahead"} and $self->{"lookahead"}) 29 6139 6168
Condition100%3/3
exists $self->{"lookahead"} and $self->{"lookahead"}
!ll&&!rl&&r
3022311229
MC/DC100%2/2
exists $self->{"lookahead"} and $self->{"lookahead"}
exists $self->{"lookahead"} $self->{"lookahead"}
Truth table100%3/3
A and B
A= exists $self->{"lookahead"}B= $self->{"lookahead"}
ABresult
0X0
100
111
3473 {
3474 21 ▶ $postfix = $reject ? "(reject)" : "(keep)";
Branch: 1 branch
BranchTrueFalseTotal
$reject ? : 25 13 38
3475 22 $prefix = "...";
3476 22 ▶ if ($self->{lookahead} < 0)
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"lookahead"} < 0) 19 14 33
3477 {
3478 11 $prefix .= '!';
3479 8 $matched = not $matched;
3480 }
3481 }
3482 6154 ▶ $prefix . ($matched ? $t[0] : $t[1]) . $postfix;
Branch: 1 branch
BranchTrueFalseTotal
$matched ? : 3745 2426 6171
3483 }
3484  
3485 sub _parseunneg($$$$$)
3486 1333 ▶{
Subroutine _parseunneg: called CC=2 SCAR=7.0
3487 1329 _parse($_[0],$_[1],$_[3],$_[4]);
3488 1330 ▶ if ($_[2]<0)
Branch: 1 branch
BranchTrueFalseTotal
if ($_[2] < 0) 0 1341 1341
3489 {
3490 6 _error("Can't negate \"$_[4]\".",$_[3]);
3491 16 _hint("You can't negate $_[0]. Remove the \"...!\" before
3492 \"$_[4]\".");
3493 14 return 0;
3494 }
3495 1338 return 1;
3496 }
3497  
3498 sub _parse($$$$)
3499 4412 ▶{
Subroutine _parse: called CC=4 SCAR=13.9
3500 4417 my $what = $_[3];
3501 4418 $what =~ s/^\s+//;
3502 4418 ▶ if ($_[1])
Branch: 1 branch
BranchTrueFalseTotal
if ($_[1]) 15 4410 4425
3503 {
3504 15 ▶ _warn(3,"Found $_[0] ($what) after an unconditional <error>",$_[2])
Branch: 1 branch
BranchTrueFalseTotal
&_warn(3, "Found $_[0] ($what) after an unconditional <error>", $_[2]) and &_hint("An unconditional <error> always causes the\n production containing it to immediately fail.\n \u$_[0] that follows an <error>\n will never be reached. Did you mean to use\n <error?> instead?") 15 6 21
3505 and
3506 _hint("An unconditional <error> always causes the
3507 production containing it to immediately fail.
3508 \u$_[0] that follows an <error>
3509 will never be reached. Did you mean to use
3510 <error?> instead?");
3511 }
3512  
3513 4418 ▶ return if ! _verbosity("TRACE");
Branch: 1 branch
BranchTrueFalseTotal
unless &_verbosity("TRACE") 4403 16 4419
3514 13 my $errortext = "Treating \"$what\" as $_[0]";
3515 13 my $errorprefix = "Parse::RecDescent";
3516 13 $errortext =~ s/\s+/ /g;
3517 13 _write_ERROR($errorprefix, $errortext);
3518 }
3519  
3520 4931 ▶sub _linecount($) {
Subroutine _linecount: called CC=2 SCAR=7.2
3521 4937 ▶ scalar substr($_[0], pos $_[0]||0) =~ tr/\n//
Condition66%2/3
pos $_[0] || 0
l!l
44624670
MC/DC100%1/1
pos $_[0] || 0
pos $_[0]
Truth table100%2/2
A
A= pos $_[0]
Aresult
11
00
3522 }
3523  
3524  
3525 package main;
3526  
3527 15 ▶use vars qw ( $RD_ERRORS $RD_WARN $RD_HINT $RD_TRACE $RD_CHECK );
Subroutine BEGIN: called CC=1 SCAR=0.0
3528 28 $::RD_CHECK = 1;
3529 27 $::RD_ERRORS = 1;
3530 27 $::RD_WARN = 3;
3531  
3532 27 1;
3533  
3534 __END__
↑ Summary