lib/Treex/Core/ScenarioParser.pm

filter: Statementstmt 59.3% 2105 / 3547 Branchbran 30.6% 656 / 2144 Conditioncond 19.6% 154 / 784 MC/DCmcdc 7.6% 37 / 483 Subroutinesub 46.1% 124 / 269 Podpod 0.0% 0 / 1 totaltotal 42.5% 3076 / 7228 CC 1361 SCAR 90.4
CC
1361
Cov
45%
_generate
56882.0
PVALUE
1008.2
SPACE
816.3
CRAP 8458.4
↑ Summary lib/Treex/Core/TredView/Styles.pm »
1 {
2 # GENERATE RECURSIVE DESCENT PARSER OBJECTS FROM A GRAMMAR
3  
4 28 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 28 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 package Parse::RecDescent::_Runtime;
8  
9 28 ▶use Text::Balanced qw ( extract_codeblock extract_bracketed extract_quotelike extract_delimited );
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 28 ▶use vars qw ( $skip );
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 28 *defskip = \ '\s*'; # DEFAULT SEPARATOR IS OPTIONAL WHITESPACE
14 28 $skip = '\s*'; # UNIVERSAL SEPARATOR IS OPTIONAL WHITESPACE
15 28 my $MAXREP = 100_000_000; # REPETITIONS MATCH AT MOST 100,000,000 TIMES
16  
17  
18  
19 package Parse::RecDescent::_Runtime::LineCounter;
20  
21  
22 sub TIESCALAR # ($classname, \$text, $thisparser, $prevflag)
23 {
24 10378 ▶ bless {
Subroutine TIESCALAR: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 0 10378 10378
25 text => $_[1],
26 parser => $_[2],
27 prev => $_[3]?1:0,
28 }, $_[0];
29 }
30  
31 sub FETCH
32 {
33 0 ▶ my $parser = $_[0]->{parser};
Subroutine FETCH: not called CC=2 SCAR=17.9
34 0 my $cache = $parser->{linecounter_cache};
35 0 my $from = $parser->{fulltextlen}-length(${$_[0]->{text}})-$_[0]->{prev}
36 0 ;
37  
38 0 ▶ unless (exists $cache->{$from})
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $cache->{$from}) 0 0 0
39 {
40 $parser->{lastlinenum} = $parser->{offsetlinenum}
41 0 - Parse::RecDescent::_Runtime::_linecount(substr($parser->{fulltext},$from))
42 + 1;
43 0 $cache->{$from} = $parser->{lastlinenum};
44 }
45 0 return $cache->{$from};
46 }
47  
48 sub STORE
49 {
50 0 ▶ my $parser = $_[0]->{parser};
Subroutine STORE: not called CC=1 SCAR=6.9
51 0 $parser->{offsetlinenum} -= $parser->{lastlinenum} - $_[1];
52 0 return undef;
53 }
54  
55 sub resync # ($linecounter)
56 {
57 0 ▶ my $self = tied($_[0]);
Subroutine resync: not called CC=2 SCAR=17.9
58 0 ▶ die "Tried to alter something other than a LineCounter\n"
Branch: 1 branch
BranchTrueFalseTotal
unless $self =~ /Parse::RecDescent::_Runtime::LineCounter/ 0 0 0
59 unless $self =~ /Parse::RecDescent::_Runtime::LineCounter/;
60  
61 0 my $parser = $self->{parser};
62 my $apparently = $parser->{offsetlinenum}
63 0 - Parse::RecDescent::_Runtime::_linecount(${$self->{text}})
64 + 1;
65  
66 0 $parser->{offsetlinenum} += $parser->{lastlinenum} - $apparently;
67 0 return 1;
68 }
69  
70 package Parse::RecDescent::_Runtime::ColCounter;
71  
72 sub TIESCALAR # ($classname, \$text, $thisparser, $prevflag)
73 {
74 0 ▶ bless {
Subroutine TIESCALAR: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 0 0 0
75 text => $_[1],
76 parser => $_[2],
77 prev => $_[3]?1:0,
78 }, $_[0];
79 }
80  
81 sub FETCH
82 {
83 0 ▶ my $parser = $_[0]->{parser};
Subroutine FETCH: not called CC=1 SCAR=6.9
84 0 my $missing = $parser->{fulltextlen}-length(${$_[0]->{text}})-$_[0]->{prev}+1;
85 0 substr($parser->{fulltext},0,$missing) =~ m/^(.*)\Z/m;
86 0 return length($1);
87 }
88  
89 sub STORE
90 {
91 0 ▶ die "Can't set column number via \$thiscolumn\n";
Subroutine STORE: not called CC=1 SCAR=6.9
92 }
93  
94  
95 package Parse::RecDescent::_Runtime::OffsetCounter;
96  
97 sub TIESCALAR # ($classname, \$text, $thisparser, $prev)
98 {
99 0 ▶ bless {
Subroutine TIESCALAR: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 0 0 0
100 text => $_[1],
101 parser => $_[2],
102 prev => $_[3]?-1:0,
103 }, $_[0];
104 }
105  
106 sub FETCH
107 {
108 0 ▶ my $parser = $_[0]->{parser};
Subroutine FETCH: not called CC=1 SCAR=6.9
109 0 return $parser->{fulltextlen}-length(${$_[0]->{text}})+$_[0]->{prev};
110 }
111  
112 sub STORE
113 {
114 0 ▶ die "Can't set current offset via \$thisoffset or \$prevoffset\n";
Subroutine STORE: not called CC=1 SCAR=6.9
115 }
116  
117  
118  
119 package Parse::RecDescent::_Runtime::Rule;
120  
121 sub new ($$$$$)
122 {
123 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=5 SCAR=34.0
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
124 0 my $name = $_[1];
125 0 my $owner = $_[2];
126 0 my $line = $_[3];
127 0 my $replace = $_[4];
128  
129 0 ▶ if (defined $owner->{"rules"}{$name})
Branch: 1 branch
BranchTrueFalseTotal
if (defined $owner->{'rules'}{$name}) { } 0 0 0
130 {
131 0 my $self = $owner->{"rules"}{$name};
132 0 ▶ if ($replace && !$self->{"changed"})
Branch: 1 branch
BranchTrueFalseTotal
if ($replace and not $self->{"changed"}) 0 0 0
Condition0%0/3
$replace and not $self->{"changed"}
!ll&&!rl&&r
000
MC/DC0%0/2
$replace and not $self->{"changed"}
$replace not $self->{"changed"}
Truth table0%0/3
A and not(B)
A= $replaceB= not $self->{"changed"}
ABresult
0X0
100
111
133 {
134 0 $self->reset;
135 }
136 0 return $self;
137 }
138 else
139 {
140 0 return $owner->{"rules"}{$name} =
141 bless
142 {
143 "name" => $name,
144 "prods" => [],
145 "calls" => [],
146 "changed" => 0,
147 "line" => $line,
148 "impcount" => 0,
149 "opcount" => 0,
150 "vars" => "",
151 }, $class;
152 }
153 }
154  
155 sub reset($)
156 {
157 0 ▶ @{$_[0]->{"prods"}} = ();
Subroutine reset: not called CC=1 SCAR=6.9
158 0 @{$_[0]->{"calls"}} = ();
159 0 $_[0]->{"changed"} = 0;
160 0 $_[0]->{"impcount"} = 0;
161 0 $_[0]->{"opcount"} = 0;
162 0 $_[0]->{"vars"} = "";
163 }
164  
165 ▶sub DESTROY {}
Subroutine DESTROY: not called CC=1 SCAR=0.0
166  
167 sub hasleftmost($$)
168 {
169 0 ▶ my ($self, $ref) = @_;
Subroutine hasleftmost: not called CC=3 SCAR=24.8
170  
171 0 my $prod;
172 0 foreach $prod ( @{$self->{"prods"}} )
173 {
174 0 ▶ return 1 if $prod->hasleftmost($ref);
Branch: 1 branch
BranchTrueFalseTotal
if $prod->hasleftmost($ref) 0 0 0
175 }
176  
177 0 return 0;
178 }
179  
180 sub leftmostsubrules($)
181 {
182 0 ▶ my $self = shift;
Subroutine leftmostsubrules: not called CC=2 SCAR=17.9
183 0 my @subrules = ();
184  
185 0 my $prod;
186 0 foreach $prod ( @{$self->{"prods"}} )
187 {
188 0 push @subrules, $prod->leftmostsubrule();
189 }
190  
191 0 return @subrules;
192 }
193  
194 sub expected($)
195 {
196 0 ▶ my $self = shift;
Subroutine expected: not called CC=4 SCAR=30.0
197 0 my @expected = ();
198  
199 0 my $prod;
200 0 foreach $prod ( @{$self->{"prods"}} )
201 {
202 0 my $next = $prod->expected();
203 0 ▶ unless (! $next or _contains($next,@expected) )
Branch: 1 branch
BranchTrueFalseTotal
unless (not $next or &_contains($next, @expected)) 0 0 0
Condition0%0/3
not $next or &_contains($next, @expected)
l!l&&r!l&&!r
000
MC/DC0%0/2
not $next or &_contains($next, @expected)
not $next &_contains($next, @expected)
Truth table0%0/3
not(A) or B
A= not $nextB= &_contains($next, @expected)
ABresult
1X1
011
000
204 {
205 0 push @expected, $next;
206 }
207 }
208  
209 0 return join ', or ', @expected;
210 }
211  
212 sub _contains($@)
213 {
214 0 ▶ my $target = shift;
Subroutine _contains: not called CC=3 SCAR=24.8
215 0 my $item;
216 0 ▶ foreach $item ( @_ ) { return 1 if $target eq $item; }
Branch: 1 branch
BranchTrueFalseTotal
if $target eq $item 0 0 0
217 0 return 0;
218 }
219  
220 sub addcall($$)
221 {
222 0 ▶ my ( $self, $subrule ) = @_;
Subroutine addcall: not called CC=2 SCAR=17.9
223 0 ▶ unless ( _contains($subrule, @{$self->{"calls"}}) )
Branch: 1 branch
BranchTrueFalseTotal
unless (&_contains($subrule, @{$$self{"calls"};})) 0 0 0
224 {
225 0 push @{$self->{"calls"}}, $subrule;
226 }
227 }
228  
229 sub addprod($$)
230 {
231 0 ▶ my ( $self, $prod ) = @_;
Subroutine addprod: not called CC=1 SCAR=6.9
232 0 push @{$self->{"prods"}}, $prod;
233 0 $self->{"changed"} = 1;
234 0 $self->{"impcount"} = 0;
235 0 $self->{"opcount"} = 0;
236 0 $prod->{"number"} = $#{$self->{"prods"}};
237 0 return $prod;
238 }
239  
240 sub addvar
241 {
242 0 ▶ my ( $self, $var, $parser ) = @_;
Subroutine addvar: not called CC=2 SCAR=17.9
243 0 ▶ if ($var =~ /\A\s*local\s+([%@\$]\w+)/)
Branch: 1 branch
BranchTrueFalseTotal
if ($var =~ /\A\s*local\s+([%\@\$]\w+)/) { } 0 0 0
244 {
245 0 $parser->{localvars} .= " $1";
246 0 $self->{"vars"} .= "$var;\n" }
247 else
248 0 { $self->{"vars"} .= "my $var;\n" }
249 0 $self->{"changed"} = 1;
250 0 return 1;
251 }
252  
253 sub addautoscore
254 {
255 0 ▶ my ( $self, $code ) = @_;
Subroutine addautoscore: not called CC=1 SCAR=6.9
256 0 $self->{"autoscore"} = $code;
257 0 $self->{"changed"} = 1;
258 0 return 1;
259 }
260  
261 sub nextoperator($)
262 {
263 0 ▶ my $self = shift;
Subroutine nextoperator: not called CC=1 SCAR=6.9
264 0 my $prodcount = scalar @{$self->{"prods"}};
265 0 my $opcount = ++$self->{"opcount"};
266 0 return "_operator_${opcount}_of_production_${prodcount}_of_rule_$self->{name}";
267 }
268  
269 sub nextimplicit($)
270 {
271 0 ▶ my $self = shift;
Subroutine nextimplicit: not called CC=1 SCAR=6.9
272 0 my $prodcount = scalar @{$self->{"prods"}};
273 0 my $impcount = ++$self->{"impcount"};
274 0 return "_alternation_${impcount}_of_production_${prodcount}_of_rule_$self->{name}";
275 }
276  
277  
278 sub code
279 {
280 0 ▶ my ($self, $namespace, $parser, $check) = @_;
Subroutine code: not called CC=13 SCAR=52.0
281  
282 0 ▶eval 'undef &' . $namespace . '::' . $self->{"name"} unless $parser->{saving};
Branch: 1 branch
BranchTrueFalseTotal
unless $parser->{"saving"} 0 0 0
283  
284 my $code =
285 '
286 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
287 sub ' . $namespace . '::' . $self->{"name"} . '
288 {
289 my $thisparser = $_[0];
290 use vars q{$tracelevel};
291 local $tracelevel = ($tracelevel||0)+1;
292 $ERRORS = 0;
293 my $thisrule = $thisparser->{"rules"}{"' . $self->{"name"} . '"};
294  
295 Parse::RecDescent::_Runtime::_trace(q{Trying rule: [' . $self->{"name"} . ']},
296 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
297 q{' . $self->{"name"} . '},
298 $tracelevel)
299 if defined $::RD_TRACE;
300  
301 ' . ($parser->{deferrable}
302 ? 'my $def_at = @{$thisparser->{deferred}};'
303 : '') .
304 '
305 my $err_at = @{$thisparser->{errors}};
306  
307 my $score;
308 my $score_return;
309 my $_tok;
310 my $return = undef;
311 my $_matched=0;
312 my $commit=0;
313 my @item = ();
314 my %item = ();
315 my $repeating = $_[2];
316 my $_noactions = $_[3];
317 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
318 my $_itempos = $_[5];
319 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
320 my $text;
321 my $lastsep;
322 my $current_match;
323 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{' . $self->expected() . '});
324 $expectation->at($_[1]);
325 '. ($parser->{_check}{thisoffset}?'
326 my $thisoffset;
327 tie $thisoffset, q{Parse::RecDescent::_Runtime::OffsetCounter}, \$text, $thisparser;
328 ':'') . ($parser->{_check}{prevoffset}?'
329 my $prevoffset;
330 tie $prevoffset, q{Parse::RecDescent::_Runtime::OffsetCounter}, \$text, $thisparser, 1;
331 ':'') . ($parser->{_check}{thiscolumn}?'
332 my $thiscolumn;
333 tie $thiscolumn, q{Parse::RecDescent::_Runtime::ColCounter}, \$text, $thisparser;
334 ':'') . ($parser->{_check}{prevcolumn}?'
335 my $prevcolumn;
336 tie $prevcolumn, q{Parse::RecDescent::_Runtime::ColCounter}, \$text, $thisparser, 1;
337 ':'') . ($parser->{_check}{prevline}?'
338 my $prevline;
339 tie $prevline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser, 1;
340 ':'') . '
341 my $thisline;
342 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
343  
344 0 ▶ '. $self->{vars} .'
Branch: 6 branches
BranchTrueFalseTotal
$parser->{'deferrable'} ? : 0 0 0
$parser->{'_check'}{'thisoffset'} ? : 0 0 0
$parser->{'_check'}{'prevoffset'} ? : 0 0 0
$parser->{'_check'}{'thiscolumn'} ? : 0 0 0
$parser->{'_check'}{'prevcolumn'} ? : 0 0 0
$parser->{'_check'}{'prevline'} ? : 0 0 0
345 ';
346  
347 0 my $prod;
348 0 foreach $prod ( @{$self->{"prods"}} )
349 {
350 0 ▶ $prod->addscore($self->{autoscore},0,0) if $self->{autoscore};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"autoscore"} 0 0 0
351 0 ▶ next unless $prod->checkleftmost();
Branch: 1 branch
BranchTrueFalseTotal
unless $prod->checkleftmost 0 0 0
352 0 $code .= $prod->code($namespace,$self,$parser);
353  
354 $code .= $parser->{deferrable}
355 0 ▶ ? ' splice
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'deferrable'} ? : 0 0 0
356 @{$thisparser->{deferred}}, $def_at unless $_matched;
357 '
358 : '';
359 }
360  
361 $code .=
362 '
363 unless ( $_matched || defined($score) )
364 {
365 ' .($parser->{deferrable}
366 ? ' splice @{$thisparser->{deferred}}, $def_at;
367 '
368 : '') . '
369  
370 $_[1] = $text; # NOT SURE THIS IS NEEDED
371 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' rule>>},
372 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
373 q{' . $self->{"name"} .'},
374 $tracelevel)
375 if defined $::RD_TRACE;
376 return undef;
377 }
378 if (!defined($return) && defined($score))
379 {
380 Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
381 q{' . $self->{"name"} .'},
382 $tracelevel)
383 if defined $::RD_TRACE;
384 $return = $score_return;
385 }
386 splice @{$thisparser->{errors}}, $err_at;
387 $return = $item[$#item] unless defined $return;
388 if (defined $::RD_TRACE)
389 {
390 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' rule<< (return value: [} .
391 $return . q{])}, "",
392 q{' . $self->{"name"} .'},
393 $tracelevel);
394 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
395 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
396 Parse::RecDescent::_Runtime::_tracefirst($text),
397 0 ▶ , q{' . $self->{"name"} .'},
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'deferrable'} ? : 0 0 0
398 $tracelevel)
399 }
400 $_[1] = $text;
401 return $return;
402 }
403 ';
404  
405 0 return $code;
406 }
407  
408 28 my @left;
409 sub isleftrec($$)
410 {
411 0 ▶ my ($self, $rules) = @_;
Subroutine isleftrec: not called CC=6 SCAR=37.4
412 0 my $root = $self->{"name"};
413 0 @left = $self->leftmostsubrules();
414 0 my $next;
415 0 foreach $next ( @left )
416 {
417 0 ▶ next unless defined $rules->{$next}; # SKIP NON-EXISTENT RULES
Branch: 1 branch
BranchTrueFalseTotal
unless defined $rules->{$next} 0 0 0
418 0 ▶ return 1 if $next eq $root;
Branch: 1 branch
BranchTrueFalseTotal
if $next eq $root 0 0 0
419 0 my $child;
420 0 foreach $child ( $rules->{$next}->leftmostsubrules() )
421 {
422 0 ▶ push(@left, $child)
Branch: 1 branch
BranchTrueFalseTotal
unless &_contains($child, @left) 0 0 0
423 if ! _contains($child, @left) ;
424 }
425 }
426 0 return 0;
427 }
428  
429 package Parse::RecDescent::_Runtime::Production;
430  
431 sub describe ($;$)
432 {
433 0 ▶ return join ' ', map { $_->describe($_[1]) or () } @{$_[0]->{items}};
Subroutine describe: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->describe($_[1]) or () 0 0 0
434 }
435  
436 sub new ($$;$$)
437 {
438 0 ▶ my ($self, $line, $uncommit, $error) = @_;
Subroutine new: not called CC=2 SCAR=17.9
439 0 ▶ my $class = ref($self) || $self;
Condition0%0/3
ref $self || $self
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $self || $self
ref $self $self
Truth table0%0/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
440  
441 0 bless
442 {
443 "items" => [],
444 "uncommit" => $uncommit,
445 "error" => $error,
446 "line" => $line,
447 strcount => 0,
448 patcount => 0,
449 dircount => 0,
450 actcount => 0,
451 }, $class;
452 }
453  
454 sub expected ($)
455 {
456 0 ▶ my $itemcount = scalar @{$_[0]->{"items"}};
Subroutine expected: not called CC=2 SCAR=17.9
457 0 ▶ return ($itemcount) ? $_[0]->{"items"}[0]->describe(1) : '';
Branch: 1 branch
BranchTrueFalseTotal
$itemcount ? : 0 0 0
458 }
459  
460 sub hasleftmost ($$)
461 {
462 0 ▶ my ($self, $ref) = @_;
Subroutine hasleftmost: not called CC=2 SCAR=17.9
463 0 ▶ return ${$self->{"items"}}[0] eq $ref if scalar @{$self->{"items"}};
Branch: 1 branch
BranchTrueFalseTotal
if scalar @{$self->{"items"};} 0 0 0
464 0 return 0;
465 }
466  
467 sub isempty($)
468 {
469 0 ▶ my $self = shift;
Subroutine isempty: not called CC=1 SCAR=6.9
470 0 return 0 == @{$self->{"items"}};
471 }
472  
473 sub leftmostsubrule($)
474 {
475 0 ▶ my $self = shift;
Subroutine leftmostsubrule: not called CC=3 SCAR=24.8
476  
477 0 ▶ if ( $#{$self->{"items"}} >= 0 )
Branch: 1 branch
BranchTrueFalseTotal
if ($#{$$self{"items"};} >= 0) 0 0 0
478 {
479 0 my $subrule = $self->{"items"}[0]->issubrule();
480 0 ▶ return $subrule if defined $subrule;
Branch: 1 branch
BranchTrueFalseTotal
if defined $subrule 0 0 0
481 }
482  
483 0 return ();
484 }
485  
486 sub checkleftmost($)
487 {
488 0 ▶ my @items = @{$_[0]->{"items"}};
Subroutine checkleftmost: not called CC=15 SCAR=54.8
489 0 ▶ if (@items==1 && ref($items[0]) =~ /\AParse::RecDescent::_Runtime::Error/
Branch: 3 branches
BranchTrueFalseTotal
if (@items == 1 and ref($items[0]) =~ /\AParse::RecDescent::_Runtime::Error/ and $items[0]{'commitonly'}) { } 0 0 0
elsif (@items == 1 and ($items[0]->describe || '') =~ /<rulevar|<autoscore/) { } 0 0 0
elsif (@items and ref($items[0]) =~ /\AParse::RecDescent::_Runtime::UncondReject/ || ($items[0]->describe || '') =~ /<autoscore/) { } 0 0 0
Condition0%0/6
@items == 1 and ref($items[0]) =~ /\AParse::RecDescent::_Runtime::Error/ and $items[0]{"commitonly"}
!ll&&!rl&&r
000
@items == 1 and ref($items[0]) =~ /\AParse::RecDescent::_Runtime::Error/
!ll&&!rl&&r
000
MC/DC0%0/3
@items == 1 and ref($items[0]) =~ /\AParse::RecDescent::_Runtime::Error/ and $items[0]{"commitonly"}
@items == 1 ref($items[0]) =~ /\AParse::RecDescent::_Runtime::Error/ $items[0]{"commitonly"}
Truth table0%0/4
A and B and C
A= @items == 1B= ref($items[0]) =~ /\AParse::RecDescent::_Runtime::Error/C= $items[0]{"commitonly"}
ABCresult
0XX0
10X0
1100
1111
490 && $items[0]->{commitonly} )
491 {
492 0 Parse::RecDescent::_Runtime::_warn(2,"Lone <error?> in production treated
493 as <error?> <reject>");
494 0 Parse::RecDescent::_Runtime::_hint("A production consisting of a single
495 conditional <error?> directive would
496 normally succeed (with the value zero) if the
497 rule is not 'commited' when it is
498 tried. Since you almost certainly wanted
499 '<error?> <reject>' Parse::RecDescent::_Runtime
500 supplied it for you.");
501 0 push @{$_[0]->{items}},
502 Parse::RecDescent::_Runtime::UncondReject->new(0,0,'<reject>');
503 }
504 ▶ elsif (@items==1 && ($items[0]->describe||"") =~ /<rulevar|<autoscore/)
Condition0%0/5
@items == 1 and ($items[0]->describe || "") =~ /<rulevar|<autoscore/
!ll&&!rl&&r
000
$items[0]->describe || ''
l!l
00
MC/DC0%0/2
@items == 1 and ($items[0]->describe || "") =~ /<rulevar|<autoscore/
@items == 1 $items[0]->describe
Truth table0%0/3
A and B
A= @items == 1B= $items[0]->describe
ABresult
0X0
100
111
505 {
506 # Do nothing
507 }
508 ▶ elsif (@items &&
Condition0%0/8
@items and ref($items[0]) =~ /\AParse::RecDescent::_Runtime::UncondReject/ || ($items[0]->describe || "") =~ /<autoscore/
!ll&&!rl&&r
000
ref($items[0]) =~ /\AParse::RecDescent::_Runtime::UncondReject/ or ($items[0]->describe || "") =~ /<autoscore/
l!l&&r!l&&!r
000
$items[0]->describe || ''
l!l
00
MC/DC0%0/3
@items and ref($items[0]) =~ /\AParse::RecDescent::_Runtime::UncondReject/ || ($items[0]->describe || "") =~ /<autoscore/
@items ref($items[0]) =~ /\AParse::RecDescent::_Runtime::UncondReject/ $items[0]->describe
Truth table0%0/4
A and B or C
A= @itemsB= ref($items[0]) =~ /\AParse::RecDescent::_Runtime::UncondReject/C= $items[0]->describe
ABCresult
0XX0
1000
11X1
1011
509 ( ref($items[0]) =~ /\AParse::RecDescent::_Runtime::UncondReject/
510 || ($items[0]->describe||"") =~ /<autoscore/
511 ))
512 {
513 0 Parse::RecDescent::_Runtime::_warn(1,"Optimizing away production: [". $_[0]->describe ."]");
514 0 ▶ my $what = $items[0]->describe =~ /<rulevar/
Branch: 2 branches
BranchTrueFalseTotal
$items[0]->describe =~ /<rulevar/ ? : 0 0 0
$items[0]->describe =~ /<autoscore/ ? : 0 0 0
515 ? "a <rulevar> (which acts like an unconditional <reject> during parsing)"
516 : $items[0]->describe =~ /<autoscore/
517 ? "an <autoscore> (which acts like an unconditional <reject> during parsing)"
518 : "an unconditional <reject>";
519 0 ▶ my $caveat = $items[0]->describe =~ /<rulevar/
Branch: 1 branch
BranchTrueFalseTotal
$items[0]->describe =~ /<rulevar/ ? : 0 0 0
520 ? " after the specified variable was set up"
521 : "";
522 0 ▶ my $advice = @items > 1
Branch: 1 branch
BranchTrueFalseTotal
@items > 1 ? : 0 0 0
523 ? "However, there were also other (useless) items after the leading "
524 . $items[0]->describe
525 . ", so you may have been expecting some other behaviour."
526 : "You can safely ignore this message.";
527 0 Parse::RecDescent::_Runtime::_hint("The production starts with $what. That means that the
528 production can never successfully match, so it was
529 optimized out of the final parser$caveat. $advice");
530 0 return 0;
531 }
532 0 return 1;
533 }
534  
535 sub changesskip($)
536 {
537 0 ▶ my $item;
Subroutine changesskip: not called CC=4 SCAR=30.0
538 0 foreach $item (@{$_[0]->{"items"}})
539 {
540 0 ▶ if (ref($item) =~ /Parse::RecDescent::_Runtime::(Action|Directive)/)
Branch: 1 branch
BranchTrueFalseTotal
if (ref($item) =~ /Parse::RecDescent::_Runtime::(Action|Directive)/) 0 0 0
541 {
542 0 ▶ return 1 if $item->{code} =~ /\$skip\s*=/;
Branch: 1 branch
BranchTrueFalseTotal
if $item->{"code"} =~ /\$skip\s*=/ 0 0 0
543 }
544 }
545 0 return 0;
546 }
547  
548 sub adddirective
549 {
550 0 ▶ my ( $self, $whichop, $line, $name ) = @_;
Subroutine adddirective: not called CC=1 SCAR=6.9
551 0 push @{$self->{op}},
552 { type=>$whichop, line=>$line, name=>$name,
553 0 offset=> scalar(@{$self->{items}}) };
554 }
555  
556 sub addscore
557 {
558 0 ▶ my ( $self, $code, $lookahead, $line ) = @_;
Subroutine addscore: not called CC=2 SCAR=17.9
559 $self->additem(Parse::RecDescent::_Runtime::Directive->new(
560 "local \$^W;
561 my \$thisscore = do { $code } + 0;
562 if (!defined(\$score) || \$thisscore>\$score)
563 { \$score=\$thisscore; \$score_return=\$item[-1]; }
564 undef;", $lookahead, $line,"<score: $code>") )
565 0 ▶ unless $self->{items}[-1]->describe =~ /<score/;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"items"}[-1]->describe =~ /<score/ 0 0 0
566 0 return 1;
567 }
568  
569 sub check_pending
570 {
571 0 ▶ my ( $self, $line ) = @_;
Subroutine check_pending: not called CC=3 SCAR=24.8
572 0 ▶ if ($self->{op})
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"op"}) 0 0 0
573 {
574 0 ▶ while (my $next = pop @{$self->{op}})
Branch: 1 branch
BranchTrueFalseTotal
if (my $next = pop @{$$self{"op"};}) 0 0 0
575 {
576 0 Parse::RecDescent::_Runtime::_error("Incomplete <$next->{type}op:...>.", $line);
577 0 Parse::RecDescent::_Runtime::_hint(
578 "The current production ended without completing the
579 <$next->{type}op:...> directive that started near line
580 $next->{line}. Did you forget the closing '>'?");
581 }
582 }
583 0 return 1;
584 }
585  
586 sub enddirective
587 {
588 0 ▶ my ( $self, $line, $minrep, $maxrep ) = @_;
Subroutine enddirective: not called CC=4 SCAR=30.0
589 0 ▶ unless ($self->{op})
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"op"}) 0 0 0
590 {
591 0 Parse::RecDescent::_Runtime::_error("Unmatched > found.", $line);
592 0 Parse::RecDescent::_Runtime::_hint(
593 "A '>' angle bracket was encountered, which typically
594 indicates the end of a directive. However no suitable
595 preceding directive was encountered. Typically this
596 indicates either a extra '>' in the grammar, or a
597 problem inside the previous directive.");
598 0 return;
599 }
600 0 my $op = pop @{$self->{op}};
601 0 my $span = @{$self->{items}} - $op->{offset};
602 0 ▶ if ($op->{type} =~ /left|right/)
Branch: 1 branch
BranchTrueFalseTotal
if ($op->{"type"} =~ /left|right/) 0 0 0
603 {
604 0 ▶ if ($span != 3)
Branch: 1 branch
BranchTrueFalseTotal
if ($span != 3) { } 0 0 0
605 {
606 0 Parse::RecDescent::_Runtime::_error(
607 "Incorrect <$op->{type}op:...> specification:
608 expected 3 args, but found $span instead", $line);
609 0 Parse::RecDescent::_Runtime::_hint(
610 "The <$op->{type}op:...> directive requires a
611 sequence of exactly three elements. For example:
612 <$op->{type}op:leftarg /op/ rightarg>");
613 }
614 else
615 {
616 0 push @{$self->{items}},
617 Parse::RecDescent::_Runtime::Operator->new(
618 0 $op->{type}, $minrep, $maxrep, splice(@{$self->{"items"}}, -3));
619 0 $self->{items}[-1]->sethashname($self);
620 0 $self->{items}[-1]{name} = $op->{name};
621 }
622 }
623 }
624  
625 sub prevwasreturn
626 {
627 0 ▶ my ( $self, $line ) = @_;
Subroutine prevwasreturn: not called CC=2 SCAR=17.9
628 0 ▶ unless (@{$self->{items}})
Branch: 1 branch
BranchTrueFalseTotal
unless (@{$self->{"items"};}) 0 0 0
629 {
630 0 Parse::RecDescent::_Runtime::_error(
631 "Incorrect <return:...> specification:
632 expected item missing", $line);
633 0 Parse::RecDescent::_Runtime::_hint(
634 "The <return:...> directive requires a
635 sequence of at least one item. For example:
636 <return: list>");
637 0 return;
638 }
639 0 push @{$self->{items}},
640 Parse::RecDescent::_Runtime::Result->new();
641 }
642  
643 sub additem
644 {
645 0 ▶ my ( $self, $item ) = @_;
Subroutine additem: not called CC=1 SCAR=6.9
646 0 $item->sethashname($self);
647 0 push @{$self->{"items"}}, $item;
648 0 return $item;
649 }
650  
651 sub _duplicate_itempos
652 {
653 0 ▶ my ($src) = @_;
Subroutine _duplicate_itempos: not called CC=2 SCAR=17.9
654 0 my $dst = {};
655  
656 0 foreach (keys %$src)
657 {
658 0 %{$dst->{$_}} = %{$src->{$_}};
659 }
660 0 $dst;
661 }
662  
663 sub _update_itempos
664 {
665 0 ▶ my ($dst, $src, $typekeys, $poskeys) = @_;
Subroutine _update_itempos: not called CC=4 SCAR=30.0
666  
667 0 ▶ my @typekeys = 'ARRAY' eq ref $typekeys ?
Branch: 1 branch
BranchTrueFalseTotal
'ARRAY' eq ref $typekeys ? : 0 0 0
668 @$typekeys :
669 keys %$src;
670  
671 0 foreach my $k (keys %$src)
672 {
673 0 ▶ if ('ARRAY' eq ref $poskeys)
Branch: 1 branch
BranchTrueFalseTotal
if ('ARRAY' eq ref $poskeys) { } 0 0 0
674 {
675 0 @{$dst->{$k}}{@$poskeys} = @{$src->{$k}}{@$poskeys};
676 }
677 else
678 {
679 0 %{$dst->{$k}} = %{$src->{$k}};
680 }
681 }
682 }
683  
684 sub preitempos
685 {
686 return q
687 0 ▶ {
Subroutine preitempos: not called CC=1 SCAR=6.9
688 push @itempos, {'offset' => {'from'=>$thisoffset, 'to'=>undef},
689 'line' => {'from'=>$thisline, 'to'=>undef},
690 'column' => {'from'=>$thiscolumn, 'to'=>undef} };
691 }
692 }
693  
694 sub incitempos
695 {
696 return q
697 0 ▶ {
Subroutine incitempos: not called CC=1 SCAR=6.9
698 $itempos[$#itempos]{'offset'}{'from'} += length($lastsep);
699 $itempos[$#itempos]{'line'}{'from'} = $thisline;
700 $itempos[$#itempos]{'column'}{'from'} = $thiscolumn;
701 }
702 }
703  
704 sub unincitempos
705 {
706 # the next incitempos will properly set these two fields, but
707 # {'offset'}{'from'} needs to be decreased by length($lastsep)
708 # $itempos[$#itempos]{'line'}{'from'}
709 # $itempos[$#itempos]{'column'}{'from'}
710 return q
711 0 ▶ {
Subroutine unincitempos: not called CC=1 SCAR=6.9
712 $itempos[$#itempos]{'offset'}{'from'} -= length($lastsep) if defined $lastsep;
713 }
714 }
715  
716 sub postitempos
717 {
718 return q
719 0 ▶ {
Subroutine postitempos: not called CC=1 SCAR=6.9
720 $itempos[$#itempos]{'offset'}{'to'} = $prevoffset;
721 $itempos[$#itempos]{'line'}{'to'} = $prevline;
722 $itempos[$#itempos]{'column'}{'to'} = $prevcolumn;
723 }
724 }
725  
726 sub code($$$$)
727 {
728 0 ▶ my ($self,$namespace,$rule,$parser) = @_;
Subroutine code: not called CC=19 SCAR=59.4
729 my $code =
730 '
731 while (!$_matched'
732 . (defined $self->{"uncommit"} ? '' : ' && !$commit')
733 . ')
734 {
735 ' .
736 ($self->changesskip()
737 ? 'local $skip = defined($skip) ? $skip : $Parse::RecDescent::_Runtime::skip;'
738 : '') .'
739 Parse::RecDescent::_Runtime::_trace(q{Trying production: ['
740 . $self->describe . ']},
741 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
742 q{' . $rule ->{name}. '},
743 $tracelevel)
744 if defined $::RD_TRACE;
745 my $thisprod = $thisrule->{"prods"}[' . $self->{"number"} . '];
746 ' . (defined $self->{"error"} ? '' : '$text = $_[1];' ) . '
747 my $_savetext;
748 @item = (q{' . $rule->{"name"} . '});
749 0 ▶ %item = (__RULE__ => q{' . $rule->{"name"} . '});
Branch: 3 branches
BranchTrueFalseTotal
defined $self->{'uncommit'} ? : 0 0 0
$self->changesskip ? : 0 0 0
defined $self->{'error'} ? : 0 0 0
750 my $repcount = 0;
751  
752 ';
753 $code .=
754 ' my @itempos = ({});
755 0 ▶' if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 0 0 0
756  
757 0 my $item;
758 my $i;
759  
760 0 ▶ for ($i = 0; $i < @{$self->{"items"}}; $i++)
Branch: 1 branch
BranchTrueFalseTotal
if ($i < @{$self->{"items"};}) 0 0 0
761 {
762 0 $item = ${$self->{items}}[$i];
763  
764 0 ▶ $code .= preitempos() if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 0 0 0
765  
766 0 $code .= $item->code($namespace,$rule,$parser->{_check});
767  
768 0 ▶ $code .= postitempos() if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 0 0 0
769  
770 }
771  
772 0 ▶ if ($parser->{_AUTOACTION} && defined($item) && !$item->isa("Parse::RecDescent::_Runtime::Action"))
Branch: 2 branches
BranchTrueFalseTotal
if ($parser->{'_AUTOACTION'} and defined $item and not $item->isa('Parse::RecDescent::_Runtime::Action')) { } 0 0 0
elsif ($parser->{'_AUTOTREE'} and defined $item and not $item->isa('Parse::RecDescent::_Runtime::Action')) { } 0 0 0
Condition0%0/6
$parser->{"_AUTOACTION"} and defined $item and not $item->isa("Parse::RecDescent::_Runtime::Action")
!ll&&!rl&&r
000
$parser->{"_AUTOACTION"} and defined $item
!ll&&!rl&&r
000
MC/DC0%0/3
$parser->{"_AUTOACTION"} and defined $item and not $item->isa("Parse::RecDescent::_Runtime::Action")
$parser->{"_AUTOACTION"} defined $item not $item->isa("Parse::RecDescent::_Runtime::Action")
Truth table0%0/4
A and B and not(C)
A= $parser->{"_AUTOACTION"}B= defined $itemC= not $item->isa("Parse::RecDescent::_Runtime::Action")
ABCresult
0XX0
10X0
1100
1111
773 {
774 0 $code .= $parser->{_AUTOACTION}->code($namespace,$rule);
775 0 ▶ Parse::RecDescent::_Runtime::_warn(1,"Autogenerating action in rule
Branch: 1 branch
BranchTrueFalseTotal
&Parse::RecDescent::_Runtime::_warn(1, qq[Autogenerating action in rule\n "$rule->{"name"}":\n $parser->{"_AUTOACTION"}{"code"}]) and &Parse::RecDescent::_Runtime::_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
776 \"$rule->{name}\":
777 $parser->{_AUTOACTION}{code}")
778 and
779 Parse::RecDescent::_Runtime::_hint("The \$::RD_AUTOACTION was defined,
780 so any production not ending in an
781 explicit action has the specified
782 \"auto-action\" automatically
783 appended.");
784 }
785 ▶ elsif ($parser->{_AUTOTREE} && defined($item) && !$item->isa("Parse::RecDescent::_Runtime::Action"))
Condition0%0/6
$parser->{"_AUTOTREE"} and defined $item and not $item->isa("Parse::RecDescent::_Runtime::Action")
!ll&&!rl&&r
000
$parser->{"_AUTOTREE"} and defined $item
!ll&&!rl&&r
000
MC/DC0%0/3
$parser->{"_AUTOTREE"} and defined $item and not $item->isa("Parse::RecDescent::_Runtime::Action")
$parser->{"_AUTOTREE"} defined $item not $item->isa("Parse::RecDescent::_Runtime::Action")
Truth table0%0/4
A and B and not(C)
A= $parser->{"_AUTOTREE"}B= defined $itemC= not $item->isa("Parse::RecDescent::_Runtime::Action")
ABCresult
0XX0
10X0
1100
1111
786 {
787 0 ▶ if ($i==1 && $item->isterminal)
Branch: 1 branch
BranchTrueFalseTotal
if ($i == 1 and $item->isterminal) { } 0 0 0
Condition0%0/3
$i == 1 and $item->isterminal
!ll&&!rl&&r
000
MC/DC0%0/2
$i == 1 and $item->isterminal
$i == 1 $item->isterminal
Truth table0%0/3
A and B
A= $i == 1B= $item->isterminal
ABresult
0X0
100
111
788 {
789 0 $code .= $parser->{_AUTOTREE}{TERMINAL}->code($namespace,$rule);
790 }
791 else
792 {
793 0 $code .= $parser->{_AUTOTREE}{NODE}->code($namespace,$rule);
794 }
795 0 ▶ Parse::RecDescent::_Runtime::_warn(1,"Autogenerating tree-building action in rule
Branch: 1 branch
BranchTrueFalseTotal
&Parse::RecDescent::_Runtime::_warn(1, qq[Autogenerating tree-building action in rule\n "$rule->{"name"}"]) and &Parse::RecDescent::_Runtime::_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 0 0
796 \"$rule->{name}\"")
797 and
798 Parse::RecDescent::_Runtime::_hint("The directive <autotree> was specified,
799 so any production not ending
800 in an explicit action has
801 some parse-tree building code
802 automatically appended.");
803 }
804  
805 $code .=
806 '
807 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' production: ['
808 . $self->describe . ']<<},
809 Parse::RecDescent::_Runtime::_tracefirst($text),
810 q{' . $rule->{name} . '},
811 $tracelevel)
812 if defined $::RD_TRACE;
813  
814 0 ▶' . ( $parser->{_check}{itempos} ? '
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'_check'}{'itempos'} ? : 0 0 0
815 if ( defined($_itempos) )
816 {
817 Parse::RecDescent::_Runtime::Production::_update_itempos($_itempos, $itempos[ 1], undef, [qw(from)]);
818 Parse::RecDescent::_Runtime::Production::_update_itempos($_itempos, $itempos[-1], undef, [qw(to)]);
819 }
820 ' : '' ) . '
821  
822 $_matched = 1;
823 last;
824 }
825  
826 ';
827 0 return $code;
828 }
829  
830 28 1;
831  
832 package Parse::RecDescent::_Runtime::Action;
833  
834 0 ▶sub describe { undef }
Subroutine describe: not called CC=1 SCAR=6.9
835  
836 0 ▶sub sethashname { $_[0]->{hashname} = '__ACTION' . ++$_[1]->{actcount} .'__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
837  
838 sub new
839 {
840 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=2 SCAR=17.9
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
841 0 bless
842 {
843 "code" => $_[1],
844 "lookahead" => $_[2],
845 "line" => $_[3],
846 }, $class;
847 }
848  
849 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
850 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
851  
852 sub code($$$$)
853 {
854 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=5 SCAR=34.0
855  
856 '
857 Parse::RecDescent::_Runtime::_trace(q{Trying action},
858 Parse::RecDescent::_Runtime::_tracefirst($text),
859 q{' . $rule->{name} . '},
860 $tracelevel)
861 if defined $::RD_TRACE;
862 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
863  
864 $_tok = ($_noactions) ? 0 : do ' . $self->{"code"} . ';
865 ' . ($self->{"lookahead"}<0?'if':'unless') . ' (defined $_tok)
866 {
867 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' action>> (return value: [undef])})
868 if defined $::RD_TRACE;
869 last;
870 }
871 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' action<< (return value: [}
872 . $_tok . q{])},
873 Parse::RecDescent::_Runtime::_tracefirst($text))
874 if defined $::RD_TRACE;
875 push @item, $_tok;
876 ' . ($self->{line}>=0 ? '$item{'. $self->{hashname} .'}=$_tok;' : '' ) .'
877 0 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 4 branches
BranchTrueFalseTotal
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} < 0 ? : 0 0 0
$self->{'line'} >= 0 ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
878 '
879 }
880  
881  
882 28 1;
883  
884 package Parse::RecDescent::_Runtime::Directive;
885  
886 0 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
887  
888 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
889 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
890 0 ▶sub describe { $_[1] ? '' : $_[0]->{name} }
Subroutine describe: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 0 0
891  
892 sub new ($$$$$)
893 {
894 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=2 SCAR=17.9
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
895 0 bless
896 {
897 "code" => $_[1],
898 "lookahead" => $_[2],
899 "line" => $_[3],
900 "name" => $_[4],
901 }, $class;
902 }
903  
904 sub code($$$$)
905 {
906 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=5 SCAR=34.0
907  
908 '
909 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
910  
911 Parse::RecDescent::_Runtime::_trace(q{Trying directive: ['
912 . $self->describe . ']},
913 Parse::RecDescent::_Runtime::_tracefirst($text),
914 q{' . $rule->{name} . '},
915 $tracelevel)
916 if defined $::RD_TRACE; ' .'
917 $_tok = do { ' . $self->{"code"} . ' };
918 if (defined($_tok))
919 {
920 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' directive<< (return value: [}
921 . $_tok . q{])},
922 Parse::RecDescent::_Runtime::_tracefirst($text))
923 if defined $::RD_TRACE;
924 }
925 else
926 {
927 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' directive>>},
928 Parse::RecDescent::_Runtime::_tracefirst($text))
929 if defined $::RD_TRACE;
930 }
931 ' . ($self->{"lookahead"} ? '$text = $_savetext and ' : '' ) .'
932 last '
933 . ($self->{"lookahead"}<0?'if':'unless') . ' defined $_tok;
934 push @item, $item{'.$self->{hashname}.'}=$_tok;
935 0 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 4 branches
BranchTrueFalseTotal
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} < 0 ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
936 '
937 }
938  
939 28 1;
940  
941 package Parse::RecDescent::_Runtime::UncondReject;
942  
943 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
944 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
945 0 ▶sub describe { $_[1] ? '' : $_[0]->{name} }
Subroutine describe: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 0 0
946 0 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
947  
948 sub new ($$$;$)
949 {
950 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=2 SCAR=17.9
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
951 0 bless
952 {
953 "lookahead" => $_[1],
954 "line" => $_[2],
955 "name" => $_[3],
956 }, $class;
957 }
958  
959 # MARK, YOU MAY WANT TO OPTIMIZE THIS.
960  
961  
962 sub code($$$$)
963 {
964 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=4 SCAR=30.0
965  
966 '
967 Parse::RecDescent::_Runtime::_trace(q{>>Rejecting production<< (found '
968 . $self->describe . ')},
969 Parse::RecDescent::_Runtime::_tracefirst($text),
970 q{' . $rule->{name} . '},
971 $tracelevel)
972 if defined $::RD_TRACE;
973 undef $return;
974 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
975  
976 $_tok = undef;
977 ' . ($self->{"lookahead"} ? '$text = $_savetext and ' : '' ) .'
978 last '
979 0 ▶ . ($self->{"lookahead"}<0?'if':'unless') . ' defined $_tok;
Branch: 3 branches
BranchTrueFalseTotal
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} < 0 ? : 0 0 0
980 '
981 }
982  
983 28 1;
984  
985 package Parse::RecDescent::_Runtime::Error;
986  
987 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
988 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
989 0 ▶sub describe { $_[1] ? '' : $_[0]->{commitonly} ? '<error?:...>' : '<error...>' }
Subroutine describe: not called CC=3 SCAR=24.8
Branch: 2 branches
BranchTrueFalseTotal
$_[1] ? : 0 0 0
$_[0]{'commitonly'} ? : 0 0 0
990 0 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
991  
992 sub new ($$$$$)
993 {
994 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=2 SCAR=17.9
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
995 0 bless
996 {
997 "msg" => $_[1],
998 "lookahead" => $_[2],
999 "commitonly" => $_[3],
1000 "line" => $_[4],
1001 }, $class;
1002 }
1003  
1004 sub code($$$$)
1005 {
1006 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=3 SCAR=24.8
1007  
1008 0 my $action = '';
1009  
1010 0 ▶ if ($self->{"msg"}) # ERROR MESSAGE SUPPLIED
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'msg'}) { } 0 0 0
1011 {
1012 #WAS: $action .= "Parse::RecDescent::_Runtime::_error(qq{$self->{msg}}" . ',$thisline);';
1013 0 $action .= 'push @{$thisparser->{errors}}, [qq{'.$self->{msg}.'},$thisline];';
1014  
1015 }
1016 else # GENERATE ERROR MESSAGE DURING PARSE
1017 {
1018 0 $action .= '
1019 my $rule = $item[0];
1020 $rule =~ s/_/ /g;
1021 #WAS: Parse::RecDescent::_Runtime::_error("Invalid $rule: " . $expectation->message() ,$thisline);
1022 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
1023 ';
1024 }
1025  
1026 my $dir =
1027 new Parse::RecDescent::_Runtime::Directive('if (' .
1028 ($self->{"commitonly"} ? '$commit' : '1') .
1029 ") { do {$action} unless ".' $_noactions; undef } else {0}',
1030 0 ▶ $self->{"lookahead"},0,$self->describe);
Branch: 1 branch
BranchTrueFalseTotal
$self->{'commitonly'} ? : 0 0 0
1031 0 $dir->{hashname} = $self->{hashname};
1032 0 return $dir->code($namespace, $rule, 0);
1033 }
1034  
1035 28 1;
1036  
1037 package Parse::RecDescent::_Runtime::Token;
1038  
1039 0 ▶sub sethashname { $_[0]->{hashname} = '__PATTERN' . ++$_[1]->{patcount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
1040  
1041 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
1042 0 ▶sub isterminal { 1 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1043 0 ▶sub describe ($) { shift->{'description'}}
Subroutine describe: not called CC=1 SCAR=6.9
1044  
1045  
1046 # ARGS ARE: $self, $pattern, $left_delim, $modifiers, $lookahead, $linenum
1047 sub new ($$$$$$)
1048 {
1049 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=5 SCAR=34.0
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1050 0 my $pattern = $_[1];
1051 0 my $pat = $_[1];
1052 0 my $ldel = $_[2];
1053 0 my $rdel = $ldel;
1054 0 $rdel =~ tr/{[(</}])>/;
1055  
1056 0 my $mod = $_[3];
1057  
1058 0 my $desc;
1059  
1060 0 ▶ if ($ldel eq '/') { $desc = "$ldel$pattern$rdel$mod" }
Branch: 1 branch
BranchTrueFalseTotal
if ($ldel eq '/') { } 0 0 0
1061 0 else { $desc = "m$ldel$pattern$rdel$mod" }
1062 0 $desc =~ s/\\/\\\\/g;
1063 0 $desc =~ s/\$$/\\\$/g;
1064 0 $desc =~ s/}/\\}/g;
1065 0 $desc =~ s/{/\\{/g;
1066  
1067 0 ▶ if (!eval "no strict;
Branch: 1 branch
BranchTrueFalseTotal
if (not eval "no strict;\n local \$SIG{__WARN__} = sub {0};\n '' =~ m$ldel$pattern$rdel$mod" and $@) 0 0 0
Condition0%0/3
not eval "no strict;\n local \$SIG{__WARN__} = sub {0};\n '' =~ m$ldel$pattern$rdel$mod" and $@
!ll&&!rl&&r
000
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 table0%0/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
1068 local \$SIG{__WARN__} = sub {0};
1069 '' =~ m$ldel$pattern$rdel$mod" and $@)
1070 {
1071 0 Parse::RecDescent::_Runtime::_warn(3, "Token pattern \"m$ldel$pattern$rdel$mod\"
1072 may not be a valid regular expression",
1073 $_[5]);
1074 0 $@ =~ s/ at \(eval.*/./;
1075 0 Parse::RecDescent::_Runtime::_hint($@);
1076 }
1077  
1078 # QUIETLY PREVENT (WELL-INTENTIONED) CALAMITY
1079 0 $mod =~ s/[gc]//g;
1080 0 $pattern =~ s/(\A|[^\\])\\G/$1/g;
1081  
1082 0 bless
1083 {
1084 "pattern" => $pattern,
1085 "ldelim" => $ldel,
1086 "rdelim" => $rdel,
1087 "mod" => $mod,
1088 "lookahead" => $_[4],
1089 "line" => $_[5],
1090 "description" => $desc,
1091 }, $class;
1092 }
1093  
1094  
1095 sub code($$$$$)
1096 {
1097 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=8 SCAR=42.8
1098 0 my $ldel = $self->{"ldelim"};
1099 0 my $rdel = $self->{"rdelim"};
1100 0 my $sdel = $ldel;
1101 0 my $mod = $self->{"mod"};
1102  
1103 0 $sdel =~ s/[[{(<]/{}/;
1104  
1105 my $code = '
1106 Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [' . $self->describe
1107 . ']}, Parse::RecDescent::_Runtime::_tracefirst($text),
1108 q{' . $rule->{name} . '},
1109 $tracelevel)
1110 if defined $::RD_TRACE;
1111 undef $lastsep;
1112 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1113 : $self->describe ) . '})->at($text);
1114 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1115  
1116 ' . ($self->{"lookahead"}<0?'if':'unless')
1117 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1118 . ($check->{itempos}? 'do {'.Parse::RecDescent::_Runtime::Production::incitempos().' 1} and ' : '')
1119 . ' $text =~ m' . $ldel . '\A(?:' . $self->{"pattern"} . ')' . $rdel . $mod . ')
1120 {
1121 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;') .
1122 ($check->{itempos} ? Parse::RecDescent::_Runtime::Production::unincitempos() : '') . '
1123 $expectation->failed();
1124 Parse::RecDescent::_Runtime::_trace(q{<<Didn\'t match terminal>>},
1125 Parse::RecDescent::_Runtime::_tracefirst($text))
1126 if defined $::RD_TRACE;
1127  
1128 last;
1129 }
1130 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1131 substr($text,0,length($current_match),q{});
1132 Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
1133 . $current_match . q{])},
1134 Parse::RecDescent::_Runtime::_tracefirst($text))
1135 if defined $::RD_TRACE;
1136 push @item, $item{'.$self->{hashname}.'}=$current_match;
1137 0 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 7 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} < 0 ? : 0 0 0
$check->{'itempos'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$check->{'itempos'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
1138 ';
1139  
1140 0 return $code;
1141 }
1142  
1143 28 1;
1144  
1145 package Parse::RecDescent::_Runtime::Literal;
1146  
1147 0 ▶sub sethashname { $_[0]->{hashname} = '__STRING' . ++$_[1]->{strcount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
1148  
1149 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
1150 0 ▶sub isterminal { 1 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1151 0 ▶sub describe ($) { shift->{'description'} }
Subroutine describe: not called CC=1 SCAR=6.9
1152  
1153 sub new ($$$$)
1154 {
1155 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=2 SCAR=17.9
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1156  
1157 0 my $pattern = $_[1];
1158  
1159 0 my $desc = $pattern;
1160 0 $desc=~s/\\/\\\\/g;
1161 0 $desc=~s/}/\\}/g;
1162 0 $desc=~s/{/\\{/g;
1163  
1164 0 bless
1165 {
1166 "pattern" => $pattern,
1167 "lookahead" => $_[2],
1168 "line" => $_[3],
1169 "description" => "'$desc'",
1170 }, $class;
1171 }
1172  
1173  
1174 sub code($$$$)
1175 {
1176 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=8 SCAR=42.8
1177  
1178 my $code = '
1179 Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [' . $self->describe
1180 . ']},
1181 Parse::RecDescent::_Runtime::_tracefirst($text),
1182 q{' . $rule->{name} . '},
1183 $tracelevel)
1184 if defined $::RD_TRACE;
1185 undef $lastsep;
1186 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1187 : $self->describe ) . '})->at($text);
1188 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1189  
1190 ' . ($self->{"lookahead"}<0?'if':'unless')
1191 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1192 . ($check->{itempos}? 'do {'.Parse::RecDescent::_Runtime::Production::incitempos().' 1} and ' : '')
1193 . ' $text =~ m/\A' . quotemeta($self->{"pattern"}) . '/)
1194 {
1195 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;').'
1196 '. ($check->{itempos} ? Parse::RecDescent::_Runtime::Production::unincitempos() : '') . '
1197 $expectation->failed();
1198 Parse::RecDescent::_Runtime::_trace(qq{<<Didn\'t match terminal>>},
1199 Parse::RecDescent::_Runtime::_tracefirst($text))
1200 if defined $::RD_TRACE;
1201 last;
1202 }
1203 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1204 substr($text,0,length($current_match),q{});
1205 Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
1206 . $current_match . q{])},
1207 Parse::RecDescent::_Runtime::_tracefirst($text))
1208 if defined $::RD_TRACE;
1209 push @item, $item{'.$self->{hashname}.'}=$current_match;
1210 0 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 7 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} < 0 ? : 0 0 0
$check->{'itempos'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$check->{'itempos'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
1211 ';
1212  
1213 0 return $code;
1214 }
1215  
1216 28 1;
1217  
1218 package Parse::RecDescent::_Runtime::InterpLit;
1219  
1220 0 ▶sub sethashname { $_[0]->{hashname} = '__STRING' . ++$_[1]->{strcount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
1221  
1222 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
1223 0 ▶sub isterminal { 1 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1224 0 ▶sub describe ($) { shift->{'description'} }
Subroutine describe: not called CC=1 SCAR=6.9
1225  
1226 sub new ($$$$)
1227 {
1228 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=2 SCAR=17.9
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1229  
1230 0 my $pattern = $_[1];
1231 0 $pattern =~ s#/#\\/#g;
1232  
1233 0 my $desc = $pattern;
1234 0 $desc=~s/\\/\\\\/g;
1235 0 $desc=~s/}/\\}/g;
1236 0 $desc=~s/{/\\{/g;
1237  
1238 0 bless
1239 {
1240 "pattern" => $pattern,
1241 "lookahead" => $_[2],
1242 "line" => $_[3],
1243 "description" => "'$desc'",
1244 }, $class;
1245 }
1246  
1247 sub code($$$$)
1248 {
1249 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=8 SCAR=42.8
1250  
1251 my $code = '
1252 Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [' . $self->describe
1253 . ']},
1254 Parse::RecDescent::_Runtime::_tracefirst($text),
1255 q{' . $rule->{name} . '},
1256 $tracelevel)
1257 if defined $::RD_TRACE;
1258 undef $lastsep;
1259 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1260 : $self->describe ) . '})->at($text);
1261 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1262  
1263 ' . ($self->{"lookahead"}<0?'if':'unless')
1264 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1265 . ($check->{itempos}? 'do {'.Parse::RecDescent::_Runtime::Production::incitempos().' 1} and ' : '')
1266 . ' do { $_tok = "' . $self->{"pattern"} . '"; 1 } and
1267 substr($text,0,length($_tok)) eq $_tok and
1268 do { substr($text,0,length($_tok)) = ""; 1; }
1269 )
1270 {
1271 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;').'
1272 '. ($check->{itempos} ? Parse::RecDescent::_Runtime::Production::unincitempos() : '') . '
1273 $expectation->failed();
1274 Parse::RecDescent::_Runtime::_trace(q{<<Didn\'t match terminal>>},
1275 Parse::RecDescent::_Runtime::_tracefirst($text))
1276 if defined $::RD_TRACE;
1277 last;
1278 }
1279 Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
1280 . $_tok . q{])},
1281 Parse::RecDescent::_Runtime::_tracefirst($text))
1282 if defined $::RD_TRACE;
1283 push @item, $item{'.$self->{hashname}.'}=$_tok;
1284 0 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 7 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} < 0 ? : 0 0 0
$check->{'itempos'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$check->{'itempos'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
1285 ';
1286  
1287 0 return $code;
1288 }
1289  
1290 28 1;
1291  
1292 package Parse::RecDescent::_Runtime::Subrule;
1293  
1294 0 ▶sub issubrule ($) { return $_[0]->{"subrule"} }
Subroutine issubrule: not called CC=1 SCAR=6.9
1295 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1296 ▶sub sethashname {}
Subroutine sethashname: not called CC=1 SCAR=0.0
1297  
1298 sub describe ($)
1299 {
1300 0 ▶ my $desc = $_[0]->{"implicit"} || $_[0]->{"subrule"};
Subroutine describe: not called CC=3 SCAR=24.8
Condition0%0/3
$_[0]{'implicit'} || $_[0]{'subrule'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[0]{'implicit'} || $_[0]{'subrule'}
$_[0]{'implicit'} $_[0]{'subrule'}
Truth table0%0/3
A || B
A= $_[0]{'implicit'}B= $_[0]{'subrule'}
ABresult
1X1
011
000
1301 0 ▶ $desc = "<matchrule:$desc>" if $_[0]->{"matchrule"};
Branch: 1 branch
BranchTrueFalseTotal
if $_[0]{"matchrule"} 0 0 0
1302 0 return $desc;
1303 }
1304  
1305 sub callsyntax($$)
1306 {
1307 0 ▶ if ($_[0]->{"matchrule"})
Subroutine callsyntax: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0]{'matchrule'}) { } 0 0 0
1308 {
1309 0 return "&{'$_[1]'.qq{$_[0]->{subrule}}}";
1310 }
1311 else
1312 {
1313 0 return $_[1].$_[0]->{"subrule"};
1314 }
1315 }
1316  
1317 sub new ($$$$;$$$)
1318 {
1319 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=4 SCAR=30.0
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1320 0 ▶ bless
Condition0%0/4
$_[4] || undef
l!l
00
$_[6] || undef
l!l
00
MC/DC0%0/1
$_[4] || undef
$_[4]
MC/DC0%0/1
$_[6] || undef
$_[6]
Truth table0%0/2
A
A= $_[4]
Aresult
11
00
Truth table0%0/2
A
A= $_[6]
Aresult
11
00
1321 {
1322 "subrule" => $_[1],
1323 "lookahead" => $_[2],
1324 "line" => $_[3],
1325 "implicit" => $_[4] || undef,
1326 "matchrule" => $_[5],
1327 "argcode" => $_[6] || undef,
1328 }, $class;
1329 }
1330  
1331  
1332 sub code($$$$)
1333 {
1334 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=9 SCAR=45.0
1335  
1336 '
1337 Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [' . $self->{"subrule"} . ']},
1338 Parse::RecDescent::_Runtime::_tracefirst($text),
1339 q{' . $rule->{"name"} . '},
1340 $tracelevel)
1341 if defined $::RD_TRACE;
1342 if (1) { no strict qw{refs};
1343 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1344 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1345 : 'q{'.$self->describe.'}' ) . ')->at($text);
1346 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' )
1347 . ($self->{"lookahead"}<0?'if':'unless')
1348 . ' (defined ($_tok = '
1349 . $self->callsyntax($namespace.'::')
1350 . '($thisparser,$text,$repeating,'
1351 . ($self->{"lookahead"}?'1':'$_noactions')
1352 . ($self->{argcode} ? ",sub { return $self->{argcode} }"
1353 : ',sub { \\@arg }')
1354 . ($check->{"itempos"}?',$itempos[$#itempos]':',undef')
1355 . ')))
1356 {
1357 '.($self->{"lookahead"} ? '$text = $_savetext;' : '').'
1358 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' subrule: ['
1359 . $self->{subrule} . ']>>},
1360 Parse::RecDescent::_Runtime::_tracefirst($text),
1361 q{' . $rule->{"name"} .'},
1362 $tracelevel)
1363 if defined $::RD_TRACE;
1364 $expectation->failed();
1365 last;
1366 }
1367 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' subrule: ['
1368 . $self->{subrule} . ']<< (return value: [}
1369 . $_tok . q{]},
1370  
1371 Parse::RecDescent::_Runtime::_tracefirst($text),
1372 q{' . $rule->{"name"} .'},
1373 $tracelevel)
1374 if defined $::RD_TRACE;
1375 $item{q{' . $self->{subrule} . '}} = $_tok;
1376 push @item, $_tok;
1377 0 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 8 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} < 0 ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'argcode'} ? : 0 0 0
$check->{'itempos'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
1378 }
1379 '
1380 }
1381  
1382 package Parse::RecDescent::_Runtime::Repetition;
1383  
1384 0 ▶sub issubrule ($) { return $_[0]->{"subrule"} }
Subroutine issubrule: not called CC=1 SCAR=6.9
1385 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1386 ▶sub sethashname { }
Subroutine sethashname: not called CC=1 SCAR=0.0
1387  
1388 sub describe ($)
1389 {
1390 0 ▶ my $desc = $_[0]->{"expected"} || $_[0]->{"subrule"};
Subroutine describe: not called CC=3 SCAR=24.8
Condition0%0/3
$_[0]{'expected'} || $_[0]{'subrule'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[0]{'expected'} || $_[0]{'subrule'}
$_[0]{'expected'} $_[0]{'subrule'}
Truth table0%0/3
A || B
A= $_[0]{'expected'}B= $_[0]{'subrule'}
ABresult
1X1
011
000
1391 0 ▶ $desc = "<matchrule:$desc>" if $_[0]->{"matchrule"};
Branch: 1 branch
BranchTrueFalseTotal
if $_[0]{"matchrule"} 0 0 0
1392 0 return $desc;
1393 }
1394  
1395 sub callsyntax($$)
1396 {
1397 0 ▶ if ($_[0]->{matchrule})
Subroutine callsyntax: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0]{'matchrule'}) { } 0 0 0
1398 0 { return "sub { goto &{''.qq{$_[1]$_[0]->{subrule}}} }"; }
1399 else
1400 0 { return "\\&$_[1]$_[0]->{subrule}"; }
1401 }
1402  
1403 sub new ($$$$$$$$$$)
1404 {
1405 0 ▶ my ($self, $subrule, $repspec, $min, $max, $lookahead, $line, $parser, $matchrule, $argcode) = @_;
Subroutine new: not called CC=7 SCAR=40.3
1406 0 ▶ my $class = ref($self) || $self;
Condition0%0/3
ref $self || $self
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $self || $self
ref $self $self
Truth table0%0/3
A || B
A= ref $selfB= $self
ABresult
1X1
011
000
1407 0 ▶ ($max, $min) = ( $min, $max) if ($max<$min);
Branch: 1 branch
BranchTrueFalseTotal
if $max < $min 0 0 0
1408  
1409 0 my $desc;
1410 0 ▶ if ($subrule=~/\A_alternation_\d+_of_production_\d+_of_rule/)
Branch: 1 branch
BranchTrueFalseTotal
if ($subrule =~ /\A_alternation_\d+_of_production_\d+_of_rule/) 0 0 0
1411 0 { $desc = $parser->{"rules"}{$subrule}->expected }
1412  
1413 0 ▶ if ($lookahead)
Branch: 1 branch
BranchTrueFalseTotal
if ($lookahead) 0 0 0
1414 {
1415 0 ▶ if ($min>0)
Branch: 1 branch
BranchTrueFalseTotal
if ($min > 0) { } 0 0 0
1416 {
1417 0 return new Parse::RecDescent::_Runtime::Subrule($subrule,$lookahead,$line,$desc,$matchrule,$argcode);
1418 }
1419 else
1420 {
1421 0 Parse::RecDescent::_Runtime::_error("Not symbol (\"!\") before
1422 \"$subrule\" doesn't make
1423 sense.",$line);
1424 0 Parse::RecDescent::_Runtime::_hint("Lookahead for negated optional
1425 repetitions (such as
1426 \"!$subrule($repspec)\" can never
1427 succeed, since optional items always
1428 match (zero times at worst).
1429 Did you mean a single \"!$subrule\",
1430 instead?");
1431 }
1432 }
1433 bless
1434 {
1435 0 ▶ "subrule" => $subrule,
Condition0%0/2
$argcode || undef
l!l
00
MC/DC0%0/1
$argcode || undef
$argcode
Truth table0%0/2
A
A= $argcode
Aresult
11
00
1436 "repspec" => $repspec,
1437 "min" => $min,
1438 "max" => $max,
1439 "lookahead" => $lookahead,
1440 "line" => $line,
1441 "expected" => $desc,
1442 "argcode" => $argcode || undef,
1443 "matchrule" => $matchrule,
1444 }, $class;
1445 }
1446  
1447 sub code($$$$)
1448 {
1449 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=7 SCAR=40.3
1450  
1451 my ($subrule, $repspec, $min, $max, $lookahead) =
1452 0 @{$self}{ qw{subrule repspec min max lookahead} };
1453  
1454 '
1455 Parse::RecDescent::_Runtime::_trace(q{Trying repeated subrule: [' . $self->describe . ']},
1456 Parse::RecDescent::_Runtime::_tracefirst($text),
1457 q{' . $rule->{"name"} . '},
1458 $tracelevel)
1459 if defined $::RD_TRACE;
1460 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1461 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1462 : 'q{'.$self->describe.'}' ) . ')->at($text);
1463 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
1464 unless (defined ($_tok = $thisparser->_parserepeat($text, '
1465 . $self->callsyntax($namespace.'::')
1466 . ', ' . $min . ', ' . $max . ', '
1467 . ($self->{"lookahead"}?'1':'$_noactions')
1468 . ',$expectation,'
1469 . ($self->{argcode} ? "sub { return $self->{argcode} }"
1470 : 'sub { \\@arg }')
1471 . ($check->{"itempos"}?',$itempos[$#itempos]':',undef')
1472 . ')))
1473 {
1474 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' repeated subrule: ['
1475 . $self->describe . ']>>},
1476 Parse::RecDescent::_Runtime::_tracefirst($text),
1477 q{' . $rule->{"name"} .'},
1478 $tracelevel)
1479 if defined $::RD_TRACE;
1480 last;
1481 }
1482 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' repeated subrule: ['
1483 . $self->{subrule} . ']<< (}
1484 . @$_tok . q{ times)},
1485  
1486 Parse::RecDescent::_Runtime::_tracefirst($text),
1487 q{' . $rule->{"name"} .'},
1488 $tracelevel)
1489 if defined $::RD_TRACE;
1490 $item{q{' . "$self->{subrule}($self->{repspec})" . '}} = $_tok;
1491 push @item, $_tok;
1492 0 ▶ ' . ($self->{"lookahead"} ? '$text = $_savetext;' : '' ) .'
Branch: 6 branches
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
$self->{'argcode'} ? : 0 0 0
$check->{'itempos'} ? : 0 0 0
$self->{'lookahead'} ? : 0 0 0
1493  
1494 '
1495 }
1496  
1497 package Parse::RecDescent::_Runtime::Result;
1498  
1499 0 ▶sub issubrule { 0 }
Subroutine issubrule: not called CC=1 SCAR=6.9
1500 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1501 0 ▶sub describe { '' }
Subroutine describe: not called CC=1 SCAR=6.9
1502  
1503 sub new
1504 {
1505 0 ▶ my ($class, $pos) = @_;
Subroutine new: not called CC=1 SCAR=6.9
1506  
1507 0 bless {}, $class;
1508 }
1509  
1510 sub code($$$$)
1511 {
1512 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=1 SCAR=6.9
1513  
1514 0 '
1515 $return = $item[-1];
1516 ';
1517 }
1518  
1519 package Parse::RecDescent::_Runtime::Operator;
1520  
1521 28 my @opertype = ( " non-optional", "n optional" );
1522  
1523 0 ▶sub issubrule { 0 }
Subroutine issubrule: not called CC=1 SCAR=6.9
1524 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1525  
1526 0 ▶sub describe { $_[0]->{"expected"} }
Subroutine describe: not called CC=1 SCAR=6.9
1527 0 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
1528  
1529  
1530 sub new
1531 {
1532 0 ▶ my ($class, $type, $minrep, $maxrep, $leftarg, $op, $rightarg) = @_;
Subroutine new: not called CC=1 SCAR=6.9
1533  
1534 0 bless
1535 {
1536 "type" => "${type}op",
1537 "leftarg" => $leftarg,
1538 "op" => $op,
1539 "min" => $minrep,
1540 "max" => $maxrep,
1541 "rightarg" => $rightarg,
1542 "expected" => "<${type}op: ".$leftarg->describe." ".$op->describe." ".$rightarg->describe.">",
1543 }, $class;
1544 }
1545  
1546 sub code($$$$)
1547 {
1548 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=15 SCAR=54.8
1549  
1550 0 my @codeargs = @_[1..$#_];
1551  
1552 my ($leftarg, $op, $rightarg) =
1553 0 @{$self}{ qw{leftarg op rightarg} };
1554  
1555 my $code = '
1556 Parse::RecDescent::_Runtime::_trace(q{Trying operator: [' . $self->describe . ']},
1557 Parse::RecDescent::_Runtime::_tracefirst($text),
1558 0 ▶ q{' . $rule->{"name"} . '},
Branch: 1 branch
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 0 0 0
1559 $tracelevel)
1560 if defined $::RD_TRACE;
1561 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1562 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1563 : 'q{'.$self->describe.'}' ) . ')->at($text);
1564  
1565 $_tok = undef;
1566 OPLOOP: while (1)
1567 {
1568 $repcount = 0;
1569 my @item;
1570 my %item;
1571 ';
1572  
1573 $code .= '
1574 my $_itempos = $itempos[-1];
1575 my $itemposfirst;
1576 0 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 0 0 0
1577  
1578 0 ▶ if ($self->{type} eq "leftop" )
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'type'} eq 'leftop') { } 0 0 0
1579 {
1580 0 $code .= '
1581 # MATCH LEFTARG
1582 ' . $leftarg->code(@codeargs) . '
1583  
1584 ';
1585  
1586 $code .= '
1587 if (defined($_itempos) and !defined($itemposfirst))
1588 {
1589 $itemposfirst = Parse::RecDescent::_Runtime::Production::_duplicate_itempos($_itempos);
1590 }
1591 0 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 0 0 0
1592  
1593 $code .= '
1594 $repcount++;
1595  
1596 my $savetext = $text;
1597 my $backtrack;
1598  
1599 # MATCH (OP RIGHTARG)(s)
1600 while ($repcount < ' . $self->{max} . ')
1601 {
1602 $backtrack = 0;
1603 ' . $op->code(@codeargs) . '
1604 ' . ($op->isterminal() ? 'pop @item;' : '$backtrack=1;' ) . '
1605 ' . (ref($op) eq 'Parse::RecDescent::_Runtime::Token'
1606 0 ▶ ? 'if (defined $1) {push @item, $item{'.($self->{name}||$self->{hashname}).'}=$1; $backtrack=1;}'
Branch: 2 branches
BranchTrueFalseTotal
$op->isterminal ? : 0 0 0
ref $op eq 'Parse::RecDescent::_Runtime::Token' ? : 0 0 0
Condition0%0/3
$self->{'name'} || $self->{'hashname'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{'name'} || $self->{'hashname'}
$self->{'name'} $self->{'hashname'}
Truth table0%0/3
A || B
A= $self->{'name'}B= $self->{'hashname'}
ABresult
1X1
011
000
1607 : "" ) . '
1608 ' . $rightarg->code(@codeargs) . '
1609 $savetext = $text;
1610 $repcount++;
1611 }
1612 $text = $savetext;
1613 pop @item if $backtrack;
1614  
1615 ';
1616 }
1617 else
1618 {
1619 $code .= '
1620 my $savetext = $text;
1621 my $backtrack;
1622 # MATCH (LEFTARG OP)(s)
1623 0 while ($repcount < ' . $self->{max} . ')
1624 {
1625 $backtrack = 0;
1626 ' . $leftarg->code(@codeargs) . '
1627 ';
1628 $code .= '
1629 if (defined($_itempos) and !defined($itemposfirst))
1630 {
1631 $itemposfirst = Parse::RecDescent::_Runtime::Production::_duplicate_itempos($_itempos);
1632 }
1633 0 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 0 0 0
1634  
1635 $code .= '
1636 $repcount++;
1637 $backtrack = 1;
1638 ' . $op->code(@codeargs) . '
1639 $savetext = $text;
1640 ' . ($op->isterminal() ? 'pop @item;' : "" ) . '
1641 0 ▶ ' . (ref($op) eq 'Parse::RecDescent::_Runtime::Token' ? 'do { push @item, $item{'.($self->{name}||$self->{hashname}).'}=$1; } if defined $1;' : "" ) . '
Branch: 2 branches
BranchTrueFalseTotal
$op->isterminal ? : 0 0 0
ref $op eq 'Parse::RecDescent::_Runtime::Token' ? : 0 0 0
Condition0%0/3
$self->{'name'} || $self->{'hashname'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{'name'} || $self->{'hashname'}
$self->{'name'} $self->{'hashname'}
Truth table0%0/3
A || B
A= $self->{'name'}B= $self->{'hashname'}
ABresult
1X1
011
000
1642 }
1643 $text = $savetext;
1644 pop @item if $backtrack;
1645  
1646 # MATCH RIGHTARG
1647 ' . $rightarg->code(@codeargs) . '
1648 $repcount++;
1649 ';
1650 }
1651  
1652 0 ▶ $code .= 'unless (@item) { undef $_tok; last }' unless $self->{min}==0;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"min"} == 0 0 0 0
1653  
1654 0 $code .= '
1655 $_tok = [ @item ];
1656 ';
1657  
1658  
1659 $code .= '
1660 if (defined $itemposfirst)
1661 {
1662 Parse::RecDescent::_Runtime::Production::_update_itempos(
1663 $_itempos, $itemposfirst, undef, [qw(from)]);
1664 }
1665 0 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 0 0 0
1666  
1667 0 $code .= '
1668 last;
1669 } # end of OPLOOP
1670 ';
1671  
1672 $code .= '
1673 unless ($repcount>='.$self->{min}.')
1674 {
1675 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' operator: ['
1676 . $self->describe
1677 . ']>>},
1678 Parse::RecDescent::_Runtime::_tracefirst($text),
1679 q{' . $rule->{"name"} .'},
1680 $tracelevel)
1681 if defined $::RD_TRACE;
1682 $expectation->failed();
1683 last;
1684 }
1685 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' operator: ['
1686 . $self->describe
1687 . ']<< (return value: [}
1688 . qq{@{$_tok||[]}} . q{]},
1689 Parse::RecDescent::_Runtime::_tracefirst($text),
1690 q{' . $rule->{"name"} .'},
1691 $tracelevel)
1692 if defined $::RD_TRACE;
1693  
1694 0 ▶ push @item, $item{'.($self->{name}||$self->{hashname}).'}=$_tok||[];
Condition0%0/3
$self->{'name'} || $self->{'hashname'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$self->{'name'} || $self->{'hashname'}
$self->{'name'} $self->{'hashname'}
Truth table0%0/3
A || B
A= $self->{'name'}B= $self->{'hashname'}
ABresult
1X1
011
000
1695 ';
1696  
1697 0 return $code;
1698 }
1699  
1700  
1701 package Parse::RecDescent::_Runtime::Expectation;
1702  
1703 sub new ($)
1704 {
1705 10378 ▶ bless {
Subroutine new: called CC=1 SCAR=0.0
1706 "failed" => 0,
1707 "expected" => "",
1708 "unexpected" => "",
1709 "lastexpected" => "",
1710 "lastunexpected" => "",
1711 "defexpected" => $_[1],
1712 };
1713 }
1714  
1715 sub is ($$)
1716 {
1717 20389 ▶ $_[0]->{lastexpected} = $_[1]; return $_[0];
Subroutine is: called CC=1 SCAR=0.0
1718 }
1719  
1720 sub at ($$)
1721 {
1722 30767 ▶ $_[0]->{lastunexpected} = $_[1]; return $_[0];
Subroutine at: called CC=1 SCAR=0.0
1723 }
1724  
1725 sub failed ($)
1726 {
1727 10804 ▶ return unless $_[0]->{lastexpected};
Subroutine failed: called CC=4 SCAR=14.2
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"lastexpected"} 9632 1172 10804
1728 1172 ▶ $_[0]->{expected} = $_[0]->{lastexpected} unless $_[0]->{failed};
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"failed"} 1172 0 1172
1729 1172 ▶ $_[0]->{unexpected} = $_[0]->{lastunexpected} unless $_[0]->{failed};
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"failed"} 1172 0 1172
1730 1172 $_[0]->{failed} = 1;
1731 }
1732  
1733 sub message ($)
1734 {
1735 0 ▶ my ($self) = @_;
Subroutine message: not called CC=4 SCAR=30.0
1736 0 ▶ $self->{expected} = $self->{defexpected} unless $self->{expected};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"expected"} 0 0 0
1737 0 $self->{expected} =~ s/_/ /g;
1738 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
1739 {
1740 0 return "Was expecting $self->{expected}";
1741 }
1742 else
1743 {
1744 0 $self->{unexpected} =~ /\s*(.*)/;
1745 0 return "Was expecting $self->{expected} but found \"$1\" instead";
1746 }
1747 }
1748  
1749 28 1;
1750  
1751 package Parse::RecDescent::_Runtime;
1752  
1753 28 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
1754 28 ▶use vars qw ( $AUTOLOAD $VERSION $_FILENAME);
Subroutine BEGIN: called CC=1 SCAR=0.0
1755  
1756 28 my $ERRORS = 0;
1757  
1758 28 our $VERSION = '1.967009';
1759 28 $VERSION = eval $VERSION;
1760 28 $_FILENAME=__FILE__;
1761  
1762 # BUILDING A PARSER
1763  
1764 28 my $nextnamespace = "namespace000001";
1765  
1766 sub _nextnamespace()
1767 {
1768 0 ▶ return "Parse::RecDescent::_Runtime::" . $nextnamespace++;
Subroutine _nextnamespace: not called CC=1 SCAR=6.9
1769 }
1770  
1771 # ARGS ARE: $class, $grammar, $compiling, $namespace
1772 sub new ($$$$)
1773 {
1774 0 ▶ my $class = ref($_[0]) || $_[0];
Subroutine new: not called CC=5 SCAR=34.0
Condition0%0/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0] $_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
ABresult
1X1
011
000
1775 0 local $Parse::RecDescent::_Runtime::compiling = $_[2];
1776 0 ▶ my $name_space_name = defined $_[3]
Branch: 1 branch
BranchTrueFalseTotal
defined $_[3] ? : 0 0 0
1777 ? "Parse::RecDescent::_Runtime::".$_[3]
1778 : _nextnamespace();
1779 0 my $self =
1780 {
1781 "rules" => {},
1782 "namespace" => $name_space_name,
1783 "startcode" => '',
1784 "localvars" => '',
1785 "_AUTOACTION" => undef,
1786 "_AUTOTREE" => undef,
1787  
1788 # Precompiled parsers used to set _precompiled, but that
1789 # wasn't present in some versions of Parse::RecDescent::_Runtime used to
1790 # build precompiled parsers. Instead, set a new
1791 # _not_precompiled flag, which is remove from future
1792 # Precompiled parsers at build time.
1793 "_not_precompiled" => 1,
1794 };
1795  
1796  
1797 0 ▶ if ($::RD_AUTOACTION) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::RD_AUTOACTION) 0 0 0
1798 0 my $sourcecode = $::RD_AUTOACTION;
1799 0 ▶ $sourcecode = "{ $sourcecode }"
Branch: 1 branch
BranchTrueFalseTotal
unless $sourcecode =~ /\A\s*\{.*\}\s*\Z/ 0 0 0
1800 unless $sourcecode =~ /\A\s*\{.*\}\s*\Z/;
1801 $self->{_check}{itempos} =
1802 0 $sourcecode =~ /\@itempos\b|\$itempos\s*\[/;
1803 $self->{_AUTOACTION}
1804 0 = new Parse::RecDescent::_Runtime::Action($sourcecode,0,-1)
1805 }
1806  
1807 0 bless $self, $class;
1808 0 return $self->Replace($_[1])
1809 }
1810  
1811 sub Compile($$$$) {
1812 0 ▶ die "Compilation of Parse::RecDescent::_Runtime grammars not yet implemented\n";
Subroutine Compile: not called CC=1 SCAR=6.9
1813 }
1814  
1815 sub DESTROY {
1816 17 ▶ my ($self) = @_;
Subroutine DESTROY: called CC=4 SCAR=20.9
1817 17 my $namespace = $self->{namespace};
1818 17 $namespace =~ s/Parse::RecDescent::_Runtime:://;
1819 17 ▶ if ($self->{_not_precompiled}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"_not_precompiled"}) 0 17 17
1820 # BEGIN WORKAROUND
1821 # Perl has a bug that creates a circular reference between
1822 # @ISA and that variable's stash:
1823 # https://rt.perl.org/rt3/Ticket/Display.html?id=92708
1824 # Emptying the array before deleting the stash seems to
1825 # prevent the leak. Once the ticket above has been resolved,
1826 # these two lines can be removed.
1827 28 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
1828 0 @{$self->{namespace} . '::ISA'} = ();
1829 # END WORKAROUND
1830  
1831 # Some grammars may contain circular references between rules,
1832 # such as:
1833 # a: 'ID' | b
1834 # b: '(' a ')'
1835 # Unless these references are broken, the subs stay around on
1836 # stash deletion below. Iterate through the stash entries and
1837 # for each defined code reference, set it to reference sub {}
1838 # instead.
1839 {
1840 0 local $^W; # avoid 'sub redefined' warnings.
1841 0 ▶ my $blank_sub = sub {};
Subroutine __ANON__: not called CC=1 SCAR=6.9
1842 0 ▶ while (my ($name, $glob) = each %{"Parse::RecDescent::_Runtime::$namespace\::"}) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %{"Parse::RecDescent::_Runtime::${namespace}::";}) 0 0 0
1843 0 ▶ *$glob = $blank_sub if defined &$glob;
Branch: 1 branch
BranchTrueFalseTotal
if defined &$glob 0 0 0
1844 }
1845 }
1846  
1847 # Delete the namespace's stash
1848 0 delete $Parse::RecDescent::_Runtime::{$namespace.'::'};
1849 }
1850 }
1851  
1852 # BUILDING A GRAMMAR....
1853  
1854 # ARGS ARE: $self, $grammar, $isimplicit, $isleftop
1855 sub Replace ($$)
1856 {
1857 # set $replace = 1 for _generate
1858 0 ▶ splice(@_, 2, 0, 1);
Subroutine Replace: not called CC=1 SCAR=6.9
1859  
1860 0 return _generate(@_);
1861 }
1862  
1863 # ARGS ARE: $self, $grammar, $isimplicit, $isleftop
1864 sub Extend ($$)
1865 {
1866 # set $replace = 0 for _generate
1867 0 ▶ splice(@_, 2, 0, 0);
Subroutine Extend: not called CC=1 SCAR=6.9
1868  
1869 0 return _generate(@_);
1870 }
1871  
1872 sub _no_rule ($$;$)
1873 {
1874 0 ▶ _error("Ruleless $_[0] at start of grammar.",$_[1]);
Subroutine _no_rule: not called CC=2 SCAR=17.9
1875 0 ▶ my $desc = $_[2] ? "\"$_[2]\"" : "";
Branch: 1 branch
BranchTrueFalseTotal
$_[2] ? : 0 0 0
1876 0 _hint("You need to define a rule for the $_[0] $desc
1877 to be part of.");
1878 }
1879  
1880 28 my $NEGLOOKAHEAD = '\G(\s*\.\.\.\!)';
1881 28 my $POSLOOKAHEAD = '\G(\s*\.\.\.)';
1882 28 my $RULE = '\G\s*(\w+)[ \t]*:';
1883 28 my $PROD = '\G\s*([|])';
1884 28 my $TOKEN = q{\G\s*/((\\\\/|\\\\\\\\|[^/])*)/([cgimsox]*)};
1885 28 my $MTOKEN = q{\G\s*(m\s*[^\w\s])};
1886 28 my $LITERAL = q{\G\s*'((\\\\['\\\\]|[^'])*)'};
1887 28 my $INTERPLIT = q{\G\s*"((\\\\["\\\\]|[^"])*)"};
1888 28 my $SUBRULE = '\G\s*(\w+)';
1889 28 my $MATCHRULE = '\G(\s*<matchrule:)';
1890 28 my $SIMPLEPAT = '((\\s+/[^/\\\\]*(?:\\\\.[^/\\\\]*)*/)?)';
1891 28 my $OPTIONAL = '\G\((\?)'.$SIMPLEPAT.'\)';
1892 28 my $ANY = '\G\((s\?)'.$SIMPLEPAT.'\)';
1893 28 my $MANY = '\G\((s|\.\.)'.$SIMPLEPAT.'\)';
1894 28 my $EXACTLY = '\G\(([1-9]\d*)'.$SIMPLEPAT.'\)';
1895 28 my $BETWEEN = '\G\((\d+)\.\.([1-9]\d*)'.$SIMPLEPAT.'\)';
1896 28 my $ATLEAST = '\G\((\d+)\.\.'.$SIMPLEPAT.'\)';
1897 28 my $ATMOST = '\G\(\.\.([1-9]\d*)'.$SIMPLEPAT.'\)';
1898 28 my $BADREP = '\G\((-?\d+)?\.\.(-?\d+)?'.$SIMPLEPAT.'\)';
1899 28 my $ACTION = '\G\s*\{';
1900 28 my $IMPLICITSUBRULE = '\G\s*\(';
1901 28 my $COMMENT = '\G\s*(#.*)';
1902 28 my $COMMITMK = '\G\s*<commit>';
1903 28 my $UNCOMMITMK = '\G\s*<uncommit>';
1904 28 my $QUOTELIKEMK = '\G\s*<perl_quotelike>';
1905 28 my $CODEBLOCKMK = '\G\s*<perl_codeblock(?:\s+([][()<>{}]+))?>';
1906 28 my $VARIABLEMK = '\G\s*<perl_variable>';
1907 28 my $NOCHECKMK = '\G\s*<nocheck>';
1908 28 my $AUTOACTIONPATMK = '\G\s*<autoaction:';
1909 28 my $AUTOTREEMK = '\G\s*<autotree(?::\s*([\w:]+)\s*)?>';
1910 28 my $AUTOSTUBMK = '\G\s*<autostub>';
1911 28 my $AUTORULEMK = '\G\s*<autorule:(.*?)>';
1912 28 my $REJECTMK = '\G\s*<reject>';
1913 28 my $CONDREJECTMK = '\G\s*<reject:';
1914 28 my $SCOREMK = '\G\s*<score:';
1915 28 my $AUTOSCOREMK = '\G\s*<autoscore:';
1916 28 my $SKIPMK = '\G\s*<skip:';
1917 28 my $OPMK = '\G\s*<(left|right)op(?:=(\'.*?\'))?:';
1918 28 my $ENDDIRECTIVEMK = '\G\s*>';
1919 28 my $RESYNCMK = '\G\s*<resync>';
1920 28 my $RESYNCPATMK = '\G\s*<resync:';
1921 28 my $RULEVARPATMK = '\G\s*<rulevar:';
1922 28 my $DEFERPATMK = '\G\s*<defer:';
1923 28 my $TOKENPATMK = '\G\s*<token:';
1924 28 my $AUTOERRORMK = '\G\s*<error(\??)>';
1925 28 my $MSGERRORMK = '\G\s*<error(\??):';
1926 28 my $NOCHECK = '\G\s*<nocheck>';
1927 28 my $WARNMK = '\G\s*<warn((?::\s*(\d+)\s*)?)>';
1928 28 my $HINTMK = '\G\s*<hint>';
1929 28 my $TRACEBUILDMK = '\G\s*<trace_build((?::\s*(\d+)\s*)?)>';
1930 28 my $TRACEPARSEMK = '\G\s*<trace_parse((?::\s*(\d+)\s*)?)>';
1931 28 my $UNCOMMITPROD = $PROD.'\s*<uncommit';
1932 28 my $ERRORPROD = $PROD.'\s*<error';
1933 28 my $LONECOLON = '\G\s*:';
1934 28 my $OTHER = '\G\s*([^\s]+)';
1935  
1936 28 my @lines = 0;
1937  
1938 sub _generate
1939 {
1940 0 ▶ my ($self, $grammar, $replace, $isimplicit, $isleftop) = (@_, 0);
Subroutine _generate: not called CC=238 SCAR=109.5
1941  
1942 0 my $aftererror = 0;
1943 0 my $lookahead = 0;
1944 0 my $lookaheadspec = "";
1945 0 my $must_pop_lines;
1946 0 ▶ if (! $lines[-1]) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($lines[-1]) 0 0 0
1947 0 push @lines, _linecount($grammar) ;
1948 0 $must_pop_lines = 1;
1949 }
1950 $self->{_check}{itempos} = ($grammar =~ /\@itempos\b|\$itempos\s*\[/)
1951 0 ▶ unless $self->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"_check"}{"itempos"} 0 0 0
1952 0 for (qw(thisoffset thiscolumn prevline prevoffset prevcolumn))
1953 {
1954 $self->{_check}{$_} =
1955 ($grammar =~ /\$$_/) || $self->{_check}{itempos}
1956 0 ▶ unless $self->{_check}{$_};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"_check"}{$_} 0 0 0
Condition0%0/3
$grammar =~ /\$$_/ || $self->{'_check'}{'itempos'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$grammar =~ /\$$_/ || $self->{'_check'}{'itempos'}
$grammar =~ /\$$_/ $self->{'_check'}{'itempos'}
Truth table0%0/3
A || B
A= $grammar =~ /\$$_/B= $self->{'_check'}{'itempos'}
ABresult
1X1
011
000
1957 }
1958 0 my $line;
1959  
1960 0 my $rule = undef;
1961 0 my $prod = undef;
1962 0 my $item = undef;
1963 0 my $lastgreedy = '';
1964 0 pos $grammar = 0;
1965 0 study $grammar;
1966  
1967 0 local $::RD_HINT = $::RD_HINT;
1968 0 local $::RD_WARN = $::RD_WARN;
1969 0 local $::RD_TRACE = $::RD_TRACE;
1970 0 local $::RD_CHECK = $::RD_CHECK;
1971  
1972 0 ▶ while (pos $grammar < length $grammar)
Branch: 1 branch
BranchTrueFalseTotal
if (pos $grammar < length $grammar) 0 0 0
1973 {
1974 0 $line = $lines[-1] - _linecount($grammar) + 1;
1975 0 my $commitonly;
1976 0 my $code = "";
1977 0 my @components = ();
1978 0 ▶ if ($grammar =~ m/$COMMENT/gco)
Branch: 19 branches
BranchTrueFalseTotal
if ($grammar =~ /$COMMENT/cog) { } 0 0 0
elsif ($grammar =~ /$NEGLOOKAHEAD/cog) { } 0 0 0
elsif ($grammar =~ /$POSLOOKAHEAD/cog) { } 0 0 0
elsif ($grammar =~ /(?=$ACTION)/cog and do { ($code) = &extract_codeblock($grammar); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$IMPLICITSUBRULE)/cog and do { ($code) = &extract_codeblock($grammar, '{([', undef, '(', 1); $code }) { } 0 0 0
elsif ($grammar =~ /$ENDDIRECTIVEMK/cog) { } 0 0 0
elsif ($grammar =~ /\G\s*<[^m]/cg) { } 0 0 0
elsif ($grammar =~ /$RULE/cog) { } 0 0 0
elsif ($grammar =~ /$UNCOMMITPROD/cog) { } 0 0 0
elsif ($grammar =~ /$ERRORPROD/cog) { } 0 0 0
elsif ($grammar =~ /$PROD/cog) { } 0 0 0
elsif ($grammar =~ /$LITERAL/cog) { } 0 0 0
elsif ($grammar =~ /$INTERPLIT/cog) { } 0 0 0
elsif ($grammar =~ /$TOKEN/cog) { } 0 0 0
elsif ($grammar =~ /(?=$MTOKEN)/cog and do { ($code, undef, @components) = &extract_quotelike($grammar); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$MATCHRULE)/cog and do { ($code) = &extract_bracketed($grammar, '<'); $code } or $grammar =~ /$SUBRULE/cog and $code = $1) { } 0 0 0
elsif ($grammar =~ /$LONECOLON/cog) { } 0 0 0
elsif ($grammar =~ /$ACTION/cog) { } 0 0 0
elsif ($grammar =~ /$OTHER/cog) { } 0 0 0
1979 {
1980 0 _parse("a comment",0,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
1981 0 next;
1982 }
1983 elsif ($grammar =~ m/$NEGLOOKAHEAD/gco)
1984 {
1985 0 _parse("a negative lookahead",$aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
1986 0 ▶ $lookahead = $lookahead ? -$lookahead : -1;
Branch: 1 branch
BranchTrueFalseTotal
$lookahead ? : 0 0 0
1987 0 $lookaheadspec .= $1;
1988 0 next; # SKIP LOOKAHEAD RESET AT END OF while LOOP
1989 }
1990 elsif ($grammar =~ m/$POSLOOKAHEAD/gco)
1991 {
1992 0 _parse("a positive lookahead",$aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
1993 0 ▶ $lookahead = $lookahead ? $lookahead : 1;
Branch: 1 branch
BranchTrueFalseTotal
$lookahead ? : 0 0 0
1994 0 $lookaheadspec .= $1;
1995 0 next; # SKIP LOOKAHEAD RESET AT END OF while LOOP
1996 }
1997 ▶ elsif ($grammar =~ m/(?=$ACTION)/gco
Condition0%0/3
$grammar =~ /(?=$ACTION)/cog and do {
!ll&&!rl&&r
000
MC/DC0%0/2
$grammar =~ /(?=$ACTION)/cog and do { ($code) = &extract_codeblock($grammar); $code }
$grammar =~ /(?=$ACTION)/cog do { ($code) = &extract_codeblock($grammar); $code }
Truth table0%0/3
A and B
A= $grammar =~ /(?=$ACTION)/cogB= do { ($code) = &extract_codeblock($grammar); $code }
ABresult
0X0
100
111
1998 0 and do { ($code) = extract_codeblock($grammar); $code })
1999 {
2000 0 _parse("an action", $aftererror, $line, $code);
2001 0 $item = new Parse::RecDescent::_Runtime::Action($code,$lookahead,$line);
2002 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or $self->_addstartcode($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
2003 or $self->_addstartcode($code);
2004 }
2005 ▶ elsif ($grammar =~ m/(?=$IMPLICITSUBRULE)/gco
Condition0%0/3
$grammar =~ /(?=$IMPLICITSUBRULE)/cog and do {
!ll&&!rl&&r
000
MC/DC0%0/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 table0%0/3
A and B
A= $grammar =~ /(?=$IMPLICITSUBRULE)/cogB= do { ($code) = &extract_codeblock($grammar, "{([", undef, "(", 1); $code }
ABresult
0X0
100
111
2006 0 and do { ($code) = extract_codeblock($grammar,'{([',undef,'(',1);
2007 0 $code })
2008 {
2009 0 $code =~ s/\A\s*\(|\)\Z//g;
2010 0 _parse("an implicit subrule", $aftererror, $line,
2011 "( $code )");
2012 0 my $implicit = $rule->nextimplicit;
2013 return undef
2014 0 ▶ if !$self->_generate("$implicit : $code",$replace,1);
Branch: 1 branch
BranchTrueFalseTotal
unless $self->_generate("$implicit : $code", $replace, 1) 0 0 0
2015 0 my $pos = pos $grammar;
2016 0 substr($grammar,$pos,0,$implicit);
2017 0 pos $grammar = $pos;;
2018 }
2019 elsif ($grammar =~ m/$ENDDIRECTIVEMK/gco)
2020 {
2021  
2022 # EXTRACT TRAILING REPETITION SPECIFIER (IF ANY)
2023  
2024 0 my ($minrep,$maxrep) = (1,$MAXREP);
2025 0 ▶ if ($grammar =~ m/\G[(]/gc)
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar =~ /\G[(]/cg) 0 0 0
2026 {
2027 0 pos($grammar)--;
2028  
2029 0 ▶ if ($grammar =~ m/$OPTIONAL/gco)
Branch: 8 branches
BranchTrueFalseTotal
if ($grammar =~ /$OPTIONAL/cog) { } 0 0 0
elsif ($grammar =~ /$ANY/cog) { } 0 0 0
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
2030 0 { ($minrep, $maxrep) = (0,1) }
2031 elsif ($grammar =~ m/$ANY/gco)
2032 0 { $minrep = 0 }
2033 elsif ($grammar =~ m/$EXACTLY/gco)
2034 0 { ($minrep, $maxrep) = ($1,$1) }
2035 elsif ($grammar =~ m/$BETWEEN/gco)
2036 0 { ($minrep, $maxrep) = ($1,$2) }
2037 elsif ($grammar =~ m/$ATLEAST/gco)
2038 0 { $minrep = $1 }
2039 elsif ($grammar =~ m/$ATMOST/gco)
2040 0 { $maxrep = $1 }
2041 elsif ($grammar =~ m/$MANY/gco)
2042 { }
2043 elsif ($grammar =~ m/$BADREP/gco)
2044 {
2045 0 _parse("an invalid repetition specifier", 0,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2046 0 _error("Incorrect specification of a repeated directive",
2047 $line);
2048 0 _hint("Repeated directives cannot have
2049 a maximum repetition of zero, nor can they have
2050 negative components in their ranges.");
2051 }
2052 }
2053  
2054 0 ▶ $prod && $prod->enddirective($line,$minrep,$maxrep);
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->enddirective($line, $minrep, $maxrep) 0 0 0
2055 }
2056 elsif ($grammar =~ m/\G\s*<[^m]/gc)
2057 {
2058 0 pos($grammar)-=2;
2059  
2060 0 ▶ if ($grammar =~ m/$OPMK/gco)
Branch: 29 branches
BranchTrueFalseTotal
if ($grammar =~ /$OPMK/cog) { } 0 0 0
elsif ($grammar =~ /$UNCOMMITMK/cog) { } 0 0 0
elsif ($grammar =~ /$QUOTELIKEMK/cog) { } 0 0 0
elsif ($grammar =~ /$CODEBLOCKMK/cog) { } 0 0 0
elsif ($grammar =~ /$VARIABLEMK/cog) { } 0 0 0
elsif ($grammar =~ /$NOCHECKMK/cog) { } 0 0 0
elsif ($grammar =~ /$AUTOSTUBMK/cog) { } 0 0 0
elsif ($grammar =~ /$AUTORULEMK/cog) { } 0 0 0
elsif ($grammar =~ /$AUTOTREEMK/cog) { } 0 0 0
elsif ($grammar =~ /$REJECTMK/cog) { } 0 0 0
elsif ($grammar =~ /(?=$CONDREJECTMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$SCOREMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$AUTOSCOREMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /$RESYNCMK/cog) { } 0 0 0
elsif ($grammar =~ /(?=$RESYNCPATMK)/cog and do { ($code) = &extract_bracketed($grammar, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$SKIPMK)/cog and do { ($code) = &extract_codeblock($grammar, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$RULEVARPATMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$AUTOACTIONPATMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$DEFERPATMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /(?=$TOKENPATMK)/cog and do { ($code) = &extract_codeblock($grammar, '{', undef, '<'); $code }) { } 0 0 0
elsif ($grammar =~ /$COMMITMK/cog) { } 0 0 0
elsif ($grammar =~ /$NOCHECKMK/cog) { } 0 0 0
elsif ($grammar =~ /$HINTMK/cog) { } 0 0 0
elsif ($grammar =~ /$WARNMK/cog) { } 0 0 0
elsif ($grammar =~ /$TRACEBUILDMK/cog) { } 0 0 0
elsif ($grammar =~ /$TRACEPARSEMK/cog) { } 0 0 0
elsif ($grammar =~ /$AUTOERRORMK/cog) { } 0 0 0
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
2061 {
2062 # $DB::single=1;
2063 0 _parse("a $1-associative operator directive", $aftererror, $line, "<$1op:...>");
2064 0 ▶ $prod->adddirective($1, $line,$2||'');
Condition0%0/2
$2 || ''
l!l
00
MC/DC0%0/1
$2 || ''
$2
Truth table0%0/2
A
A= $2
Aresult
11
00
2065 }
2066 elsif ($grammar =~ m/$UNCOMMITMK/gco)
2067 {
2068 0 _parse("an uncommit marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2069 0 $item = new Parse::RecDescent::_Runtime::Directive('$commit=0;1',
2070 $lookahead,$line,"<uncommit>");
2071 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<uncommit>", $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
2072 or _no_rule("<uncommit>",$line);
2073 }
2074 elsif ($grammar =~ m/$QUOTELIKEMK/gco)
2075 {
2076 0 _parse("an perl quotelike marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2077 0 $item = new Parse::RecDescent::_Runtime::Directive(
2078 'my ($match,@res);
2079 ($match,$text,undef,@res) =
2080 Text::Balanced::extract_quotelike($text,$skip);
2081 $match ? \@res : undef;
2082 ', $lookahead,$line,"<perl_quotelike>");
2083 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
2084 or _no_rule("<perl_quotelike>",$line);
2085 }
2086 elsif ($grammar =~ m/$CODEBLOCKMK/gco)
2087 {
2088 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
2089 0 _parse("an perl codeblock marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2090 0 $item = new Parse::RecDescent::_Runtime::Directive(
2091 'Text::Balanced::extract_codeblock($text,undef,$skip,\''.$outer.'\');
2092 ', $lookahead,$line,"<perl_codeblock>");
2093 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
2094 or _no_rule("<perl_codeblock>",$line);
2095 }
2096 elsif ($grammar =~ m/$VARIABLEMK/gco)
2097 {
2098 0 _parse("an perl variable marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2099 0 $item = new Parse::RecDescent::_Runtime::Directive(
2100 'Text::Balanced::extract_variable($text,$skip);
2101 ', $lookahead,$line,"<perl_variable>");
2102 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
2103 or _no_rule("<perl_variable>",$line);
2104 }
2105 elsif ($grammar =~ m/$NOCHECKMK/gco)
2106 {
2107 0 _parse("a disable checking marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2108 0 ▶ if ($rule)
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 0 0 0
2109 {
2110 0 _error("<nocheck> directive not at start of grammar", $line);
2111 0 _hint("The <nocheck> directive can only
2112 be specified at the start of a
2113 grammar (before the first rule
2114 is defined.");
2115 }
2116 else
2117 {
2118 0 local $::RD_CHECK = 1;
2119 }
2120 }
2121 elsif ($grammar =~ m/$AUTOSTUBMK/gco)
2122 {
2123 0 _parse("an autostub marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2124 0 $::RD_AUTOSTUB = "";
2125 }
2126 elsif ($grammar =~ m/$AUTORULEMK/gco)
2127 {
2128 0 _parse("an autorule marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2129 0 $::RD_AUTOSTUB = $1;
2130 }
2131 elsif ($grammar =~ m/$AUTOTREEMK/gco)
2132 {
2133 0 ▶ my $base = defined($1) ? $1 : "";
Branch: 1 branch
BranchTrueFalseTotal
defined $1 ? : 0 0 0
2134 0 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
2135 0 ▶ $base .= "::" if $base && $base !~ /::$/;
Branch: 1 branch
BranchTrueFalseTotal
if $base and not $base =~ /::$/ 0 0 0
Condition0%0/3
$base and not $base =~ /::$/
!ll&&!rl&&r
000
MC/DC0%0/2
$base and not $base =~ /::$/
$base not $base =~ /::$/
Truth table0%0/3
A and not(B)
A= $baseB= not $base =~ /::$/
ABresult
0X0
100
111
2136 0 _parse("an autotree marker", $aftererror,$line, $current_match);
2137 0 ▶ if ($rule)
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 0 0 0
2138 {
2139 0 _error("<autotree> directive not at start of grammar", $line);
2140 0 _hint("The <autotree> directive can only
2141 be specified at the start of a
2142 grammar (before the first rule
2143 is defined.");
2144 }
2145 else
2146 {
2147 0 undef $self->{_AUTOACTION};
2148 $self->{_AUTOTREE}{NODE}
2149 0 = new Parse::RecDescent::_Runtime::Action(q({bless \%item, ').$base.q('.$item[0]}),0,-1);
2150 $self->{_AUTOTREE}{TERMINAL}
2151 0 = new Parse::RecDescent::_Runtime::Action(q({bless {__VALUE__=>$item[1]}, ').$base.q('.$item[0]}),0,-1);
2152 }
2153 }
2154  
2155 elsif ($grammar =~ m/$REJECTMK/gco)
2156 {
2157 0 _parse("an reject marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2158 0 $item = new Parse::RecDescent::_Runtime::UncondReject($lookahead,$line,"<reject>");
2159 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<reject>", $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
2160 or _no_rule("<reject>",$line);
2161 }
2162 ▶ elsif ($grammar =~ m/(?=$CONDREJECTMK)/gco
Condition0%0/3
$grammar =~ /(?=$CONDREJECTMK)/cog and do {
!ll&&!rl&&r
000
MC/DC0%0/2
$grammar =~ /(?=$CONDREJECTMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$CONDREJECTMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table0%0/3
A and B
A= $grammar =~ /(?=$CONDREJECTMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2163 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2164 0 $code })
2165 {
2166 0 _parse("a (conditional) reject marker", $aftererror,$line, $code );
2167 0 $code =~ /\A\s*<reject:(.*)>\Z/s;
2168 0 my $cond = $1;
2169 0 $item = new Parse::RecDescent::_Runtime::Directive(
2170 "($1) ? undef : 1", $lookahead,$line,"<reject:$cond>");
2171 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<reject:$cond>", $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
2172 or _no_rule("<reject:$cond>",$line);
2173 }
2174 ▶ elsif ($grammar =~ m/(?=$SCOREMK)/gco
Condition0%0/3
$grammar =~ /(?=$SCOREMK)/cog and do {
!ll&&!rl&&r
000
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 table0%0/3
A and B
A= $grammar =~ /(?=$SCOREMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2175 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2176 0 $code })
2177 {
2178 0 _parse("a score marker", $aftererror,$line, $code );
2179 0 $code =~ /\A\s*<score:(.*)>\Z/s;
2180 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
2181 or _no_rule($code,$line);
2182 }
2183 ▶ elsif ($grammar =~ m/(?=$AUTOSCOREMK)/gco
Condition0%0/3
$grammar =~ /(?=$AUTOSCOREMK)/cog and do {
!ll&&!rl&&r
000
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 table0%0/3
A and B
A= $grammar =~ /(?=$AUTOSCOREMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2184 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2185 0 $code;
2186 } )
2187 {
2188 0 _parse("an autoscore specifier", $aftererror,$line,$code);
2189 0 $code =~ /\A\s*<autoscore:(.*)>\Z/s;
2190  
2191 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
2192 or _no_rule($code,$line);
2193  
2194 0 $item = new Parse::RecDescent::_Runtime::UncondReject($lookahead,$line,$code);
2195 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
2196 or _no_rule($code,$line);
2197 }
2198 elsif ($grammar =~ m/$RESYNCMK/gco)
2199 {
2200 0 _parse("a resync to newline marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2201 0 $item = new Parse::RecDescent::_Runtime::Directive(
2202 'if ($text =~ s/(\A[^\n]*\n)//) { $return = 0; $1; } else { undef }',
2203 $lookahead,$line,"<resync>");
2204 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<resync>", $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
2205 or _no_rule("<resync>",$line);
2206 }
2207 ▶ elsif ($grammar =~ m/(?=$RESYNCPATMK)/gco
Condition0%0/3
$grammar =~ /(?=$RESYNCPATMK)/cog and do {
!ll&&!rl&&r
000
MC/DC0%0/2
$grammar =~ /(?=$RESYNCPATMK)/cog and do { ($code) = &extract_bracketed($grammar, "<"); $code }
$grammar =~ /(?=$RESYNCPATMK)/cog do { ($code) = &extract_bracketed($grammar, "<"); $code }
Truth table0%0/3
A and B
A= $grammar =~ /(?=$RESYNCPATMK)/cogB= do { ($code) = &extract_bracketed($grammar, "<"); $code }
ABresult
0X0
100
111
2208 0 and do { ($code) = extract_bracketed($grammar,'<');
2209 0 $code })
2210 {
2211 0 _parse("a resync with pattern marker", $aftererror,$line, $code );
2212 0 $code =~ /\A\s*<resync:(.*)>\Z/s;
2213 0 $item = new Parse::RecDescent::_Runtime::Directive(
2214 'if ($text =~ s/(\A'.$1.')//) { $return = 0; $1; } else { undef }',
2215 $lookahead,$line,$code);
2216 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
2217 or _no_rule($code,$line);
2218 }
2219 ▶ elsif ($grammar =~ m/(?=$SKIPMK)/gco
Condition0%0/3
$grammar =~ /(?=$SKIPMK)/cog and do {
!ll&&!rl&&r
000
MC/DC0%0/2
$grammar =~ /(?=$SKIPMK)/cog and do { ($code) = &extract_codeblock($grammar, "<"); $code }
$grammar =~ /(?=$SKIPMK)/cog do { ($code) = &extract_codeblock($grammar, "<"); $code }
Truth table0%0/3
A and B
A= $grammar =~ /(?=$SKIPMK)/cogB= do { ($code) = &extract_codeblock($grammar, "<"); $code }
ABresult
0X0
100
111
2220 0 and do { ($code) = extract_codeblock($grammar,'<');
2221 0 $code })
2222 {
2223 0 _parse("a skip marker", $aftererror,$line, $code );
2224 0 $code =~ /\A\s*<skip:(.*)>\Z/s;
2225 0 ▶ if ($rule) {
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 0 0 0
2226 0 $item = new Parse::RecDescent::_Runtime::Directive(
2227 'my $oldskip = $skip; $skip='.$1.'; $oldskip',
2228 $lookahead,$line,$code);
2229 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
2230 or _no_rule($code,$line);
2231 } else {
2232 #global <skip> directive
2233 0 $self->{skip} = $1;
2234 }
2235 }
2236 ▶ elsif ($grammar =~ m/(?=$RULEVARPATMK)/gco
Condition0%0/3
$grammar =~ /(?=$RULEVARPATMK)/cog and do {
!ll&&!rl&&r
000
MC/DC0%0/2
$grammar =~ /(?=$RULEVARPATMK)/cog and do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
$grammar =~ /(?=$RULEVARPATMK)/cog do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
Truth table0%0/3
A and B
A= $grammar =~ /(?=$RULEVARPATMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2237 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2238 0 $code;
2239 } )
2240 {
2241 0 _parse("a rule variable specifier", $aftererror,$line,$code);
2242 0 $code =~ /\A\s*<rulevar:(.*)>\Z/s;
2243  
2244 0 ▶ $rule and $rule->addvar($1,$self)
Branch: 1 branch
BranchTrueFalseTotal
$rule and $rule->addvar($1, $self) or &_no_rule($code, $line) 0 0 0
Condition0%0/3
$rule and $rule->addvar($1, $self)
!ll&&!rl&&r
000
MC/DC0%0/2
$rule and $rule->addvar($1, $self)
$rule $rule->addvar($1, $self)
Truth table0%0/3
A and B
A= $ruleB= $rule->addvar($1, $self)
ABresult
0X0
100
111
2245 or _no_rule($code,$line);
2246  
2247 0 $item = new Parse::RecDescent::_Runtime::UncondReject($lookahead,$line,$code);
2248 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
2249 or _no_rule($code,$line);
2250 }
2251 ▶ elsif ($grammar =~ m/(?=$AUTOACTIONPATMK)/gco
Condition0%0/3
$grammar =~ /(?=$AUTOACTIONPATMK)/cog and do {
!ll&&!rl&&r
000
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 table0%0/3
A and B
A= $grammar =~ /(?=$AUTOACTIONPATMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2252 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2253 0 $code;
2254 } )
2255 {
2256 0 _parse("an autoaction specifier", $aftererror,$line,$code);
2257 0 $code =~ s/\A\s*<autoaction:(.*)>\Z/$1/s;
2258 0 ▶ if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) 0 0 0
2259 0 $code = "{ $code }"
2260 }
2261 $self->{_check}{itempos} =
2262 0 $code =~ /\@itempos\b|\$itempos\s*\[/;
2263 $self->{_AUTOACTION}
2264 0 = new Parse::RecDescent::_Runtime::Action($code,0,-$line)
2265 }
2266 ▶ elsif ($grammar =~ m/(?=$DEFERPATMK)/gco
Condition0%0/3
$grammar =~ /(?=$DEFERPATMK)/cog and do {
!ll&&!rl&&r
000
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 table0%0/3
A and B
A= $grammar =~ /(?=$DEFERPATMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2267 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2268 0 $code;
2269 } )
2270 {
2271 0 _parse("a deferred action specifier", $aftererror,$line,$code);
2272 0 $code =~ s/\A\s*<defer:(.*)>\Z/$1/s;
2273 0 ▶ if ($code =~ /\A\s*[^{]|[^}]\s*\Z/)
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) 0 0 0
2274 {
2275 0 $code = "{ $code }"
2276 }
2277  
2278 0 $item = new Parse::RecDescent::_Runtime::Directive(
2279 "push \@{\$thisparser->{deferred}}, sub $code;",
2280 $lookahead,$line,"<defer:$code>");
2281 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
2282 or _no_rule("<defer:$code>",$line);
2283  
2284 0 $self->{deferrable} = 1;
2285 }
2286 ▶ elsif ($grammar =~ m/(?=$TOKENPATMK)/gco
Condition0%0/3
$grammar =~ /(?=$TOKENPATMK)/cog and do {
!ll&&!rl&&r
000
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 table0%0/3
A and B
A= $grammar =~ /(?=$TOKENPATMK)/cogB= do { ($code) = &extract_codeblock($grammar, "{", undef, "<"); $code }
ABresult
0X0
100
111
2287 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2288 0 $code;
2289 } )
2290 {
2291 0 _parse("a token constructor", $aftererror,$line,$code);
2292 0 $code =~ s/\A\s*<token:(.*)>\Z/$1/s;
2293  
2294 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
2295 0 ▶ if (!$types)
Branch: 1 branch
BranchTrueFalseTotal
if (not $types) { } 0 0 0
2296 {
2297 0 _error("Incorrect token specification: \"$@\"", $line);
2298 0 _hint("The <token:...> directive requires a list
2299 of one or more strings representing possible
2300 types of the specified token. For example:
2301 <token:NOUN,VERB>");
2302 }
2303 else
2304 {
2305 0 $item = new Parse::RecDescent::_Runtime::Directive(
2306 'no strict;
2307 $return = { text => $item[-1] };
2308 @{$return->{type}}{'.$code.'} = (1..'.$types.');',
2309 $lookahead,$line,"<token:$code>");
2310 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
2311 or _no_rule("<token:$code>",$line);
2312 }
2313 }
2314 elsif ($grammar =~ m/$COMMITMK/gco)
2315 {
2316 0 _parse("an commit marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2317 0 $item = new Parse::RecDescent::_Runtime::Directive('$commit = 1',
2318 $lookahead,$line,"<commit>");
2319 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<commit>", $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
2320 or _no_rule("<commit>",$line);
2321 }
2322 elsif ($grammar =~ m/$NOCHECKMK/gco) {
2323 0 _parse("an hint request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2324 0 $::RD_CHECK = 0;
2325 }
2326 elsif ($grammar =~ m/$HINTMK/gco) {
2327 0 _parse("an hint request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2328 0 $::RD_HINT = $self->{__HINT__} = 1;
2329 }
2330 elsif ($grammar =~ m/$WARNMK/gco) {
2331 0 _parse("an warning request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2332 0 ▶ $::RD_WARN = $self->{__WARN__} = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2333 }
2334 elsif ($grammar =~ m/$TRACEBUILDMK/gco) {
2335 0 _parse("an grammar build trace request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2336 0 ▶ $::RD_TRACE = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2337 }
2338 elsif ($grammar =~ m/$TRACEPARSEMK/gco) {
2339 0 _parse("an parse trace request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2340 0 ▶ $self->{__TRACE__} = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2341 }
2342 elsif ($grammar =~ m/$AUTOERRORMK/gco)
2343 {
2344 0 $commitonly = $1;
2345 0 _parse("an error marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2346 0 $item = new Parse::RecDescent::_Runtime::Error('',$lookahead,$1,$line);
2347 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("<error>", $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
2348 or _no_rule("<error>",$line);
2349 0 $aftererror = !$commitonly;
2350 }
2351 ▶ elsif ($grammar =~ m/(?=$MSGERRORMK)/gco
Condition0%0/3
$grammar =~ /(?=$MSGERRORMK)/cog and do {
!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
2352 0 and do { $commitonly = $1;
2353 0 ($code) = extract_bracketed($grammar,'<');
2354 0 $code })
2355 {
2356 0 _parse("an error marker", $aftererror,$line,$code);
2357 0 $code =~ /\A\s*<error\??:(.*)>\Z/s;
2358 0 $item = new Parse::RecDescent::_Runtime::Error($1,$lookahead,$commitonly,$line);
2359 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
2360 or _no_rule("$code",$line);
2361 0 $aftererror = !$commitonly;
2362 }
2363 0 elsif (do { $commitonly = $1;
2364 0 ($code) = extract_bracketed($grammar,'<');
2365 0 $code })
2366 {
2367 0 ▶ if ($code =~ /^<[A-Z_]+>$/)
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /^<[A-Z_]+>$/) { } 0 0 0
2368 {
2369 0 _error("Token items are not yet
2370 supported: \"$code\"",
2371 $line);
2372 0 _hint("Items like $code that consist of angle
2373 brackets enclosing a sequence of
2374 uppercase characters will eventually
2375 be used to specify pre-lexed tokens
2376 in a grammar. That functionality is not
2377 yet implemented. Or did you misspell
2378 \"$code\"?");
2379 }
2380 else
2381 {
2382 0 _error("Untranslatable item encountered: \"$code\"",
2383 $line);
2384 0 _hint("Did you misspell \"$code\"
2385 or forget to comment it out?");
2386 }
2387 }
2388 }
2389 elsif ($grammar =~ m/$RULE/gco)
2390 {
2391 0 ▶ _parseunneg("a rule declaration", 0,
Branch: 1 branch
BranchTrueFalseTotal
&_parseunneg("a rule declaration", 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0])) or next 0 0 0
2392 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2393 0 my $rulename = $1;
2394 0 ▶ if ($rulename =~ /Replace|Extend|Precompile|Save/ )
Branch: 1 branch
BranchTrueFalseTotal
if ($rulename =~ /Replace|Extend|Precompile|Save/) 0 0 0
2395 {
2396 0 ▶ _warn(2,"Rule \"$rulename\" hidden by method
Branch: 1 branch
BranchTrueFalseTotal
&_warn(2, qq[Rule "$rulename" hidden by method\n Parse::RecDescent::_Runtime::$rulename], $line) and &_hint(qq[The rule named "$rulename" cannot be directly\n called through the Parse::RecDescent::_Runtime 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::_Runtime::$rulename is already defined (it\n is the standard method of all\n parsers).]) 0 0 0
2397 Parse::RecDescent::_Runtime::$rulename",$line)
2398 and
2399 _hint("The rule named \"$rulename\" cannot be directly
2400 called through the Parse::RecDescent::_Runtime object
2401 for this grammar (although it may still
2402 be used as a subrule of other rules).
2403 It can't be directly called because
2404 Parse::RecDescent::_Runtime::$rulename is already defined (it
2405 is the standard method of all
2406 parsers).");
2407 }
2408 0 $rule = new Parse::RecDescent::_Runtime::Rule($rulename,$self,$line,$replace);
2409 0 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 0 0 0
2410 0 $prod = $rule->addprod( new Parse::RecDescent::_Runtime::Production );
2411 0 $aftererror = 0;
2412 }
2413 elsif ($grammar =~ m/$UNCOMMITPROD/gco)
2414 {
2415 0 pos($grammar)-=9;
2416 0 ▶ _parseunneg("a new (uncommitted) production",
Branch: 1 branch
BranchTrueFalseTotal
&_parseunneg("a new (uncommitted) production", 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0])) or next 0 0 0
2417 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2418  
2419 0 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 0 0 0
2420 0 $prod = new Parse::RecDescent::_Runtime::Production($line,1);
2421 0 ▶ $rule and $rule->addprod($prod)
Branch: 1 branch
BranchTrueFalseTotal
$rule and $rule->addprod($prod) or &_no_rule("<uncommit>", $line) 0 0 0
Condition0%0/3
$rule and $rule->addprod($prod)
!ll&&!rl&&r
000
MC/DC0%0/2
$rule and $rule->addprod($prod)
$rule $rule->addprod($prod)
Truth table0%0/3
A and B
A= $ruleB= $rule->addprod($prod)
ABresult
0X0
100
111
2422 or _no_rule("<uncommit>",$line);
2423 0 $aftererror = 0;
2424 }
2425 elsif ($grammar =~ m/$ERRORPROD/gco)
2426 {
2427 0 pos($grammar)-=6;
2428 0 ▶ _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 0 0 0
2429 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2430 0 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 0 0 0
2431 0 $prod = new Parse::RecDescent::_Runtime::Production($line,0,1);
2432 0 ▶ $rule and $rule->addprod($prod)
Branch: 1 branch
BranchTrueFalseTotal
$rule and $rule->addprod($prod) or &_no_rule("<error>", $line) 0 0 0
Condition0%0/3
$rule and $rule->addprod($prod)
!ll&&!rl&&r
000
MC/DC0%0/2
$rule and $rule->addprod($prod)
$rule $rule->addprod($prod)
Truth table0%0/3
A and B
A= $ruleB= $rule->addprod($prod)
ABresult
0X0
100
111
2433 or _no_rule("<error>",$line);
2434 0 $aftererror = 0;
2435 }
2436 elsif ($grammar =~ m/$PROD/gco)
2437 {
2438 0 ▶ _parseunneg("a new production", 0,
Branch: 1 branch
BranchTrueFalseTotal
&_parseunneg("a new production", 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0])) or next 0 0 0
2439 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2440 0 ▶ $rule
Branch: 1 branch
BranchTrueFalseTotal
$rule and !$prod || $prod->check_pending($line) and $prod = $rule->addprod("Parse::RecDescent::_Runtime::Production"->new($line)) or &_no_rule("production", $line) 0 0 0
Condition0%0/9
$rule and !$prod || $prod->check_pending($line) and $prod = $rule->addprod("Parse::RecDescent::_Runtime::Production"->new($line))
!ll&&!rl&&r
000
$rule and !$prod || $prod->check_pending($line)
!ll&&!rl&&r
000
not $prod or $prod->check_pending($line)
l!l&&r!l&&!r
000
MC/DC0%0/4
$rule and !$prod || $prod->check_pending($line) and $prod = $rule->addprod("Parse::RecDescent::_Runtime::Production"->new($line))
$rule not $prod $prod->check_pending($line) $prod = $rule->addprod("Parse::RecDescent::_Runtime::Production"->new($line))
Truth table0%0/6
A and not(B) or C and D
A= $ruleB= not $prodC= $prod->check_pending($line)D= $prod = $rule->addprod("Parse::RecDescent::_Runtime::Production"->new($line))
ABCDresult
0XXX0
100X0
11X00
10100
11X11
10111
2441 and (!$prod || $prod->check_pending($line))
2442 and $prod = $rule->addprod(new Parse::RecDescent::_Runtime::Production($line))
2443 or _no_rule("production",$line);
2444 0 $aftererror = 0;
2445 }
2446 elsif ($grammar =~ m/$LITERAL/gco)
2447 {
2448 0 my $literal = $1;
2449 0 ($code = $literal) =~ s/\\\\/\\/g;
2450 0 _parse("a literal terminal", $aftererror,$line,$literal);
2451 0 $item = new Parse::RecDescent::_Runtime::Literal($code,$lookahead,$line);
2452 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("literal terminal", $line, "'${literal}'") 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
2453 or _no_rule("literal terminal",$line,"'$literal'");
2454 }
2455 elsif ($grammar =~ m/$INTERPLIT/gco)
2456 {
2457 0 _parse("an interpolated literal terminal", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2458 0 $item = new Parse::RecDescent::_Runtime::InterpLit($1,$lookahead,$line);
2459 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("interpolated literal terminal", $line, "'$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
2460 or _no_rule("interpolated literal terminal",$line,"'$1'");
2461 }
2462 elsif ($grammar =~ m/$TOKEN/gco)
2463 {
2464 0 _parse("a /../ pattern terminal", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2465 0 ▶ $item = new Parse::RecDescent::_Runtime::Token($1,'/',$3?$3:'',$lookahead,$line);
Branch: 1 branch
BranchTrueFalseTotal
$3 ? : 0 0 0
2466 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("pattern terminal", $line, "/$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
2467 or _no_rule("pattern terminal",$line,"/$1/");
2468 }
2469 ▶ elsif ($grammar =~ m/(?=$MTOKEN)/gco
Condition0%0/3
$grammar =~ /(?=$MTOKEN)/cog and do {
!ll&&!rl&&r
000
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 table0%0/3
A and B
A= $grammar =~ /(?=$MTOKEN)/cogB= do { ($code, undef, @components) = &extract_quotelike($grammar); $code }
ABresult
0X0
100
111
2470 0 and do { ($code, undef, @components)
2471 = extract_quotelike($grammar);
2472 0 $code }
2473 )
2474  
2475 {
2476 0 _parse("an m/../ pattern terminal", $aftererror,$line,$code);
2477 0 $item = new Parse::RecDescent::_Runtime::Token(@components[3,2,8],
2478 $lookahead,$line);
2479 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
2480 or _no_rule("pattern terminal",$line,$code);
2481 }
2482 ▶ elsif ($grammar =~ m/(?=$MATCHRULE)/gco
Condition0%0/6
$grammar =~ /(?=$MATCHRULE)/cog and do { or $grammar =~ /$SUBRULE/cog and $code = $1
l!l&&r!l&&!r
000
$grammar =~ /(?=$MATCHRULE)/cog and do {
!ll&&!rl&&r
000
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 table0%0/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
2483 0 and do { ($code) = extract_bracketed($grammar,'<');
2484 0 ▶ $code
Condition0%0/3
$grammar =~ /$SUBRULE/cog and $code = $1
!ll&&!rl&&r
000
MC/DC0%0/2
$grammar =~ /$SUBRULE/cog and $code = $1
$grammar =~ /$SUBRULE/cog $code = $1
Truth table0%0/3
A and B
A= $grammar =~ /$SUBRULE/cogB= $code = $1
ABresult
0X0
100
111
2485 }
2486 or $grammar =~ m/$SUBRULE/gco
2487 and $code = $1)
2488 {
2489 0 my $name = $code;
2490 0 my $matchrule = 0;
2491 0 ▶ if (substr($name,0,1) eq '<')
Branch: 1 branch
BranchTrueFalseTotal
if (substr($name, 0, 1) eq "<") 0 0 0
2492 {
2493 0 $name =~ s/$MATCHRULE\s*//;
2494 0 $name =~ s/\s*>\Z//;
2495 0 $matchrule = 1;
2496 }
2497  
2498 # EXTRACT TRAILING ARG LIST (IF ANY)
2499  
2500 0 ▶ my ($argcode) = extract_codeblock($grammar, "[]",'') || '';
Condition0%0/2
&extract_codeblock($grammar, '[]', '') || ''
l!l
00
MC/DC0%0/1
&extract_codeblock($grammar, '[]', '') || ''
&extract_codeblock($grammar, '[]', '')
Truth table0%0/2
A
A= &extract_codeblock($grammar, '[]', '')
Aresult
11
00
2501  
2502 # EXTRACT TRAILING REPETITION SPECIFIER (IF ANY)
2503  
2504 0 ▶ if ($grammar =~ m/\G[(]/gc)
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar =~ /\G[(]/cg) { } 0 0 0
2505 {
2506 0 pos($grammar)--;
2507  
2508 0 ▶ if ($grammar =~ m/$OPTIONAL/gco)
Branch: 8 branches
BranchTrueFalseTotal
if ($grammar =~ /$OPTIONAL/cog) { } 0 0 0
elsif ($grammar =~ /$ANY/cog) { } 0 0 0
elsif ($grammar =~ /$MANY/cog) { } 0 0 0
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 =~ /$BADREP/cog) { } 0 0 0
2509 {
2510 0 _parse("an zero-or-one subrule match", $aftererror,$line,"$code$argcode($1)");
2511 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,$1,0,1,
2512 $lookahead,$line,
2513 $self,
2514 $matchrule,
2515 $argcode);
2516 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
2517 or _no_rule("repetition",$line,"$code$argcode($1)");
2518  
2519 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
2520 }
2521 elsif ($grammar =~ m/$ANY/gco)
2522 {
2523 0 _parse("a zero-or-more subrule match", $aftererror,$line,"$code$argcode($1)");
2524 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2525 {
2526 0 my $pos = pos $grammar;
2527 0 substr($grammar,$pos,0,
2528 "<leftop='$name(s?)': $name $2 $name>(s?) ");
2529  
2530 0 pos $grammar = $pos;
2531 }
2532 else
2533 {
2534 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,$1,0,$MAXREP,
2535 $lookahead,$line,
2536 $self,
2537 $matchrule,
2538 $argcode);
2539 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
2540 or _no_rule("repetition",$line,"$code$argcode($1)");
2541  
2542 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
2543  
2544 0 ▶ _check_insatiable($name,$1,$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 0 0 0
2545 }
2546 }
2547 elsif ($grammar =~ m/$MANY/gco)
2548 {
2549 0 _parse("a one-or-more subrule match", $aftererror,$line,"$code$argcode($1)");
2550 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2551 {
2552 # $DB::single=1;
2553 0 my $pos = pos $grammar;
2554 0 substr($grammar,$pos,0,
2555 "<leftop='$name(s)': $name $2 $name> ");
2556  
2557 0 pos $grammar = $pos;
2558 }
2559 else
2560 {
2561 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,$1,1,$MAXREP,
2562 $lookahead,$line,
2563 $self,
2564 $matchrule,
2565 $argcode);
2566  
2567 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
2568 or _no_rule("repetition",$line,"$code$argcode($1)");
2569  
2570 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
2571  
2572 0 ▶ _check_insatiable($name,$1,$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 0 0 0
2573 }
2574 }
2575 elsif ($grammar =~ m/$EXACTLY/gco)
2576 {
2577 0 _parse("an exactly-$1-times subrule match", $aftererror,$line,"$code$argcode($1)");
2578 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2579 {
2580 0 my $pos = pos $grammar;
2581 0 substr($grammar,$pos,0,
2582 "<leftop='$name($1)': $name $2 $name>($1) ");
2583  
2584 0 pos $grammar = $pos;
2585 }
2586 else
2587 {
2588 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,$1,$1,$1,
2589 $lookahead,$line,
2590 $self,
2591 $matchrule,
2592 $argcode);
2593 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
2594 or _no_rule("repetition",$line,"$code$argcode($1)");
2595  
2596 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
2597 }
2598 }
2599 elsif ($grammar =~ m/$BETWEEN/gco)
2600 {
2601 0 _parse("a $1-to-$2 subrule match", $aftererror,$line,"$code$argcode($1..$2)");
2602 0 ▶ if ($3)
Branch: 1 branch
BranchTrueFalseTotal
if ($3) { } 0 0 0
2603 {
2604 0 my $pos = pos $grammar;
2605 0 substr($grammar,$pos,0,
2606 "<leftop='$name($1..$2)': $name $3 $name>($1..$2) ");
2607  
2608 0 pos $grammar = $pos;
2609 }
2610 else
2611 {
2612 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,"$1..$2",$1,$2,
2613 $lookahead,$line,
2614 $self,
2615 $matchrule,
2616 $argcode);
2617 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("repetition", $line, "$code$argcode($1..$2)") 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
2618 or _no_rule("repetition",$line,"$code$argcode($1..$2)");
2619  
2620 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
2621 }
2622 }
2623 elsif ($grammar =~ m/$ATLEAST/gco)
2624 {
2625 0 _parse("a $1-or-more subrule match", $aftererror,$line,"$code$argcode($1..)");
2626 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2627 {
2628 0 my $pos = pos $grammar;
2629 0 substr($grammar,$pos,0,
2630 "<leftop='$name($1..)': $name $2 $name>($1..) ");
2631  
2632 0 pos $grammar = $pos;
2633 }
2634 else
2635 {
2636 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,"$1..",$1,$MAXREP,
2637 $lookahead,$line,
2638 $self,
2639 $matchrule,
2640 $argcode);
2641 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
2642 or _no_rule("repetition",$line,"$code$argcode($1..)");
2643  
2644 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
2645 0 ▶ _check_insatiable($name,"$1..",$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 0 0 0
2646 }
2647 }
2648 elsif ($grammar =~ m/$ATMOST/gco)
2649 {
2650 0 _parse("a one-to-$1 subrule match", $aftererror,$line,"$code$argcode(..$1)");
2651 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2652 {
2653 0 my $pos = pos $grammar;
2654 0 substr($grammar,$pos,0,
2655 "<leftop='$name(..$1)': $name $2 $name>(..$1) ");
2656  
2657 0 pos $grammar = $pos;
2658 }
2659 else
2660 {
2661 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,"..$1",1,$1,
2662 $lookahead,$line,
2663 $self,
2664 $matchrule,
2665 $argcode);
2666 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
2667 or _no_rule("repetition",$line,"$code$argcode(..$1)");
2668  
2669 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
2670 }
2671 }
2672 elsif ($grammar =~ m/$BADREP/gco)
2673 {
2674 0 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
2675 0 _parse("an subrule match with invalid repetition specifier", 0,$line, $current_match);
2676 0 _error("Incorrect specification of a repeated subrule",
2677 $line);
2678 0 _hint("Repeated subrules like \"$code$argcode$current_match\" cannot have
2679 a maximum repetition of zero, nor can they have
2680 negative components in their ranges.");
2681 }
2682 }
2683 else
2684 {
2685 0 _parse("a subrule match", $aftererror,$line,$code);
2686 0 my $desc;
2687 0 ▶ 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 0 0
2688 0 { $desc = $self->{"rules"}{$name}->expected }
2689 0 $item = new Parse::RecDescent::_Runtime::Subrule($name,
2690 $lookahead,
2691 $line,
2692 $desc,
2693 $matchrule,
2694 $argcode);
2695  
2696 0 ▶ $prod and $prod->additem($item)
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->additem($item) or &_no_rule("(sub)rule", $line, $name) 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
2697 or _no_rule("(sub)rule",$line,$name);
2698  
2699 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
2700 }
2701 }
2702 elsif ($grammar =~ m/$LONECOLON/gco )
2703 {
2704 0 _error("Unexpected colon encountered", $line);
2705 0 _hint("Did you mean \"|\" (to start a new production)?
2706 Or perhaps you forgot that the colon
2707 in a rule definition must be
2708 on the same line as the rule name?");
2709 }
2710 elsif ($grammar =~ m/$ACTION/gco ) # BAD ACTION, ALREADY FAILED
2711 {
2712 0 _error("Malformed action encountered",
2713 $line);
2714 0 _hint("Did you forget the closing curly bracket
2715 or is there a syntax error in the action?");
2716 }
2717 elsif ($grammar =~ m/$OTHER/gco )
2718 {
2719 0 _error("Untranslatable item encountered: \"$1\"",
2720 $line);
2721 0 _hint("Did you misspell \"$1\"
2722 or forget to comment it out?");
2723 }
2724  
2725 0 ▶ if ($lookaheadspec =~ tr /././ > 3)
Branch: 1 branch
BranchTrueFalseTotal
if ($lookaheadspec =~ tr/.// > 3) 0 0 0
2726 {
2727 0 $lookaheadspec =~ s/\A\s+//;
2728 0 ▶ $lookahead = $lookahead<0
Branch: 1 branch
BranchTrueFalseTotal
$lookahead < 0 ? : 0 0 0
2729 ? 'a negative lookahead ("...!")'
2730 : 'a positive lookahead ("...")' ;
2731 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
2732 row.",$line)
2733 and
2734 _hint("Multiple positive and/or negative lookaheads
2735 are simply multiplied together to produce a
2736 single positive or negative lookahead
2737 specification. In this case the sequence
2738 \"$lookaheadspec\" was reduced to $lookahead.
2739 Was this your intention?");
2740 }
2741 0 $lookahead = 0;
2742 0 $lookaheadspec = "";
2743  
2744 0 $grammar =~ m/\G\s+/gc;
2745 }
2746  
2747 0 ▶ if ($must_pop_lines) {
Branch: 1 branch
BranchTrueFalseTotal
if ($must_pop_lines) 0 0 0
2748 0 pop @lines;
2749 }
2750  
2751 0 ▶ unless ($ERRORS or $isimplicit or !$::RD_CHECK)
Branch: 1 branch
BranchTrueFalseTotal
unless ($ERRORS or $isimplicit or not $main::RD_CHECK) 0 0 0
Condition0%0/6
$ERRORS or $isimplicit or not $main::RD_CHECK
l!l&&r!l&&!r
000
$ERRORS or $isimplicit
l!l&&r!l&&!r
000
MC/DC0%0/3
$ERRORS or $isimplicit or not $main::RD_CHECK
$ERRORS $isimplicit not $main::RD_CHECK
Truth table0%0/4
A or B or not(C)
A= $ERRORSB= $isimplicitC= not $main::RD_CHECK
ABCresult
1XX1
01X1
0011
0000
2752 {
2753 0 $self->_check_grammar();
2754 }
2755  
2756 0 ▶ unless ($ERRORS or $isimplicit or $Parse::RecDescent::_Runtime::compiling)
Branch: 1 branch
BranchTrueFalseTotal
unless ($ERRORS or $isimplicit or $Parse::RecDescent::_Runtime::compiling) 0 0 0
Condition0%0/6
$ERRORS or $isimplicit or $Parse::RecDescent::_Runtime::compiling
l!l&&r!l&&!r
000
$ERRORS or $isimplicit
l!l&&r!l&&!r
000
MC/DC0%0/3
$ERRORS or $isimplicit or $Parse::RecDescent::_Runtime::compiling
$ERRORS $isimplicit $Parse::RecDescent::_Runtime::compiling
Truth table0%0/4
A or B or C
A= $ERRORSB= $isimplicitC= $Parse::RecDescent::_Runtime::compiling
ABCresult
1XX1
01X1
0011
0000
2757 {
2758 0 my $code = $self->_code();
2759 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
2760 {
2761 0 ▶ my $mode = ($nextnamespace eq "namespace000002") ? '>' : '>>';
Branch: 1 branch
BranchTrueFalseTotal
$nextnamespace eq 'namespace000002' ? : 0 0 0
2762 0 print STDERR "printing code (", length($code),") to RD_TRACE\n";
2763 0 local *TRACE_FILE;
2764 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
2765 and print TRACE_FILE "my \$ERRORS;\n$code"
2766 and close TRACE_FILE;
2767 }
2768  
2769 0 ▶ unless ( eval "$code 1" )
Branch: 1 branch
BranchTrueFalseTotal
unless (eval "$code 1") 0 0 0
2770 {
2771 0 _error("Internal error in generated parser code!");
2772 0 $@ =~ s/at grammar/in grammar at/;
2773 0 _hint($@);
2774 }
2775 }
2776  
2777 0 ▶ if ($ERRORS and !_verbosity("HINT"))
Branch: 1 branch
BranchTrueFalseTotal
if ($ERRORS and not &_verbosity("HINT")) 0 0 0
Condition0%0/3
$ERRORS and not &_verbosity("HINT")
!ll&&!rl&&r
000
MC/DC0%0/2
$ERRORS and not &_verbosity("HINT")
$ERRORS not &_verbosity("HINT")
Truth table0%0/3
A and not(B)
A= $ERRORSB= not &_verbosity("HINT")
ABresult
0X0
100
111
2778 {
2779 0 ▶ local $::RD_HINT = defined $::RD_HINT ? $::RD_HINT : 1;
Branch: 1 branch
BranchTrueFalseTotal
defined $main::RD_HINT ? : 0 0 0
2780 0 _hint('Set $::RD_HINT (or -RD_HINT if you\'re using "perl -s")
2781 for hints on fixing these problems. Use $::RD_HINT = 0
2782 to disable this message.');
2783 }
2784 0 ▶ if ($ERRORS) { $ERRORS=0; return }
Branch: 1 branch
BranchTrueFalseTotal
if ($ERRORS) 0 0 0
2785 0 return $self;
2786 }
2787  
2788  
2789 sub _addstartcode($$)
2790 {
2791 0 ▶ my ($self, $code) = @_;
Subroutine _addstartcode: not called CC=1 SCAR=6.9
2792 0 $code =~ s/\A\s*\{(.*)\}\Z/$1/s;
2793  
2794 0 $self->{"startcode"} .= "$code;\n";
2795 }
2796  
2797 # CHECK FOR GRAMMAR PROBLEMS....
2798  
2799 sub _check_insatiable($$$$)
2800 {
2801 0 ▶ my ($subrule,$repspec,$grammar,$line) = @_;
Subroutine _check_insatiable: not called CC=14 SCAR=53.5
2802 0 pos($grammar)=pos($_[2]);
2803 0 ▶ return if $grammar =~ m/$OPTIONAL/gco || $grammar =~ m/$ANY/gco;
Branch: 1 branch
BranchTrueFalseTotal
if $grammar =~ /$OPTIONAL/cog or $grammar =~ /$ANY/cog 0 0 0
Condition0%0/3
$grammar =~ /$OPTIONAL/cog or $grammar =~ /$ANY/cog
l!l&&r!l&&!r
000
MC/DC0%0/2
$grammar =~ /$OPTIONAL/cog or $grammar =~ /$ANY/cog
$grammar =~ /$OPTIONAL/cog $grammar =~ /$ANY/cog
Truth table0%0/3
A or B
A= $grammar =~ /$OPTIONAL/cogB= $grammar =~ /$ANY/cog
ABresult
1X1
011
000
2804 0 my $min = 1;
2805 0 ▶ 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) 0 0 0
Condition0%0/18
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog or $grammar =~ /$BETWEEN/cog and do { or $grammar =~ /$SUBRULE(?!\s*:)/cog
l!l&&r!l&&!r
000
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog or $grammar =~ /$BETWEEN/cog and do { or $grammar =~ /$ATLEAST/cog and do {
l!l&&r!l&&!r
000
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog or $grammar =~ /$BETWEEN/cog and do {
l!l&&r!l&&!r
000
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog or $grammar =~ /$ATMOST/cog
l!l&&r!l&&!r
000
$grammar =~ /$MANY/cog or $grammar =~ /$EXACTLY/cog
l!l&&r!l&&!r
000
$grammar =~ /$BETWEEN/cog and do {
!ll&&!rl&&r
000
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
2806 || $grammar =~ m/$EXACTLY/gco
2807 || $grammar =~ m/$ATMOST/gco
2808 0 ▶ || $grammar =~ m/$BETWEEN/gco && do { $min=$2; 1 }
Condition0%0/3
$grammar =~ /$ATLEAST/cog and do {
!ll&&!rl&&r
000
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
2809 0 || $grammar =~ m/$ATLEAST/gco && do { $min=$2; 1 }
2810 || $grammar =~ m/$SUBRULE(?!\s*:)/gco
2811 )
2812 {
2813 0 ▶ return unless $1 eq $subrule && $min > 0;
Branch: 1 branch
BranchTrueFalseTotal
unless $1 eq $subrule and $min > 0 0 0 0
Condition0%0/3
$1 eq $subrule and $min > 0
!ll&&!rl&&r
000
MC/DC0%0/2
$1 eq $subrule and $min > 0
$1 eq $subrule $min > 0
Truth table0%0/3
A and B
A= $1 eq $subruleB= $min > 0
ABresult
0X0
100
111
2814 0 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
2815 0 ▶ _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.]) 0 0 0
2816 (almost certainly) fail.",$line)
2817 and
2818 _hint("Unless subrule \"$subrule\" performs some cunning
2819 lookahead, the repetition \"$subrule($repspec)\" will
2820 insatiably consume as many matches of \"$subrule\" as it
2821 can, leaving none to match the \"$current_match\" that follows.");
2822 }
2823 }
2824  
2825 sub _check_grammar ($)
2826 {
2827 0 ▶ my $self = shift;
Subroutine _check_grammar: not called CC=15 SCAR=54.8
2828 0 my $rules = $self->{"rules"};
2829 0 my $rule;
2830 0 foreach $rule ( values %$rules )
2831 {
2832 0 ▶ next if ! $rule->{"changed"};
Branch: 1 branch
BranchTrueFalseTotal
unless $rule->{"changed"} 0 0 0
2833  
2834 # CHECK FOR UNDEFINED RULES
2835  
2836 0 my $call;
2837 0 foreach $call ( @{$rule->{"calls"}} )
2838 {
2839 0 ▶ if (!defined ${$rules}{$call}
Branch: 1 branch
BranchTrueFalseTotal
unless (defined do { $rules }->{$call} or defined &{"Parse::RecDescent::_Runtime::$call";}) 0 0 0
Condition0%0/3
defined do { or defined &{"Parse::RecDescent::_Runtime::$call";}
l!l&&r!l&&!r
000
MC/DC0%0/2
defined do { $rules }->{$call} or defined &{"Parse::RecDescent::_Runtime::$call";}
defined do { $rules }->{$call} defined &{"Parse::RecDescent::_Runtime::$call";}
Truth table0%0/3
A or B
A= defined do { $rules }->{$call}B= defined &{"Parse::RecDescent::_Runtime::$call";}
ABresult
1X1
011
000
2840 0 &&!defined &{"Parse::RecDescent::_Runtime::$call"})
2841 {
2842 0 ▶ if (!defined $::RD_AUTOSTUB)
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $main::RD_AUTOSTUB) { } 0 0 0
2843 {
2844 0 ▶ _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>.]) 0 0 0
2845 used in a production.")
2846 and
2847 _hint("Will you be providing this rule
2848 later, or did you perhaps
2849 misspell \"$call\"? Otherwise
2850 it will be treated as an
2851 immediate <reject>.");
2852 0 eval "sub $self->{namespace}::$call {undef}";
2853 }
2854 else # EXPERIMENTAL
2855 {
2856 0 my $rule = qq{'$call'};
2857 0 ▶ if ($::RD_AUTOSTUB and $::RD_AUTOSTUB ne "1") {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::RD_AUTOSTUB and $main::RD_AUTOSTUB ne 1) 0 0 0
Condition0%0/3
$main::RD_AUTOSTUB and $main::RD_AUTOSTUB ne 1
!ll&&!rl&&r
000
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
2858 0 $rule = $::RD_AUTOSTUB;
2859 }
2860 0 ▶ _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 0 0
2861 and
2862 _hint("A call was made to a subrule
2863 named \"$call\", but no such
2864 rule was specified. However,
2865 since \$::RD_AUTOSTUB
2866 was defined, a rule stub
2867 ($call : $rule) was
2868 automatically created.");
2869  
2870 0 $self->_generate("$call: $rule",0,1);
2871 }
2872 }
2873 }
2874  
2875 # CHECK FOR LEFT RECURSION
2876  
2877 0 ▶ if ($rule->isleftrec($rules))
Branch: 1 branch
BranchTrueFalseTotal
if ($rule->isleftrec($rules)) 0 0 0
2878 {
2879 0 _error("Rule \"$rule->{name}\" is left-recursive.");
2880 0 _hint("Redesign the grammar so it's not left-recursive.
2881 That will probably mean you need to re-implement
2882 repetitions using the '(s)' notation.
2883 For example: \"$rule->{name}(s)\".");
2884 0 next;
2885 }
2886  
2887 # CHECK FOR PRODUCTIONS FOLLOWING EMPTY PRODUCTIONS
2888 {
2889 0 my $hasempty;
2890 my $prod;
2891 0 foreach $prod ( @{$rule->{"prods"}} ) {
2892 0 ▶ if ($hasempty) {
Branch: 1 branch
BranchTrueFalseTotal
if ($hasempty) 0 0 0
2893 0 _error("Production " . $prod->describe . " for \"$rule->{name}\"
2894 will never be reached (preceding empty production will
2895 always match first).");
2896 0 _hint("Reorder the grammar so that the empty production
2897 is last in the list or productions.");
2898 0 last;
2899 }
2900 0 ▶ $hasempty ||= $prod->isempty();
Condition0%0/3
$hasempty ||= $prod->isempty
l!l&&r!l&&!r
000
MC/DC0%0/2
$hasempty ||= $prod->isempty
$hasempty $prod->isempty
Truth table0%0/3
A ||= B
A= $hasemptyB= $prod->isempty
ABresult
1X1
011
000
2901 }
2902 }
2903 }
2904 }
2905  
2906 # GENERATE ACTUAL PARSER CODE
2907  
2908 sub _code($)
2909 {
2910 0 ▶ my $self = shift;
Subroutine _code: not called CC=4 SCAR=30.0
2911 0 ▶ my $initial_skip = defined($self->{skip}) ? $self->{skip} : $skip;
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'skip'} ? : 0 0 0
2912  
2913 0 my $code = qq!
2914 package $self->{namespace};
2915 use strict;
2916 use vars qw(\$skip \$AUTOLOAD $self->{localvars} );
2917 \@$self->{namespace}\::ISA = ();
2918 \$skip = '$initial_skip';
2919 $self->{startcode}
2920  
2921 {
2922 local \$SIG{__WARN__} = sub {0};
2923 # PRETEND TO BE IN Parse::RecDescent::_Runtime NAMESPACE
2924 *$self->{namespace}::AUTOLOAD = sub
2925 {
2926 no strict 'refs';
2927 !
2928 # This generated code uses ${"AUTOLOAD"} rather than $AUTOLOAD in
2929 # order to avoid the circular reference documented here:
2930 # https://rt.perl.org/rt3/Public/Bug/Display.html?id=110248
2931 # As a result of the investigation of
2932 # https://rt.cpan.org/Ticket/Display.html?id=53710
2933 . qq!
2934 \${"AUTOLOAD"} =~ s/^$self->{namespace}/Parse::RecDescent::_Runtime/;
2935 goto &{\${"AUTOLOAD"}};
2936 }
2937 }
2938  
2939 !;
2940 0 $code .= "push \@$self->{namespace}\::ISA, 'Parse::RecDescent::_Runtime';";
2941 0 $self->{"startcode"} = '';
2942  
2943 0 my $rule;
2944 0 foreach $rule ( values %{$self->{"rules"}} )
2945 {
2946 0 ▶ if ($rule->{"changed"})
Branch: 1 branch
BranchTrueFalseTotal
if ($rule->{"changed"}) 0 0 0
2947 {
2948 0 $code .= $rule->code($self->{"namespace"},$self);
2949 0 $rule->{"changed"} = 0;
2950 }
2951 }
2952  
2953 0 return $code;
2954 }
2955  
2956  
2957 # EXECUTING A PARSE....
2958  
2959 sub AUTOLOAD # ($parser, $text; $linenum, @args)
2960 {
2961 73 ▶ croak "Could not find method: $AUTOLOAD\n" unless ref $_[0];
Subroutine AUTOLOAD: called CC=14 SCAR=29.2
Branch: 1 branch
BranchTrueFalseTotal
unless ref $_[0] 0 73 73
2962 73 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
7300
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
2963 73 ▶ my $text = ref($_[1]) eq 'SCALAR' ? ${$_[1]} : "$_[1]";
Branch: 1 branch
BranchTrueFalseTotal
ref $_[1] eq 'SCALAR' ? : 0 73 73
2964 73 $_[0]->{lastlinenum} = _linecount($text);
2965 73 ▶ $_[0]->{lastlinenum} += ($_[2]||0) if @_ > 2;
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 2 66 7 73
Condition50%1/2
$_[2] || 0
l!l
660
MC/DC0%0/1
$_[2] || 0
$_[2]
Truth table50%1/2
A
A= $_[2]
Aresult
11
00
2966 73 $_[0]->{offsetlinenum} = $_[0]->{lastlinenum};
2967 73 $_[0]->{fulltext} = $text;
2968 73 $_[0]->{fulltextlen} = length $text;
2969 73 $_[0]->{linecounter_cache} = {};
2970 73 $_[0]->{deferred} = [];
2971 73 $_[0]->{errors} = [];
2972 73 my @args = @_[3..$#_];
2973 73 ▶ my $args = sub { [ @args ] };
Subroutine __ANON__: called CC=1 SCAR=0.0
2974  
2975 73 $AUTOLOAD =~ s/$class/$_[0]->{namespace}/;
2976 28 ▶ no strict "refs";
Subroutine BEGIN: called CC=1 SCAR=0.0
2977  
2978 73 ▶ local $::RD_WARN = $::RD_WARN || $_[0]->{__WARN__};
Condition33%1/3
$main::RD_WARN || $_[0]{'__WARN__'}
l!l&&r!l&&!r
7300
MC/DC0%0/2
$main::RD_WARN || $_[0]{'__WARN__'}
$main::RD_WARN $_[0]{'__WARN__'}
Truth table33%1/3
A || B
A= $main::RD_WARNB= $_[0]{'__WARN__'}
ABresult
1X1
011
000
2979 73 ▶ local $::RD_HINT = $::RD_HINT || $_[0]->{__HINT__};
Condition33%1/3
$main::RD_HINT || $_[0]{'__HINT__'}
l!l&&r!l&&!r
0073
MC/DC0%0/2
$main::RD_HINT || $_[0]{'__HINT__'}
$main::RD_HINT $_[0]{'__HINT__'}
Truth table33%1/3
A || B
A= $main::RD_HINTB= $_[0]{'__HINT__'}
ABresult
1X1
011
000
2980 73 ▶ local $::RD_TRACE = $::RD_TRACE || $_[0]->{__TRACE__};
Condition33%1/3
$main::RD_TRACE || $_[0]{'__TRACE__'}
l!l&&r!l&&!r
0073
MC/DC0%0/2
$main::RD_TRACE || $_[0]{'__TRACE__'}
$main::RD_TRACE $_[0]{'__TRACE__'}
Truth table33%1/3
A || B
A= $main::RD_TRACEB= $_[0]{'__TRACE__'}
ABresult
1X1
011
000
2981  
2982 73 ▶ croak "Unknown starting rule ($AUTOLOAD) called\n"
Branch: 1 branch
BranchTrueFalseTotal
unless defined &$Parse::RecDescent::_Runtime::AUTOLOAD 0 73 73
2983 unless defined &$AUTOLOAD;
2984 73 my $retval = &{$AUTOLOAD}(
2985 $_[0], # $parser
2986 $text, # $text
2987 undef, # $repeating
2988 undef, # $_noactions
2989 $args, # \@args
2990 undef, # $_itempos
2991 );
2992  
2993  
2994 73 ▶ if (defined $retval)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $retval) { } 71 2 73
2995 {
2996 71 foreach ( @{$_[0]->{deferred}} ) { &$_; }
2997 }
2998 else
2999 {
3000 2 foreach ( @{$_[0]->{errors}} ) { _error(@$_); }
3001 }
3002  
3003 73 ▶ if (ref $_[1] eq 'SCALAR') { ${$_[1]} = $text }
Branch: 1 branch
BranchTrueFalseTotal
if (ref $_[1] eq "SCALAR") 0 73 73
3004  
3005 73 $ERRORS = 0;
3006 73 return $retval;
3007 }
3008  
3009 sub _parserepeat($$$$$$$$$) # RETURNS A REF TO AN ARRAY OF MATCHES
3010 {
3011 0 ▶ my ($parser, $text, $prod, $min, $max, $_noactions, $expectation, $argcode, $_itempos) = @_;
Subroutine _parserepeat: not called CC=10 SCAR=47.0
3012 0 my @tokens = ();
3013  
3014 0 my $itemposfirst;
3015 my $reps;
3016 0 ▶ for ($reps=0; $reps<$max;)
Branch: 1 branch
BranchTrueFalseTotal
if ($reps < $max) 0 0 0
3017 {
3018 0 $expectation->at($text);
3019 0 my $_savetext = $text;
3020 0 my $prevtextlen = length $text;
3021 0 my $_tok;
3022 0 ▶ if (! defined ($_tok = &$prod($parser,$text,1,$_noactions,$argcode,$_itempos)))
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = &$prod($parser, $text, 1, $_noactions, $argcode, $_itempos))) 0 0 0
3023 {
3024 0 $text = $_savetext;
3025 0 last;
3026 }
3027  
3028 0 ▶ if (defined($_itempos) and !defined($itemposfirst))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_itempos and not defined $itemposfirst) 0 0 0
Condition0%0/3
defined $_itempos and not defined $itemposfirst
!ll&&!rl&&r
000
MC/DC0%0/2
defined $_itempos and not defined $itemposfirst
defined $_itempos not defined $itemposfirst
Truth table0%0/3
A and not(B)
A= defined $_itemposB= not defined $itemposfirst
ABresult
0X0
100
111
3029 {
3030 0 $itemposfirst = Parse::RecDescent::_Runtime::Production::_duplicate_itempos($_itempos);
3031 }
3032  
3033 0 ▶ push @tokens, $_tok if defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
if defined $_tok 0 0 0
3034 0 ▶ last if ++$reps >= $min and $prevtextlen == length $text;
Branch: 1 branch
BranchTrueFalseTotal
if ++$reps >= $min and $prevtextlen == length $text 0 0 0
Condition0%0/3
++$reps >= $min and $prevtextlen == length $text
!ll&&!rl&&r
000
MC/DC0%0/2
++$reps >= $min and $prevtextlen == length $text
++$reps >= $min $prevtextlen == length $text
Truth table0%0/3
A and B
A= ++$reps >= $minB= $prevtextlen == length $text
ABresult
0X0
100
111
3035 }
3036  
3037 0 ▶ do { $expectation->failed(); return undef} if $reps<$min;
Branch: 1 branch
BranchTrueFalseTotal
if ($reps < $min) 0 0 0
3038  
3039 0 ▶ if (defined $itemposfirst)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $itemposfirst) 0 0 0
3040 {
3041 0 Parse::RecDescent::_Runtime::Production::_update_itempos($_itempos, $itemposfirst, undef, [qw(from)]);
3042 }
3043  
3044 0 $_[1] = $text;
3045 0 return [@tokens];
3046 }
3047  
3048 sub set_autoflush {
3049 0 ▶ my $orig_selected = select $_[0];
Subroutine set_autoflush: not called CC=1 SCAR=6.9
3050 0 $| = 1;
3051 0 select $orig_selected;
3052 0 return;
3053 }
3054  
3055 # ERROR REPORTING....
3056  
3057 sub _write_ERROR {
3058 0 ▶ my ($errorprefix, $errortext) = @_;
Subroutine _write_ERROR: not called CC=2 SCAR=17.9
3059 0 ▶ return if $errortext !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $errortext =~ /\S/ 0 0 0
3060 0 $errorprefix =~ s/\s+\Z//;
3061 0 local $^A = q{};
3062  
3063 0 formline(<<'END_FORMAT', $errorprefix, $errortext);
3064 @>>>>>>>>>>>>>>>>>>>>: ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
3065 END_FORMAT
3066 0 formline(<<'END_FORMAT', $errortext);
3067 ~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
3068 END_FORMAT
3069 0 print {*STDERR} $^A;
3070 }
3071  
3072 # TRACING
3073  
3074 28 my $TRACE_FORMAT = <<'END_FORMAT';
3075 @>|@|||||||||@^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|
3076 | ~~ |^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|
3077 END_FORMAT
3078  
3079 28 my $TRACECONTEXT_FORMAT = <<'END_FORMAT';
3080 @>|@|||||||||@ |^<<<<<<<<<<<<<<<<<<<<<<<<<<<
3081 | ~~ | |^<<<<<<<<<<<<<<<<<<<<<<<<<<<
3082 END_FORMAT
3083  
3084 sub _write_TRACE {
3085 0 ▶ my ($tracelevel, $tracerulename, $tracemsg) = @_;
Subroutine _write_TRACE: not called CC=2 SCAR=17.9
3086 0 ▶ return if $tracemsg !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $tracemsg =~ /\S/ 0 0 0
3087 0 $tracemsg =~ s/\s*\Z//;
3088 0 local $^A = q{};
3089 0 my $bar = '|';
3090 0 formline($TRACE_FORMAT, $tracelevel, $tracerulename, $bar, $tracemsg, $tracemsg);
3091 0 print {*STDERR} $^A;
3092 }
3093  
3094 sub _write_TRACECONTEXT {
3095 0 ▶ my ($tracelevel, $tracerulename, $tracecontext) = @_;
Subroutine _write_TRACECONTEXT: not called CC=2 SCAR=17.9
3096 0 ▶ return if $tracecontext !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $tracecontext =~ /\S/ 0 0 0
3097 0 $tracecontext =~ s/\s*\Z//;
3098 0 local $^A = q{};
3099 0 my $bar = '|';
3100 0 formline($TRACECONTEXT_FORMAT, $tracelevel, $tracerulename, $bar, $tracecontext, $tracecontext);
3101 0 print {*STDERR} $^A;
3102 }
3103  
3104 sub _verbosity($)
3105 {
3106 0 ▶ defined $::RD_TRACE
Subroutine _verbosity: not called CC=10 SCAR=47.0
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/ 0 0 0
Condition0%0/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
000
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
000
defined $main::RD_TRACE or defined $main::RD_HINT and $main::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/
l!l&&r!l&&!r
000
defined $main::RD_HINT and $main::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/
!ll&&!rl&&r
000
defined $main::RD_HINT and $main::RD_HINT
!ll&&!rl&&r
000
defined $main::RD_WARN and $main::RD_WARN and $_[0] =~ /ERRORS|WARN/
!ll&&!rl&&r
000
defined $main::RD_WARN and $main::RD_WARN
!ll&&!rl&&r
000
defined $main::RD_ERRORS and $main::RD_ERRORS and $_[0] =~ /ERRORS/
!ll&&!rl&&r
000
defined $main::RD_ERRORS and $main::RD_ERRORS
!ll&&!rl&&r
000
MC/DC0%0/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 table0%0/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
3107 or defined $::RD_HINT and $::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/
3108 or defined $::RD_WARN and $::RD_WARN and $_[0] =~ /ERRORS|WARN/
3109 or defined $::RD_ERRORS and $::RD_ERRORS and $_[0] =~ /ERRORS/
3110 }
3111  
3112 sub _error($;$)
3113 {
3114 0 ▶ $ERRORS++;
Subroutine _error: not called CC=4 SCAR=30.0
3115 0 ▶ return 0 if ! _verbosity("ERRORS");
Branch: 1 branch
BranchTrueFalseTotal
unless &_verbosity("ERRORS") 0 0 0
3116 0 my $errortext = $_[0];
3117 0 ▶ my $errorprefix = "ERROR" . ($_[1] ? " (line $_[1])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 0 0
3118 0 $errortext =~ s/\s+/ /g;
3119 0 ▶ print {*STDERR} "\n" if _verbosity("WARN");
Branch: 1 branch
BranchTrueFalseTotal
if &_verbosity("WARN") 0 0 0
3120 0 _write_ERROR($errorprefix, $errortext);
3121 0 return 1;
3122 }
3123  
3124 sub _warn($$;$)
3125 {
3126 0 ▶ return 0 unless _verbosity("WARN") && ($::RD_HINT || $_[0] >= ($::RD_WARN||1));
Subroutine _warn: not called CC=7 SCAR=40.3
Branch: 1 branch
BranchTrueFalseTotal
unless &_verbosity("WARN") and $main::RD_HINT || $_[0] >= ($main::RD_WARN || 1) 0 0 0
Condition0%0/8
&_verbosity("WARN") and $main::RD_HINT || $_[0] >= ($main::RD_WARN || 1)
!ll&&!rl&&r
000
$main::RD_HINT or $_[0] >= ($main::RD_WARN || 1)
l!l&&r!l&&!r
000
$main::RD_WARN || 1
l!l
00
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/DC0%0/1
$main::RD_WARN || 1
$main::RD_WARN
Truth table0%0/4
A and B or C
A= &_verbosity("WARN")B= $main::RD_HINTC= $_[0] >= ($main::RD_WARN || 1)
ABCresult
0XX0
1000
11X1
1011
Truth table0%0/2
A
A= $main::RD_WARN
Aresult
11
00
3127 0 my $errortext = $_[1];
3128 0 ▶ my $errorprefix = "Warning" . ($_[2] ? " (line $_[2])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[2] ? : 0 0 0
3129 0 ▶ print {*STDERR} "\n" if _verbosity("HINT");
Branch: 1 branch
BranchTrueFalseTotal
if &_verbosity("HINT") 0 0 0
3130 0 $errortext =~ s/\s+/ /g;
3131 0 _write_ERROR($errorprefix, $errortext);
3132 0 return 1;
3133 }
3134  
3135 sub _hint($)
3136 {
3137 0 ▶ return 0 unless $::RD_HINT;
Subroutine _hint: not called CC=3 SCAR=24.8
Branch: 1 branch
BranchTrueFalseTotal
unless $main::RD_HINT 0 0 0
3138 0 my $errortext = $_[0];
3139 0 ▶ my $errorprefix = "Hint" . ($_[1] ? " (line $_[1])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 0 0
3140 0 $errortext =~ s/\s+/ /g;
3141 0 _write_ERROR($errorprefix, $errortext);
3142 0 return 1;
3143 }
3144  
3145 sub _tracemax($)
3146 {
3147 0 ▶ if (defined $::RD_TRACE
Subroutine _tracemax: not called CC=5 SCAR=34.0
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 0 0
Condition0%0/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
000
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1
!ll&&!rl&&r
000
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/
!ll&&!rl&&r
000
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
3148 && $::RD_TRACE =~ /\d+/
3149 && $::RD_TRACE>1
3150 && $::RD_TRACE+10<length($_[0]))
3151 {
3152 0 my $count = length($_[0]) - $::RD_TRACE;
3153 0 return substr($_[0],0,$::RD_TRACE/2)
3154 . "...<$count>..."
3155 . substr($_[0],-$::RD_TRACE/2);
3156 }
3157 else
3158 {
3159 0 return substr($_[0],0,500);
3160 }
3161 }
3162  
3163 sub _tracefirst($)
3164 {
3165 0 ▶ if (defined $::RD_TRACE
Subroutine _tracefirst: not called CC=5 SCAR=34.0
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 0 0
Condition0%0/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
000
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/ and $main::RD_TRACE > 1
!ll&&!rl&&r
000
defined $main::RD_TRACE and $main::RD_TRACE =~ /\d+/
!ll&&!rl&&r
000
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
3166 && $::RD_TRACE =~ /\d+/
3167 && $::RD_TRACE>1
3168 && $::RD_TRACE+10<length($_[0]))
3169 {
3170 0 my $count = length($_[0]) - $::RD_TRACE;
3171 0 return substr($_[0],0,$::RD_TRACE) . "...<+$count>";
3172 }
3173 else
3174 {
3175 0 return substr($_[0],0,500);
3176 }
3177 }
3178  
3179 28 my $lastcontext = '';
3180 28 my $lastrulename = '';
3181 28 my $lastlevel = '';
3182  
3183 sub _trace($;$$$)
3184 {
3185 0 ▶ my $tracemsg = $_[0];
Subroutine _trace: not called CC=8 SCAR=42.8
3186 0 ▶ my $tracecontext = $_[1]||$lastcontext;
Condition0%0/3
$_[1] || $lastcontext
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[1] || $lastcontext
$_[1] $lastcontext
Truth table0%0/3
A || B
A= $_[1]B= $lastcontext
ABresult
1X1
011
000
3187 0 ▶ my $tracerulename = $_[2]||$lastrulename;
Condition0%0/3
$_[2] || $lastrulename
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[2] || $lastrulename
$_[2] $lastrulename
Truth table0%0/3
A || B
A= $_[2]B= $lastrulename
ABresult
1X1
011
000
3188 0 ▶ my $tracelevel = $_[3]||$lastlevel;
Condition0%0/3
$_[3] || $lastlevel
l!l&&r!l&&!r
000
MC/DC0%0/2
$_[3] || $lastlevel
$_[3] $lastlevel
Truth table0%0/3
A || B
A= $_[3]B= $lastlevel
ABresult
1X1
011
000
3189 0 ▶ if ($tracerulename) { $lastrulename = $tracerulename }
Branch: 1 branch
BranchTrueFalseTotal
if ($tracerulename) 0 0 0
3190 0 ▶ if ($tracelevel) { $lastlevel = $tracelevel }
Branch: 1 branch
BranchTrueFalseTotal
if ($tracelevel) 0 0 0
3191  
3192 0 $tracecontext =~ s/\n/\\n/g;
3193 0 $tracecontext =~ s/\s+/ /g;
3194 0 $tracerulename = qq{$tracerulename};
3195 0 _write_TRACE($tracelevel, $tracerulename, $tracemsg);
3196 0 ▶ if ($tracecontext ne $lastcontext)
Branch: 1 branch
BranchTrueFalseTotal
if ($tracecontext ne $lastcontext) 0 0 0
3197 {
3198 0 ▶ if ($tracecontext)
Branch: 1 branch
BranchTrueFalseTotal
if ($tracecontext) { } 0 0 0
3199 {
3200 0 $lastcontext = _tracefirst($tracecontext);
3201 0 $tracecontext = qq{"$tracecontext"};
3202 }
3203 else
3204 {
3205 0 $tracecontext = qq{<NO TEXT LEFT>};
3206 }
3207 0 _write_TRACECONTEXT($tracelevel, $tracerulename, $tracecontext);
3208 }
3209 }
3210  
3211 sub _matchtracemessage
3212 {
3213 0 ▶ my ($self, $reject) = @_;
Subroutine _matchtracemessage: not called CC=6 SCAR=37.4
3214  
3215 0 my $prefix = '';
3216 0 my $postfix = '';
3217 0 my $matched = not $reject;
3218 0 my @t = ("Matched", "Didn't match");
3219 0 ▶ if (exists $self->{lookahead} and $self->{lookahead})
Branch: 1 branch
BranchTrueFalseTotal
if (exists $self->{"lookahead"} and $self->{"lookahead"}) 0 0 0
Condition0%0/3
exists $self->{"lookahead"} and $self->{"lookahead"}
!ll&&!rl&&r
000
MC/DC0%0/2
exists $self->{"lookahead"} and $self->{"lookahead"}
exists $self->{"lookahead"} $self->{"lookahead"}
Truth table0%0/3
A and B
A= exists $self->{"lookahead"}B= $self->{"lookahead"}
ABresult
0X0
100
111
3220 {
3221 0 ▶ $postfix = $reject ? "(reject)" : "(keep)";
Branch: 1 branch
BranchTrueFalseTotal
$reject ? : 0 0 0
3222 0 $prefix = "...";
3223 0 ▶ if ($self->{lookahead} < 0)
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"lookahead"} < 0) 0 0 0
3224 {
3225 0 $prefix .= '!';
3226 0 $matched = not $matched;
3227 }
3228 }
3229 0 ▶ $prefix . ($matched ? $t[0] : $t[1]) . $postfix;
Branch: 1 branch
BranchTrueFalseTotal
$matched ? : 0 0 0
3230 }
3231  
3232 sub _parseunneg($$$$$)
3233 {
3234 0 ▶ _parse($_[0],$_[1],$_[3],$_[4]);
Subroutine _parseunneg: not called CC=2 SCAR=17.9
3235 0 ▶ if ($_[2]<0)
Branch: 1 branch
BranchTrueFalseTotal
if ($_[2] < 0) 0 0 0
3236 {
3237 0 _error("Can't negate \"$_[4]\".",$_[3]);
3238 0 _hint("You can't negate $_[0]. Remove the \"...!\" before
3239 \"$_[4]\".");
3240 0 return 0;
3241 }
3242 0 return 1;
3243 }
3244  
3245 sub _parse($$$$)
3246 {
3247 0 ▶ my $what = $_[3];
Subroutine _parse: not called CC=4 SCAR=30.0
3248 0 $what =~ s/^\s+//;
3249 0 ▶ if ($_[1])
Branch: 1 branch
BranchTrueFalseTotal
if ($_[1]) 0 0 0
3250 {
3251 0 ▶ _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?") 0 0 0
3252 and
3253 _hint("An unconditional <error> always causes the
3254 production containing it to immediately fail.
3255 \u$_[0] that follows an <error>
3256 will never be reached. Did you mean to use
3257 <error?> instead?");
3258 }
3259  
3260 0 ▶ return if ! _verbosity("TRACE");
Branch: 1 branch
BranchTrueFalseTotal
unless &_verbosity("TRACE") 0 0 0
3261 0 my $errortext = "Treating \"$what\" as $_[0]";
3262 0 my $errorprefix = "Parse::RecDescent::_Runtime";
3263 0 $errortext =~ s/\s+/ /g;
3264 0 _write_ERROR($errorprefix, $errortext);
3265 }
3266  
3267 sub _linecount($) {
3268 73 ▶ scalar substr($_[0], pos $_[0]||0) =~ tr/\n//
Subroutine _linecount: called CC=2 SCAR=7.6
Condition50%1/2
pos $_[0] || 0
l!l
073
MC/DC0%0/1
pos $_[0] || 0
pos $_[0]
Truth table50%1/2
A
A= pos $_[0]
Aresult
11
00
3269 }
3270  
3271  
3272 package main;
3273  
3274 28 ▶use vars qw ( $RD_ERRORS $RD_WARN $RD_HINT $RD_TRACE $RD_CHECK );
Subroutine BEGIN: called CC=1 SCAR=0.0
3275 28 $::RD_CHECK = 1;
3276 28 $::RD_ERRORS = 1;
3277 28 $::RD_WARN = 3;
3278  
3279 28 1;
3280  
3281 }
3282 package Treex::Core::ScenarioParser;
3283 28 { my $ERRORS;
3284  
3285  
3286 package Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser;
3287 28 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3288 28 ▶use vars qw($skip $AUTOLOAD );
Subroutine BEGIN: called CC=1 SCAR=0.0
3289 28 @Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::ISA = ();
3290 28 $skip = '\s*';
3291  
3292 28 ▶use File::Slurp;
Subroutine BEGIN: called CC=1 SCAR=0.0
3293 28 ▶use File::Basename;
Subroutine BEGIN: called CC=1 SCAR=0.0
3294 ## no critic (Miscellanea::ProhibitUnrestrictedNoCritic)
3295 ## no critic Generated code follows
3296 28 ▶no warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3297 ;
3298  
3299  
3300 {
3301 0 ▶local $SIG{__WARN__} = sub {0};
Subroutine __ANON__: not called CC=1 SCAR=0.4
3302 # PRETEND TO BE IN Parse::RecDescent::_Runtime NAMESPACE
3303 *Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::AUTOLOAD = sub
3304 {
3305 28 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
3306  
3307 0 ▶ ${"AUTOLOAD"} =~ s/^Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser/Parse::RecDescent::_Runtime/;
Subroutine __ANON__: not called CC=1 SCAR=6.9
3308 0 goto &{${"AUTOLOAD"}};
3309 }
3310 28 }
3311  
3312 28 push @Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::ISA, 'Parse::RecDescent::_Runtime';
3313 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3314 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SPACE
3315 {
3316 0 ▶ my $thisparser = $_[0];
Subroutine SPACE: not called CC=29 SCAR=67.0
3317 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3318 0 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition0%0/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
00
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table0%0/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
3319 0 $ERRORS = 0;
3320 0 my $thisrule = $thisparser->{"rules"}{"SPACE"};
3321  
3322 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [SPACE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3323 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3324 q{SPACE},
3325 $tracelevel)
3326 if defined $::RD_TRACE;
3327  
3328
3329 0 my $err_at = @{$thisparser->{errors}};
3330  
3331 0 my $score;
3332 my $score_return;
3333 0 my $_tok;
3334 0 my $return = undef;
3335 0 my $_matched=0;
3336 0 my $commit=0;
3337 0 my @item = ();
3338 0 my %item = ();
3339 0 my $repeating = $_[2];
3340 0 my $_noactions = $_[3];
3341 0 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 0 0 0
3342 0 my $_itempos = $_[5];
3343 0 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 0 0
3344 0 my $text;
3345 my $lastsep;
3346 0 my $current_match;
3347 0 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\s+/});
3348 0 $expectation->at($_[1]);
3349
3350 0 my $thisline;
3351 0 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
3352  
3353
3354  
3355 0 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 0 0 0
Condition0%0/3
$_matched or $commit
l!l&&r!l&&!r
000
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3356 {
3357
3358 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\s+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3359 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3360 q{SPACE},
3361 $tracelevel)
3362 if defined $::RD_TRACE;
3363 0 my $thisprod = $thisrule->{"prods"}[0];
3364 0 $text = $_[1];
3365 0 my $_savetext;
3366 0 @item = (q{SPACE});
3367 0 %item = (__RULE__ => q{SPACE});
3368 0 my $repcount = 0;
3369  
3370  
3371 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\s+/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3372 q{SPACE},
3373 $tracelevel)
3374 if defined $::RD_TRACE;
3375 0 undef $lastsep;
3376 0 $expectation->is(q{})->at($text);
3377
3378  
3379 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s+)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s+)/) 0 0 0
$lastsep = $1 and "" 0 0 0
Condition0%0/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s+)/
!ll&&!rl&&r
000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\s+)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\s+)/
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\s+)/
ABresult
0X0
100
111
3380 {
3381 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
3382 0 $expectation->failed();
3383 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3384 Parse::RecDescent::_Runtime::_tracefirst($text))
3385 if defined $::RD_TRACE;
3386  
3387 0 last;
3388 }
3389 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3390 0 substr($text,0,length($current_match),q{});
3391 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3392 . $current_match . q{])},
3393 Parse::RecDescent::_Runtime::_tracefirst($text))
3394 if defined $::RD_TRACE;
3395 0 push @item, $item{__PATTERN1__}=$current_match;
3396
3397  
3398 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3399 Parse::RecDescent::_Runtime::_tracefirst($text),
3400 q{SPACE},
3401 $tracelevel)
3402 if defined $::RD_TRACE;
3403
3404  
3405 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
3406 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
3407 {
3408 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3409 if defined $::RD_TRACE;
3410 0 last;
3411 }
3412 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3413 . $_tok . q{])},
3414 Parse::RecDescent::_Runtime::_tracefirst($text))
3415 if defined $::RD_TRACE;
3416 0 push @item, $_tok;
3417 0 $item{__ACTION1__}=$_tok;
3418
3419  
3420 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\s+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3421 Parse::RecDescent::_Runtime::_tracefirst($text),
3422 q{SPACE},
3423 $tracelevel)
3424 if defined $::RD_TRACE;
3425  
3426  
3427  
3428 0 $_matched = 1;
3429 0 last;
3430 }
3431  
3432  
3433 0 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 0 0
Condition0%0/3
$_matched or defined $score
l!l&&r!l&&!r
000
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
3434 {
3435
3436  
3437 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
3438 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3439 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3440 q{SPACE},
3441 $tracelevel)
3442 if defined $::RD_TRACE;
3443 0 return undef;
3444 }
3445 0 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 0 0
Condition0%0/3
not defined $return and defined $score
!ll&&!rl&&r
000
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
3446 {
3447 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3448 q{SPACE},
3449 $tracelevel)
3450 if defined $::RD_TRACE;
3451 0 $return = $score_return;
3452 }
3453 0 splice @{$thisparser->{errors}}, $err_at;
3454 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
3455 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
3456 {
3457 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
3458 $return . q{])}, "",
3459 q{SPACE},
3460 $tracelevel);
3461 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
3462 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
3463 Parse::RecDescent::_Runtime::_tracefirst($text),
3464 , q{SPACE},
3465 $tracelevel)
3466 }
3467 0 $_[1] = $text;
3468 0 return $return;
3469 }
3470  
3471 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3472 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::EMPTY
3473 {
3474 12 ▶ my $thisparser = $_[0];
Subroutine EMPTY: called CC=24 SCAR=39.0
3475 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3476 12 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
120
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
3477 12 $ERRORS = 0;
3478 12 my $thisrule = $thisparser->{"rules"}{"EMPTY"};
3479  
3480 12 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [EMPTY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3481 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3482 q{EMPTY},
3483 $tracelevel)
3484 if defined $::RD_TRACE;
3485  
3486
3487 12 my $err_at = @{$thisparser->{errors}};
3488  
3489 12 my $score;
3490 my $score_return;
3491 12 my $_tok;
3492 12 my $return = undef;
3493 12 my $_matched=0;
3494 12 my $commit=0;
3495 12 my @item = ();
3496 12 my %item = ();
3497 12 my $repeating = $_[2];
3498 12 my $_noactions = $_[3];
3499 12 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 12 0 12
3500 12 my $_itempos = $_[5];
3501 12 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 12 12
3502 12 my $text;
3503 my $lastsep;
3504 12 my $current_match;
3505 12 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{//});
3506 12 $expectation->at($_[1]);
3507
3508 12 my $thisline;
3509 12 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
3510  
3511
3512  
3513 12 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 12 0 12
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0012
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3514 {
3515
3516 12 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [//]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3517 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3518 q{EMPTY},
3519 $tracelevel)
3520 if defined $::RD_TRACE;
3521 12 my $thisprod = $thisrule->{"prods"}[0];
3522 12 $text = $_[1];
3523 12 my $_savetext;
3524 12 @item = (q{EMPTY});
3525 12 %item = (__RULE__ => q{EMPTY});
3526 12 my $repcount = 0;
3527  
3528  
3529 12 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [//]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3530 q{EMPTY},
3531 $tracelevel)
3532 if defined $::RD_TRACE;
3533 12 undef $lastsep;
3534 12 $expectation->is(q{})->at($text);
3535
3536  
3537 12 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:)/) 0 12 12
$lastsep = $1 and "" 0 12 12
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:)/
!ll&&!rl&&r
0012
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:)/
ABresult
0X0
100
111
3538 {
3539 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
3540 0 $expectation->failed();
3541 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3542 Parse::RecDescent::_Runtime::_tracefirst($text))
3543 if defined $::RD_TRACE;
3544  
3545 0 last;
3546 }
3547 12 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3548 12 substr($text,0,length($current_match),q{});
3549 12 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3550 . $current_match . q{])},
3551 Parse::RecDescent::_Runtime::_tracefirst($text))
3552 if defined $::RD_TRACE;
3553 12 push @item, $item{__PATTERN1__}=$current_match;
3554
3555  
3556 12 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [//]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3557 Parse::RecDescent::_Runtime::_tracefirst($text),
3558 q{EMPTY},
3559 $tracelevel)
3560 if defined $::RD_TRACE;
3561  
3562  
3563  
3564 12 $_matched = 1;
3565 12 last;
3566 }
3567  
3568  
3569 12 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 12 12
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
1200
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
3570 {
3571
3572  
3573 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
3574 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3575 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3576 q{EMPTY},
3577 $tracelevel)
3578 if defined $::RD_TRACE;
3579 0 return undef;
3580 }
3581 12 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 12 12
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0120
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
3582 {
3583 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3584 q{EMPTY},
3585 $tracelevel)
3586 if defined $::RD_TRACE;
3587 0 $return = $score_return;
3588 }
3589 12 splice @{$thisparser->{errors}}, $err_at;
3590 12 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 12 0 12
3591 12 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 12 12
3592 {
3593 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
3594 $return . q{])}, "",
3595 q{EMPTY},
3596 $tracelevel);
3597 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
3598 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
3599 Parse::RecDescent::_Runtime::_tracefirst($text),
3600 , q{EMPTY},
3601 $tracelevel)
3602 }
3603 12 $_[1] = $text;
3604 12 return $return;
3605 }
3606  
3607 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3608 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PNOTQUOTED
3609 {
3610 182 ▶ my $thisparser = $_[0];
Subroutine PNOTQUOTED: called CC=42 SCAR=45.3
3611 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3612 182 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
1820
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
3613 182 $ERRORS = 0;
3614 182 my $thisrule = $thisparser->{"rules"}{"PNOTQUOTED"};
3615  
3616 182 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PNOTQUOTED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
3617 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3618 q{PNOTQUOTED},
3619 $tracelevel)
3620 if defined $::RD_TRACE;
3621  
3622
3623 182 my $err_at = @{$thisparser->{errors}};
3624  
3625 182 my $score;
3626 my $score_return;
3627 182 my $_tok;
3628 182 my $return = undef;
3629 182 my $_matched=0;
3630 182 my $commit=0;
3631 182 my @item = ();
3632 182 my %item = ();
3633 182 my $repeating = $_[2];
3634 182 my $_noactions = $_[3];
3635 182 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 182 0 182
3636 182 my $_itempos = $_[5];
3637 182 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 182 182
3638 182 my $text;
3639 my $lastsep;
3640 182 my $current_match;
3641 182 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\S+/, or EMPTY});
3642 182 $expectation->at($_[1]);
3643
3644 182 my $thisline;
3645 182 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
3646  
3647
3648  
3649 182 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 182 0 182
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00182
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3650 {
3651
3652 182 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\S+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
3653 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3654 q{PNOTQUOTED},
3655 $tracelevel)
3656 if defined $::RD_TRACE;
3657 182 my $thisprod = $thisrule->{"prods"}[0];
3658 182 $text = $_[1];
3659 182 my $_savetext;
3660 182 @item = (q{PNOTQUOTED});
3661 182 %item = (__RULE__ => q{PNOTQUOTED});
3662 182 my $repcount = 0;
3663  
3664  
3665 182 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\S+/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
3666 q{PNOTQUOTED},
3667 $tracelevel)
3668 if defined $::RD_TRACE;
3669 182 undef $lastsep;
3670 182 $expectation->is(q{})->at($text);
3671
3672  
3673 182 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\S+)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\S+)/) 12 170 182
$lastsep = $1 and "" 0 182 182
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\S+)/
!ll&&!rl&&r
012170
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\S+)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\S+)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\S+)/
ABresult
0X0
100
111
3674 {
3675 12 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 12 0 12
3676 12 $expectation->failed();
3677 12 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3678 Parse::RecDescent::_Runtime::_tracefirst($text))
3679 if defined $::RD_TRACE;
3680  
3681 12 last;
3682 }
3683 170 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3684 170 substr($text,0,length($current_match),q{});
3685 170 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 170 170
3686 . $current_match . q{])},
3687 Parse::RecDescent::_Runtime::_tracefirst($text))
3688 if defined $::RD_TRACE;
3689 170 push @item, $item{__PATTERN1__}=$current_match;
3690
3691  
3692 170 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 170 170
3693 Parse::RecDescent::_Runtime::_tracefirst($text),
3694 q{PNOTQUOTED},
3695 $tracelevel)
3696 if defined $::RD_TRACE;
3697
3698  
3699 170 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 170 170
3700 170 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 170 170
3701 {
3702 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3703 if defined $::RD_TRACE;
3704 0 last;
3705 }
3706 170 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 170 170
3707 . $_tok . q{])},
3708 Parse::RecDescent::_Runtime::_tracefirst($text))
3709 if defined $::RD_TRACE;
3710 170 push @item, $_tok;
3711 170 $item{__ACTION1__}=$_tok;
3712
3713  
3714 170 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\S+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 170 170
3715 Parse::RecDescent::_Runtime::_tracefirst($text),
3716 q{PNOTQUOTED},
3717 $tracelevel)
3718 if defined $::RD_TRACE;
3719  
3720  
3721  
3722 170 $_matched = 1;
3723 170 last;
3724 }
3725  
3726  
3727 182 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 12 170 182
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
170012
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3728 {
3729
3730 12 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [EMPTY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3731 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3732 q{PNOTQUOTED},
3733 $tracelevel)
3734 if defined $::RD_TRACE;
3735 12 my $thisprod = $thisrule->{"prods"}[1];
3736 12 $text = $_[1];
3737 12 my $_savetext;
3738 12 @item = (q{PNOTQUOTED});
3739 12 %item = (__RULE__ => q{PNOTQUOTED});
3740 12 my $repcount = 0;
3741  
3742  
3743 12 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [EMPTY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3744 Parse::RecDescent::_Runtime::_tracefirst($text),
3745 q{PNOTQUOTED},
3746 $tracelevel)
3747 if defined $::RD_TRACE;
3748 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3749 12 $expectation->is(q{})->at($text);
3750 12 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::EMPTY($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = EMPTY($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 12 12
3751 {
3752
3753 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [EMPTY]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3754 Parse::RecDescent::_Runtime::_tracefirst($text),
3755 q{PNOTQUOTED},
3756 $tracelevel)
3757 if defined $::RD_TRACE;
3758 0 $expectation->failed();
3759 0 last;
3760 }
3761 12 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [EMPTY]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3762 . $_tok . q{]},
3763  
3764 Parse::RecDescent::_Runtime::_tracefirst($text),
3765 q{PNOTQUOTED},
3766 $tracelevel)
3767 if defined $::RD_TRACE;
3768 12 $item{q{EMPTY}} = $_tok;
3769 12 push @item, $_tok;
3770
3771 }
3772  
3773 12 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3774 Parse::RecDescent::_Runtime::_tracefirst($text),
3775 q{PNOTQUOTED},
3776 $tracelevel)
3777 if defined $::RD_TRACE;
3778
3779  
3780 12 ▶ $_tok = ($_noactions) ? 0 : do {$return = ''};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 12 12
3781 12 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 12 12
3782 {
3783 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3784 if defined $::RD_TRACE;
3785 0 last;
3786 }
3787 12 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3788 . $_tok . q{])},
3789 Parse::RecDescent::_Runtime::_tracefirst($text))
3790 if defined $::RD_TRACE;
3791 12 push @item, $_tok;
3792 12 $item{__ACTION1__}=$_tok;
3793
3794  
3795 12 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [EMPTY]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
3796 Parse::RecDescent::_Runtime::_tracefirst($text),
3797 q{PNOTQUOTED},
3798 $tracelevel)
3799 if defined $::RD_TRACE;
3800  
3801  
3802  
3803 12 $_matched = 1;
3804 12 last;
3805 }
3806  
3807  
3808 182 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 182 182
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
18200
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
3809 {
3810
3811  
3812 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
3813 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3814 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3815 q{PNOTQUOTED},
3816 $tracelevel)
3817 if defined $::RD_TRACE;
3818 0 return undef;
3819 }
3820 182 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 182 182
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
18200
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
3821 {
3822 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3823 q{PNOTQUOTED},
3824 $tracelevel)
3825 if defined $::RD_TRACE;
3826 0 $return = $score_return;
3827 }
3828 182 splice @{$thisparser->{errors}}, $err_at;
3829 182 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 182 182
3830 182 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 182 182
3831 {
3832 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
3833 $return . q{])}, "",
3834 q{PNOTQUOTED},
3835 $tracelevel);
3836 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
3837 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
3838 Parse::RecDescent::_Runtime::_tracefirst($text),
3839 , q{PNOTQUOTED},
3840 $tracelevel)
3841 }
3842 182 $_[1] = $text;
3843 182 return $return;
3844 }
3845  
3846 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3847 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SLASHEDSQUOTE
3848 {
3849 368 ▶ my $thisparser = $_[0];
Subroutine SLASHEDSQUOTE: called CC=29 SCAR=37.5
3850 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3851 368 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
3680
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
3852 368 $ERRORS = 0;
3853 368 my $thisrule = $thisparser->{"rules"}{"SLASHEDSQUOTE"};
3854  
3855 368 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [SLASHEDSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 368 368
3856 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3857 q{SLASHEDSQUOTE},
3858 $tracelevel)
3859 if defined $::RD_TRACE;
3860  
3861
3862 368 my $err_at = @{$thisparser->{errors}};
3863  
3864 368 my $score;
3865 my $score_return;
3866 368 my $_tok;
3867 368 my $return = undef;
3868 368 my $_matched=0;
3869 368 my $commit=0;
3870 368 my @item = ();
3871 368 my %item = ();
3872 368 my $repeating = $_[2];
3873 368 my $_noactions = $_[3];
3874 368 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 368 0 368
3875 368 my $_itempos = $_[5];
3876 368 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 32 336 368
3877 368 my $text;
3878 my $lastsep;
3879 368 my $current_match;
3880 368 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\\\'/});
3881 368 $expectation->at($_[1]);
3882
3883 368 my $thisline;
3884 368 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
3885  
3886
3887  
3888 368 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 368 0 368
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00368
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3889 {
3890
3891 368 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\\\'/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 368 368
3892 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3893 q{SLASHEDSQUOTE},
3894 $tracelevel)
3895 if defined $::RD_TRACE;
3896 368 my $thisprod = $thisrule->{"prods"}[0];
3897 368 $text = $_[1];
3898 368 my $_savetext;
3899 368 @item = (q{SLASHEDSQUOTE});
3900 368 %item = (__RULE__ => q{SLASHEDSQUOTE});
3901 368 my $repcount = 0;
3902  
3903  
3904 368 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\\\'/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 368 368
3905 q{SLASHEDSQUOTE},
3906 $tracelevel)
3907 if defined $::RD_TRACE;
3908 368 undef $lastsep;
3909 368 $expectation->is(q{})->at($text);
3910
3911  
3912 368 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\\')/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\\')/) 344 24 368
$lastsep = $1 and "" 0 368 368
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\\')/
!ll&&!rl&&r
034424
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\\')/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\\')/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\\')/
ABresult
0X0
100
111
3913 {
3914 344 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 344 0 344
3915 344 $expectation->failed();
3916 344 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
3917 Parse::RecDescent::_Runtime::_tracefirst($text))
3918 if defined $::RD_TRACE;
3919  
3920 344 last;
3921 }
3922 24 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3923 24 substr($text,0,length($current_match),q{});
3924 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3925 . $current_match . q{])},
3926 Parse::RecDescent::_Runtime::_tracefirst($text))
3927 if defined $::RD_TRACE;
3928 24 push @item, $item{__PATTERN1__}=$current_match;
3929
3930  
3931 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3932 Parse::RecDescent::_Runtime::_tracefirst($text),
3933 q{SLASHEDSQUOTE},
3934 $tracelevel)
3935 if defined $::RD_TRACE;
3936
3937  
3938 24 ▶ $_tok = ($_noactions) ? 0 : do {$return = "'"};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 24 24
3939 24 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 24 24
3940 {
3941 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3942 if defined $::RD_TRACE;
3943 0 last;
3944 }
3945 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3946 . $_tok . q{])},
3947 Parse::RecDescent::_Runtime::_tracefirst($text))
3948 if defined $::RD_TRACE;
3949 24 push @item, $_tok;
3950 24 $item{__ACTION1__}=$_tok;
3951
3952  
3953 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\\\'/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3954 Parse::RecDescent::_Runtime::_tracefirst($text),
3955 q{SLASHEDSQUOTE},
3956 $tracelevel)
3957 if defined $::RD_TRACE;
3958  
3959  
3960  
3961 24 $_matched = 1;
3962 24 last;
3963 }
3964  
3965  
3966 368 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 344 24 368
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
240344
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
3967 {
3968
3969  
3970 344 $_[1] = $text; # NOT SURE THIS IS NEEDED
3971 344 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
3972 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3973 q{SLASHEDSQUOTE},
3974 $tracelevel)
3975 if defined $::RD_TRACE;
3976 344 return undef;
3977 }
3978 24 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 24 24
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
2400
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
3979 {
3980 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3981 q{SLASHEDSQUOTE},
3982 $tracelevel)
3983 if defined $::RD_TRACE;
3984 0 $return = $score_return;
3985 }
3986 24 splice @{$thisparser->{errors}}, $err_at;
3987 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 24 24
3988 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
3989 {
3990 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
3991 $return . q{])}, "",
3992 q{SLASHEDSQUOTE},
3993 $tracelevel);
3994 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
3995 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
3996 Parse::RecDescent::_Runtime::_tracefirst($text),
3997 , q{SLASHEDSQUOTE},
3998 $tracelevel)
3999 }
4000 24 $_[1] = $text;
4001 24 return $return;
4002 }
4003  
4004 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4005 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::COMMENT
4006 {
4007 359 ▶ my $thisparser = $_[0];
Subroutine COMMENT: called CC=29 SCAR=37.3
4008 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4009 359 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
3590
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
4010 359 $ERRORS = 0;
4011 359 my $thisrule = $thisparser->{"rules"}{"COMMENT"};
4012  
4013 359 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 359 359
4014 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4015 q{COMMENT},
4016 $tracelevel)
4017 if defined $::RD_TRACE;
4018  
4019
4020 359 my $err_at = @{$thisparser->{errors}};
4021  
4022 359 my $score;
4023 my $score_return;
4024 359 my $_tok;
4025 359 my $return = undef;
4026 359 my $_matched=0;
4027 359 my $commit=0;
4028 359 my @item = ();
4029 359 my %item = ();
4030 359 my $repeating = $_[2];
4031 359 my $_noactions = $_[3];
4032 359 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 359 0 359
4033 359 my $_itempos = $_[5];
4034 359 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 33 326 359
4035 359 my $text;
4036 my $lastsep;
4037 359 my $current_match;
4038 359 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/#[^\\n]*/});
4039 359 $expectation->at($_[1]);
4040
4041 359 my $thisline;
4042 359 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4043  
4044
4045  
4046 359 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 359 0 359
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00359
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4047 {
4048
4049 359 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/#[^\\n]*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 359 359
4050 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4051 q{COMMENT},
4052 $tracelevel)
4053 if defined $::RD_TRACE;
4054 359 my $thisprod = $thisrule->{"prods"}[0];
4055 359 $text = $_[1];
4056 359 my $_savetext;
4057 359 @item = (q{COMMENT});
4058 359 %item = (__RULE__ => q{COMMENT});
4059 359 my $repcount = 0;
4060  
4061  
4062 359 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/#[^\\n]*/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 359 359
4063 q{COMMENT},
4064 $tracelevel)
4065 if defined $::RD_TRACE;
4066 359 undef $lastsep;
4067 359 $expectation->is(q{})->at($text);
4068
4069  
4070 359 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:#[^\n]*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:#[^\n]*)/) 326 33 359
$lastsep = $1 and "" 207 152 359
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:#[^\n]*)/
!ll&&!rl&&r
032633
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:#[^\n]*)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:#[^\n]*)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:#[^\n]*)/
ABresult
0X0
100
111
4071 {
4072 326 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 326 0 326
4073 326 $expectation->failed();
4074 326 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 326 326
4075 Parse::RecDescent::_Runtime::_tracefirst($text))
4076 if defined $::RD_TRACE;
4077  
4078 326 last;
4079 }
4080 33 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4081 33 substr($text,0,length($current_match),q{});
4082 33 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
4083 . $current_match . q{])},
4084 Parse::RecDescent::_Runtime::_tracefirst($text))
4085 if defined $::RD_TRACE;
4086 33 push @item, $item{__PATTERN1__}=$current_match;
4087
4088  
4089 33 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
4090 Parse::RecDescent::_Runtime::_tracefirst($text),
4091 q{COMMENT},
4092 $tracelevel)
4093 if defined $::RD_TRACE;
4094
4095  
4096 33 ▶ $_tok = ($_noactions) ? 0 : do {$return = ''};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 33 33
4097 33 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 33 33
4098 {
4099 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4100 if defined $::RD_TRACE;
4101 0 last;
4102 }
4103 33 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
4104 . $_tok . q{])},
4105 Parse::RecDescent::_Runtime::_tracefirst($text))
4106 if defined $::RD_TRACE;
4107 33 push @item, $_tok;
4108 33 $item{__ACTION1__}=$_tok;
4109
4110  
4111 33 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/#[^\\n]*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
4112 Parse::RecDescent::_Runtime::_tracefirst($text),
4113 q{COMMENT},
4114 $tracelevel)
4115 if defined $::RD_TRACE;
4116  
4117  
4118  
4119 33 $_matched = 1;
4120 33 last;
4121 }
4122  
4123  
4124 359 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 326 33 359
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
330326
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4125 {
4126
4127  
4128 326 $_[1] = $text; # NOT SURE THIS IS NEEDED
4129 326 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 326 326
4130 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4131 q{COMMENT},
4132 $tracelevel)
4133 if defined $::RD_TRACE;
4134 326 return undef;
4135 }
4136 33 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 33 33
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
3300
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4137 {
4138 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4139 q{COMMENT},
4140 $tracelevel)
4141 if defined $::RD_TRACE;
4142 0 $return = $score_return;
4143 }
4144 33 splice @{$thisparser->{errors}}, $err_at;
4145 33 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 33 33
4146 33 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 33 33
4147 {
4148 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
4149 $return . q{])}, "",
4150 q{COMMENT},
4151 $tracelevel);
4152 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
4153 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
4154 Parse::RecDescent::_Runtime::_tracefirst($text),
4155 , q{COMMENT},
4156 $tracelevel)
4157 }
4158 33 $_[1] = $text;
4159 33 return $return;
4160 }
4161  
4162 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4163 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::EOF
4164 {
4165 71 ▶ my $thisparser = $_[0];
Subroutine EOF: called CC=24 SCAR=38.3
4166 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4167 71 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
710
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
4168 71 $ERRORS = 0;
4169 71 my $thisrule = $thisparser->{"rules"}{"EOF"};
4170  
4171 71 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [EOF]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4172 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4173 q{EOF},
4174 $tracelevel)
4175 if defined $::RD_TRACE;
4176  
4177
4178 71 my $err_at = @{$thisparser->{errors}};
4179  
4180 71 my $score;
4181 my $score_return;
4182 71 my $_tok;
4183 71 my $return = undef;
4184 71 my $_matched=0;
4185 71 my $commit=0;
4186 71 my @item = ();
4187 71 my %item = ();
4188 71 my $repeating = $_[2];
4189 71 my $_noactions = $_[3];
4190 71 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 71 0 71
4191 71 my $_itempos = $_[5];
4192 71 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 7 64 71
4193 71 my $text;
4194 my $lastsep;
4195 71 my $current_match;
4196 71 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/^\\Z/});
4197 71 $expectation->at($_[1]);
4198
4199 71 my $thisline;
4200 71 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4201  
4202
4203  
4204 71 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 71 0 71
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0071
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4205 {
4206
4207 71 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/^\\Z/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4208 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4209 q{EOF},
4210 $tracelevel)
4211 if defined $::RD_TRACE;
4212 71 my $thisprod = $thisrule->{"prods"}[0];
4213 71 $text = $_[1];
4214 71 my $_savetext;
4215 71 @item = (q{EOF});
4216 71 %item = (__RULE__ => q{EOF});
4217 71 my $repcount = 0;
4218  
4219  
4220 71 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/^\\Z/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4221 q{EOF},
4222 $tracelevel)
4223 if defined $::RD_TRACE;
4224 71 undef $lastsep;
4225 71 $expectation->is(q{})->at($text);
4226
4227  
4228 71 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^\Z)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/) 0 71 71
$lastsep = $1 and "" 34 37 71
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
!ll&&!rl&&r
0071
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^\Z)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^\Z)/
ABresult
0X0
100
111
4229 {
4230 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4231 0 $expectation->failed();
4232 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4233 Parse::RecDescent::_Runtime::_tracefirst($text))
4234 if defined $::RD_TRACE;
4235  
4236 0 last;
4237 }
4238 71 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4239 71 substr($text,0,length($current_match),q{});
4240 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4241 . $current_match . q{])},
4242 Parse::RecDescent::_Runtime::_tracefirst($text))
4243 if defined $::RD_TRACE;
4244 71 push @item, $item{__PATTERN1__}=$current_match;
4245
4246  
4247 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/^\\Z/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4248 Parse::RecDescent::_Runtime::_tracefirst($text),
4249 q{EOF},
4250 $tracelevel)
4251 if defined $::RD_TRACE;
4252  
4253  
4254  
4255 71 $_matched = 1;
4256 71 last;
4257 }
4258  
4259  
4260 71 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 71 71
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
7100
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4261 {
4262
4263  
4264 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
4265 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4266 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4267 q{EOF},
4268 $tracelevel)
4269 if defined $::RD_TRACE;
4270 0 return undef;
4271 }
4272 71 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 71 71
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0710
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4273 {
4274 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4275 q{EOF},
4276 $tracelevel)
4277 if defined $::RD_TRACE;
4278 0 $return = $score_return;
4279 }
4280 71 splice @{$thisparser->{errors}}, $err_at;
4281 71 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 71 0 71
4282 71 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 71 71
4283 {
4284 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
4285 $return . q{])}, "",
4286 q{EOF},
4287 $tracelevel);
4288 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
4289 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
4290 Parse::RecDescent::_Runtime::_tracefirst($text),
4291 , q{EOF},
4292 $tracelevel)
4293 }
4294 71 $_[1] = $text;
4295 71 return $return;
4296 }
4297  
4298 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4299 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::NOTSQUOTE
4300 {
4301 712 ▶ my $thisparser = $_[0];
Subroutine NOTSQUOTE: called CC=24 SCAR=38.6
4302 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4303 712 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
7120
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
4304 712 $ERRORS = 0;
4305 712 my $thisrule = $thisparser->{"rules"}{"NOTSQUOTE"};
4306  
4307 712 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [NOTSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 712 712
4308 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4309 q{NOTSQUOTE},
4310 $tracelevel)
4311 if defined $::RD_TRACE;
4312  
4313
4314 712 my $err_at = @{$thisparser->{errors}};
4315  
4316 712 my $score;
4317 my $score_return;
4318 712 my $_tok;
4319 712 my $return = undef;
4320 712 my $_matched=0;
4321 712 my $commit=0;
4322 712 my @item = ();
4323 712 my %item = ();
4324 712 my $repeating = $_[2];
4325 712 my $_noactions = $_[3];
4326 712 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 712 0 712
4327 712 my $_itempos = $_[5];
4328 712 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 64 648 712
4329 712 my $text;
4330 my $lastsep;
4331 712 my $current_match;
4332 712 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/[^']*[^'\\\\]/});
4333 712 $expectation->at($_[1]);
4334
4335 712 my $thisline;
4336 712 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4337  
4338
4339  
4340 712 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 712 0 712
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00712
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4341 {
4342
4343 712 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[^']*[^'\\\\]/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 712 712
4344 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4345 q{NOTSQUOTE},
4346 $tracelevel)
4347 if defined $::RD_TRACE;
4348 712 my $thisprod = $thisrule->{"prods"}[0];
4349 712 $text = $_[1];
4350 712 my $_savetext;
4351 712 @item = (q{NOTSQUOTE});
4352 712 %item = (__RULE__ => q{NOTSQUOTE});
4353 712 my $repcount = 0;
4354  
4355  
4356 712 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[^']*[^'\\\\]/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 712 712
4357 q{NOTSQUOTE},
4358 $tracelevel)
4359 if defined $::RD_TRACE;
4360 712 undef $lastsep;
4361 712 $expectation->is(q{})->at($text);
4362
4363  
4364 712 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[^']*[^'\\])/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^']*[^'\\])/) 0 712 712
$lastsep = $1 and "" 0 712 712
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^']*[^'\\])/
!ll&&!rl&&r
00712
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^']*[^'\\])/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[^']*[^'\\])/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[^']*[^'\\])/
ABresult
0X0
100
111
4365 {
4366 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4367 0 $expectation->failed();
4368 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4369 Parse::RecDescent::_Runtime::_tracefirst($text))
4370 if defined $::RD_TRACE;
4371  
4372 0 last;
4373 }
4374 712 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4375 712 substr($text,0,length($current_match),q{});
4376 712 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 712 712
4377 . $current_match . q{])},
4378 Parse::RecDescent::_Runtime::_tracefirst($text))
4379 if defined $::RD_TRACE;
4380 712 push @item, $item{__PATTERN1__}=$current_match;
4381
4382  
4383 712 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[^']*[^'\\\\]/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 712 712
4384 Parse::RecDescent::_Runtime::_tracefirst($text),
4385 q{NOTSQUOTE},
4386 $tracelevel)
4387 if defined $::RD_TRACE;
4388  
4389  
4390  
4391 712 $_matched = 1;
4392 712 last;
4393 }
4394  
4395  
4396 712 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 712 712
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
71200
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4397 {
4398
4399  
4400 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
4401 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4402 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4403 q{NOTSQUOTE},
4404 $tracelevel)
4405 if defined $::RD_TRACE;
4406 0 return undef;
4407 }
4408 712 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 712 712
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
07120
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4409 {
4410 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4411 q{NOTSQUOTE},
4412 $tracelevel)
4413 if defined $::RD_TRACE;
4414 0 $return = $score_return;
4415 }
4416 712 splice @{$thisparser->{errors}}, $err_at;
4417 712 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 712 0 712
4418 712 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 712 712
4419 {
4420 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
4421 $return . q{])}, "",
4422 q{NOTSQUOTE},
4423 $tracelevel);
4424 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
4425 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
4426 Parse::RecDescent::_Runtime::_tracefirst($text),
4427 , q{NOTSQUOTE},
4428 $tracelevel)
4429 }
4430 712 $_[1] = $text;
4431 712 return $return;
4432 }
4433  
4434 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4435 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::TBNAME
4436 {
4437 1082 ▶ my $thisparser = $_[0];
Subroutine TBNAME: called CC=46 SCAR=43.9
4438 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4439 1082 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
10820
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
4440 1082 $ERRORS = 0;
4441 1082 my $thisrule = $thisparser->{"rules"}{"TBNAME"};
4442  
4443 1082 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [TBNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1082 1082
4444 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4445 q{TBNAME},
4446 $tracelevel)
4447 if defined $::RD_TRACE;
4448  
4449
4450 1082 my $err_at = @{$thisparser->{errors}};
4451  
4452 1082 my $score;
4453 my $score_return;
4454 1082 my $_tok;
4455 1082 my $return = undef;
4456 1082 my $_matched=0;
4457 1082 my $commit=0;
4458 1082 my @item = ();
4459 1082 my %item = ();
4460 1082 my $repeating = $_[2];
4461 1082 my $_noactions = $_[3];
4462 1082 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 1082 0 1082
4463 1082 my $_itempos = $_[5];
4464 1082 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 108 974 1082
4465 1082 my $text;
4466 my $lastsep;
4467 1082 my $current_match;
4468 1082 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/::/, or BNAME});
4469 1082 $expectation->at($_[1]);
4470
4471 1082 my $thisline;
4472 1082 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4473  
4474
4475  
4476 1082 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1082 0 1082
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
001082
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4477 {
4478
4479 1082 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/::/ BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1082 1082
4480 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4481 q{TBNAME},
4482 $tracelevel)
4483 if defined $::RD_TRACE;
4484 1082 my $thisprod = $thisrule->{"prods"}[0];
4485 1082 $text = $_[1];
4486 1082 my $_savetext;
4487 1082 @item = (q{TBNAME});
4488 1082 %item = (__RULE__ => q{TBNAME});
4489 1082 my $repcount = 0;
4490  
4491  
4492 1082 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/::/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1082 1082
4493 q{TBNAME},
4494 $tracelevel)
4495 if defined $::RD_TRACE;
4496 1082 undef $lastsep;
4497 1082 $expectation->is(q{})->at($text);
4498
4499  
4500 1082 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:::)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:::)/) 1078 4 1082
$lastsep = $1 and "" 566 516 1082
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:::)/
!ll&&!rl&&r
010784
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:::)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:::)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:::)/
ABresult
0X0
100
111
4501 {
4502 1078 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 1078 0 1078
4503 1078 $expectation->failed();
4504 1078 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1078 1078
4505 Parse::RecDescent::_Runtime::_tracefirst($text))
4506 if defined $::RD_TRACE;
4507  
4508 1078 last;
4509 }
4510 4 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4511 4 substr($text,0,length($current_match),q{});
4512 4 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4513 . $current_match . q{])},
4514 Parse::RecDescent::_Runtime::_tracefirst($text))
4515 if defined $::RD_TRACE;
4516 4 push @item, $item{__PATTERN1__}=$current_match;
4517
4518  
4519 4 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4520 Parse::RecDescent::_Runtime::_tracefirst($text),
4521 q{TBNAME},
4522 $tracelevel)
4523 if defined $::RD_TRACE;
4524 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4525 4 $expectation->is(q{BNAME})->at($text);
4526 4 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BNAME($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = BNAME($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 4 4
4527 {
4528
4529 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4530 Parse::RecDescent::_Runtime::_tracefirst($text),
4531 q{TBNAME},
4532 $tracelevel)
4533 if defined $::RD_TRACE;
4534 0 $expectation->failed();
4535 0 last;
4536 }
4537 4 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4538 . $_tok . q{]},
4539  
4540 Parse::RecDescent::_Runtime::_tracefirst($text),
4541 q{TBNAME},
4542 $tracelevel)
4543 if defined $::RD_TRACE;
4544 4 $item{q{BNAME}} = $_tok;
4545 4 push @item, $_tok;
4546
4547 }
4548  
4549 4 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4550 Parse::RecDescent::_Runtime::_tracefirst($text),
4551 q{TBNAME},
4552 $tracelevel)
4553 if defined $::RD_TRACE;
4554
4555  
4556 4 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{BNAME}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 4 4
4557 4 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 4 4
4558 {
4559 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4560 if defined $::RD_TRACE;
4561 0 last;
4562 }
4563 4 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4564 . $_tok . q{])},
4565 Parse::RecDescent::_Runtime::_tracefirst($text))
4566 if defined $::RD_TRACE;
4567 4 push @item, $_tok;
4568 4 $item{__ACTION1__}=$_tok;
4569
4570  
4571 4 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/::/ BNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4572 Parse::RecDescent::_Runtime::_tracefirst($text),
4573 q{TBNAME},
4574 $tracelevel)
4575 if defined $::RD_TRACE;
4576  
4577  
4578  
4579 4 $_matched = 1;
4580 4 last;
4581 }
4582  
4583  
4584 1082 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1078 4 1082
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
401078
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4585 {
4586
4587 1078 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1078 1078
4588 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4589 q{TBNAME},
4590 $tracelevel)
4591 if defined $::RD_TRACE;
4592 1078 my $thisprod = $thisrule->{"prods"}[1];
4593 1078 $text = $_[1];
4594 1078 my $_savetext;
4595 1078 @item = (q{TBNAME});
4596 1078 %item = (__RULE__ => q{TBNAME});
4597 1078 my $repcount = 0;
4598  
4599  
4600 1078 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1078 1078
4601 Parse::RecDescent::_Runtime::_tracefirst($text),
4602 q{TBNAME},
4603 $tracelevel)
4604 if defined $::RD_TRACE;
4605 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4606 1078 $expectation->is(q{})->at($text);
4607 1078 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BNAME($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = BNAME($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 644 434 1078
4608 {
4609
4610 644 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 644 644
4611 Parse::RecDescent::_Runtime::_tracefirst($text),
4612 q{TBNAME},
4613 $tracelevel)
4614 if defined $::RD_TRACE;
4615 644 $expectation->failed();
4616 644 last;
4617 }
4618 434 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 434 434
4619 . $_tok . q{]},
4620  
4621 Parse::RecDescent::_Runtime::_tracefirst($text),
4622 q{TBNAME},
4623 $tracelevel)
4624 if defined $::RD_TRACE;
4625 434 $item{q{BNAME}} = $_tok;
4626 434 push @item, $_tok;
4627
4628 }
4629  
4630 434 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 434 434
4631 Parse::RecDescent::_Runtime::_tracefirst($text),
4632 q{TBNAME},
4633 $tracelevel)
4634 if defined $::RD_TRACE;
4635
4636  
4637 434 ▶ $_tok = ($_noactions) ? 0 : do {$return = "Treex::Block::$item{BNAME}"};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 434 434
4638 434 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 434 434
4639 {
4640 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4641 if defined $::RD_TRACE;
4642 0 last;
4643 }
4644 434 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 434 434
4645 . $_tok . q{])},
4646 Parse::RecDescent::_Runtime::_tracefirst($text))
4647 if defined $::RD_TRACE;
4648 434 push @item, $_tok;
4649 434 $item{__ACTION1__}=$_tok;
4650
4651  
4652 434 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [BNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 434 434
4653 Parse::RecDescent::_Runtime::_tracefirst($text),
4654 q{TBNAME},
4655 $tracelevel)
4656 if defined $::RD_TRACE;
4657  
4658  
4659  
4660 434 $_matched = 1;
4661 434 last;
4662 }
4663  
4664  
4665 1082 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 644 438 1082
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
4380644
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4666 {
4667
4668  
4669 644 $_[1] = $text; # NOT SURE THIS IS NEEDED
4670 644 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 644 644
4671 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4672 q{TBNAME},
4673 $tracelevel)
4674 if defined $::RD_TRACE;
4675 644 return undef;
4676 }
4677 438 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 438 438
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
43800
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4678 {
4679 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4680 q{TBNAME},
4681 $tracelevel)
4682 if defined $::RD_TRACE;
4683 0 $return = $score_return;
4684 }
4685 438 splice @{$thisparser->{errors}}, $err_at;
4686 438 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 438 438
4687 438 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 438 438
4688 {
4689 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
4690 $return . q{])}, "",
4691 q{TBNAME},
4692 $tracelevel);
4693 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
4694 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
4695 Parse::RecDescent::_Runtime::_tracefirst($text),
4696 , q{TBNAME},
4697 $tracelevel)
4698 }
4699 438 $_[1] = $text;
4700 438 return $return;
4701 }
4702  
4703 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4704 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::startrule
4705 {
4706 73 ▶ my $thisparser = $_[0];
Subroutine startrule: called CC=30 SCAR=38.0
4707 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4708 73 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition100%2/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
2944
MC/DC100%1/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table100%2/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
4709 73 $ERRORS = 0;
4710 73 my $thisrule = $thisparser->{"rules"}{"startrule"};
4711  
4712 73 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [startrule]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
4713 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4714 q{startrule},
4715 $tracelevel)
4716 if defined $::RD_TRACE;
4717  
4718
4719 73 my $err_at = @{$thisparser->{errors}};
4720  
4721 73 my $score;
4722 my $score_return;
4723 73 my $_tok;
4724 73 my $return = undef;
4725 73 my $_matched=0;
4726 73 my $commit=0;
4727 73 my @item = ();
4728 73 my %item = ();
4729 73 my $repeating = $_[2];
4730 73 my $_noactions = $_[3];
4731 73 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 73 0 73
4732 73 my $_itempos = $_[5];
4733 73 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 7 66 73
4734 73 my $text;
4735 my $lastsep;
4736 73 my $current_match;
4737 73 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{SCEN});
4738 73 $expectation->at($_[1]);
4739
4740 73 my $thisline;
4741 73 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4742  
4743
4744  
4745 73 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 73 0 73
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0073
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4746 {
4747
4748 73 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [SCEN EOF]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
4749 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4750 q{startrule},
4751 $tracelevel)
4752 if defined $::RD_TRACE;
4753 73 my $thisprod = $thisrule->{"prods"}[0];
4754 73 $text = $_[1];
4755 73 my $_savetext;
4756 73 @item = (q{startrule});
4757 73 %item = (__RULE__ => q{startrule});
4758 73 my $repcount = 0;
4759  
4760  
4761 73 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SCEN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
4762 Parse::RecDescent::_Runtime::_tracefirst($text),
4763 q{startrule},
4764 $tracelevel)
4765 if defined $::RD_TRACE;
4766 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4767 73 $expectation->is(q{})->at($text);
4768 73 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SCEN($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = SCEN($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 2 71 73
4769 {
4770
4771 2 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SCEN]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
4772 Parse::RecDescent::_Runtime::_tracefirst($text),
4773 q{startrule},
4774 $tracelevel)
4775 if defined $::RD_TRACE;
4776 2 $expectation->failed();
4777 2 last;
4778 }
4779 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SCEN]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4780 . $_tok . q{]},
4781  
4782 Parse::RecDescent::_Runtime::_tracefirst($text),
4783 q{startrule},
4784 $tracelevel)
4785 if defined $::RD_TRACE;
4786 71 $item{q{SCEN}} = $_tok;
4787 71 push @item, $_tok;
4788
4789 }
4790  
4791 71 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [EOF]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4792 Parse::RecDescent::_Runtime::_tracefirst($text),
4793 q{startrule},
4794 $tracelevel)
4795 if defined $::RD_TRACE;
4796 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4797 71 $expectation->is(q{EOF})->at($text);
4798 71 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::EOF($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = EOF($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 71 71
4799 {
4800
4801 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [EOF]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4802 Parse::RecDescent::_Runtime::_tracefirst($text),
4803 q{startrule},
4804 $tracelevel)
4805 if defined $::RD_TRACE;
4806 0 $expectation->failed();
4807 0 last;
4808 }
4809 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [EOF]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4810 . $_tok . q{]},
4811  
4812 Parse::RecDescent::_Runtime::_tracefirst($text),
4813 q{startrule},
4814 $tracelevel)
4815 if defined $::RD_TRACE;
4816 71 $item{q{EOF}} = $_tok;
4817 71 push @item, $_tok;
4818
4819 }
4820  
4821 71 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4822 Parse::RecDescent::_Runtime::_tracefirst($text),
4823 q{startrule},
4824 $tracelevel)
4825 if defined $::RD_TRACE;
4826
4827  
4828 71 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{SCEN}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 71 71
4829 71 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 71 71
4830 {
4831 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4832 if defined $::RD_TRACE;
4833 0 last;
4834 }
4835 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4836 . $_tok . q{])},
4837 Parse::RecDescent::_Runtime::_tracefirst($text))
4838 if defined $::RD_TRACE;
4839 71 push @item, $_tok;
4840 71 $item{__ACTION1__}=$_tok;
4841
4842  
4843 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [SCEN EOF]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4844 Parse::RecDescent::_Runtime::_tracefirst($text),
4845 q{startrule},
4846 $tracelevel)
4847 if defined $::RD_TRACE;
4848  
4849  
4850  
4851 71 $_matched = 1;
4852 71 last;
4853 }
4854  
4855  
4856 73 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 2 71 73
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
7102
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
4857 {
4858
4859  
4860 2 $_[1] = $text; # NOT SURE THIS IS NEEDED
4861 2 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
4862 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4863 q{startrule},
4864 $tracelevel)
4865 if defined $::RD_TRACE;
4866 2 return undef;
4867 }
4868 71 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 71 71
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
7100
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4869 {
4870 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4871 q{startrule},
4872 $tracelevel)
4873 if defined $::RD_TRACE;
4874 0 $return = $score_return;
4875 }
4876 71 splice @{$thisparser->{errors}}, $err_at;
4877 71 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 71 71
4878 71 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 71 71
4879 {
4880 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
4881 $return . q{])}, "",
4882 q{startrule},
4883 $tracelevel);
4884 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
4885 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
4886 Parse::RecDescent::_Runtime::_tracefirst($text),
4887 , q{startrule},
4888 $tracelevel)
4889 }
4890 71 $_[1] = $text;
4891 71 return $return;
4892 }
4893  
4894 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4895 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::LINE
4896 {
4897 359 ▶ my $thisparser = $_[0];
Subroutine LINE: called CC=56 SCAR=45.3
4898 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4899 359 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
3590
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
4900 359 $ERRORS = 0;
4901 359 my $thisrule = $thisparser->{"rules"}{"LINE"};
4902  
4903 359 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [LINE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 359 359
4904 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4905 q{LINE},
4906 $tracelevel)
4907 if defined $::RD_TRACE;
4908  
4909
4910 359 my $err_at = @{$thisparser->{errors}};
4911  
4912 359 my $score;
4913 my $score_return;
4914 359 my $_tok;
4915 359 my $return = undef;
4916 359 my $_matched=0;
4917 359 my $commit=0;
4918 359 my @item = ();
4919 359 my %item = ();
4920 359 my $repeating = $_[2];
4921 359 my $_noactions = $_[3];
4922 359 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 359 0 359
4923 359 my $_itempos = $_[5];
4924 359 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 33 326 359
4925 359 my $text;
4926 my $lastsep;
4927 359 my $current_match;
4928 359 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{BLOCK, or COMMENT});
4929 359 $expectation->at($_[1]);
4930
4931 359 my $thisline;
4932 359 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4933  
4934
4935  
4936 359 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 359 0 359
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00359
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4937 {
4938
4939 359 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [BLOCK COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 359 359
4940 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4941 q{LINE},
4942 $tracelevel)
4943 if defined $::RD_TRACE;
4944 359 my $thisprod = $thisrule->{"prods"}[0];
4945 359 $text = $_[1];
4946 359 my $_savetext;
4947 359 @item = (q{LINE});
4948 359 %item = (__RULE__ => q{LINE});
4949 359 my $repcount = 0;
4950  
4951  
4952 359 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BLOCK]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 359 359
4953 Parse::RecDescent::_Runtime::_tracefirst($text),
4954 q{LINE},
4955 $tracelevel)
4956 if defined $::RD_TRACE;
4957 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4958 359 $expectation->is(q{})->at($text);
4959 359 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BLOCK($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = BLOCK($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 161 198 359
4960 {
4961
4962 161 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BLOCK]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 161 161
4963 Parse::RecDescent::_Runtime::_tracefirst($text),
4964 q{LINE},
4965 $tracelevel)
4966 if defined $::RD_TRACE;
4967 161 $expectation->failed();
4968 161 last;
4969 }
4970 198 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BLOCK]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 198 198
4971 . $_tok . q{]},
4972  
4973 Parse::RecDescent::_Runtime::_tracefirst($text),
4974 q{LINE},
4975 $tracelevel)
4976 if defined $::RD_TRACE;
4977 198 $item{q{BLOCK}} = $_tok;
4978 198 push @item, $_tok;
4979
4980 }
4981  
4982 198 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 198 198
4983 Parse::RecDescent::_Runtime::_tracefirst($text),
4984 q{LINE},
4985 $tracelevel)
4986 if defined $::RD_TRACE;
4987 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4988 198 $expectation->is(q{COMMENT})->at($text);
4989 198 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::COMMENT($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = COMMENT($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 180 18 198
4990 {
4991
4992 180 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [COMMENT]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
4993 Parse::RecDescent::_Runtime::_tracefirst($text),
4994 q{LINE},
4995 $tracelevel)
4996 if defined $::RD_TRACE;
4997 180 $expectation->failed();
4998 180 last;
4999 }
5000 18 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [COMMENT]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
5001 . $_tok . q{]},
5002  
5003 Parse::RecDescent::_Runtime::_tracefirst($text),
5004 q{LINE},
5005 $tracelevel)
5006 if defined $::RD_TRACE;
5007 18 $item{q{COMMENT}} = $_tok;
5008 18 push @item, $_tok;
5009
5010 }
5011  
5012 18 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
5013 Parse::RecDescent::_Runtime::_tracefirst($text),
5014 q{LINE},
5015 $tracelevel)
5016 if defined $::RD_TRACE;
5017
5018  
5019 18 ▶ $_tok = ($_noactions) ? 0 : do {$return = [@{$item{BLOCK}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 18 18
5020 18 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 18 18
5021 {
5022 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5023 if defined $::RD_TRACE;
5024 0 last;
5025 }
5026 18 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
5027 . $_tok . q{])},
5028 Parse::RecDescent::_Runtime::_tracefirst($text))
5029 if defined $::RD_TRACE;
5030 18 push @item, $_tok;
5031 18 $item{__ACTION1__}=$_tok;
5032
5033  
5034 18 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [BLOCK COMMENT]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 18 18
5035 Parse::RecDescent::_Runtime::_tracefirst($text),
5036 q{LINE},
5037 $tracelevel)
5038 if defined $::RD_TRACE;
5039  
5040  
5041  
5042 18 $_matched = 1;
5043 18 last;
5044 }
5045  
5046  
5047 359 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 341 18 359
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
180341
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5048 {
5049
5050 341 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [BLOCK]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 341 341
5051 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5052 q{LINE},
5053 $tracelevel)
5054 if defined $::RD_TRACE;
5055 341 my $thisprod = $thisrule->{"prods"}[1];
5056 341 $text = $_[1];
5057 341 my $_savetext;
5058 341 @item = (q{LINE});
5059 341 %item = (__RULE__ => q{LINE});
5060 341 my $repcount = 0;
5061  
5062  
5063 341 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BLOCK]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 341 341
5064 Parse::RecDescent::_Runtime::_tracefirst($text),
5065 q{LINE},
5066 $tracelevel)
5067 if defined $::RD_TRACE;
5068 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5069 341 $expectation->is(q{})->at($text);
5070 341 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BLOCK($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = BLOCK($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 161 180 341
5071 {
5072
5073 161 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BLOCK]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 161 161
5074 Parse::RecDescent::_Runtime::_tracefirst($text),
5075 q{LINE},
5076 $tracelevel)
5077 if defined $::RD_TRACE;
5078 161 $expectation->failed();
5079 161 last;
5080 }
5081 180 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BLOCK]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
5082 . $_tok . q{]},
5083  
5084 Parse::RecDescent::_Runtime::_tracefirst($text),
5085 q{LINE},
5086 $tracelevel)
5087 if defined $::RD_TRACE;
5088 180 $item{q{BLOCK}} = $_tok;
5089 180 push @item, $_tok;
5090
5091 }
5092  
5093 180 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
5094 Parse::RecDescent::_Runtime::_tracefirst($text),
5095 q{LINE},
5096 $tracelevel)
5097 if defined $::RD_TRACE;
5098
5099  
5100 180 ▶ $_tok = ($_noactions) ? 0 : do {$return = [@{$item{BLOCK}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 180 180
5101 180 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 180 180
5102 {
5103 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5104 if defined $::RD_TRACE;
5105 0 last;
5106 }
5107 180 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
5108 . $_tok . q{])},
5109 Parse::RecDescent::_Runtime::_tracefirst($text))
5110 if defined $::RD_TRACE;
5111 180 push @item, $_tok;
5112 180 $item{__ACTION1__}=$_tok;
5113
5114  
5115 180 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [BLOCK]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
5116 Parse::RecDescent::_Runtime::_tracefirst($text),
5117 q{LINE},
5118 $tracelevel)
5119 if defined $::RD_TRACE;
5120  
5121  
5122  
5123 180 $_matched = 1;
5124 180 last;
5125 }
5126  
5127  
5128 359 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 161 198 359
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
1980161
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5129 {
5130
5131 161 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 161 161
5132 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5133 q{LINE},
5134 $tracelevel)
5135 if defined $::RD_TRACE;
5136 161 my $thisprod = $thisrule->{"prods"}[2];
5137 161 $text = $_[1];
5138 161 my $_savetext;
5139 161 @item = (q{LINE});
5140 161 %item = (__RULE__ => q{LINE});
5141 161 my $repcount = 0;
5142  
5143  
5144 161 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 161 161
5145 Parse::RecDescent::_Runtime::_tracefirst($text),
5146 q{LINE},
5147 $tracelevel)
5148 if defined $::RD_TRACE;
5149 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5150 161 $expectation->is(q{})->at($text);
5151 161 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::COMMENT($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = COMMENT($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 146 15 161
5152 {
5153
5154 146 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [COMMENT]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 146 146
5155 Parse::RecDescent::_Runtime::_tracefirst($text),
5156 q{LINE},
5157 $tracelevel)
5158 if defined $::RD_TRACE;
5159 146 $expectation->failed();
5160 146 last;
5161 }
5162 15 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [COMMENT]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 15 15
5163 . $_tok . q{]},
5164  
5165 Parse::RecDescent::_Runtime::_tracefirst($text),
5166 q{LINE},
5167 $tracelevel)
5168 if defined $::RD_TRACE;
5169 15 $item{q{COMMENT}} = $_tok;
5170 15 push @item, $_tok;
5171
5172 }
5173  
5174 15 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 15 15
5175 Parse::RecDescent::_Runtime::_tracefirst($text),
5176 q{LINE},
5177 $tracelevel)
5178 if defined $::RD_TRACE;
5179
5180  
5181 15 ▶ $_tok = ($_noactions) ? 0 : do {$return = []};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 15 15
5182 15 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 15 15
5183 {
5184 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5185 if defined $::RD_TRACE;
5186 0 last;
5187 }
5188 15 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 15 15
5189 . $_tok . q{])},
5190 Parse::RecDescent::_Runtime::_tracefirst($text))
5191 if defined $::RD_TRACE;
5192 15 push @item, $_tok;
5193 15 $item{__ACTION1__}=$_tok;
5194
5195  
5196 15 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [COMMENT]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 15 15
5197 Parse::RecDescent::_Runtime::_tracefirst($text),
5198 q{LINE},
5199 $tracelevel)
5200 if defined $::RD_TRACE;
5201  
5202  
5203  
5204 15 $_matched = 1;
5205 15 last;
5206 }
5207  
5208  
5209 359 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 146 213 359
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2130146
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
5210 {
5211
5212  
5213 146 $_[1] = $text; # NOT SURE THIS IS NEEDED
5214 146 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 146 146
5215 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5216 q{LINE},
5217 $tracelevel)
5218 if defined $::RD_TRACE;
5219 146 return undef;
5220 }
5221 213 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 213 213
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
21300
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
5222 {
5223 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5224 q{LINE},
5225 $tracelevel)
5226 if defined $::RD_TRACE;
5227 0 $return = $score_return;
5228 }
5229 213 splice @{$thisparser->{errors}}, $err_at;
5230 213 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 213 213
5231 213 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 213 213
5232 {
5233 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5234 $return . q{])}, "",
5235 q{LINE},
5236 $tracelevel);
5237 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5238 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5239 Parse::RecDescent::_Runtime::_tracefirst($text),
5240 , q{LINE},
5241 $tracelevel)
5242 }
5243 213 $_[1] = $text;
5244 213 return $return;
5245 }
5246  
5247 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5248 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BLOCK
5249 {
5250 700 ▶ my $thisparser = $_[0];
Subroutine BLOCK: called CC=58 SCAR=46.2
5251 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5252 700 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
7000
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
5253 700 $ERRORS = 0;
5254 700 my $thisrule = $thisparser->{"rules"}{"BLOCK"};
5255  
5256 700 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [BLOCK]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
5257 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5258 q{BLOCK},
5259 $tracelevel)
5260 if defined $::RD_TRACE;
5261  
5262
5263 700 my $err_at = @{$thisparser->{errors}};
5264  
5265 700 my $score;
5266 my $score_return;
5267 700 my $_tok;
5268 700 my $return = undef;
5269 700 my $_matched=0;
5270 700 my $commit=0;
5271 700 my @item = ();
5272 700 my %item = ();
5273 700 my $repeating = $_[2];
5274 700 my $_noactions = $_[3];
5275 700 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 700 0 700
5276 700 my $_itempos = $_[5];
5277 700 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 66 634 700
5278 700 my $text;
5279 my $lastsep;
5280 700 my $current_match;
5281 700 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{INCLUDE, or TBNAME});
5282 700 $expectation->at($_[1]);
5283
5284 700 my $thisline;
5285 700 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5286  
5287
5288  
5289 700 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 700 0 700
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00700
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5290 {
5291
5292 700 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [INCLUDE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
5293 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5294 q{BLOCK},
5295 $tracelevel)
5296 if defined $::RD_TRACE;
5297 700 my $thisprod = $thisrule->{"prods"}[0];
5298 700 $text = $_[1];
5299 700 my $_savetext;
5300 700 @item = (q{BLOCK});
5301 700 %item = (__RULE__ => q{BLOCK});
5302 700 my $repcount = 0;
5303  
5304  
5305 700 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [INCLUDE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
5306 Parse::RecDescent::_Runtime::_tracefirst($text),
5307 q{BLOCK},
5308 $tracelevel)
5309 if defined $::RD_TRACE;
5310 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5311 700 $expectation->is(q{})->at($text);
5312 700 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::INCLUDE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = INCLUDE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 671 29 700
5313 {
5314
5315 671 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [INCLUDE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 671 671
5316 Parse::RecDescent::_Runtime::_tracefirst($text),
5317 q{BLOCK},
5318 $tracelevel)
5319 if defined $::RD_TRACE;
5320 671 $expectation->failed();
5321 671 last;
5322 }
5323 29 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [INCLUDE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
5324 . $_tok . q{]},
5325  
5326 Parse::RecDescent::_Runtime::_tracefirst($text),
5327 q{BLOCK},
5328 $tracelevel)
5329 if defined $::RD_TRACE;
5330 29 $item{q{INCLUDE}} = $_tok;
5331 29 push @item, $_tok;
5332
5333 }
5334  
5335 29 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
5336 Parse::RecDescent::_Runtime::_tracefirst($text),
5337 q{BLOCK},
5338 $tracelevel)
5339 if defined $::RD_TRACE;
5340
5341  
5342 29 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 29 29
5343 29 my $included = read_file( $item{INCLUDE} );
5344 29 my $result = $thisparser->startrule( $included, 1, $item{INCLUDE} );
5345 29 ▶ if (defined $result and ref $result eq 'ARRAY') {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $result and ref $result eq 'ARRAY') { } 29 0 29
Condition33%1/3
defined $result and ref $result eq "ARRAY"
!ll&&!rl&&r
0029
MC/DC0%0/2
defined $result and ref $result eq "ARRAY"
defined $result ref $result eq "ARRAY"
Truth table33%1/3
A and B
A= defined $resultB= ref $result eq "ARRAY"
ABresult
0X0
100
111
5346 29 $return = [@$result];
5347 } else {
5348 0 $return = undef;
5349 }
5350 };
5351 29 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 29 29
5352 {
5353 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5354 if defined $::RD_TRACE;
5355 0 last;
5356 }
5357 29 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
5358 . $_tok . q{])},
5359 Parse::RecDescent::_Runtime::_tracefirst($text))
5360 if defined $::RD_TRACE;
5361 29 push @item, $_tok;
5362 29 $item{__ACTION1__}=$_tok;
5363
5364  
5365 29 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [INCLUDE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
5366 Parse::RecDescent::_Runtime::_tracefirst($text),
5367 q{BLOCK},
5368 $tracelevel)
5369 if defined $::RD_TRACE;
5370  
5371  
5372  
5373 29 $_matched = 1;
5374 29 last;
5375 }
5376  
5377  
5378 700 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 671 29 700
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
290671
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5379 {
5380
5381 671 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [TBNAME PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 671 671
5382 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5383 q{BLOCK},
5384 $tracelevel)
5385 if defined $::RD_TRACE;
5386 671 my $thisprod = $thisrule->{"prods"}[1];
5387 671 $text = $_[1];
5388 671 my $_savetext;
5389 671 @item = (q{BLOCK});
5390 671 %item = (__RULE__ => q{BLOCK});
5391 671 my $repcount = 0;
5392  
5393  
5394 671 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [TBNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 671 671
5395 Parse::RecDescent::_Runtime::_tracefirst($text),
5396 q{BLOCK},
5397 $tracelevel)
5398 if defined $::RD_TRACE;
5399 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5400 671 $expectation->is(q{})->at($text);
5401 671 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::TBNAME($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = TBNAME($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 322 349 671
5402 {
5403
5404 322 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [TBNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 322 322
5405 Parse::RecDescent::_Runtime::_tracefirst($text),
5406 q{BLOCK},
5407 $tracelevel)
5408 if defined $::RD_TRACE;
5409 322 $expectation->failed();
5410 322 last;
5411 }
5412 349 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [TBNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 349 349
5413 . $_tok . q{]},
5414  
5415 Parse::RecDescent::_Runtime::_tracefirst($text),
5416 q{BLOCK},
5417 $tracelevel)
5418 if defined $::RD_TRACE;
5419 349 $item{q{TBNAME}} = $_tok;
5420 349 push @item, $_tok;
5421
5422 }
5423  
5424 349 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 349 349
5425 Parse::RecDescent::_Runtime::_tracefirst($text),
5426 q{BLOCK},
5427 $tracelevel)
5428 if defined $::RD_TRACE;
5429 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5430 349 $expectation->is(q{PARAMS})->at($text);
5431 349 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAMS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PARAMS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 89 260 349
5432 {
5433
5434 89 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAMS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 89 89
5435 Parse::RecDescent::_Runtime::_tracefirst($text),
5436 q{BLOCK},
5437 $tracelevel)
5438 if defined $::RD_TRACE;
5439 89 $expectation->failed();
5440 89 last;
5441 }
5442 260 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAMS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
5443 . $_tok . q{]},
5444  
5445 Parse::RecDescent::_Runtime::_tracefirst($text),
5446 q{BLOCK},
5447 $tracelevel)
5448 if defined $::RD_TRACE;
5449 260 $item{q{PARAMS}} = $_tok;
5450 260 push @item, $_tok;
5451
5452 }
5453  
5454 260 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
5455 Parse::RecDescent::_Runtime::_tracefirst($text),
5456 q{BLOCK},
5457 $tracelevel)
5458 if defined $::RD_TRACE;
5459
5460  
5461 260 ▶ $_tok = ($_noactions) ? 0 : do {$return = [{
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 260 260
5462 block_name=>$item{TBNAME},
5463 block_parameters=>$item{PARAMS},
5464 260 }]
5465 };
5466 260 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 260 260
5467 {
5468 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5469 if defined $::RD_TRACE;
5470 0 last;
5471 }
5472 260 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
5473 . $_tok . q{])},
5474 Parse::RecDescent::_Runtime::_tracefirst($text))
5475 if defined $::RD_TRACE;
5476 260 push @item, $_tok;
5477 260 $item{__ACTION1__}=$_tok;
5478
5479  
5480 260 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [TBNAME PARAMS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
5481 Parse::RecDescent::_Runtime::_tracefirst($text),
5482 q{BLOCK},
5483 $tracelevel)
5484 if defined $::RD_TRACE;
5485  
5486  
5487  
5488 260 $_matched = 1;
5489 260 last;
5490 }
5491  
5492  
5493 700 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 411 289 700
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
2890411
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5494 {
5495
5496 411 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [TBNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 411 411
5497 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5498 q{BLOCK},
5499 $tracelevel)
5500 if defined $::RD_TRACE;
5501 411 my $thisprod = $thisrule->{"prods"}[2];
5502 411 $text = $_[1];
5503 411 my $_savetext;
5504 411 @item = (q{BLOCK});
5505 411 %item = (__RULE__ => q{BLOCK});
5506 411 my $repcount = 0;
5507  
5508  
5509 411 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [TBNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 411 411
5510 Parse::RecDescent::_Runtime::_tracefirst($text),
5511 q{BLOCK},
5512 $tracelevel)
5513 if defined $::RD_TRACE;
5514 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5515 411 $expectation->is(q{})->at($text);
5516 411 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::TBNAME($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = TBNAME($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 322 89 411
5517 {
5518
5519 322 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [TBNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 322 322
5520 Parse::RecDescent::_Runtime::_tracefirst($text),
5521 q{BLOCK},
5522 $tracelevel)
5523 if defined $::RD_TRACE;
5524 322 $expectation->failed();
5525 322 last;
5526 }
5527 89 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [TBNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 89 89
5528 . $_tok . q{]},
5529  
5530 Parse::RecDescent::_Runtime::_tracefirst($text),
5531 q{BLOCK},
5532 $tracelevel)
5533 if defined $::RD_TRACE;
5534 89 $item{q{TBNAME}} = $_tok;
5535 89 push @item, $_tok;
5536
5537 }
5538  
5539 89 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 89 89
5540 Parse::RecDescent::_Runtime::_tracefirst($text),
5541 q{BLOCK},
5542 $tracelevel)
5543 if defined $::RD_TRACE;
5544
5545  
5546 89 ▶ $_tok = ($_noactions) ? 0 : do {$return = [{
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 89 89
5547 block_name=>$item{TBNAME},
5548 89 block_parameters=>[],
5549 }]
5550 };
5551 89 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 89 89
5552 {
5553 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5554 if defined $::RD_TRACE;
5555 0 last;
5556 }
5557 89 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 89 89
5558 . $_tok . q{])},
5559 Parse::RecDescent::_Runtime::_tracefirst($text))
5560 if defined $::RD_TRACE;
5561 89 push @item, $_tok;
5562 89 $item{__ACTION1__}=$_tok;
5563
5564  
5565 89 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [TBNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 89 89
5566 Parse::RecDescent::_Runtime::_tracefirst($text),
5567 q{BLOCK},
5568 $tracelevel)
5569 if defined $::RD_TRACE;
5570  
5571  
5572  
5573 89 $_matched = 1;
5574 89 last;
5575 }
5576  
5577  
5578 700 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 322 378 700
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
3780322
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
5579 {
5580
5581  
5582 322 $_[1] = $text; # NOT SURE THIS IS NEEDED
5583 322 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 322 322
5584 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5585 q{BLOCK},
5586 $tracelevel)
5587 if defined $::RD_TRACE;
5588 322 return undef;
5589 }
5590 378 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 378 378
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
37800
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
5591 {
5592 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5593 q{BLOCK},
5594 $tracelevel)
5595 if defined $::RD_TRACE;
5596 0 $return = $score_return;
5597 }
5598 378 splice @{$thisparser->{errors}}, $err_at;
5599 378 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 378 378
5600 378 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 378 378
5601 {
5602 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5603 $return . q{])}, "",
5604 q{BLOCK},
5605 $tracelevel);
5606 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5607 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5608 Parse::RecDescent::_Runtime::_tracefirst($text),
5609 , q{BLOCK},
5610 $tracelevel)
5611 }
5612 378 $_[1] = $text;
5613 378 return $return;
5614 }
5615  
5616 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5617 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PNAME
5618 {
5619 1240 ▶ my $thisparser = $_[0];
Subroutine PNAME: called CC=29 SCAR=37.3
5620 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5621 1240 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
12400
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
5622 1240 $ERRORS = 0;
5623 1240 my $thisrule = $thisparser->{"rules"}{"PNAME"};
5624  
5625 1240 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1240 1240
5626 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5627 q{PNAME},
5628 $tracelevel)
5629 if defined $::RD_TRACE;
5630  
5631
5632 1240 my $err_at = @{$thisparser->{errors}};
5633  
5634 1240 my $score;
5635 my $score_return;
5636 1240 my $_tok;
5637 1240 my $return = undef;
5638 1240 my $_matched=0;
5639 1240 my $commit=0;
5640 1240 my @item = ();
5641 1240 my %item = ();
5642 1240 my $repeating = $_[2];
5643 1240 my $_noactions = $_[3];
5644 1240 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 1240 0 1240
5645 1240 my $_itempos = $_[5];
5646 1240 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 100 1140 1240
5647 1240 my $text;
5648 my $lastsep;
5649 1240 my $current_match;
5650 1240 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\w+/});
5651 1240 $expectation->at($_[1]);
5652
5653 1240 my $thisline;
5654 1240 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5655  
5656
5657  
5658 1240 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1240 0 1240
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
001240
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5659 {
5660
5661 1240 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\w+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1240 1240
5662 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5663 q{PNAME},
5664 $tracelevel)
5665 if defined $::RD_TRACE;
5666 1240 my $thisprod = $thisrule->{"prods"}[0];
5667 1240 $text = $_[1];
5668 1240 my $_savetext;
5669 1240 @item = (q{PNAME});
5670 1240 %item = (__RULE__ => q{PNAME});
5671 1240 my $repcount = 0;
5672  
5673  
5674 1240 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\w+/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1240 1240
5675 q{PNAME},
5676 $tracelevel)
5677 if defined $::RD_TRACE;
5678 1240 undef $lastsep;
5679 1240 $expectation->is(q{})->at($text);
5680
5681  
5682 1240 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\w+)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\w+)/) 470 770 1240
$lastsep = $1 and "" 984 256 1240
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\w+)/
!ll&&!rl&&r
0470770
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\w+)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\w+)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\w+)/
ABresult
0X0
100
111
5683 {
5684 470 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 470 0 470
5685 470 $expectation->failed();
5686 470 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 470 470
5687 Parse::RecDescent::_Runtime::_tracefirst($text))
5688 if defined $::RD_TRACE;
5689  
5690 470 last;
5691 }
5692 770 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5693 770 substr($text,0,length($current_match),q{});
5694 770 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 770 770
5695 . $current_match . q{])},
5696 Parse::RecDescent::_Runtime::_tracefirst($text))
5697 if defined $::RD_TRACE;
5698 770 push @item, $item{__PATTERN1__}=$current_match;
5699
5700  
5701 770 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 770 770
5702 Parse::RecDescent::_Runtime::_tracefirst($text),
5703 q{PNAME},
5704 $tracelevel)
5705 if defined $::RD_TRACE;
5706
5707  
5708 770 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 770 770
5709 770 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 770 770
5710 {
5711 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5712 if defined $::RD_TRACE;
5713 0 last;
5714 }
5715 770 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 770 770
5716 . $_tok . q{])},
5717 Parse::RecDescent::_Runtime::_tracefirst($text))
5718 if defined $::RD_TRACE;
5719 770 push @item, $_tok;
5720 770 $item{__ACTION1__}=$_tok;
5721
5722  
5723 770 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\w+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 770 770
5724 Parse::RecDescent::_Runtime::_tracefirst($text),
5725 q{PNAME},
5726 $tracelevel)
5727 if defined $::RD_TRACE;
5728  
5729  
5730  
5731 770 $_matched = 1;
5732 770 last;
5733 }
5734  
5735  
5736 1240 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 470 770 1240
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
7700470
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
5737 {
5738
5739  
5740 470 $_[1] = $text; # NOT SURE THIS IS NEEDED
5741 470 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 470 470
5742 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5743 q{PNAME},
5744 $tracelevel)
5745 if defined $::RD_TRACE;
5746 470 return undef;
5747 }
5748 770 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 770 770
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
77000
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
5749 {
5750 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5751 q{PNAME},
5752 $tracelevel)
5753 if defined $::RD_TRACE;
5754 0 $return = $score_return;
5755 }
5756 770 splice @{$thisparser->{errors}}, $err_at;
5757 770 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 770 770
5758 770 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 770 770
5759 {
5760 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5761 $return . q{])}, "",
5762 q{PNAME},
5763 $tracelevel);
5764 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5765 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5766 Parse::RecDescent::_Runtime::_tracefirst($text),
5767 , q{PNAME},
5768 $tracelevel)
5769 }
5770 770 $_[1] = $text;
5771 770 return $return;
5772 }
5773  
5774 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5775 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PTICKED
5776 {
5777 0 ▶ my $thisparser = $_[0];
Subroutine PTICKED: not called CC=29 SCAR=67.0
5778 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5779 0 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition0%0/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
00
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table0%0/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
5780 0 $ERRORS = 0;
5781 0 my $thisrule = $thisparser->{"rules"}{"PTICKED"};
5782  
5783 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PTICKED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5784 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5785 q{PTICKED},
5786 $tracelevel)
5787 if defined $::RD_TRACE;
5788  
5789
5790 0 my $err_at = @{$thisparser->{errors}};
5791  
5792 0 my $score;
5793 my $score_return;
5794 0 my $_tok;
5795 0 my $return = undef;
5796 0 my $_matched=0;
5797 0 my $commit=0;
5798 0 my @item = ();
5799 0 my %item = ();
5800 0 my $repeating = $_[2];
5801 0 my $_noactions = $_[3];
5802 0 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 0 0 0
5803 0 my $_itempos = $_[5];
5804 0 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 0 0
5805 0 my $text;
5806 my $lastsep;
5807 0 my $current_match;
5808 0 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/[^`]+/});
5809 0 $expectation->at($_[1]);
5810
5811 0 my $thisline;
5812 0 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5813  
5814
5815  
5816 0 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 0 0 0
Condition0%0/3
$_matched or $commit
l!l&&r!l&&!r
000
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table0%0/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5817 {
5818
5819 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[^`]+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5820 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5821 q{PTICKED},
5822 $tracelevel)
5823 if defined $::RD_TRACE;
5824 0 my $thisprod = $thisrule->{"prods"}[0];
5825 0 $text = $_[1];
5826 0 my $_savetext;
5827 0 @item = (q{PTICKED});
5828 0 %item = (__RULE__ => q{PTICKED});
5829 0 my $repcount = 0;
5830  
5831  
5832 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[^`]+/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5833 q{PTICKED},
5834 $tracelevel)
5835 if defined $::RD_TRACE;
5836 0 undef $lastsep;
5837 0 $expectation->is(q{})->at($text);
5838
5839  
5840 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[^`]+)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^`]+)/) 0 0 0
$lastsep = $1 and "" 0 0 0
Condition0%0/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^`]+)/
!ll&&!rl&&r
000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^`]+)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[^`]+)/
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[^`]+)/
ABresult
0X0
100
111
5841 {
5842 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
5843 0 $expectation->failed();
5844 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5845 Parse::RecDescent::_Runtime::_tracefirst($text))
5846 if defined $::RD_TRACE;
5847  
5848 0 last;
5849 }
5850 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5851 0 substr($text,0,length($current_match),q{});
5852 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5853 . $current_match . q{])},
5854 Parse::RecDescent::_Runtime::_tracefirst($text))
5855 if defined $::RD_TRACE;
5856 0 push @item, $item{__PATTERN1__}=$current_match;
5857
5858  
5859 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5860 Parse::RecDescent::_Runtime::_tracefirst($text),
5861 q{PTICKED},
5862 $tracelevel)
5863 if defined $::RD_TRACE;
5864
5865  
5866 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
5867 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
5868 {
5869 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5870 if defined $::RD_TRACE;
5871 0 last;
5872 }
5873 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5874 . $_tok . q{])},
5875 Parse::RecDescent::_Runtime::_tracefirst($text))
5876 if defined $::RD_TRACE;
5877 0 push @item, $_tok;
5878 0 $item{__ACTION1__}=$_tok;
5879
5880  
5881 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[^`]+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5882 Parse::RecDescent::_Runtime::_tracefirst($text),
5883 q{PTICKED},
5884 $tracelevel)
5885 if defined $::RD_TRACE;
5886  
5887  
5888  
5889 0 $_matched = 1;
5890 0 last;
5891 }
5892  
5893  
5894 0 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 0 0
Condition0%0/3
$_matched or defined $score
l!l&&r!l&&!r
000
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table0%0/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
5895 {
5896
5897  
5898 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
5899 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5900 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5901 q{PTICKED},
5902 $tracelevel)
5903 if defined $::RD_TRACE;
5904 0 return undef;
5905 }
5906 0 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 0 0
Condition0%0/3
not defined $return and defined $score
!ll&&!rl&&r
000
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table0%0/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
5907 {
5908 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5909 q{PTICKED},
5910 $tracelevel)
5911 if defined $::RD_TRACE;
5912 0 $return = $score_return;
5913 }
5914 0 splice @{$thisparser->{errors}}, $err_at;
5915 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
5916 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
5917 {
5918 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5919 $return . q{])}, "",
5920 q{PTICKED},
5921 $tracelevel);
5922 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5923 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5924 Parse::RecDescent::_Runtime::_tracefirst($text),
5925 , q{PTICKED},
5926 $tracelevel)
5927 }
5928 0 $_[1] = $text;
5929 0 return $return;
5930 }
5931  
5932 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5933 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BNAME
5934 {
5935 1508 ▶ my $thisparser = $_[0];
Subroutine BNAME: called CC=49 SCAR=44.9
5936 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5937 1508 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
15080
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
5938 1508 $ERRORS = 0;
5939 1508 my $thisrule = $thisparser->{"rules"}{"BNAME"};
5940  
5941 1508 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1508 1508
5942 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5943 q{BNAME},
5944 $tracelevel)
5945 if defined $::RD_TRACE;
5946  
5947
5948 1508 my $err_at = @{$thisparser->{errors}};
5949  
5950 1508 my $score;
5951 my $score_return;
5952 1508 my $_tok;
5953 1508 my $return = undef;
5954 1508 my $_matched=0;
5955 1508 my $commit=0;
5956 1508 my @item = ();
5957 1508 my %item = ();
5958 1508 my $repeating = $_[2];
5959 1508 my $_noactions = $_[3];
5960 1508 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 1508 0 1508
5961 1508 my $_itempos = $_[5];
5962 1508 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 160 1348 1508
5963 1508 my $text;
5964 my $lastsep;
5965 1508 my $current_match;
5966 1508 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/[A-Z]\\w*::/, or /[A-Z]\\w*/});
5967 1508 $expectation->at($_[1]);
5968
5969 1508 my $thisline;
5970 1508 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5971  
5972
5973  
5974 1508 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1508 0 1508
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
001508
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5975 {
5976
5977 1508 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[A-Z]\\w*::/ BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1508 1508
5978 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5979 q{BNAME},
5980 $tracelevel)
5981 if defined $::RD_TRACE;
5982 1508 my $thisprod = $thisrule->{"prods"}[0];
5983 1508 $text = $_[1];
5984 1508 my $_savetext;
5985 1508 @item = (q{BNAME});
5986 1508 %item = (__RULE__ => q{BNAME});
5987 1508 my $repcount = 0;
5988  
5989  
5990 1508 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[A-Z]\\w*::/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1508 1508
5991 q{BNAME},
5992 $tracelevel)
5993 if defined $::RD_TRACE;
5994 1508 undef $lastsep;
5995 1508 $expectation->is(q{})->at($text);
5996
5997  
5998 1508 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[A-Z]\w*::)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Z]\w*::)/) 1082 426 1508
$lastsep = $1 and "" 562 946 1508
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Z]\w*::)/
!ll&&!rl&&r
01082426
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Z]\w*::)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[A-Z]\w*::)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[A-Z]\w*::)/
ABresult
0X0
100
111
5999 {
6000 1082 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 1082 0 1082
6001 1082 $expectation->failed();
6002 1082 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1082 1082
6003 Parse::RecDescent::_Runtime::_tracefirst($text))
6004 if defined $::RD_TRACE;
6005  
6006 1082 last;
6007 }
6008 426 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6009 426 substr($text,0,length($current_match),q{});
6010 426 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 426 426
6011 . $current_match . q{])},
6012 Parse::RecDescent::_Runtime::_tracefirst($text))
6013 if defined $::RD_TRACE;
6014 426 push @item, $item{__PATTERN1__}=$current_match;
6015
6016  
6017 426 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 426 426
6018 Parse::RecDescent::_Runtime::_tracefirst($text),
6019 q{BNAME},
6020 $tracelevel)
6021 if defined $::RD_TRACE;
6022 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6023 426 $expectation->is(q{BNAME})->at($text);
6024 426 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BNAME($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = BNAME($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 426 426
6025 {
6026
6027 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6028 Parse::RecDescent::_Runtime::_tracefirst($text),
6029 q{BNAME},
6030 $tracelevel)
6031 if defined $::RD_TRACE;
6032 0 $expectation->failed();
6033 0 last;
6034 }
6035 426 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 426 426
6036 . $_tok . q{]},
6037  
6038 Parse::RecDescent::_Runtime::_tracefirst($text),
6039 q{BNAME},
6040 $tracelevel)
6041 if defined $::RD_TRACE;
6042 426 $item{q{BNAME}} = $_tok;
6043 426 push @item, $_tok;
6044
6045 }
6046  
6047 426 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 426 426
6048 Parse::RecDescent::_Runtime::_tracefirst($text),
6049 q{BNAME},
6050 $tracelevel)
6051 if defined $::RD_TRACE;
6052
6053  
6054 426 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1].$item[2]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 426 426
6055 426 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 426 426
6056 {
6057 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6058 if defined $::RD_TRACE;
6059 0 last;
6060 }
6061 426 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 426 426
6062 . $_tok . q{])},
6063 Parse::RecDescent::_Runtime::_tracefirst($text))
6064 if defined $::RD_TRACE;
6065 426 push @item, $_tok;
6066 426 $item{__ACTION1__}=$_tok;
6067
6068  
6069 426 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[A-Z]\\w*::/ BNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 426 426
6070 Parse::RecDescent::_Runtime::_tracefirst($text),
6071 q{BNAME},
6072 $tracelevel)
6073 if defined $::RD_TRACE;
6074  
6075  
6076  
6077 426 $_matched = 1;
6078 426 last;
6079 }
6080  
6081  
6082 1508 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1082 426 1508
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
42601082
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6083 {
6084
6085 1082 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[A-Z]\\w*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1082 1082
6086 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6087 q{BNAME},
6088 $tracelevel)
6089 if defined $::RD_TRACE;
6090 1082 my $thisprod = $thisrule->{"prods"}[1];
6091 1082 $text = $_[1];
6092 1082 my $_savetext;
6093 1082 @item = (q{BNAME});
6094 1082 %item = (__RULE__ => q{BNAME});
6095 1082 my $repcount = 0;
6096  
6097  
6098 1082 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[A-Z]\\w*/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1082 1082
6099 q{BNAME},
6100 $tracelevel)
6101 if defined $::RD_TRACE;
6102 1082 undef $lastsep;
6103 1082 $expectation->is(q{})->at($text);
6104
6105  
6106 1082 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[A-Z]\w*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Z]\w*)/) 644 438 1082
$lastsep = $1 and "" 324 758 1082
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Z]\w*)/
!ll&&!rl&&r
0644438
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Z]\w*)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[A-Z]\w*)/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[A-Z]\w*)/
ABresult
0X0
100
111
6107 {
6108 644 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 644 0 644
6109 644 $expectation->failed();
6110 644 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 644 644
6111 Parse::RecDescent::_Runtime::_tracefirst($text))
6112 if defined $::RD_TRACE;
6113  
6114 644 last;
6115 }
6116 438 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6117 438 substr($text,0,length($current_match),q{});
6118 438 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 438 438
6119 . $current_match . q{])},
6120 Parse::RecDescent::_Runtime::_tracefirst($text))
6121 if defined $::RD_TRACE;
6122 438 push @item, $item{__PATTERN1__}=$current_match;
6123
6124  
6125 438 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 438 438
6126 Parse::RecDescent::_Runtime::_tracefirst($text),
6127 q{BNAME},
6128 $tracelevel)
6129 if defined $::RD_TRACE;
6130
6131  
6132 438 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 438 438
6133 438 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 438 438
6134 {
6135 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6136 if defined $::RD_TRACE;
6137 0 last;
6138 }
6139 438 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 438 438
6140 . $_tok . q{])},
6141 Parse::RecDescent::_Runtime::_tracefirst($text))
6142 if defined $::RD_TRACE;
6143 438 push @item, $_tok;
6144 438 $item{__ACTION1__}=$_tok;
6145
6146  
6147 438 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[A-Z]\\w*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 438 438
6148 Parse::RecDescent::_Runtime::_tracefirst($text),
6149 q{BNAME},
6150 $tracelevel)
6151 if defined $::RD_TRACE;
6152  
6153  
6154  
6155 438 $_matched = 1;
6156 438 last;
6157 }
6158  
6159  
6160 1508 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 644 864 1508
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
8640644
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
6161 {
6162
6163  
6164 644 $_[1] = $text; # NOT SURE THIS IS NEEDED
6165 644 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 644 644
6166 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6167 q{BNAME},
6168 $tracelevel)
6169 if defined $::RD_TRACE;
6170 644 return undef;
6171 }
6172 864 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 864 864
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
86400
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
6173 {
6174 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6175 q{BNAME},
6176 $tracelevel)
6177 if defined $::RD_TRACE;
6178 0 $return = $score_return;
6179 }
6180 864 splice @{$thisparser->{errors}}, $err_at;
6181 864 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 864 864
6182 864 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 864 864
6183 {
6184 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
6185 $return . q{])}, "",
6186 q{BNAME},
6187 $tracelevel);
6188 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
6189 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
6190 Parse::RecDescent::_Runtime::_tracefirst($text),
6191 , q{BNAME},
6192 $tracelevel)
6193 }
6194 864 $_[1] = $text;
6195 864 return $return;
6196 }
6197  
6198 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6199 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SCEN
6200 {
6201 215 ▶ my $thisparser = $_[0];
Subroutine SCEN: called CC=43 SCAR=41.6
6202 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6203 215 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
2150
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
6204 215 $ERRORS = 0;
6205 215 my $thisrule = $thisparser->{"rules"}{"SCEN"};
6206  
6207 215 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [SCEN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 215 215
6208 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6209 q{SCEN},
6210 $tracelevel)
6211 if defined $::RD_TRACE;
6212  
6213
6214 215 my $err_at = @{$thisparser->{errors}};
6215  
6216 215 my $score;
6217 my $score_return;
6218 215 my $_tok;
6219 215 my $return = undef;
6220 215 my $_matched=0;
6221 215 my $commit=0;
6222 215 my @item = ();
6223 215 my %item = ();
6224 215 my $repeating = $_[2];
6225 215 my $_noactions = $_[3];
6226 215 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 215 0 215
6227 215 my $_itempos = $_[5];
6228 215 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 19 196 215
6229 215 my $text;
6230 my $lastsep;
6231 215 my $current_match;
6232 215 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{LINE});
6233 215 $expectation->at($_[1]);
6234
6235 215 my $thisline;
6236 215 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
6237  
6238
6239  
6240 215 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 215 0 215
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00215
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6241 {
6242
6243 215 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [LINE SCEN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 215 215
6244 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6245 q{SCEN},
6246 $tracelevel)
6247 if defined $::RD_TRACE;
6248 215 my $thisprod = $thisrule->{"prods"}[0];
6249 215 $text = $_[1];
6250 215 my $_savetext;
6251 215 @item = (q{SCEN});
6252 215 %item = (__RULE__ => q{SCEN});
6253 215 my $repcount = 0;
6254  
6255  
6256 215 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [LINE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 215 215
6257 Parse::RecDescent::_Runtime::_tracefirst($text),
6258 q{SCEN},
6259 $tracelevel)
6260 if defined $::RD_TRACE;
6261 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6262 215 $expectation->is(q{})->at($text);
6263 215 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::LINE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = LINE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 73 142 215
6264 {
6265
6266 73 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [LINE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
6267 Parse::RecDescent::_Runtime::_tracefirst($text),
6268 q{SCEN},
6269 $tracelevel)
6270 if defined $::RD_TRACE;
6271 73 $expectation->failed();
6272 73 last;
6273 }
6274 142 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [LINE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 142 142
6275 . $_tok . q{]},
6276  
6277 Parse::RecDescent::_Runtime::_tracefirst($text),
6278 q{SCEN},
6279 $tracelevel)
6280 if defined $::RD_TRACE;
6281 142 $item{q{LINE}} = $_tok;
6282 142 push @item, $_tok;
6283
6284 }
6285  
6286 142 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SCEN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 142 142
6287 Parse::RecDescent::_Runtime::_tracefirst($text),
6288 q{SCEN},
6289 $tracelevel)
6290 if defined $::RD_TRACE;
6291 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6292 142 $expectation->is(q{SCEN})->at($text);
6293 142 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SCEN($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = SCEN($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 71 71 142
6294 {
6295
6296 71 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SCEN]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6297 Parse::RecDescent::_Runtime::_tracefirst($text),
6298 q{SCEN},
6299 $tracelevel)
6300 if defined $::RD_TRACE;
6301 71 $expectation->failed();
6302 71 last;
6303 }
6304 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SCEN]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6305 . $_tok . q{]},
6306  
6307 Parse::RecDescent::_Runtime::_tracefirst($text),
6308 q{SCEN},
6309 $tracelevel)
6310 if defined $::RD_TRACE;
6311 71 $item{q{SCEN}} = $_tok;
6312 71 push @item, $_tok;
6313
6314 }
6315  
6316 71 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6317 Parse::RecDescent::_Runtime::_tracefirst($text),
6318 q{SCEN},
6319 $tracelevel)
6320 if defined $::RD_TRACE;
6321
6322  
6323 71 ▶ $_tok = ($_noactions) ? 0 : do {$return = [@{$item{LINE}},@{$item{SCEN}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 71 71
6324 71 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 71 71
6325 {
6326 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6327 if defined $::RD_TRACE;
6328 0 last;
6329 }
6330 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6331 . $_tok . q{])},
6332 Parse::RecDescent::_Runtime::_tracefirst($text))
6333 if defined $::RD_TRACE;
6334 71 push @item, $_tok;
6335 71 $item{__ACTION1__}=$_tok;
6336
6337  
6338 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [LINE SCEN]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6339 Parse::RecDescent::_Runtime::_tracefirst($text),
6340 q{SCEN},
6341 $tracelevel)
6342 if defined $::RD_TRACE;
6343  
6344  
6345  
6346 71 $_matched = 1;
6347 71 last;
6348 }
6349  
6350  
6351 215 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 144 71 215
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
710144
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6352 {
6353
6354 144 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [LINE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 144 144
6355 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6356 q{SCEN},
6357 $tracelevel)
6358 if defined $::RD_TRACE;
6359 144 my $thisprod = $thisrule->{"prods"}[1];
6360 144 $text = $_[1];
6361 144 my $_savetext;
6362 144 @item = (q{SCEN});
6363 144 %item = (__RULE__ => q{SCEN});
6364 144 my $repcount = 0;
6365  
6366  
6367 144 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [LINE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 144 144
6368 Parse::RecDescent::_Runtime::_tracefirst($text),
6369 q{SCEN},
6370 $tracelevel)
6371 if defined $::RD_TRACE;
6372 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6373 144 $expectation->is(q{})->at($text);
6374 144 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::LINE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = LINE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 73 71 144
6375 {
6376
6377 73 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [LINE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
6378 Parse::RecDescent::_Runtime::_tracefirst($text),
6379 q{SCEN},
6380 $tracelevel)
6381 if defined $::RD_TRACE;
6382 73 $expectation->failed();
6383 73 last;
6384 }
6385 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [LINE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6386 . $_tok . q{]},
6387  
6388 Parse::RecDescent::_Runtime::_tracefirst($text),
6389 q{SCEN},
6390 $tracelevel)
6391 if defined $::RD_TRACE;
6392 71 $item{q{LINE}} = $_tok;
6393 71 push @item, $_tok;
6394
6395 }
6396  
6397 71 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6398 Parse::RecDescent::_Runtime::_tracefirst($text),
6399 q{SCEN},
6400 $tracelevel)
6401 if defined $::RD_TRACE;
6402
6403  
6404 71 ▶ $_tok = ($_noactions) ? 0 : do {$return = [@{$item{LINE}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 71 71
6405 71 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 71 71
6406 {
6407 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6408 if defined $::RD_TRACE;
6409 0 last;
6410 }
6411 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6412 . $_tok . q{])},
6413 Parse::RecDescent::_Runtime::_tracefirst($text))
6414 if defined $::RD_TRACE;
6415 71 push @item, $_tok;
6416 71 $item{__ACTION1__}=$_tok;
6417
6418  
6419 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [LINE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
6420 Parse::RecDescent::_Runtime::_tracefirst($text),
6421 q{SCEN},
6422 $tracelevel)
6423 if defined $::RD_TRACE;
6424  
6425  
6426  
6427 71 $_matched = 1;
6428 71 last;
6429 }
6430  
6431  
6432 215 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 73 142 215
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
142073
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
6433 {
6434
6435  
6436 73 $_[1] = $text; # NOT SURE THIS IS NEEDED
6437 73 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 73 73
6438 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6439 q{SCEN},
6440 $tracelevel)
6441 if defined $::RD_TRACE;
6442 73 return undef;
6443 }
6444 142 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 142 142
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
14200
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
6445 {
6446 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6447 q{SCEN},
6448 $tracelevel)
6449 if defined $::RD_TRACE;
6450 0 $return = $score_return;
6451 }
6452 142 splice @{$thisparser->{errors}}, $err_at;
6453 142 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 142 142
6454 142 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 142 142
6455 {
6456 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
6457 $return . q{])}, "",
6458 q{SCEN},
6459 $tracelevel);
6460 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
6461 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
6462 Parse::RecDescent::_Runtime::_tracefirst($text),
6463 , q{SCEN},
6464 $tracelevel)
6465 }
6466 142 $_[1] = $text;
6467 142 return $return;
6468 }
6469  
6470 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6471 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::INCLUDE
6472 {
6473 700 ▶ my $thisparser = $_[0];
Subroutine INCLUDE: called CC=46 SCAR=49.3
6474 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6475 700 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
7000
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
6476 700 $ERRORS = 0;
6477 700 my $thisrule = $thisparser->{"rules"}{"INCLUDE"};
6478  
6479 700 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [INCLUDE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
6480 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6481 q{INCLUDE},
6482 $tracelevel)
6483 if defined $::RD_TRACE;
6484  
6485
6486 700 my $err_at = @{$thisparser->{errors}};
6487  
6488 700 my $score;
6489 my $score_return;
6490 700 my $_tok;
6491 700 my $return = undef;
6492 700 my $_matched=0;
6493 700 my $commit=0;
6494 700 my @item = ();
6495 700 my %item = ();
6496 700 my $repeating = $_[2];
6497 700 my $_noactions = $_[3];
6498 700 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 700 0 700
6499 700 my $_itempos = $_[5];
6500 700 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 66 634 700
6501 700 my $text;
6502 my $lastsep;
6503 700 my $current_match;
6504 700 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\/\\S+\\.scen/, or /[^\\/#]\\S+\\.scen/});
6505 700 $expectation->at($_[1]);
6506
6507 700 my $thisline;
6508 700 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
6509  
6510
6511  
6512 700 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 700 0 700
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00700
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6513 {
6514
6515 700 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\/\\S+\\.scen/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
6516 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6517 q{INCLUDE},
6518 $tracelevel)
6519 if defined $::RD_TRACE;
6520 700 my $thisprod = $thisrule->{"prods"}[0];
6521 700 $text = $_[1];
6522 700 my $_savetext;
6523 700 @item = (q{INCLUDE});
6524 700 %item = (__RULE__ => q{INCLUDE});
6525 700 my $repcount = 0;
6526  
6527  
6528 700 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\/\\S+\\.scen/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
6529 q{INCLUDE},
6530 $tracelevel)
6531 if defined $::RD_TRACE;
6532 700 undef $lastsep;
6533 700 $expectation->is(q{})->at($text);
6534
6535  
6536 700 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\/\S+\.scen)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:/\S+\.scen)]) 700 0 700
$lastsep = $1 and "" 355 345 700
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:/\S+\.scen)]
!ll&&!rl&&r
07000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:/\S+\.scen)]
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ m[\A(?:/\S+\.scen)]
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ m[\A(?:/\S+\.scen)]
ABresult
0X0
100
111
6537 {
6538 700 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 700 0 700
6539 700 $expectation->failed();
6540 700 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
6541 Parse::RecDescent::_Runtime::_tracefirst($text))
6542 if defined $::RD_TRACE;
6543  
6544 700 last;
6545 }
6546 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6547 0 substr($text,0,length($current_match),q{});
6548 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6549 . $current_match . q{])},
6550 Parse::RecDescent::_Runtime::_tracefirst($text))
6551 if defined $::RD_TRACE;
6552 0 push @item, $item{__PATTERN1__}=$current_match;
6553
6554  
6555 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6556 Parse::RecDescent::_Runtime::_tracefirst($text),
6557 q{INCLUDE},
6558 $tracelevel)
6559 if defined $::RD_TRACE;
6560
6561  
6562 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
6563 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
6564 {
6565 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6566 if defined $::RD_TRACE;
6567 0 last;
6568 }
6569 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6570 . $_tok . q{])},
6571 Parse::RecDescent::_Runtime::_tracefirst($text))
6572 if defined $::RD_TRACE;
6573 0 push @item, $_tok;
6574 0 $item{__ACTION1__}=$_tok;
6575
6576  
6577 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\/\\S+\\.scen/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6578 Parse::RecDescent::_Runtime::_tracefirst($text),
6579 q{INCLUDE},
6580 $tracelevel)
6581 if defined $::RD_TRACE;
6582  
6583  
6584  
6585 0 $_matched = 1;
6586 0 last;
6587 }
6588  
6589  
6590 700 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 700 0 700
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00700
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6591 {
6592
6593 700 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[^\\/#]\\S+\\.scen/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
6594 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6595 q{INCLUDE},
6596 $tracelevel)
6597 if defined $::RD_TRACE;
6598 700 my $thisprod = $thisrule->{"prods"}[1];
6599 700 $text = $_[1];
6600 700 my $_savetext;
6601 700 @item = (q{INCLUDE});
6602 700 %item = (__RULE__ => q{INCLUDE});
6603 700 my $repcount = 0;
6604  
6605  
6606 700 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[^\\/#]\\S+\\.scen/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 700 700
6607 q{INCLUDE},
6608 $tracelevel)
6609 if defined $::RD_TRACE;
6610 700 undef $lastsep;
6611 700 $expectation->is(q{})->at($text);
6612
6613  
6614 700 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[^\/#]\S+\.scen)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:[^/#]\S+\.scen)]) 671 29 700
$lastsep = $1 and "" 355 345 700
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:[^/#]\S+\.scen)]
!ll&&!rl&&r
067129
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:[^/#]\S+\.scen)]
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ m[\A(?:[^/#]\S+\.scen)]
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ m[\A(?:[^/#]\S+\.scen)]
ABresult
0X0
100
111
6615 {
6616 671 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 671 0 671
6617 671 $expectation->failed();
6618 671 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 671 671
6619 Parse::RecDescent::_Runtime::_tracefirst($text))
6620 if defined $::RD_TRACE;
6621  
6622 671 last;
6623 }
6624 29 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6625 29 substr($text,0,length($current_match),q{});
6626 29 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6627 . $current_match . q{])},
6628 Parse::RecDescent::_Runtime::_tracefirst($text))
6629 if defined $::RD_TRACE;
6630 29 push @item, $item{__PATTERN1__}=$current_match;
6631
6632  
6633 29 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6634 Parse::RecDescent::_Runtime::_tracefirst($text),
6635 q{INCLUDE},
6636 $tracelevel)
6637 if defined $::RD_TRACE;
6638
6639  
6640 29 ▶ $_tok = ($_noactions) ? 0 : do { my $from_file = $arg[0];
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 29 29
6641 29 ▶ if (length $from_file) {
Branch: 1 branch
BranchTrueFalseTotal
if (length $from_file) { } 17 12 29
6642 17 $return = dirname($from_file) . "/$item[1]";
6643 } else {
6644 12 $return = "./$item[1]";
6645 }
6646 };
6647 29 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 29 29
6648 {
6649 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6650 if defined $::RD_TRACE;
6651 0 last;
6652 }
6653 29 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6654 . $_tok . q{])},
6655 Parse::RecDescent::_Runtime::_tracefirst($text))
6656 if defined $::RD_TRACE;
6657 29 push @item, $_tok;
6658 29 $item{__ACTION1__}=$_tok;
6659
6660  
6661 29 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[^\\/#]\\S+\\.scen/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6662 Parse::RecDescent::_Runtime::_tracefirst($text),
6663 q{INCLUDE},
6664 $tracelevel)
6665 if defined $::RD_TRACE;
6666  
6667  
6668  
6669 29 $_matched = 1;
6670 29 last;
6671 }
6672  
6673  
6674 700 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 671 29 700
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
290671
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
6675 {
6676
6677  
6678 671 $_[1] = $text; # NOT SURE THIS IS NEEDED
6679 671 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 671 671
6680 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6681 q{INCLUDE},
6682 $tracelevel)
6683 if defined $::RD_TRACE;
6684 671 return undef;
6685 }
6686 29 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 29 29
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
2900
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
6687 {
6688 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6689 q{INCLUDE},
6690 $tracelevel)
6691 if defined $::RD_TRACE;
6692 0 $return = $score_return;
6693 }
6694 29 splice @{$thisparser->{errors}}, $err_at;
6695 29 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 29 29
6696 29 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 29 29
6697 {
6698 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
6699 $return . q{])}, "",
6700 q{INCLUDE},
6701 $tracelevel);
6702 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
6703 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
6704 Parse::RecDescent::_Runtime::_tracefirst($text),
6705 , q{INCLUDE},
6706 $tracelevel)
6707 }
6708 29 $_[1] = $text;
6709 29 return $return;
6710 }
6711  
6712 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6713 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PDQUOTE
6714 {
6715 16 ▶ my $thisparser = $_[0];
Subroutine PDQUOTE: called CC=29 SCAR=42.3
6716 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6717 16 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
160
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
6718 16 $ERRORS = 0;
6719 16 my $thisrule = $thisparser->{"rules"}{"PDQUOTE"};
6720  
6721 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6722 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6723 q{PDQUOTE},
6724 $tracelevel)
6725 if defined $::RD_TRACE;
6726  
6727
6728 16 my $err_at = @{$thisparser->{errors}};
6729  
6730 16 my $score;
6731 my $score_return;
6732 16 my $_tok;
6733 16 my $return = undef;
6734 16 my $_matched=0;
6735 16 my $commit=0;
6736 16 my @item = ();
6737 16 my %item = ();
6738 16 my $repeating = $_[2];
6739 16 my $_noactions = $_[3];
6740 16 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 16 0 16
6741 16 my $_itempos = $_[5];
6742 16 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 16 16
6743 16 my $text;
6744 my $lastsep;
6745 16 my $current_match;
6746 16 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/[^"]*/});
6747 16 $expectation->at($_[1]);
6748
6749 16 my $thisline;
6750 16 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
6751  
6752
6753  
6754 16 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 16 0 16
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0016
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6755 {
6756
6757 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[^"]*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6758 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6759 q{PDQUOTE},
6760 $tracelevel)
6761 if defined $::RD_TRACE;
6762 16 my $thisprod = $thisrule->{"prods"}[0];
6763 16 $text = $_[1];
6764 16 my $_savetext;
6765 16 @item = (q{PDQUOTE});
6766 16 %item = (__RULE__ => q{PDQUOTE});
6767 16 my $repcount = 0;
6768  
6769  
6770 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[^"]*/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6771 q{PDQUOTE},
6772 $tracelevel)
6773 if defined $::RD_TRACE;
6774 16 undef $lastsep;
6775 16 $expectation->is(q{})->at($text);
6776
6777  
6778 16 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[^"]*)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^"]*)/) 0 16 16
$lastsep = $1 and "" 0 16 16
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^"]*)/
!ll&&!rl&&r
0016
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^"]*)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[^"]*)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[^"]*)/
ABresult
0X0
100
111
6779 {
6780 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
6781 0 $expectation->failed();
6782 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6783 Parse::RecDescent::_Runtime::_tracefirst($text))
6784 if defined $::RD_TRACE;
6785  
6786 0 last;
6787 }
6788 16 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6789 16 substr($text,0,length($current_match),q{});
6790 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6791 . $current_match . q{])},
6792 Parse::RecDescent::_Runtime::_tracefirst($text))
6793 if defined $::RD_TRACE;
6794 16 push @item, $item{__PATTERN1__}=$current_match;
6795
6796  
6797 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6798 Parse::RecDescent::_Runtime::_tracefirst($text),
6799 q{PDQUOTE},
6800 $tracelevel)
6801 if defined $::RD_TRACE;
6802
6803  
6804 16 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 16 16
6805 16 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 16 16
6806 {
6807 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6808 if defined $::RD_TRACE;
6809 0 last;
6810 }
6811 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6812 . $_tok . q{])},
6813 Parse::RecDescent::_Runtime::_tracefirst($text))
6814 if defined $::RD_TRACE;
6815 16 push @item, $_tok;
6816 16 $item{__ACTION1__}=$_tok;
6817
6818  
6819 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[^"]*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6820 Parse::RecDescent::_Runtime::_tracefirst($text),
6821 q{PDQUOTE},
6822 $tracelevel)
6823 if defined $::RD_TRACE;
6824  
6825  
6826  
6827 16 $_matched = 1;
6828 16 last;
6829 }
6830  
6831  
6832 16 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 16 16
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
1600
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
6833 {
6834
6835  
6836 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
6837 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6838 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6839 q{PDQUOTE},
6840 $tracelevel)
6841 if defined $::RD_TRACE;
6842 0 return undef;
6843 }
6844 16 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 16 16
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
1600
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
6845 {
6846 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6847 q{PDQUOTE},
6848 $tracelevel)
6849 if defined $::RD_TRACE;
6850 0 $return = $score_return;
6851 }
6852 16 splice @{$thisparser->{errors}}, $err_at;
6853 16 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 16 16
6854 16 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 16 16
6855 {
6856 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
6857 $return . q{])}, "",
6858 q{PDQUOTE},
6859 $tracelevel);
6860 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
6861 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
6862 Parse::RecDescent::_Runtime::_tracefirst($text),
6863 , q{PDQUOTE},
6864 $tracelevel)
6865 }
6866 16 $_[1] = $text;
6867 16 return $return;
6868 }
6869  
6870 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6871 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PSQUOTE
6872 {
6873 368 ▶ my $thisparser = $_[0];
Subroutine PSQUOTE: called CC=42 SCAR=44.4
6874 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6875 368 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
3680
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
6876 368 $ERRORS = 0;
6877 368 my $thisrule = $thisparser->{"rules"}{"PSQUOTE"};
6878  
6879 368 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 368 368
6880 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6881 q{PSQUOTE},
6882 $tracelevel)
6883 if defined $::RD_TRACE;
6884  
6885
6886 368 my $err_at = @{$thisparser->{errors}};
6887  
6888 368 my $score;
6889 my $score_return;
6890 368 my $_tok;
6891 368 my $return = undef;
6892 368 my $_matched=0;
6893 368 my $commit=0;
6894 368 my @item = ();
6895 368 my %item = ();
6896 368 my $repeating = $_[2];
6897 368 my $_noactions = $_[3];
6898 368 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 368 0 368
6899 368 my $_itempos = $_[5];
6900 368 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 32 336 368
6901 368 my $text;
6902 my $lastsep;
6903 368 my $current_match;
6904 368 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{NOTSQUOTE});
6905 368 $expectation->at($_[1]);
6906
6907 368 my $thisline;
6908 368 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
6909  
6910
6911  
6912 368 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 368 0 368
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00368
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6913 {
6914
6915 368 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [NOTSQUOTE SLASHEDSQUOTE PSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 368 368
6916 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6917 q{PSQUOTE},
6918 $tracelevel)
6919 if defined $::RD_TRACE;
6920 368 my $thisprod = $thisrule->{"prods"}[0];
6921 368 $text = $_[1];
6922 368 my $_savetext;
6923 368 @item = (q{PSQUOTE});
6924 368 %item = (__RULE__ => q{PSQUOTE});
6925 368 my $repcount = 0;
6926  
6927  
6928 368 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [NOTSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 368 368
6929 Parse::RecDescent::_Runtime::_tracefirst($text),
6930 q{PSQUOTE},
6931 $tracelevel)
6932 if defined $::RD_TRACE;
6933 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6934 368 $expectation->is(q{})->at($text);
6935 368 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::NOTSQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NOTSQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 368 368
6936 {
6937
6938 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [NOTSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6939 Parse::RecDescent::_Runtime::_tracefirst($text),
6940 q{PSQUOTE},
6941 $tracelevel)
6942 if defined $::RD_TRACE;
6943 0 $expectation->failed();
6944 0 last;
6945 }
6946 368 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [NOTSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 368 368
6947 . $_tok . q{]},
6948  
6949 Parse::RecDescent::_Runtime::_tracefirst($text),
6950 q{PSQUOTE},
6951 $tracelevel)
6952 if defined $::RD_TRACE;
6953 368 $item{q{NOTSQUOTE}} = $_tok;
6954 368 push @item, $_tok;
6955
6956 }
6957  
6958 368 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SLASHEDSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 368 368
6959 Parse::RecDescent::_Runtime::_tracefirst($text),
6960 q{PSQUOTE},
6961 $tracelevel)
6962 if defined $::RD_TRACE;
6963 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6964 368 $expectation->is(q{SLASHEDSQUOTE})->at($text);
6965 368 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SLASHEDSQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = SLASHEDSQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 344 24 368
6966 {
6967
6968 344 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SLASHEDSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
6969 Parse::RecDescent::_Runtime::_tracefirst($text),
6970 q{PSQUOTE},
6971 $tracelevel)
6972 if defined $::RD_TRACE;
6973 344 $expectation->failed();
6974 344 last;
6975 }
6976 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SLASHEDSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
6977 . $_tok . q{]},
6978  
6979 Parse::RecDescent::_Runtime::_tracefirst($text),
6980 q{PSQUOTE},
6981 $tracelevel)
6982 if defined $::RD_TRACE;
6983 24 $item{q{SLASHEDSQUOTE}} = $_tok;
6984 24 push @item, $_tok;
6985
6986 }
6987  
6988 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
6989 Parse::RecDescent::_Runtime::_tracefirst($text),
6990 q{PSQUOTE},
6991 $tracelevel)
6992 if defined $::RD_TRACE;
6993 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6994 24 $expectation->is(q{PSQUOTE})->at($text);
6995 24 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PSQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PSQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 24 24
6996 {
6997
6998 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6999 Parse::RecDescent::_Runtime::_tracefirst($text),
7000 q{PSQUOTE},
7001 $tracelevel)
7002 if defined $::RD_TRACE;
7003 0 $expectation->failed();
7004 0 last;
7005 }
7006 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7007 . $_tok . q{]},
7008  
7009 Parse::RecDescent::_Runtime::_tracefirst($text),
7010 q{PSQUOTE},
7011 $tracelevel)
7012 if defined $::RD_TRACE;
7013 24 $item{q{PSQUOTE}} = $_tok;
7014 24 push @item, $_tok;
7015
7016 }
7017  
7018 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7019 Parse::RecDescent::_Runtime::_tracefirst($text),
7020 q{PSQUOTE},
7021 $tracelevel)
7022 if defined $::RD_TRACE;
7023
7024  
7025 24 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{NOTSQUOTE}.$item{SLASHEDSQUOTE}.$item{PSQUOTE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 24 24
7026 24 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 24 24
7027 {
7028 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7029 if defined $::RD_TRACE;
7030 0 last;
7031 }
7032 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7033 . $_tok . q{])},
7034 Parse::RecDescent::_Runtime::_tracefirst($text))
7035 if defined $::RD_TRACE;
7036 24 push @item, $_tok;
7037 24 $item{__ACTION1__}=$_tok;
7038
7039  
7040 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [NOTSQUOTE SLASHEDSQUOTE PSQUOTE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7041 Parse::RecDescent::_Runtime::_tracefirst($text),
7042 q{PSQUOTE},
7043 $tracelevel)
7044 if defined $::RD_TRACE;
7045  
7046  
7047  
7048 24 $_matched = 1;
7049 24 last;
7050 }
7051  
7052  
7053 368 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 344 24 368
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
240344
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7054 {
7055
7056 344 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [NOTSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7057 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7058 q{PSQUOTE},
7059 $tracelevel)
7060 if defined $::RD_TRACE;
7061 344 my $thisprod = $thisrule->{"prods"}[1];
7062 344 $text = $_[1];
7063 344 my $_savetext;
7064 344 @item = (q{PSQUOTE});
7065 344 %item = (__RULE__ => q{PSQUOTE});
7066 344 my $repcount = 0;
7067  
7068  
7069 344 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [NOTSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7070 Parse::RecDescent::_Runtime::_tracefirst($text),
7071 q{PSQUOTE},
7072 $tracelevel)
7073 if defined $::RD_TRACE;
7074 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7075 344 $expectation->is(q{})->at($text);
7076 344 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::NOTSQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NOTSQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 344 344
7077 {
7078
7079 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [NOTSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7080 Parse::RecDescent::_Runtime::_tracefirst($text),
7081 q{PSQUOTE},
7082 $tracelevel)
7083 if defined $::RD_TRACE;
7084 0 $expectation->failed();
7085 0 last;
7086 }
7087 344 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [NOTSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7088 . $_tok . q{]},
7089  
7090 Parse::RecDescent::_Runtime::_tracefirst($text),
7091 q{PSQUOTE},
7092 $tracelevel)
7093 if defined $::RD_TRACE;
7094 344 $item{q{NOTSQUOTE}} = $_tok;
7095 344 push @item, $_tok;
7096
7097 }
7098  
7099 344 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [NOTSQUOTE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7100 Parse::RecDescent::_Runtime::_tracefirst($text),
7101 q{PSQUOTE},
7102 $tracelevel)
7103 if defined $::RD_TRACE;
7104  
7105  
7106  
7107 344 $_matched = 1;
7108 344 last;
7109 }
7110  
7111  
7112 368 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 368 368
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
36800
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
7113 {
7114
7115  
7116 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
7117 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7118 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7119 q{PSQUOTE},
7120 $tracelevel)
7121 if defined $::RD_TRACE;
7122 0 return undef;
7123 }
7124 368 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 368 368
Condition66%2/3
not defined $return and defined $score
!ll&&!rl&&r
243440
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table66%2/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
7125 {
7126 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7127 q{PSQUOTE},
7128 $tracelevel)
7129 if defined $::RD_TRACE;
7130 0 $return = $score_return;
7131 }
7132 368 splice @{$thisparser->{errors}}, $err_at;
7133 368 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 344 24 368
7134 368 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 368 368
7135 {
7136 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
7137 $return . q{])}, "",
7138 q{PSQUOTE},
7139 $tracelevel);
7140 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
7141 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
7142 Parse::RecDescent::_Runtime::_tracefirst($text),
7143 , q{PSQUOTE},
7144 $tracelevel)
7145 }
7146 368 $_[1] = $text;
7147 368 return $return;
7148 }
7149  
7150 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7151 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAMS
7152 {
7153 631 ▶ my $thisparser = $_[0];
Subroutine PARAMS: called CC=43 SCAR=41.7
7154 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7155 631 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
6310
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
7156 631 $ERRORS = 0;
7157 631 my $thisrule = $thisparser->{"rules"}{"PARAMS"};
7158  
7159 631 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 631 631
7160 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7161 q{PARAMS},
7162 $tracelevel)
7163 if defined $::RD_TRACE;
7164  
7165
7166 631 my $err_at = @{$thisparser->{errors}};
7167  
7168 631 my $score;
7169 my $score_return;
7170 631 my $_tok;
7171 631 my $return = undef;
7172 631 my $_matched=0;
7173 631 my $commit=0;
7174 631 my @item = ();
7175 631 my %item = ();
7176 631 my $repeating = $_[2];
7177 631 my $_noactions = $_[3];
7178 631 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 631 0 631
7179 631 my $_itempos = $_[5];
7180 631 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 50 581 631
7181 631 my $text;
7182 my $lastsep;
7183 631 my $current_match;
7184 631 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{PARAM});
7185 631 $expectation->at($_[1]);
7186
7187 631 my $thisline;
7188 631 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
7189  
7190
7191  
7192 631 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 631 0 631
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00631
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7193 {
7194
7195 631 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [PARAM PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 631 631
7196 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7197 q{PARAMS},
7198 $tracelevel)
7199 if defined $::RD_TRACE;
7200 631 my $thisprod = $thisrule->{"prods"}[0];
7201 631 $text = $_[1];
7202 631 my $_savetext;
7203 631 @item = (q{PARAMS});
7204 631 %item = (__RULE__ => q{PARAMS});
7205 631 my $repcount = 0;
7206  
7207  
7208 631 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAM]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 631 631
7209 Parse::RecDescent::_Runtime::_tracefirst($text),
7210 q{PARAMS},
7211 $tracelevel)
7212 if defined $::RD_TRACE;
7213 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7214 631 $expectation->is(q{})->at($text);
7215 631 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAM($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PARAM($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 349 282 631
7216 {
7217
7218 349 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAM]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 349 349
7219 Parse::RecDescent::_Runtime::_tracefirst($text),
7220 q{PARAMS},
7221 $tracelevel)
7222 if defined $::RD_TRACE;
7223 349 $expectation->failed();
7224 349 last;
7225 }
7226 282 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAM]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 282 282
7227 . $_tok . q{]},
7228  
7229 Parse::RecDescent::_Runtime::_tracefirst($text),
7230 q{PARAMS},
7231 $tracelevel)
7232 if defined $::RD_TRACE;
7233 282 $item{q{PARAM}} = $_tok;
7234 282 push @item, $_tok;
7235
7236 }
7237  
7238 282 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 282 282
7239 Parse::RecDescent::_Runtime::_tracefirst($text),
7240 q{PARAMS},
7241 $tracelevel)
7242 if defined $::RD_TRACE;
7243 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7244 282 $expectation->is(q{PARAMS})->at($text);
7245 282 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAMS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PARAMS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 260 22 282
7246 {
7247
7248 260 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAMS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
7249 Parse::RecDescent::_Runtime::_tracefirst($text),
7250 q{PARAMS},
7251 $tracelevel)
7252 if defined $::RD_TRACE;
7253 260 $expectation->failed();
7254 260 last;
7255 }
7256 22 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAMS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
7257 . $_tok . q{]},
7258  
7259 Parse::RecDescent::_Runtime::_tracefirst($text),
7260 q{PARAMS},
7261 $tracelevel)
7262 if defined $::RD_TRACE;
7263 22 $item{q{PARAMS}} = $_tok;
7264 22 push @item, $_tok;
7265
7266 }
7267  
7268 22 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
7269 Parse::RecDescent::_Runtime::_tracefirst($text),
7270 q{PARAMS},
7271 $tracelevel)
7272 if defined $::RD_TRACE;
7273
7274  
7275 22 ▶ $_tok = ($_noactions) ? 0 : do {$return = [$item{PARAM}, @{$item{PARAMS}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 22 22
7276 22 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 22 22
7277 {
7278 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7279 if defined $::RD_TRACE;
7280 0 last;
7281 }
7282 22 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
7283 . $_tok . q{])},
7284 Parse::RecDescent::_Runtime::_tracefirst($text))
7285 if defined $::RD_TRACE;
7286 22 push @item, $_tok;
7287 22 $item{__ACTION1__}=$_tok;
7288
7289  
7290 22 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [PARAM PARAMS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 22 22
7291 Parse::RecDescent::_Runtime::_tracefirst($text),
7292 q{PARAMS},
7293 $tracelevel)
7294 if defined $::RD_TRACE;
7295  
7296  
7297  
7298 22 $_matched = 1;
7299 22 last;
7300 }
7301  
7302  
7303 631 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 609 22 631
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
220609
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7304 {
7305
7306 609 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [PARAM]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 609 609
7307 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7308 q{PARAMS},
7309 $tracelevel)
7310 if defined $::RD_TRACE;
7311 609 my $thisprod = $thisrule->{"prods"}[1];
7312 609 $text = $_[1];
7313 609 my $_savetext;
7314 609 @item = (q{PARAMS});
7315 609 %item = (__RULE__ => q{PARAMS});
7316 609 my $repcount = 0;
7317  
7318  
7319 609 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAM]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 609 609
7320 Parse::RecDescent::_Runtime::_tracefirst($text),
7321 q{PARAMS},
7322 $tracelevel)
7323 if defined $::RD_TRACE;
7324 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7325 609 $expectation->is(q{})->at($text);
7326 609 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAM($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PARAM($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 349 260 609
7327 {
7328
7329 349 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAM]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 349 349
7330 Parse::RecDescent::_Runtime::_tracefirst($text),
7331 q{PARAMS},
7332 $tracelevel)
7333 if defined $::RD_TRACE;
7334 349 $expectation->failed();
7335 349 last;
7336 }
7337 260 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAM]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
7338 . $_tok . q{]},
7339  
7340 Parse::RecDescent::_Runtime::_tracefirst($text),
7341 q{PARAMS},
7342 $tracelevel)
7343 if defined $::RD_TRACE;
7344 260 $item{q{PARAM}} = $_tok;
7345 260 push @item, $_tok;
7346
7347 }
7348  
7349 260 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
7350 Parse::RecDescent::_Runtime::_tracefirst($text),
7351 q{PARAMS},
7352 $tracelevel)
7353 if defined $::RD_TRACE;
7354
7355  
7356 260 ▶ $_tok = ($_noactions) ? 0 : do {$return = [$item{PARAM}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 260 260
7357 260 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 260 260
7358 {
7359 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7360 if defined $::RD_TRACE;
7361 0 last;
7362 }
7363 260 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
7364 . $_tok . q{])},
7365 Parse::RecDescent::_Runtime::_tracefirst($text))
7366 if defined $::RD_TRACE;
7367 260 push @item, $_tok;
7368 260 $item{__ACTION1__}=$_tok;
7369
7370  
7371 260 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [PARAM]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 260 260
7372 Parse::RecDescent::_Runtime::_tracefirst($text),
7373 q{PARAMS},
7374 $tracelevel)
7375 if defined $::RD_TRACE;
7376  
7377  
7378  
7379 260 $_matched = 1;
7380 260 last;
7381 }
7382  
7383  
7384 631 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 349 282 631
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2820349
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
7385 {
7386
7387  
7388 349 $_[1] = $text; # NOT SURE THIS IS NEEDED
7389 349 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 349 349
7390 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7391 q{PARAMS},
7392 $tracelevel)
7393 if defined $::RD_TRACE;
7394 349 return undef;
7395 }
7396 282 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 282 282
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
28200
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
7397 {
7398 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7399 q{PARAMS},
7400 $tracelevel)
7401 if defined $::RD_TRACE;
7402 0 $return = $score_return;
7403 }
7404 282 splice @{$thisparser->{errors}}, $err_at;
7405 282 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 282 282
7406 282 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 282 282
7407 {
7408 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
7409 $return . q{])}, "",
7410 q{PARAMS},
7411 $tracelevel);
7412 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
7413 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
7414 Parse::RecDescent::_Runtime::_tracefirst($text),
7415 , q{PARAMS},
7416 $tracelevel)
7417 }
7418 282 $_[1] = $text;
7419 282 return $return;
7420 }
7421  
7422 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7423 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAM
7424 {
7425 1240 ▶ my $thisparser = $_[0];
Subroutine PARAM: called CC=43 SCAR=43.4
7426 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7427 1240 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
12400
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
7428 1240 $ERRORS = 0;
7429 1240 my $thisrule = $thisparser->{"rules"}{"PARAM"};
7430  
7431 1240 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PARAM]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1240 1240
7432 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7433 q{PARAM},
7434 $tracelevel)
7435 if defined $::RD_TRACE;
7436  
7437
7438 1240 my $err_at = @{$thisparser->{errors}};
7439  
7440 1240 my $score;
7441 my $score_return;
7442 1240 my $_tok;
7443 1240 my $return = undef;
7444 1240 my $_matched=0;
7445 1240 my $commit=0;
7446 1240 my @item = ();
7447 1240 my %item = ();
7448 1240 my $repeating = $_[2];
7449 1240 my $_noactions = $_[3];
7450 1240 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 1240 0 1240
7451 1240 my $_itempos = $_[5];
7452 1240 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 100 1140 1240
7453 1240 my $text;
7454 my $lastsep;
7455 1240 my $current_match;
7456 1240 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{PNAME});
7457 1240 $expectation->at($_[1]);
7458
7459 1240 my $thisline;
7460 1240 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
7461  
7462
7463  
7464 1240 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 1240 0 1240
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
001240
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7465 {
7466 1240 ▶ local $skip = defined($skip) ? $skip : $Parse::RecDescent::_Runtime::skip;
Branch: 1 branch
BranchTrueFalseTotal
defined $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip ? : 1240 0 1240
7467 1240 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [PNAME '=' <skip: qr//> PVALUE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1240 1240
7468 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7469 q{PARAM},
7470 $tracelevel)
7471 if defined $::RD_TRACE;
7472 1240 my $thisprod = $thisrule->{"prods"}[0];
7473 1240 $text = $_[1];
7474 1240 my $_savetext;
7475 1240 @item = (q{PARAM});
7476 1240 %item = (__RULE__ => q{PARAM});
7477 1240 my $repcount = 0;
7478  
7479  
7480 1240 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1240 1240
7481 Parse::RecDescent::_Runtime::_tracefirst($text),
7482 q{PARAM},
7483 $tracelevel)
7484 if defined $::RD_TRACE;
7485 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7486 1240 $expectation->is(q{})->at($text);
7487 1240 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PNAME($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PNAME($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 470 770 1240
7488 {
7489
7490 470 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 470 470
7491 Parse::RecDescent::_Runtime::_tracefirst($text),
7492 q{PARAM},
7493 $tracelevel)
7494 if defined $::RD_TRACE;
7495 470 $expectation->failed();
7496 470 last;
7497 }
7498 770 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 770 770
7499 . $_tok . q{]},
7500  
7501 Parse::RecDescent::_Runtime::_tracefirst($text),
7502 q{PARAM},
7503 $tracelevel)
7504 if defined $::RD_TRACE;
7505 770 $item{q{PNAME}} = $_tok;
7506 770 push @item, $_tok;
7507
7508 }
7509  
7510 770 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: ['=']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 770 770
7511 Parse::RecDescent::_Runtime::_tracefirst($text),
7512 q{PARAM},
7513 $tracelevel)
7514 if defined $::RD_TRACE;
7515 770 undef $lastsep;
7516 770 $expectation->is(q{'='})->at($text);
7517
7518  
7519 770 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\=/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/) 228 542 770
$lastsep = $1 and "" 0 770 770
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
!ll&&!rl&&r
0228542
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A\=/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\=/
ABresult
0X0
100
111
7520 {
7521 228 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 228 0 228
7522
7523 228 $expectation->failed();
7524 228 ▶ Parse::RecDescent::_Runtime::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 228 228
7525 Parse::RecDescent::_Runtime::_tracefirst($text))
7526 if defined $::RD_TRACE;
7527 228 last;
7528 }
7529 542 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7530 542 substr($text,0,length($current_match),q{});
7531 542 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7532 . $current_match . q{])},
7533 Parse::RecDescent::_Runtime::_tracefirst($text))
7534 if defined $::RD_TRACE;
7535 542 push @item, $item{__STRING1__}=$current_match;
7536
7537  
7538
7539  
7540 542 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying directive: [<skip: qr//>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7541 Parse::RecDescent::_Runtime::_tracefirst($text),
7542 q{PARAM},
7543 $tracelevel)
7544 if defined $::RD_TRACE;
7545 542 $_tok = do { my $oldskip = $skip; $skip= qr//; $oldskip };
7546 542 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 542 0 542
7547 {
7548 542 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7549 . $_tok . q{])},
7550 Parse::RecDescent::_Runtime::_tracefirst($text))
7551 if defined $::RD_TRACE;
7552 }
7553 else
7554 {
7555 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7556 Parse::RecDescent::_Runtime::_tracefirst($text))
7557 if defined $::RD_TRACE;
7558 }
7559
7560 542 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 542 542
7561 542 push @item, $item{__DIRECTIVE1__}=$_tok;
7562
7563  
7564 542 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PVALUE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7565 Parse::RecDescent::_Runtime::_tracefirst($text),
7566 q{PARAM},
7567 $tracelevel)
7568 if defined $::RD_TRACE;
7569 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7570 542 $expectation->is(q{PVALUE})->at($text);
7571 542 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PVALUE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PVALUE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 542 542
7572 {
7573
7574 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PVALUE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7575 Parse::RecDescent::_Runtime::_tracefirst($text),
7576 q{PARAM},
7577 $tracelevel)
7578 if defined $::RD_TRACE;
7579 0 $expectation->failed();
7580 0 last;
7581 }
7582 542 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PVALUE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7583 . $_tok . q{]},
7584  
7585 Parse::RecDescent::_Runtime::_tracefirst($text),
7586 q{PARAM},
7587 $tracelevel)
7588 if defined $::RD_TRACE;
7589 542 $item{q{PVALUE}} = $_tok;
7590 542 push @item, $_tok;
7591
7592 }
7593  
7594 542 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7595 Parse::RecDescent::_Runtime::_tracefirst($text),
7596 q{PARAM},
7597 $tracelevel)
7598 if defined $::RD_TRACE;
7599
7600  
7601 542 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{PNAME}.'='.$item{PVALUE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 542 542
7602 542 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 542 542
7603 {
7604 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7605 if defined $::RD_TRACE;
7606 0 last;
7607 }
7608 542 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7609 . $_tok . q{])},
7610 Parse::RecDescent::_Runtime::_tracefirst($text))
7611 if defined $::RD_TRACE;
7612 542 push @item, $_tok;
7613 542 $item{__ACTION1__}=$_tok;
7614
7615  
7616 542 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [PNAME '=' <skip: qr//> PVALUE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7617 Parse::RecDescent::_Runtime::_tracefirst($text),
7618 q{PARAM},
7619 $tracelevel)
7620 if defined $::RD_TRACE;
7621  
7622  
7623  
7624 542 $_matched = 1;
7625 542 last;
7626 }
7627  
7628  
7629 1240 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 698 542 1240
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
5420698
MC/DC50%1/2
$_matched or defined $score
$_matched defined $score
Truth table66%2/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
7630 {
7631
7632  
7633 698 $_[1] = $text; # NOT SURE THIS IS NEEDED
7634 698 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 698 698
7635 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7636 q{PARAM},
7637 $tracelevel)
7638 if defined $::RD_TRACE;
7639 698 return undef;
7640 }
7641 542 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 542 542
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
54200
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
7642 {
7643 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7644 q{PARAM},
7645 $tracelevel)
7646 if defined $::RD_TRACE;
7647 0 $return = $score_return;
7648 }
7649 542 splice @{$thisparser->{errors}}, $err_at;
7650 542 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 542 542
7651 542 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 542 542
7652 {
7653 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
7654 $return . q{])}, "",
7655 q{PARAM},
7656 $tracelevel);
7657 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
7658 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
7659 Parse::RecDescent::_Runtime::_tracefirst($text),
7660 , q{PARAM},
7661 $tracelevel)
7662 }
7663 542 $_[1] = $text;
7664 542 return $return;
7665 }
7666  
7667 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7668 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PVALUE
7669 {
7670 542 ▶ my $thisparser = $_[0];
Subroutine PVALUE: called CC=107 SCAR=69.2
7671 28 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7672 542 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
5420
MC/DC0%0/1
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel
Aresult
11
00
7673 542 $ERRORS = 0;
7674 542 my $thisrule = $thisparser->{"rules"}{"PVALUE"};
7675  
7676 542 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PVALUE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7677 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7678 q{PVALUE},
7679 $tracelevel)
7680 if defined $::RD_TRACE;
7681  
7682
7683 542 my $err_at = @{$thisparser->{errors}};
7684  
7685 542 my $score;
7686 my $score_return;
7687 542 my $_tok;
7688 542 my $return = undef;
7689 542 my $_matched=0;
7690 542 my $commit=0;
7691 542 my @item = ();
7692 542 my %item = ();
7693 542 my $repeating = $_[2];
7694 542 my $_noactions = $_[3];
7695 542 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 542 0 542
7696 542 my $_itempos = $_[5];
7697 542 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 32 510 542
7698 542 my $text;
7699 my $lastsep;
7700 542 my $current_match;
7701 542 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/'/, or /"/, or /`/, or PNOTQUOTED});
7702 542 $expectation->at($_[1]);
7703
7704 542 my $thisline;
7705 542 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
7706  
7707
7708  
7709 542 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 542 0 542
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00542
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7710 {
7711
7712 542 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/'/ PSQUOTE /'/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7713 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7714 q{PVALUE},
7715 $tracelevel)
7716 if defined $::RD_TRACE;
7717 542 my $thisprod = $thisrule->{"prods"}[0];
7718 542 $text = $_[1];
7719 542 my $_savetext;
7720 542 @item = (q{PVALUE});
7721 542 %item = (__RULE__ => q{PVALUE});
7722 542 my $repcount = 0;
7723  
7724  
7725 542 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/'/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 542 542
7726 q{PVALUE},
7727 $tracelevel)
7728 if defined $::RD_TRACE;
7729 542 undef $lastsep;
7730 542 $expectation->is(q{})->at($text);
7731
7732  
7733 542 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:')/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:')/) 198 344 542
$lastsep = $1 and "" 0 542 542
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:')/
!ll&&!rl&&r
0198344
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:')/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:')/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:')/
ABresult
0X0
100
111
7734 {
7735 198 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 198 0 198
7736 198 $expectation->failed();
7737 198 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 198 198
7738 Parse::RecDescent::_Runtime::_tracefirst($text))
7739 if defined $::RD_TRACE;
7740  
7741 198 last;
7742 }
7743 344 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7744 344 substr($text,0,length($current_match),q{});
7745 344 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7746 . $current_match . q{])},
7747 Parse::RecDescent::_Runtime::_tracefirst($text))
7748 if defined $::RD_TRACE;
7749 344 push @item, $item{__PATTERN1__}=$current_match;
7750
7751  
7752 344 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7753 Parse::RecDescent::_Runtime::_tracefirst($text),
7754 q{PVALUE},
7755 $tracelevel)
7756 if defined $::RD_TRACE;
7757 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7758 344 $expectation->is(q{PSQUOTE})->at($text);
7759 344 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PSQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PSQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 344 344
7760 {
7761
7762 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7763 Parse::RecDescent::_Runtime::_tracefirst($text),
7764 q{PVALUE},
7765 $tracelevel)
7766 if defined $::RD_TRACE;
7767 0 $expectation->failed();
7768 0 last;
7769 }
7770 344 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7771 . $_tok . q{]},
7772  
7773 Parse::RecDescent::_Runtime::_tracefirst($text),
7774 q{PVALUE},
7775 $tracelevel)
7776 if defined $::RD_TRACE;
7777 344 $item{q{PSQUOTE}} = $_tok;
7778 344 push @item, $_tok;
7779
7780 }
7781  
7782 344 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/'/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7783 q{PVALUE},
7784 $tracelevel)
7785 if defined $::RD_TRACE;
7786 344 undef $lastsep;
7787 344 $expectation->is(q{/'/})->at($text);
7788
7789  
7790 344 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:')/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:')/) 0 344 344
$lastsep = $1 and "" 0 344 344
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:')/
!ll&&!rl&&r
00344
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:')/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:')/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:')/
ABresult
0X0
100
111
7791 {
7792 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
7793 0 $expectation->failed();
7794 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7795 Parse::RecDescent::_Runtime::_tracefirst($text))
7796 if defined $::RD_TRACE;
7797  
7798 0 last;
7799 }
7800 344 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7801 344 substr($text,0,length($current_match),q{});
7802 344 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7803 . $current_match . q{])},
7804 Parse::RecDescent::_Runtime::_tracefirst($text))
7805 if defined $::RD_TRACE;
7806 344 push @item, $item{__PATTERN2__}=$current_match;
7807
7808  
7809 344 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7810 Parse::RecDescent::_Runtime::_tracefirst($text),
7811 q{PVALUE},
7812 $tracelevel)
7813 if defined $::RD_TRACE;
7814
7815  
7816 344 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{PSQUOTE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 344 344
7817 344 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 344 344
7818 {
7819 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7820 if defined $::RD_TRACE;
7821 0 last;
7822 }
7823 344 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7824 . $_tok . q{])},
7825 Parse::RecDescent::_Runtime::_tracefirst($text))
7826 if defined $::RD_TRACE;
7827 344 push @item, $_tok;
7828 344 $item{__ACTION1__}=$_tok;
7829
7830  
7831 344 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/'/ PSQUOTE /'/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 344 344
7832 Parse::RecDescent::_Runtime::_tracefirst($text),
7833 q{PVALUE},
7834 $tracelevel)
7835 if defined $::RD_TRACE;
7836  
7837  
7838  
7839 344 $_matched = 1;
7840 344 last;
7841 }
7842  
7843  
7844 542 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 198 344 542
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
3440198
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7845 {
7846
7847 198 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/"/ PDQUOTE /"/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 198 198
7848 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7849 q{PVALUE},
7850 $tracelevel)
7851 if defined $::RD_TRACE;
7852 198 my $thisprod = $thisrule->{"prods"}[1];
7853 198 $text = $_[1];
7854 198 my $_savetext;
7855 198 @item = (q{PVALUE});
7856 198 %item = (__RULE__ => q{PVALUE});
7857 198 my $repcount = 0;
7858  
7859  
7860 198 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/"/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 198 198
7861 q{PVALUE},
7862 $tracelevel)
7863 if defined $::RD_TRACE;
7864 198 undef $lastsep;
7865 198 $expectation->is(q{})->at($text);
7866
7867  
7868 198 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:")/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:")/) 182 16 198
$lastsep = $1 and "" 0 198 198
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:")/
!ll&&!rl&&r
018216
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:")/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:")/
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:")/
ABresult
0X0
100
111
7869 {
7870 182 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 182 0 182
7871 182 $expectation->failed();
7872 182 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
7873 Parse::RecDescent::_Runtime::_tracefirst($text))
7874 if defined $::RD_TRACE;
7875  
7876 182 last;
7877 }
7878 16 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7879 16 substr($text,0,length($current_match),q{});
7880 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
7881 . $current_match . q{])},
7882 Parse::RecDescent::_Runtime::_tracefirst($text))
7883 if defined $::RD_TRACE;
7884 16 push @item, $item{__PATTERN1__}=$current_match;
7885
7886  
7887 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
7888 Parse::RecDescent::_Runtime::_tracefirst($text),
7889 q{PVALUE},
7890 $tracelevel)
7891 if defined $::RD_TRACE;
7892 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7893 16 $expectation->is(q{PDQUOTE})->at($text);
7894 16 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PDQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PDQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 16 16
7895 {
7896
7897 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PDQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7898 Parse::RecDescent::_Runtime::_tracefirst($text),
7899 q{PVALUE},
7900 $tracelevel)
7901 if defined $::RD_TRACE;
7902 0 $expectation->failed();
7903 0 last;
7904 }
7905 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PDQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
7906 . $_tok . q{]},
7907  
7908 Parse::RecDescent::_Runtime::_tracefirst($text),
7909 q{PVALUE},
7910 $tracelevel)
7911 if defined $::RD_TRACE;
7912 16 $item{q{PDQUOTE}} = $_tok;
7913 16 push @item, $_tok;
7914
7915 }
7916  
7917 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/"/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
7918 q{PVALUE},
7919 $tracelevel)
7920 if defined $::RD_TRACE;
7921 16 undef $lastsep;
7922 16 $expectation->is(q{/"/})->at($text);
7923
7924  
7925 16 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:")/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:")/) 0 16 16
$lastsep = $1 and "" 0 16 16
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:")/
!ll&&!rl&&r
0016
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:")/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:")/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:")/
ABresult
0X0
100
111
7926 {
7927 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
7928 0 $expectation->failed();
7929 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7930 Parse::RecDescent::_Runtime::_tracefirst($text))
7931 if defined $::RD_TRACE;
7932  
7933 0 last;
7934 }
7935 16 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7936 16 substr($text,0,length($current_match),q{});
7937 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
7938 . $current_match . q{])},
7939 Parse::RecDescent::_Runtime::_tracefirst($text))
7940 if defined $::RD_TRACE;
7941 16 push @item, $item{__PATTERN2__}=$current_match;
7942
7943  
7944 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
7945 Parse::RecDescent::_Runtime::_tracefirst($text),
7946 q{PVALUE},
7947 $tracelevel)
7948 if defined $::RD_TRACE;
7949
7950  
7951 16 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{PDQUOTE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 16 16
7952 16 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 16 16
7953 {
7954 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7955 if defined $::RD_TRACE;
7956 0 last;
7957 }
7958 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
7959 . $_tok . q{])},
7960 Parse::RecDescent::_Runtime::_tracefirst($text))
7961 if defined $::RD_TRACE;
7962 16 push @item, $_tok;
7963 16 $item{__ACTION1__}=$_tok;
7964
7965  
7966 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/"/ PDQUOTE /"/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
7967 Parse::RecDescent::_Runtime::_tracefirst($text),
7968 q{PVALUE},
7969 $tracelevel)
7970 if defined $::RD_TRACE;
7971  
7972  
7973  
7974 16 $_matched = 1;
7975 16 last;
7976 }
7977  
7978  
7979 542 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 182 360 542
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
3600182
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7980 {
7981
7982 182 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/`/ PTICKED /`/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
7983 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7984 q{PVALUE},
7985 $tracelevel)
7986 if defined $::RD_TRACE;
7987 182 my $thisprod = $thisrule->{"prods"}[2];
7988 182 $text = $_[1];
7989 182 my $_savetext;
7990 182 @item = (q{PVALUE});
7991 182 %item = (__RULE__ => q{PVALUE});
7992 182 my $repcount = 0;
7993  
7994  
7995 182 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/`/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
7996 q{PVALUE},
7997 $tracelevel)
7998 if defined $::RD_TRACE;
7999 182 undef $lastsep;
8000 182 $expectation->is(q{})->at($text);
8001
8002  
8003 182 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:`)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:`)/) 182 0 182
$lastsep = $1 and "" 0 182 182
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:`)/
!ll&&!rl&&r
01820
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:`)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:`)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:`)/
ABresult
0X0
100
111
8004 {
8005 182 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 182 0 182
8006 182 $expectation->failed();
8007 182 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
8008 Parse::RecDescent::_Runtime::_tracefirst($text))
8009 if defined $::RD_TRACE;
8010  
8011 182 last;
8012 }
8013 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8014 0 substr($text,0,length($current_match),q{});
8015 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8016 . $current_match . q{])},
8017 Parse::RecDescent::_Runtime::_tracefirst($text))
8018 if defined $::RD_TRACE;
8019 0 push @item, $item{__PATTERN1__}=$current_match;
8020
8021  
8022 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PTICKED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8023 Parse::RecDescent::_Runtime::_tracefirst($text),
8024 q{PVALUE},
8025 $tracelevel)
8026 if defined $::RD_TRACE;
8027 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
8028 0 $expectation->is(q{PTICKED})->at($text);
8029 0 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PTICKED($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PTICKED($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
8030 {
8031
8032 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PTICKED]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8033 Parse::RecDescent::_Runtime::_tracefirst($text),
8034 q{PVALUE},
8035 $tracelevel)
8036 if defined $::RD_TRACE;
8037 0 $expectation->failed();
8038 0 last;
8039 }
8040 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PTICKED]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8041 . $_tok . q{]},
8042  
8043 Parse::RecDescent::_Runtime::_tracefirst($text),
8044 q{PVALUE},
8045 $tracelevel)
8046 if defined $::RD_TRACE;
8047 0 $item{q{PTICKED}} = $_tok;
8048 0 push @item, $_tok;
8049
8050 }
8051  
8052 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/`/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8053 q{PVALUE},
8054 $tracelevel)
8055 if defined $::RD_TRACE;
8056 0 undef $lastsep;
8057 0 $expectation->is(q{/`/})->at($text);
8058
8059  
8060 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:`)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:`)/) 0 0 0
$lastsep = $1 and "" 0 0 0
Condition0%0/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:`)/
!ll&&!rl&&r
000
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:`)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:`)/
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:`)/
ABresult
0X0
100
111
8061 {
8062 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
8063 0 $expectation->failed();
8064 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8065 Parse::RecDescent::_Runtime::_tracefirst($text))
8066 if defined $::RD_TRACE;
8067  
8068 0 last;
8069 }
8070 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8071 0 substr($text,0,length($current_match),q{});
8072 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8073 . $current_match . q{])},
8074 Parse::RecDescent::_Runtime::_tracefirst($text))
8075 if defined $::RD_TRACE;
8076 0 push @item, $item{__PATTERN2__}=$current_match;
8077
8078  
8079 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8080 Parse::RecDescent::_Runtime::_tracefirst($text),
8081 q{PVALUE},
8082 $tracelevel)
8083 if defined $::RD_TRACE;
8084
8085  
8086 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1].$item[2].$item[3]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
8087 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
8088 {
8089 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8090 if defined $::RD_TRACE;
8091 0 last;
8092 }
8093 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8094 . $_tok . q{])},
8095 Parse::RecDescent::_Runtime::_tracefirst($text))
8096 if defined $::RD_TRACE;
8097 0 push @item, $_tok;
8098 0 $item{__ACTION1__}=$_tok;
8099
8100  
8101 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/`/ PTICKED /`/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8102 Parse::RecDescent::_Runtime::_tracefirst($text),
8103 q{PVALUE},
8104 $tracelevel)
8105 if defined $::RD_TRACE;
8106  
8107  
8108  
8109 0 $_matched = 1;
8110 0 last;
8111 }
8112  
8113  
8114 542 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 182 360 542
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
3600182
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8115 {
8116
8117 182 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [PNOTQUOTED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
8118 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8119 q{PVALUE},
8120 $tracelevel)
8121 if defined $::RD_TRACE;
8122 182 my $thisprod = $thisrule->{"prods"}[3];
8123 182 $text = $_[1];
8124 182 my $_savetext;
8125 182 @item = (q{PVALUE});
8126 182 %item = (__RULE__ => q{PVALUE});
8127 182 my $repcount = 0;
8128  
8129  
8130 182 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PNOTQUOTED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
8131 Parse::RecDescent::_Runtime::_tracefirst($text),
8132 q{PVALUE},
8133 $tracelevel)
8134 if defined $::RD_TRACE;
8135 28 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8136 182 $expectation->is(q{})->at($text);
8137 182 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PNOTQUOTED($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PNOTQUOTED($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 182 182
8138 {
8139
8140 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PNOTQUOTED]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8141 Parse::RecDescent::_Runtime::_tracefirst($text),
8142 q{PVALUE},
8143 $tracelevel)
8144 if defined $::RD_TRACE;
8145 0 $expectation->failed();
8146 0 last;
8147 }
8148 182 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PNOTQUOTED]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
8149 . $_tok . q{]},
8150  
8151 Parse::RecDescent::_Runtime::_tracefirst($text),
8152 q{PVALUE},
8153 $tracelevel)
8154 if defined $::RD_TRACE;
8155 182 $item{q{PNOTQUOTED}} = $_tok;
8156 182 push @item, $_tok;
8157
8158 }
8159  
8160 182 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
8161 Parse::RecDescent::_Runtime::_tracefirst($text),
8162 q{PVALUE},
8163 $tracelevel)
8164 if defined $::RD_TRACE;
8165
8166  
8167 182 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{PNOTQUOTED}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 182 182
8168 182 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 182 182
8169 {
8170 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8171 if defined $::RD_TRACE;
8172 0 last;
8173 }
8174 182 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
8175 . $_tok . q{])},
8176 Parse::RecDescent::_Runtime::_tracefirst($text))
8177 if defined $::RD_TRACE;
8178 182 push @item, $_tok;
8179 182 $item{__ACTION1__}=$_tok;
8180
8181  
8182 182 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [PNOTQUOTED]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 182 182
8183 Parse::RecDescent::_Runtime::_tracefirst($text),
8184 q{PVALUE},
8185 $tracelevel)
8186 if defined $::RD_TRACE;
8187  
8188  
8189  
8190 182 $_matched = 1;
8191 182 last;
8192 }
8193  
8194  
8195 542 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 542 542
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
54200
MC/DC0%0/2
$_matched or defined $score
$_matched defined $score
Truth table33%1/3
A or B
A= $_matchedB= defined $score
ABresult
1X1
011
000
8196 {
8197
8198  
8199 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
8200 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8201 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8202 q{PVALUE},
8203 $tracelevel)
8204 if defined $::RD_TRACE;
8205 0 return undef;
8206 }
8207 542 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 542 542
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
54200
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
8208 {
8209 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8210 q{PVALUE},
8211 $tracelevel)
8212 if defined $::RD_TRACE;
8213 0 $return = $score_return;
8214 }
8215 542 splice @{$thisparser->{errors}}, $err_at;
8216 542 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 542 542
8217 542 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 542 542
8218 {
8219 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
8220 $return . q{])}, "",
8221 q{PVALUE},
8222 $tracelevel);
8223 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
8224 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
8225 Parse::RecDescent::_Runtime::_tracefirst($text),
8226 , q{PVALUE},
8227 $tracelevel)
8228 }
8229 542 $_[1] = $text;
8230 542 return $return;
8231 }
8232 }
8233 38 ▶package Treex::Core::ScenarioParser; sub new { my $self = bless( {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8234 'localvars' => '',
8235 'startcode' => '',
8236 'namespace' => 'Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser',
8237 'rules' => {
8238 'SPACE' => bless( {
8239 'impcount' => 0,
8240 'calls' => [],
8241 'changed' => 0,
8242 'opcount' => 0,
8243 'prods' => [
8244 bless( {
8245 'number' => 0,
8246 'strcount' => 0,
8247 'dircount' => 0,
8248 'uncommit' => undef,
8249 'error' => undef,
8250 'patcount' => 1,
8251 'actcount' => 1,
8252 'items' => [
8253 bless( {
8254 'pattern' => '\\s+',
8255 'hashname' => '__PATTERN1__',
8256 'description' => '/\\\\s+/',
8257 'lookahead' => 0,
8258 'rdelim' => '/',
8259 'line' => 63,
8260 'mod' => '',
8261 'ldelim' => '/'
8262 }, 'Parse::RecDescent::_Runtime::Token' ),
8263 bless( {
8264 'hashname' => '__ACTION1__',
8265 'lookahead' => 0,
8266 'line' => 63,
8267 'code' => '{$return = $item[1]}'
8268 }, 'Parse::RecDescent::_Runtime::Action' )
8269 ],
8270 'line' => undef
8271 }, 'Parse::RecDescent::_Runtime::Production' )
8272 ],
8273 'name' => 'SPACE',
8274 'vars' => '',
8275 'line' => 63
8276 }, 'Parse::RecDescent::_Runtime::Rule' ),
8277 'EMPTY' => bless( {
8278 'impcount' => 0,
8279 'calls' => [],
8280 'changed' => 0,
8281 'opcount' => 0,
8282 'prods' => [
8283 bless( {
8284 'number' => 0,
8285 'strcount' => 0,
8286 'dircount' => 0,
8287 'uncommit' => undef,
8288 'error' => undef,
8289 'patcount' => 1,
8290 'actcount' => 0,
8291 'items' => [
8292 bless( {
8293 'pattern' => '',
8294 'hashname' => '__PATTERN1__',
8295 'description' => '//',
8296 'lookahead' => 0,
8297 'rdelim' => '/',
8298 'line' => 64,
8299 'mod' => '',
8300 'ldelim' => '/'
8301 }, 'Parse::RecDescent::_Runtime::Token' )
8302 ],
8303 'line' => undef
8304 }, 'Parse::RecDescent::_Runtime::Production' )
8305 ],
8306 'name' => 'EMPTY',
8307 'vars' => '',
8308 'line' => 64
8309 }, 'Parse::RecDescent::_Runtime::Rule' ),
8310 'PNOTQUOTED' => bless( {
8311 'impcount' => 0,
8312 'calls' => [
8313 'EMPTY'
8314 ],
8315 'changed' => 0,
8316 'opcount' => 0,
8317 'prods' => [
8318 bless( {
8319 'number' => 0,
8320 'strcount' => 0,
8321 'dircount' => 0,
8322 'uncommit' => undef,
8323 'error' => undef,
8324 'patcount' => 1,
8325 'actcount' => 1,
8326 'items' => [
8327 bless( {
8328 'pattern' => '\\S+',
8329 'hashname' => '__PATTERN1__',
8330 'description' => '/\\\\S+/',
8331 'lookahead' => 0,
8332 'rdelim' => '/',
8333 'line' => 59,
8334 'mod' => '',
8335 'ldelim' => '/'
8336 }, 'Parse::RecDescent::_Runtime::Token' ),
8337 bless( {
8338 'hashname' => '__ACTION1__',
8339 'lookahead' => 0,
8340 'line' => 59,
8341 'code' => '{$return = $item[1]}'
8342 }, 'Parse::RecDescent::_Runtime::Action' )
8343 ],
8344 'line' => undef
8345 }, 'Parse::RecDescent::_Runtime::Production' ),
8346 bless( {
8347 'number' => 1,
8348 'strcount' => 0,
8349 'dircount' => 0,
8350 'uncommit' => undef,
8351 'error' => undef,
8352 'patcount' => 0,
8353 'actcount' => 1,
8354 'items' => [
8355 bless( {
8356 'subrule' => 'EMPTY',
8357 'matchrule' => 0,
8358 'implicit' => undef,
8359 'argcode' => undef,
8360 'lookahead' => 0,
8361 'line' => 60
8362 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8363 bless( {
8364 'hashname' => '__ACTION1__',
8365 'lookahead' => 0,
8366 'line' => 60,
8367 'code' => '{$return = \'\'}'
8368 }, 'Parse::RecDescent::_Runtime::Action' )
8369 ],
8370 'line' => undef
8371 }, 'Parse::RecDescent::_Runtime::Production' )
8372 ],
8373 'name' => 'PNOTQUOTED',
8374 'vars' => '',
8375 'line' => 59
8376 }, 'Parse::RecDescent::_Runtime::Rule' ),
8377 'SLASHEDSQUOTE' => bless( {
8378 'impcount' => 0,
8379 'calls' => [],
8380 'changed' => 0,
8381 'opcount' => 0,
8382 'prods' => [
8383 bless( {
8384 'number' => 0,
8385 'strcount' => 0,
8386 'dircount' => 0,
8387 'uncommit' => undef,
8388 'error' => undef,
8389 'patcount' => 1,
8390 'actcount' => 1,
8391 'items' => [
8392 bless( {
8393 'pattern' => '\\\\\'',
8394 'hashname' => '__PATTERN1__',
8395 'description' => '/\\\\\\\\\'/',
8396 'lookahead' => 0,
8397 'rdelim' => '/',
8398 'line' => 57,
8399 'mod' => '',
8400 'ldelim' => '/'
8401 }, 'Parse::RecDescent::_Runtime::Token' ),
8402 bless( {
8403 'hashname' => '__ACTION1__',
8404 'lookahead' => 0,
8405 'line' => 57,
8406 'code' => '{$return = "\'"}'
8407 }, 'Parse::RecDescent::_Runtime::Action' )
8408 ],
8409 'line' => undef
8410 }, 'Parse::RecDescent::_Runtime::Production' )
8411 ],
8412 'name' => 'SLASHEDSQUOTE',
8413 'vars' => '',
8414 'line' => 57
8415 }, 'Parse::RecDescent::_Runtime::Rule' ),
8416 'COMMENT' => bless( {
8417 'impcount' => 0,
8418 'calls' => [],
8419 'changed' => 0,
8420 'opcount' => 0,
8421 'prods' => [
8422 bless( {
8423 'number' => 0,
8424 'strcount' => 0,
8425 'dircount' => 0,
8426 'uncommit' => undef,
8427 'error' => undef,
8428 'patcount' => 1,
8429 'actcount' => 1,
8430 'items' => [
8431 bless( {
8432 'pattern' => '#[^\\n]*',
8433 'hashname' => '__PATTERN1__',
8434 'description' => '/#[^\\\\n]*/',
8435 'lookahead' => 0,
8436 'rdelim' => '/',
8437 'line' => 62,
8438 'mod' => '',
8439 'ldelim' => '/'
8440 }, 'Parse::RecDescent::_Runtime::Token' ),
8441 bless( {
8442 'hashname' => '__ACTION1__',
8443 'lookahead' => 0,
8444 'line' => 62,
8445 'code' => '{$return = \'\'}'
8446 }, 'Parse::RecDescent::_Runtime::Action' )
8447 ],
8448 'line' => undef
8449 }, 'Parse::RecDescent::_Runtime::Production' )
8450 ],
8451 'name' => 'COMMENT',
8452 'vars' => '',
8453 'line' => 62
8454 }, 'Parse::RecDescent::_Runtime::Rule' ),
8455 'EOF' => bless( {
8456 'impcount' => 0,
8457 'calls' => [],
8458 'changed' => 0,
8459 'opcount' => 0,
8460 'prods' => [
8461 bless( {
8462 'number' => 0,
8463 'strcount' => 0,
8464 'dircount' => 0,
8465 'uncommit' => undef,
8466 'error' => undef,
8467 'patcount' => 1,
8468 'actcount' => 0,
8469 'items' => [
8470 bless( {
8471 'pattern' => '^\\Z',
8472 'hashname' => '__PATTERN1__',
8473 'description' => '/^\\\\Z/',
8474 'lookahead' => 0,
8475 'rdelim' => '/',
8476 'line' => 14,
8477 'mod' => '',
8478 'ldelim' => '/'
8479 }, 'Parse::RecDescent::_Runtime::Token' )
8480 ],
8481 'line' => undef
8482 }, 'Parse::RecDescent::_Runtime::Production' )
8483 ],
8484 'name' => 'EOF',
8485 'vars' => '',
8486 'line' => 14
8487 }, 'Parse::RecDescent::_Runtime::Rule' ),
8488 'NOTSQUOTE' => bless( {
8489 'impcount' => 0,
8490 'calls' => [],
8491 'changed' => 0,
8492 'opcount' => 0,
8493 'prods' => [
8494 bless( {
8495 'number' => 0,
8496 'strcount' => 0,
8497 'dircount' => 0,
8498 'uncommit' => undef,
8499 'error' => undef,
8500 'patcount' => 1,
8501 'actcount' => 0,
8502 'items' => [
8503 bless( {
8504 'pattern' => '[^\']*[^\'\\\\]',
8505 'hashname' => '__PATTERN1__',
8506 'description' => '/[^\']*[^\'\\\\\\\\]/',
8507 'lookahead' => 0,
8508 'rdelim' => '/',
8509 'line' => 56,
8510 'mod' => '',
8511 'ldelim' => '/'
8512 }, 'Parse::RecDescent::_Runtime::Token' )
8513 ],
8514 'line' => undef
8515 }, 'Parse::RecDescent::_Runtime::Production' )
8516 ],
8517 'name' => 'NOTSQUOTE',
8518 'vars' => '',
8519 'line' => 56
8520 }, 'Parse::RecDescent::_Runtime::Rule' ),
8521 'TBNAME' => bless( {
8522 'impcount' => 0,
8523 'calls' => [
8524 'BNAME'
8525 ],
8526 'changed' => 0,
8527 'opcount' => 0,
8528 'prods' => [
8529 bless( {
8530 'number' => 0,
8531 'strcount' => 0,
8532 'dircount' => 0,
8533 'uncommit' => undef,
8534 'error' => undef,
8535 'patcount' => 1,
8536 'actcount' => 1,
8537 'items' => [
8538 bless( {
8539 'pattern' => '::',
8540 'hashname' => '__PATTERN1__',
8541 'description' => '/::/',
8542 'lookahead' => 0,
8543 'rdelim' => '/',
8544 'line' => 42,
8545 'mod' => '',
8546 'ldelim' => '/'
8547 }, 'Parse::RecDescent::_Runtime::Token' ),
8548 bless( {
8549 'subrule' => 'BNAME',
8550 'matchrule' => 0,
8551 'implicit' => undef,
8552 'argcode' => undef,
8553 'lookahead' => 0,
8554 'line' => 42
8555 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8556 bless( {
8557 'hashname' => '__ACTION1__',
8558 'lookahead' => 0,
8559 'line' => 42,
8560 'code' => '{$return = $item{BNAME}}'
8561 }, 'Parse::RecDescent::_Runtime::Action' )
8562 ],
8563 'line' => undef
8564 }, 'Parse::RecDescent::_Runtime::Production' ),
8565 bless( {
8566 'number' => 1,
8567 'strcount' => 0,
8568 'dircount' => 0,
8569 'uncommit' => undef,
8570 'error' => undef,
8571 'patcount' => 0,
8572 'actcount' => 1,
8573 'items' => [
8574 bless( {
8575 'subrule' => 'BNAME',
8576 'matchrule' => 0,
8577 'implicit' => undef,
8578 'argcode' => undef,
8579 'lookahead' => 0,
8580 'line' => 43
8581 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8582 bless( {
8583 'hashname' => '__ACTION1__',
8584 'lookahead' => 0,
8585 'line' => 43,
8586 'code' => '{$return = "Treex::Block::$item{BNAME}"}'
8587 }, 'Parse::RecDescent::_Runtime::Action' )
8588 ],
8589 'line' => undef
8590 }, 'Parse::RecDescent::_Runtime::Production' )
8591 ],
8592 'name' => 'TBNAME',
8593 'vars' => '',
8594 'line' => 42
8595 }, 'Parse::RecDescent::_Runtime::Rule' ),
8596 'startrule' => bless( {
8597 'impcount' => 0,
8598 'calls' => [
8599 'SCEN',
8600 'EOF'
8601 ],
8602 'changed' => 0,
8603 'opcount' => 0,
8604 'prods' => [
8605 bless( {
8606 'number' => 0,
8607 'strcount' => 0,
8608 'dircount' => 0,
8609 'uncommit' => undef,
8610 'error' => undef,
8611 'patcount' => 0,
8612 'actcount' => 1,
8613 'items' => [
8614 bless( {
8615 'subrule' => 'SCEN',
8616 'matchrule' => 0,
8617 'implicit' => undef,
8618 'argcode' => undef,
8619 'lookahead' => 0,
8620 'line' => 8
8621 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8622 bless( {
8623 'subrule' => 'EOF',
8624 'matchrule' => 0,
8625 'implicit' => undef,
8626 'argcode' => undef,
8627 'lookahead' => 0,
8628 'line' => 8
8629 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8630 bless( {
8631 'hashname' => '__ACTION1__',
8632 'lookahead' => 0,
8633 'line' => 8,
8634 'code' => '{$return = $item{SCEN}}'
8635 }, 'Parse::RecDescent::_Runtime::Action' )
8636 ],
8637 'line' => undef
8638 }, 'Parse::RecDescent::_Runtime::Production' )
8639 ],
8640 'name' => 'startrule',
8641 'vars' => '',
8642 'line' => 8
8643 }, 'Parse::RecDescent::_Runtime::Rule' ),
8644 'LINE' => bless( {
8645 'impcount' => 0,
8646 'calls' => [
8647 'BLOCK',
8648 'COMMENT'
8649 ],
8650 'changed' => 0,
8651 'opcount' => 0,
8652 'prods' => [
8653 bless( {
8654 'number' => 0,
8655 'strcount' => 0,
8656 'dircount' => 0,
8657 'uncommit' => undef,
8658 'error' => undef,
8659 'patcount' => 0,
8660 'actcount' => 1,
8661 'items' => [
8662 bless( {
8663 'subrule' => 'BLOCK',
8664 'matchrule' => 0,
8665 'implicit' => undef,
8666 'argcode' => undef,
8667 'lookahead' => 0,
8668 'line' => 11
8669 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8670 bless( {
8671 'subrule' => 'COMMENT',
8672 'matchrule' => 0,
8673 'implicit' => undef,
8674 'argcode' => undef,
8675 'lookahead' => 0,
8676 'line' => 11
8677 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8678 bless( {
8679 'hashname' => '__ACTION1__',
8680 'lookahead' => 0,
8681 'line' => 11,
8682 'code' => '{$return = [@{$item{BLOCK}}]}'
8683 }, 'Parse::RecDescent::_Runtime::Action' )
8684 ],
8685 'line' => undef
8686 }, 'Parse::RecDescent::_Runtime::Production' ),
8687 bless( {
8688 'number' => 1,
8689 'strcount' => 0,
8690 'dircount' => 0,
8691 'uncommit' => undef,
8692 'error' => undef,
8693 'patcount' => 0,
8694 'actcount' => 1,
8695 'items' => [
8696 bless( {
8697 'subrule' => 'BLOCK',
8698 'matchrule' => 0,
8699 'implicit' => undef,
8700 'argcode' => undef,
8701 'lookahead' => 0,
8702 'line' => 12
8703 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8704 bless( {
8705 'hashname' => '__ACTION1__',
8706 'lookahead' => 0,
8707 'line' => 12,
8708 'code' => '{$return = [@{$item{BLOCK}}]}'
8709 }, 'Parse::RecDescent::_Runtime::Action' )
8710 ],
8711 'line' => undef
8712 }, 'Parse::RecDescent::_Runtime::Production' ),
8713 bless( {
8714 'number' => 2,
8715 'strcount' => 0,
8716 'dircount' => 0,
8717 'uncommit' => undef,
8718 'error' => undef,
8719 'patcount' => 0,
8720 'actcount' => 1,
8721 'items' => [
8722 bless( {
8723 'subrule' => 'COMMENT',
8724 'matchrule' => 0,
8725 'implicit' => undef,
8726 'argcode' => undef,
8727 'lookahead' => 0,
8728 'line' => 13
8729 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8730 bless( {
8731 'hashname' => '__ACTION1__',
8732 'lookahead' => 0,
8733 'line' => 13,
8734 'code' => '{$return = []}'
8735 }, 'Parse::RecDescent::_Runtime::Action' )
8736 ],
8737 'line' => undef
8738 }, 'Parse::RecDescent::_Runtime::Production' )
8739 ],
8740 'name' => 'LINE',
8741 'vars' => '',
8742 'line' => 11
8743 }, 'Parse::RecDescent::_Runtime::Rule' ),
8744 'BLOCK' => bless( {
8745 'impcount' => 0,
8746 'calls' => [
8747 'INCLUDE',
8748 'TBNAME',
8749 'PARAMS'
8750 ],
8751 'changed' => 0,
8752 'opcount' => 0,
8753 'prods' => [
8754 bless( {
8755 'number' => 0,
8756 'strcount' => 0,
8757 'dircount' => 0,
8758 'uncommit' => undef,
8759 'error' => undef,
8760 'patcount' => 0,
8761 'actcount' => 1,
8762 'items' => [
8763 bless( {
8764 'subrule' => 'INCLUDE',
8765 'matchrule' => 0,
8766 'implicit' => undef,
8767 'argcode' => undef,
8768 'lookahead' => 0,
8769 'line' => 15
8770 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8771 bless( {
8772 'hashname' => '__ACTION1__',
8773 'lookahead' => 0,
8774 'line' => 15,
8775 'code' => '{
8776 my $included = read_file( $item{INCLUDE} );
8777 my $result = $thisparser->startrule( $included, 1, $item{INCLUDE} );
8778 if (defined $result and ref $result eq \'ARRAY\') {
8779 $return = [@$result];
8780 } else {
8781 $return = undef;
8782 }
8783 }'
8784 }, 'Parse::RecDescent::_Runtime::Action' )
8785 ],
8786 'line' => undef
8787 }, 'Parse::RecDescent::_Runtime::Production' ),
8788 bless( {
8789 'number' => 1,
8790 'strcount' => 0,
8791 'dircount' => 0,
8792 'uncommit' => undef,
8793 'error' => undef,
8794 'patcount' => 0,
8795 'actcount' => 1,
8796 'items' => [
8797 bless( {
8798 'subrule' => 'TBNAME',
8799 'matchrule' => 0,
8800 'implicit' => undef,
8801 'argcode' => undef,
8802 'lookahead' => 0,
8803 'line' => 24
8804 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8805 bless( {
8806 'subrule' => 'PARAMS',
8807 'matchrule' => 0,
8808 'implicit' => undef,
8809 'argcode' => undef,
8810 'lookahead' => 0,
8811 'line' => 24
8812 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8813 bless( {
8814 'hashname' => '__ACTION1__',
8815 'lookahead' => 0,
8816 'line' => 24,
8817 'code' => '{$return = [{
8818 block_name=>$item{TBNAME},
8819 block_parameters=>$item{PARAMS},
8820 }]
8821 }'
8822 }, 'Parse::RecDescent::_Runtime::Action' )
8823 ],
8824 'line' => undef
8825 }, 'Parse::RecDescent::_Runtime::Production' ),
8826 bless( {
8827 'number' => 2,
8828 'strcount' => 0,
8829 'dircount' => 0,
8830 'uncommit' => undef,
8831 'error' => undef,
8832 'patcount' => 0,
8833 'actcount' => 1,
8834 'items' => [
8835 bless( {
8836 'subrule' => 'TBNAME',
8837 'matchrule' => 0,
8838 'implicit' => undef,
8839 'argcode' => undef,
8840 'lookahead' => 0,
8841 'line' => 29
8842 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8843 bless( {
8844 'hashname' => '__ACTION1__',
8845 'lookahead' => 0,
8846 'line' => 29,
8847 'code' => '{$return = [{
8848 block_name=>$item{TBNAME},
8849 block_parameters=>[],
8850 }]
8851 }'
8852 }, 'Parse::RecDescent::_Runtime::Action' )
8853 ],
8854 'line' => undef
8855 }, 'Parse::RecDescent::_Runtime::Production' )
8856 ],
8857 'name' => 'BLOCK',
8858 'vars' => '',
8859 'line' => 15
8860 }, 'Parse::RecDescent::_Runtime::Rule' ),
8861 'PNAME' => bless( {
8862 'impcount' => 0,
8863 'calls' => [],
8864 'changed' => 0,
8865 'opcount' => 0,
8866 'prods' => [
8867 bless( {
8868 'number' => 0,
8869 'strcount' => 0,
8870 'dircount' => 0,
8871 'uncommit' => undef,
8872 'error' => undef,
8873 'patcount' => 1,
8874 'actcount' => 1,
8875 'items' => [
8876 bless( {
8877 'pattern' => '\\w+',
8878 'hashname' => '__PATTERN1__',
8879 'description' => '/\\\\w+/',
8880 'lookahead' => 0,
8881 'rdelim' => '/',
8882 'line' => 49,
8883 'mod' => '',
8884 'ldelim' => '/'
8885 }, 'Parse::RecDescent::_Runtime::Token' ),
8886 bless( {
8887 'hashname' => '__ACTION1__',
8888 'lookahead' => 0,
8889 'line' => 49,
8890 'code' => '{$return = $item[1]}'
8891 }, 'Parse::RecDescent::_Runtime::Action' )
8892 ],
8893 'line' => undef
8894 }, 'Parse::RecDescent::_Runtime::Production' )
8895 ],
8896 'name' => 'PNAME',
8897 'vars' => '',
8898 'line' => 49
8899 }, 'Parse::RecDescent::_Runtime::Rule' ),
8900 'PTICKED' => bless( {
8901 'impcount' => 0,
8902 'calls' => [],
8903 'changed' => 0,
8904 'opcount' => 0,
8905 'prods' => [
8906 bless( {
8907 'number' => 0,
8908 'strcount' => 0,
8909 'dircount' => 0,
8910 'uncommit' => undef,
8911 'error' => undef,
8912 'patcount' => 1,
8913 'actcount' => 1,
8914 'items' => [
8915 bless( {
8916 'pattern' => '[^`]+',
8917 'hashname' => '__PATTERN1__',
8918 'description' => '/[^`]+/',
8919 'lookahead' => 0,
8920 'rdelim' => '/',
8921 'line' => 61,
8922 'mod' => '',
8923 'ldelim' => '/'
8924 }, 'Parse::RecDescent::_Runtime::Token' ),
8925 bless( {
8926 'hashname' => '__ACTION1__',
8927 'lookahead' => 0,
8928 'line' => 61,
8929 'code' => '{$return = $item[1]}'
8930 }, 'Parse::RecDescent::_Runtime::Action' )
8931 ],
8932 'line' => undef
8933 }, 'Parse::RecDescent::_Runtime::Production' )
8934 ],
8935 'name' => 'PTICKED',
8936 'vars' => '',
8937 'line' => 61
8938 }, 'Parse::RecDescent::_Runtime::Rule' ),
8939 'BNAME' => bless( {
8940 'impcount' => 0,
8941 'calls' => [
8942 'BNAME'
8943 ],
8944 'changed' => 0,
8945 'opcount' => 0,
8946 'prods' => [
8947 bless( {
8948 'number' => 0,
8949 'strcount' => 0,
8950 'dircount' => 0,
8951 'uncommit' => undef,
8952 'error' => undef,
8953 'patcount' => 1,
8954 'actcount' => 1,
8955 'items' => [
8956 bless( {
8957 'pattern' => '[A-Z]\\w*::',
8958 'hashname' => '__PATTERN1__',
8959 'description' => '/[A-Z]\\\\w*::/',
8960 'lookahead' => 0,
8961 'rdelim' => '/',
8962 'line' => 44,
8963 'mod' => '',
8964 'ldelim' => '/'
8965 }, 'Parse::RecDescent::_Runtime::Token' ),
8966 bless( {
8967 'subrule' => 'BNAME',
8968 'matchrule' => 0,
8969 'implicit' => undef,
8970 'argcode' => undef,
8971 'lookahead' => 0,
8972 'line' => 44
8973 }, 'Parse::RecDescent::_Runtime::Subrule' ),
8974 bless( {
8975 'hashname' => '__ACTION1__',
8976 'lookahead' => 0,
8977 'line' => 44,
8978 'code' => '{$return = $item[1].$item[2]}'
8979 }, 'Parse::RecDescent::_Runtime::Action' )
8980 ],
8981 'line' => undef
8982 }, 'Parse::RecDescent::_Runtime::Production' ),
8983 bless( {
8984 'number' => 1,
8985 'strcount' => 0,
8986 'dircount' => 0,
8987 'uncommit' => undef,
8988 'error' => undef,
8989 'patcount' => 1,
8990 'actcount' => 1,
8991 'items' => [
8992 bless( {
8993 'pattern' => '[A-Z]\\w*',
8994 'hashname' => '__PATTERN1__',
8995 'description' => '/[A-Z]\\\\w*/',
8996 'lookahead' => 0,
8997 'rdelim' => '/',
8998 'line' => 45,
8999 'mod' => '',
9000 'ldelim' => '/'
9001 }, 'Parse::RecDescent::_Runtime::Token' ),
9002 bless( {
9003 'hashname' => '__ACTION1__',
9004 'lookahead' => 0,
9005 'line' => 45,
9006 'code' => '{$return = $item[1]}'
9007 }, 'Parse::RecDescent::_Runtime::Action' )
9008 ],
9009 'line' => undef
9010 }, 'Parse::RecDescent::_Runtime::Production' )
9011 ],
9012 'name' => 'BNAME',
9013 'vars' => '',
9014 'line' => 43
9015 }, 'Parse::RecDescent::_Runtime::Rule' ),
9016 'SCEN' => bless( {
9017 'impcount' => 0,
9018 'calls' => [
9019 'LINE',
9020 'SCEN'
9021 ],
9022 'changed' => 0,
9023 'opcount' => 0,
9024 'prods' => [
9025 bless( {
9026 'number' => 0,
9027 'strcount' => 0,
9028 'dircount' => 0,
9029 'uncommit' => undef,
9030 'error' => undef,
9031 'patcount' => 0,
9032 'actcount' => 1,
9033 'items' => [
9034 bless( {
9035 'subrule' => 'LINE',
9036 'matchrule' => 0,
9037 'implicit' => undef,
9038 'argcode' => undef,
9039 'lookahead' => 0,
9040 'line' => 9
9041 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9042 bless( {
9043 'subrule' => 'SCEN',
9044 'matchrule' => 0,
9045 'implicit' => undef,
9046 'argcode' => undef,
9047 'lookahead' => 0,
9048 'line' => 9
9049 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9050 bless( {
9051 'hashname' => '__ACTION1__',
9052 'lookahead' => 0,
9053 'line' => 9,
9054 'code' => '{$return = [@{$item{LINE}},@{$item{SCEN}}]}'
9055 }, 'Parse::RecDescent::_Runtime::Action' )
9056 ],
9057 'line' => undef
9058 }, 'Parse::RecDescent::_Runtime::Production' ),
9059 bless( {
9060 'number' => 1,
9061 'strcount' => 0,
9062 'dircount' => 0,
9063 'uncommit' => undef,
9064 'error' => undef,
9065 'patcount' => 0,
9066 'actcount' => 1,
9067 'items' => [
9068 bless( {
9069 'subrule' => 'LINE',
9070 'matchrule' => 0,
9071 'implicit' => undef,
9072 'argcode' => undef,
9073 'lookahead' => 0,
9074 'line' => 10
9075 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9076 bless( {
9077 'hashname' => '__ACTION1__',
9078 'lookahead' => 0,
9079 'line' => 10,
9080 'code' => '{$return = [@{$item{LINE}}]}'
9081 }, 'Parse::RecDescent::_Runtime::Action' )
9082 ],
9083 'line' => undef
9084 }, 'Parse::RecDescent::_Runtime::Production' )
9085 ],
9086 'name' => 'SCEN',
9087 'vars' => '',
9088 'line' => 9
9089 }, 'Parse::RecDescent::_Runtime::Rule' ),
9090 'INCLUDE' => bless( {
9091 'impcount' => 0,
9092 'calls' => [],
9093 'changed' => 0,
9094 'opcount' => 0,
9095 'prods' => [
9096 bless( {
9097 'number' => 0,
9098 'strcount' => 0,
9099 'dircount' => 0,
9100 'uncommit' => undef,
9101 'error' => undef,
9102 'patcount' => 1,
9103 'actcount' => 1,
9104 'items' => [
9105 bless( {
9106 'pattern' => '\\/\\S+\\.scen',
9107 'hashname' => '__PATTERN1__',
9108 'description' => '/\\\\/\\\\S+\\\\.scen/',
9109 'lookahead' => 0,
9110 'rdelim' => '/',
9111 'line' => 34,
9112 'mod' => '',
9113 'ldelim' => '/'
9114 }, 'Parse::RecDescent::_Runtime::Token' ),
9115 bless( {
9116 'hashname' => '__ACTION1__',
9117 'lookahead' => 0,
9118 'line' => 34,
9119 'code' => '{$return = $item[1]}'
9120 }, 'Parse::RecDescent::_Runtime::Action' )
9121 ],
9122 'line' => undef
9123 }, 'Parse::RecDescent::_Runtime::Production' ),
9124 bless( {
9125 'number' => 1,
9126 'strcount' => 0,
9127 'dircount' => 0,
9128 'uncommit' => undef,
9129 'error' => undef,
9130 'patcount' => 1,
9131 'actcount' => 1,
9132 'items' => [
9133 bless( {
9134 'pattern' => '[^\\/#]\\S+\\.scen',
9135 'hashname' => '__PATTERN1__',
9136 'description' => '/[^\\\\/#]\\\\S+\\\\.scen/',
9137 'lookahead' => 0,
9138 'rdelim' => '/',
9139 'line' => 35,
9140 'mod' => '',
9141 'ldelim' => '/'
9142 }, 'Parse::RecDescent::_Runtime::Token' ),
9143 bless( {
9144 'hashname' => '__ACTION1__',
9145 'lookahead' => 0,
9146 'line' => 35,
9147 'code' => '{ my $from_file = $arg[0];
9148 if (length $from_file) {
9149 $return = dirname($from_file) . "/$item[1]";
9150 } else {
9151 $return = "./$item[1]";
9152 }
9153 }'
9154 }, 'Parse::RecDescent::_Runtime::Action' )
9155 ],
9156 'line' => undef
9157 }, 'Parse::RecDescent::_Runtime::Production' )
9158 ],
9159 'name' => 'INCLUDE',
9160 'vars' => '',
9161 'line' => 34
9162 }, 'Parse::RecDescent::_Runtime::Rule' ),
9163 'PDQUOTE' => bless( {
9164 'impcount' => 0,
9165 'calls' => [],
9166 'changed' => 0,
9167 'opcount' => 0,
9168 'prods' => [
9169 bless( {
9170 'number' => 0,
9171 'strcount' => 0,
9172 'dircount' => 0,
9173 'uncommit' => undef,
9174 'error' => undef,
9175 'patcount' => 1,
9176 'actcount' => 1,
9177 'items' => [
9178 bless( {
9179 'pattern' => '[^"]*',
9180 'hashname' => '__PATTERN1__',
9181 'description' => '/[^"]*/',
9182 'lookahead' => 0,
9183 'rdelim' => '/',
9184 'line' => 58,
9185 'mod' => '',
9186 'ldelim' => '/'
9187 }, 'Parse::RecDescent::_Runtime::Token' ),
9188 bless( {
9189 'hashname' => '__ACTION1__',
9190 'lookahead' => 0,
9191 'line' => 58,
9192 'code' => '{$return = $item[1]}'
9193 }, 'Parse::RecDescent::_Runtime::Action' )
9194 ],
9195 'line' => undef
9196 }, 'Parse::RecDescent::_Runtime::Production' )
9197 ],
9198 'name' => 'PDQUOTE',
9199 'vars' => '',
9200 'line' => 58
9201 }, 'Parse::RecDescent::_Runtime::Rule' ),
9202 'PSQUOTE' => bless( {
9203 'impcount' => 0,
9204 'calls' => [
9205 'NOTSQUOTE',
9206 'SLASHEDSQUOTE',
9207 'PSQUOTE'
9208 ],
9209 'changed' => 0,
9210 'opcount' => 0,
9211 'prods' => [
9212 bless( {
9213 'number' => 0,
9214 'strcount' => 0,
9215 'dircount' => 0,
9216 'uncommit' => undef,
9217 'error' => undef,
9218 'patcount' => 0,
9219 'actcount' => 1,
9220 'items' => [
9221 bless( {
9222 'subrule' => 'NOTSQUOTE',
9223 'matchrule' => 0,
9224 'implicit' => undef,
9225 'argcode' => undef,
9226 'lookahead' => 0,
9227 'line' => 54
9228 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9229 bless( {
9230 'subrule' => 'SLASHEDSQUOTE',
9231 'matchrule' => 0,
9232 'implicit' => undef,
9233 'argcode' => undef,
9234 'lookahead' => 0,
9235 'line' => 54
9236 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9237 bless( {
9238 'subrule' => 'PSQUOTE',
9239 'matchrule' => 0,
9240 'implicit' => undef,
9241 'argcode' => undef,
9242 'lookahead' => 0,
9243 'line' => 54
9244 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9245 bless( {
9246 'hashname' => '__ACTION1__',
9247 'lookahead' => 0,
9248 'line' => 54,
9249 'code' => '{$return = $item{NOTSQUOTE}.$item{SLASHEDSQUOTE}.$item{PSQUOTE}}'
9250 }, 'Parse::RecDescent::_Runtime::Action' )
9251 ],
9252 'line' => undef
9253 }, 'Parse::RecDescent::_Runtime::Production' ),
9254 bless( {
9255 'number' => 1,
9256 'strcount' => 0,
9257 'dircount' => 0,
9258 'uncommit' => undef,
9259 'error' => undef,
9260 'patcount' => 0,
9261 'actcount' => 0,
9262 'items' => [
9263 bless( {
9264 'subrule' => 'NOTSQUOTE',
9265 'matchrule' => 0,
9266 'implicit' => undef,
9267 'argcode' => undef,
9268 'lookahead' => 0,
9269 'line' => 55
9270 }, 'Parse::RecDescent::_Runtime::Subrule' )
9271 ],
9272 'line' => undef
9273 }, 'Parse::RecDescent::_Runtime::Production' )
9274 ],
9275 'name' => 'PSQUOTE',
9276 'vars' => '',
9277 'line' => 54
9278 }, 'Parse::RecDescent::_Runtime::Rule' ),
9279 'PARAMS' => bless( {
9280 'impcount' => 0,
9281 'calls' => [
9282 'PARAM',
9283 'PARAMS'
9284 ],
9285 'changed' => 0,
9286 'opcount' => 0,
9287 'prods' => [
9288 bless( {
9289 'number' => 0,
9290 'strcount' => 0,
9291 'dircount' => 0,
9292 'uncommit' => undef,
9293 'error' => undef,
9294 'patcount' => 0,
9295 'actcount' => 1,
9296 'items' => [
9297 bless( {
9298 'subrule' => 'PARAM',
9299 'matchrule' => 0,
9300 'implicit' => undef,
9301 'argcode' => undef,
9302 'lookahead' => 0,
9303 'line' => 46
9304 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9305 bless( {
9306 'subrule' => 'PARAMS',
9307 'matchrule' => 0,
9308 'implicit' => undef,
9309 'argcode' => undef,
9310 'lookahead' => 0,
9311 'line' => 46
9312 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9313 bless( {
9314 'hashname' => '__ACTION1__',
9315 'lookahead' => 0,
9316 'line' => 46,
9317 'code' => '{$return = [$item{PARAM}, @{$item{PARAMS}}]}'
9318 }, 'Parse::RecDescent::_Runtime::Action' )
9319 ],
9320 'line' => undef
9321 }, 'Parse::RecDescent::_Runtime::Production' ),
9322 bless( {
9323 'number' => 1,
9324 'strcount' => 0,
9325 'dircount' => 0,
9326 'uncommit' => undef,
9327 'error' => undef,
9328 'patcount' => 0,
9329 'actcount' => 1,
9330 'items' => [
9331 bless( {
9332 'subrule' => 'PARAM',
9333 'matchrule' => 0,
9334 'implicit' => undef,
9335 'argcode' => undef,
9336 'lookahead' => 0,
9337 'line' => 47
9338 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9339 bless( {
9340 'hashname' => '__ACTION1__',
9341 'lookahead' => 0,
9342 'line' => 47,
9343 'code' => '{$return = [$item{PARAM}]}'
9344 }, 'Parse::RecDescent::_Runtime::Action' )
9345 ],
9346 'line' => undef
9347 }, 'Parse::RecDescent::_Runtime::Production' )
9348 ],
9349 'name' => 'PARAMS',
9350 'vars' => '',
9351 'line' => 46
9352 }, 'Parse::RecDescent::_Runtime::Rule' ),
9353 'PARAM' => bless( {
9354 'impcount' => 0,
9355 'calls' => [
9356 'PNAME',
9357 'PVALUE'
9358 ],
9359 'changed' => 0,
9360 'opcount' => 0,
9361 'prods' => [
9362 bless( {
9363 'number' => 0,
9364 'strcount' => 1,
9365 'dircount' => 1,
9366 'uncommit' => undef,
9367 'error' => undef,
9368 'patcount' => 0,
9369 'actcount' => 1,
9370 'items' => [
9371 bless( {
9372 'subrule' => 'PNAME',
9373 'matchrule' => 0,
9374 'implicit' => undef,
9375 'argcode' => undef,
9376 'lookahead' => 0,
9377 'line' => 48
9378 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9379 bless( {
9380 'pattern' => '=',
9381 'hashname' => '__STRING1__',
9382 'description' => '\'=\'',
9383 'lookahead' => 0,
9384 'line' => 48
9385 }, 'Parse::RecDescent::_Runtime::Literal' ),
9386 bless( {
9387 'hashname' => '__DIRECTIVE1__',
9388 'name' => '<skip: qr//>',
9389 'lookahead' => 0,
9390 'line' => 48,
9391 'code' => 'my $oldskip = $skip; $skip= qr//; $oldskip'
9392 }, 'Parse::RecDescent::_Runtime::Directive' ),
9393 bless( {
9394 'subrule' => 'PVALUE',
9395 'matchrule' => 0,
9396 'implicit' => undef,
9397 'argcode' => undef,
9398 'lookahead' => 0,
9399 'line' => 48
9400 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9401 bless( {
9402 'hashname' => '__ACTION1__',
9403 'lookahead' => 0,
9404 'line' => 48,
9405 'code' => '{$return = $item{PNAME}.\'=\'.$item{PVALUE}}'
9406 }, 'Parse::RecDescent::_Runtime::Action' )
9407 ],
9408 'line' => undef
9409 }, 'Parse::RecDescent::_Runtime::Production' )
9410 ],
9411 'name' => 'PARAM',
9412 'vars' => '',
9413 'line' => 48
9414 }, 'Parse::RecDescent::_Runtime::Rule' ),
9415 'PVALUE' => bless( {
9416 'impcount' => 0,
9417 'calls' => [
9418 'PSQUOTE',
9419 'PDQUOTE',
9420 'PTICKED',
9421 'PNOTQUOTED'
9422 ],
9423 'changed' => 0,
9424 'opcount' => 0,
9425 'prods' => [
9426 bless( {
9427 'number' => 0,
9428 'strcount' => 0,
9429 'dircount' => 0,
9430 'uncommit' => undef,
9431 'error' => undef,
9432 'patcount' => 2,
9433 'actcount' => 1,
9434 'items' => [
9435 bless( {
9436 'pattern' => '\'',
9437 'hashname' => '__PATTERN1__',
9438 'description' => '/\'/',
9439 'lookahead' => 0,
9440 'rdelim' => '/',
9441 'line' => 50,
9442 'mod' => '',
9443 'ldelim' => '/'
9444 }, 'Parse::RecDescent::_Runtime::Token' ),
9445 bless( {
9446 'subrule' => 'PSQUOTE',
9447 'matchrule' => 0,
9448 'implicit' => undef,
9449 'argcode' => undef,
9450 'lookahead' => 0,
9451 'line' => 50
9452 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9453 bless( {
9454 'pattern' => '\'',
9455 'hashname' => '__PATTERN2__',
9456 'description' => '/\'/',
9457 'lookahead' => 0,
9458 'rdelim' => '/',
9459 'line' => 50,
9460 'mod' => '',
9461 'ldelim' => '/'
9462 }, 'Parse::RecDescent::_Runtime::Token' ),
9463 bless( {
9464 'hashname' => '__ACTION1__',
9465 'lookahead' => 0,
9466 'line' => 50,
9467 'code' => '{$return = $item{PSQUOTE}}'
9468 }, 'Parse::RecDescent::_Runtime::Action' )
9469 ],
9470 'line' => undef
9471 }, 'Parse::RecDescent::_Runtime::Production' ),
9472 bless( {
9473 'number' => 1,
9474 'strcount' => 0,
9475 'dircount' => 0,
9476 'uncommit' => undef,
9477 'error' => undef,
9478 'patcount' => 2,
9479 'actcount' => 1,
9480 'items' => [
9481 bless( {
9482 'pattern' => '"',
9483 'hashname' => '__PATTERN1__',
9484 'description' => '/"/',
9485 'lookahead' => 0,
9486 'rdelim' => '/',
9487 'line' => 51,
9488 'mod' => '',
9489 'ldelim' => '/'
9490 }, 'Parse::RecDescent::_Runtime::Token' ),
9491 bless( {
9492 'subrule' => 'PDQUOTE',
9493 'matchrule' => 0,
9494 'implicit' => undef,
9495 'argcode' => undef,
9496 'lookahead' => 0,
9497 'line' => 51
9498 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9499 bless( {
9500 'pattern' => '"',
9501 'hashname' => '__PATTERN2__',
9502 'description' => '/"/',
9503 'lookahead' => 0,
9504 'rdelim' => '/',
9505 'line' => 51,
9506 'mod' => '',
9507 'ldelim' => '/'
9508 }, 'Parse::RecDescent::_Runtime::Token' ),
9509 bless( {
9510 'hashname' => '__ACTION1__',
9511 'lookahead' => 0,
9512 'line' => 51,
9513 'code' => '{$return = $item{PDQUOTE}}'
9514 }, 'Parse::RecDescent::_Runtime::Action' )
9515 ],
9516 'line' => undef
9517 }, 'Parse::RecDescent::_Runtime::Production' ),
9518 bless( {
9519 'number' => 2,
9520 'strcount' => 0,
9521 'dircount' => 0,
9522 'uncommit' => undef,
9523 'error' => undef,
9524 'patcount' => 2,
9525 'actcount' => 1,
9526 'items' => [
9527 bless( {
9528 'pattern' => '`',
9529 'hashname' => '__PATTERN1__',
9530 'description' => '/`/',
9531 'lookahead' => 0,
9532 'rdelim' => '/',
9533 'line' => 52,
9534 'mod' => '',
9535 'ldelim' => '/'
9536 }, 'Parse::RecDescent::_Runtime::Token' ),
9537 bless( {
9538 'subrule' => 'PTICKED',
9539 'matchrule' => 0,
9540 'implicit' => undef,
9541 'argcode' => undef,
9542 'lookahead' => 0,
9543 'line' => 52
9544 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9545 bless( {
9546 'pattern' => '`',
9547 'hashname' => '__PATTERN2__',
9548 'description' => '/`/',
9549 'lookahead' => 0,
9550 'rdelim' => '/',
9551 'line' => 52,
9552 'mod' => '',
9553 'ldelim' => '/'
9554 }, 'Parse::RecDescent::_Runtime::Token' ),
9555 bless( {
9556 'hashname' => '__ACTION1__',
9557 'lookahead' => 0,
9558 'line' => 52,
9559 'code' => '{$return = $item[1].$item[2].$item[3]}'
9560 }, 'Parse::RecDescent::_Runtime::Action' )
9561 ],
9562 'line' => undef
9563 }, 'Parse::RecDescent::_Runtime::Production' ),
9564 bless( {
9565 'number' => 3,
9566 'strcount' => 0,
9567 'dircount' => 0,
9568 'uncommit' => undef,
9569 'error' => undef,
9570 'patcount' => 0,
9571 'actcount' => 1,
9572 'items' => [
9573 bless( {
9574 'subrule' => 'PNOTQUOTED',
9575 'matchrule' => 0,
9576 'implicit' => undef,
9577 'argcode' => undef,
9578 'lookahead' => 0,
9579 'line' => 53
9580 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9581 bless( {
9582 'hashname' => '__ACTION1__',
9583 'lookahead' => 0,
9584 'line' => 53,
9585 'code' => '{$return = $item{PNOTQUOTED}}'
9586 }, 'Parse::RecDescent::_Runtime::Action' )
9587 ],
9588 'line' => undef
9589 }, 'Parse::RecDescent::_Runtime::Production' )
9590 ],
9591 'name' => 'PVALUE',
9592 'vars' => '',
9593 'line' => 50
9594 }, 'Parse::RecDescent::_Runtime::Rule' )
9595 },
9596 '_AUTOTREE' => undef,
9597 '_check' => {
9598 'thisoffset' => '',
9599 'itempos' => '',
9600 'prevoffset' => '',
9601 'prevline' => '',
9602 'prevcolumn' => '',
9603 'thiscolumn' => ''
9604 },
9605 '_AUTOACTION' => undef
9606 }, 'Parse::RecDescent::_Runtime' );
9607 }
↑ Summary lib/Treex/Core/TredView/Styles.pm »