Treex/Core/ScenarioParser.pm

filter: Statementstmt 58.5% 2319 / 3964 Branchbran 29.8% 707 / 2370 Conditioncond 20.1% 169 / 838 MC/DCmcdc 7.7% 40 / 518 Subroutinesub 48.9% 143 / 292 Podpod 0.0% 0 / 1 totaltotal 42.3% 3378 / 7983 CC 1493 SCAR 89.6
CC
1493
Cov
45%
_generate
56882.0
PVALUE
1008.2
SPACE
816.3
CRAP 7773.8
↑ Summary Treex/Core/TredView/Styles.pm »
1 ## no critic (Miscellanea::ProhibitUnrestrictedNoCritic)
2 ## no critic Generated code follows
3 {
4 # GENERATE RECURSIVE DESCENT PARSER OBJECTS FROM A GRAMMAR
5  
6 5 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 package Parse::RecDescent::_Runtime;
10 5 $Parse::RecDescent::_Runtime::VERSION = '2.20151210';
11 5 ▶use Text::Balanced qw ( extract_codeblock extract_bracketed extract_quotelike extract_delimited );
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 5 ▶use vars qw ( $skip );
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 5 *defskip = \ '\s*'; # DEFAULT SEPARATOR IS OPTIONAL WHITESPACE
16 5 $skip = '\s*'; # UNIVERSAL SEPARATOR IS OPTIONAL WHITESPACE
17 5 my $MAXREP = 100_000_000; # REPETITIONS MATCH AT MOST 100,000,000 TIMES
18  
19  
20  
21 package Parse::RecDescent::_Runtime::LineCounter;
22 5 $Parse::RecDescent::_Runtime::LineCounter::VERSION = '2.20151210';
23  
24 sub TIESCALAR # ($classname, \$text, $thisparser, $prevflag)
25 {
26 3983 ▶ bless {
Subroutine TIESCALAR: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 0 3983 3983
27 text => $_[1],
28 parser => $_[2],
29 prev => $_[3]?1:0,
30 }, $_[0];
31 }
32  
33 sub FETCH
34 {
35 0 ▶ my $parser = $_[0]->{parser};
Subroutine FETCH: not called CC=2 SCAR=17.9
36 0 my $cache = $parser->{linecounter_cache};
37 0 my $from = $parser->{fulltextlen}-length(${$_[0]->{text}})-$_[0]->{prev}
38 0 ;
39  
40 0 ▶ unless (exists $cache->{$from})
Branch: 1 branch
BranchTrueFalseTotal
unless (exists $cache->{$from}) 0 0 0
41 {
42 $parser->{lastlinenum} = $parser->{offsetlinenum}
43 0 - Parse::RecDescent::_Runtime::_linecount(substr($parser->{fulltext},$from))
44 + 1;
45 0 $cache->{$from} = $parser->{lastlinenum};
46 }
47 0 return $cache->{$from};
48 }
49  
50 sub STORE
51 {
52 0 ▶ my $parser = $_[0]->{parser};
Subroutine STORE: not called CC=1 SCAR=6.9
53 0 $parser->{offsetlinenum} -= $parser->{lastlinenum} - $_[1];
54 0 return undef;
55 }
56  
57 sub resync # ($linecounter)
58 {
59 0 ▶ my $self = tied($_[0]);
Subroutine resync: not called CC=2 SCAR=17.9
60 0 ▶ die "Tried to alter something other than a LineCounter\n"
Branch: 1 branch
BranchTrueFalseTotal
unless $self =~ /Parse::RecDescent::_Runtime::LineCounter/ 0 0 0
61 unless $self =~ /Parse::RecDescent::_Runtime::LineCounter/;
62  
63 0 my $parser = $self->{parser};
64 my $apparently = $parser->{offsetlinenum}
65 0 - Parse::RecDescent::_Runtime::_linecount(${$self->{text}})
66 + 1;
67  
68 0 $parser->{offsetlinenum} += $parser->{lastlinenum} - $apparently;
69 0 return 1;
70 }
71  
72 package Parse::RecDescent::_Runtime::ColCounter;
73 5 $Parse::RecDescent::_Runtime::ColCounter::VERSION = '2.20151210';
74 sub TIESCALAR # ($classname, \$text, $thisparser, $prevflag)
75 {
76 0 ▶ bless {
Subroutine TIESCALAR: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 0 0 0
77 text => $_[1],
78 parser => $_[2],
79 prev => $_[3]?1:0,
80 }, $_[0];
81 }
82  
83 sub FETCH
84 {
85 0 ▶ my $parser = $_[0]->{parser};
Subroutine FETCH: not called CC=1 SCAR=6.9
86 0 my $missing = $parser->{fulltextlen}-length(${$_[0]->{text}})-$_[0]->{prev}+1;
87 0 substr($parser->{fulltext},0,$missing) =~ m/^(.*)\Z/m;
88 0 return length($1);
89 }
90  
91 sub STORE
92 {
93 0 ▶ die "Can't set column number via \$thiscolumn\n";
Subroutine STORE: not called CC=1 SCAR=6.9
94 }
95  
96  
97 package Parse::RecDescent::_Runtime::OffsetCounter;
98 5 $Parse::RecDescent::_Runtime::OffsetCounter::VERSION = '2.20151210';
99 sub TIESCALAR # ($classname, \$text, $thisparser, $prev)
100 {
101 0 ▶ bless {
Subroutine TIESCALAR: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[3] ? : 0 0 0
102 text => $_[1],
103 parser => $_[2],
104 prev => $_[3]?-1:0,
105 }, $_[0];
106 }
107  
108 sub FETCH
109 {
110 0 ▶ my $parser = $_[0]->{parser};
Subroutine FETCH: not called CC=1 SCAR=6.9
111 0 return $parser->{fulltextlen}-length(${$_[0]->{text}})+$_[0]->{prev};
112 }
113  
114 sub STORE
115 {
116 0 ▶ die "Can't set current offset via \$thisoffset or \$prevoffset\n";
Subroutine STORE: not called CC=1 SCAR=6.9
117 }
118  
119  
120  
121 package Parse::RecDescent::_Runtime::Rule;
122 5 $Parse::RecDescent::_Runtime::Rule::VERSION = '2.20151210';
123 sub new ($$$$$)
124 {
125 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
126 0 my $name = $_[1];
127 0 my $owner = $_[2];
128 0 my $line = $_[3];
129 0 my $replace = $_[4];
130  
131 0 ▶ if (defined $owner->{"rules"}{$name})
Branch: 1 branch
BranchTrueFalseTotal
if (defined $owner->{'rules'}{$name}) { } 0 0 0
132 {
133 0 my $self = $owner->{"rules"}{$name};
134 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
135 {
136 0 $self->reset;
137 }
138 0 return $self;
139 }
140 else
141 {
142 0 return $owner->{"rules"}{$name} =
143 bless
144 {
145 "name" => $name,
146 "prods" => [],
147 "calls" => [],
148 "changed" => 0,
149 "line" => $line,
150 "impcount" => 0,
151 "opcount" => 0,
152 "vars" => "",
153 }, $class;
154 }
155 }
156  
157 sub reset($)
158 {
159 0 ▶ @{$_[0]->{"prods"}} = ();
Subroutine reset: not called CC=1 SCAR=6.9
160 0 @{$_[0]->{"calls"}} = ();
161 0 $_[0]->{"changed"} = 0;
162 0 $_[0]->{"impcount"} = 0;
163 0 $_[0]->{"opcount"} = 0;
164 0 $_[0]->{"vars"} = "";
165 }
166  
167 ▶sub DESTROY {}
Subroutine DESTROY: not called CC=1 SCAR=0.0
168  
169 sub hasleftmost($$)
170 {
171 0 ▶ my ($self, $ref) = @_;
Subroutine hasleftmost: not called CC=3 SCAR=24.8
172  
173 0 my $prod;
174 0 foreach $prod ( @{$self->{"prods"}} )
175 {
176 0 ▶ return 1 if $prod->hasleftmost($ref);
Branch: 1 branch
BranchTrueFalseTotal
if $prod->hasleftmost($ref) 0 0 0
177 }
178  
179 0 return 0;
180 }
181  
182 sub leftmostsubrules($)
183 {
184 0 ▶ my $self = shift;
Subroutine leftmostsubrules: not called CC=2 SCAR=17.9
185 0 my @subrules = ();
186  
187 0 my $prod;
188 0 foreach $prod ( @{$self->{"prods"}} )
189 {
190 0 push @subrules, $prod->leftmostsubrule();
191 }
192  
193 0 return @subrules;
194 }
195  
196 sub expected($)
197 {
198 0 ▶ my $self = shift;
Subroutine expected: not called CC=4 SCAR=30.0
199 0 my @expected = ();
200  
201 0 my $prod;
202 0 foreach $prod ( @{$self->{"prods"}} )
203 {
204 0 my $next = $prod->expected();
205 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
206 {
207 0 push @expected, $next;
208 }
209 }
210  
211 0 return join ', or ', @expected;
212 }
213  
214 sub _contains($@)
215 {
216 0 ▶ my $target = shift;
Subroutine _contains: not called CC=3 SCAR=24.8
217 0 my $item;
218 0 ▶ foreach $item ( @_ ) { return 1 if $target eq $item; }
Branch: 1 branch
BranchTrueFalseTotal
if $target eq $item 0 0 0
219 0 return 0;
220 }
221  
222 sub addcall($$)
223 {
224 0 ▶ my ( $self, $subrule ) = @_;
Subroutine addcall: not called CC=2 SCAR=17.9
225 0 ▶ unless ( _contains($subrule, @{$self->{"calls"}}) )
Branch: 1 branch
BranchTrueFalseTotal
unless (&_contains($subrule, @{$$self{"calls"};})) 0 0 0
226 {
227 0 push @{$self->{"calls"}}, $subrule;
228 }
229 }
230  
231 sub addprod($$)
232 {
233 0 ▶ my ( $self, $prod ) = @_;
Subroutine addprod: not called CC=1 SCAR=6.9
234 0 push @{$self->{"prods"}}, $prod;
235 0 $self->{"changed"} = 1;
236 0 $self->{"impcount"} = 0;
237 0 $self->{"opcount"} = 0;
238 0 $prod->{"number"} = $#{$self->{"prods"}};
239 0 return $prod;
240 }
241  
242 sub addvar
243 {
244 0 ▶ my ( $self, $var, $parser ) = @_;
Subroutine addvar: not called CC=2 SCAR=17.9
245 0 ▶ if ($var =~ /\A\s*local\s+([%@\$]\w+)/)
Branch: 1 branch
BranchTrueFalseTotal
if ($var =~ /\A\s*local\s+([%\@\$]\w+)/) { } 0 0 0
246 {
247 0 $parser->{localvars} .= " $1";
248 0 $self->{"vars"} .= "$var;\n" }
249 else
250 0 { $self->{"vars"} .= "my $var;\n" }
251 0 $self->{"changed"} = 1;
252 0 return 1;
253 }
254  
255 sub addautoscore
256 {
257 0 ▶ my ( $self, $code ) = @_;
Subroutine addautoscore: not called CC=1 SCAR=6.9
258 0 $self->{"autoscore"} = $code;
259 0 $self->{"changed"} = 1;
260 0 return 1;
261 }
262  
263 sub nextoperator($)
264 {
265 0 ▶ my $self = shift;
Subroutine nextoperator: not called CC=1 SCAR=6.9
266 0 my $prodcount = scalar @{$self->{"prods"}};
267 0 my $opcount = ++$self->{"opcount"};
268 0 return "_operator_${opcount}_of_production_${prodcount}_of_rule_$self->{name}";
269 }
270  
271 sub nextimplicit($)
272 {
273 0 ▶ my $self = shift;
Subroutine nextimplicit: not called CC=1 SCAR=6.9
274 0 my $prodcount = scalar @{$self->{"prods"}};
275 0 my $impcount = ++$self->{"impcount"};
276 0 return "_alternation_${impcount}_of_production_${prodcount}_of_rule_$self->{name}";
277 }
278  
279  
280 sub code
281 {
282 0 ▶ my ($self, $namespace, $parser, $check) = @_;
Subroutine code: not called CC=13 SCAR=52.0
283  
284 0 ▶eval 'undef &' . $namespace . '::' . $self->{"name"} unless $parser->{saving};
Branch: 1 branch
BranchTrueFalseTotal
unless $parser->{"saving"} 0 0 0
285  
286 my $code =
287 '
288 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
289 sub ' . $namespace . '::' . $self->{"name"} . '
290 {
291 my $thisparser = $_[0];
292 use vars q{$tracelevel};
293 local $tracelevel = ($tracelevel||0)+1;
294 $ERRORS = 0;
295 my $thisrule = $thisparser->{"rules"}{"' . $self->{"name"} . '"};
296  
297 Parse::RecDescent::_Runtime::_trace(q{Trying rule: [' . $self->{"name"} . ']},
298 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
299 q{' . $self->{"name"} . '},
300 $tracelevel)
301 if defined $::RD_TRACE;
302  
303 ' . ($parser->{deferrable}
304 ? 'my $def_at = @{$thisparser->{deferred}};'
305 : '') .
306 '
307 my $err_at = @{$thisparser->{errors}};
308  
309 my $score;
310 my $score_return;
311 my $_tok;
312 my $return = undef;
313 my $_matched=0;
314 my $commit=0;
315 my @item = ();
316 my %item = ();
317 my $repeating = $_[2];
318 my $_noactions = $_[3];
319 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
320 my $_itempos = $_[5];
321 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
322 my $text;
323 my $lastsep;
324 my $current_match;
325 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{' . $self->expected() . '});
326 $expectation->at($_[1]);
327 '. ($parser->{_check}{thisoffset}?'
328 my $thisoffset;
329 tie $thisoffset, q{Parse::RecDescent::_Runtime::OffsetCounter}, \$text, $thisparser;
330 ':'') . ($parser->{_check}{prevoffset}?'
331 my $prevoffset;
332 tie $prevoffset, q{Parse::RecDescent::_Runtime::OffsetCounter}, \$text, $thisparser, 1;
333 ':'') . ($parser->{_check}{thiscolumn}?'
334 my $thiscolumn;
335 tie $thiscolumn, q{Parse::RecDescent::_Runtime::ColCounter}, \$text, $thisparser;
336 ':'') . ($parser->{_check}{prevcolumn}?'
337 my $prevcolumn;
338 tie $prevcolumn, q{Parse::RecDescent::_Runtime::ColCounter}, \$text, $thisparser, 1;
339 ':'') . ($parser->{_check}{prevline}?'
340 my $prevline;
341 tie $prevline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser, 1;
342 ':'') . '
343 my $thisline;
344 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
345  
346 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
347 ';
348  
349 0 my $prod;
350 0 foreach $prod ( @{$self->{"prods"}} )
351 {
352 0 ▶ $prod->addscore($self->{autoscore},0,0) if $self->{autoscore};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"autoscore"} 0 0 0
353 0 ▶ next unless $prod->checkleftmost();
Branch: 1 branch
BranchTrueFalseTotal
unless $prod->checkleftmost 0 0 0
354 0 $code .= $prod->code($namespace,$self,$parser);
355  
356 $code .= $parser->{deferrable}
357 0 ▶ ? ' splice
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'deferrable'} ? : 0 0 0
358 @{$thisparser->{deferred}}, $def_at unless $_matched;
359 '
360 : '';
361 }
362  
363 $code .=
364 '
365 unless ( $_matched || defined($score) )
366 {
367 ' .($parser->{deferrable}
368 ? ' splice @{$thisparser->{deferred}}, $def_at;
369 '
370 : '') . '
371  
372 $_[1] = $text; # NOT SURE THIS IS NEEDED
373 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' rule>>},
374 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
375 q{' . $self->{"name"} .'},
376 $tracelevel)
377 if defined $::RD_TRACE;
378 return undef;
379 }
380 if (!defined($return) && defined($score))
381 {
382 Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
383 q{' . $self->{"name"} .'},
384 $tracelevel)
385 if defined $::RD_TRACE;
386 $return = $score_return;
387 }
388 splice @{$thisparser->{errors}}, $err_at;
389 $return = $item[$#item] unless defined $return;
390 if (defined $::RD_TRACE)
391 {
392 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' rule<< (return value: [} .
393 $return . q{])}, "",
394 q{' . $self->{"name"} .'},
395 $tracelevel);
396 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
397 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
398 Parse::RecDescent::_Runtime::_tracefirst($text),
399 0 ▶ , q{' . $self->{"name"} .'},
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'deferrable'} ? : 0 0 0
400 $tracelevel)
401 }
402 $_[1] = $text;
403 return $return;
404 }
405 ';
406  
407 0 return $code;
408 }
409  
410 5 my @left;
411 sub isleftrec($$)
412 {
413 0 ▶ my ($self, $rules) = @_;
Subroutine isleftrec: not called CC=6 SCAR=37.4
414 0 my $root = $self->{"name"};
415 0 @left = $self->leftmostsubrules();
416 0 my $next;
417 0 foreach $next ( @left )
418 {
419 0 ▶ next unless defined $rules->{$next}; # SKIP NON-EXISTENT RULES
Branch: 1 branch
BranchTrueFalseTotal
unless defined $rules->{$next} 0 0 0
420 0 ▶ return 1 if $next eq $root;
Branch: 1 branch
BranchTrueFalseTotal
if $next eq $root 0 0 0
421 0 my $child;
422 0 foreach $child ( $rules->{$next}->leftmostsubrules() )
423 {
424 0 ▶ push(@left, $child)
Branch: 1 branch
BranchTrueFalseTotal
unless &_contains($child, @left) 0 0 0
425 if ! _contains($child, @left) ;
426 }
427 }
428 0 return 0;
429 }
430  
431 package Parse::RecDescent::_Runtime::Production;
432 5 $Parse::RecDescent::_Runtime::Production::VERSION = '2.20151210';
433 sub describe ($;$)
434 {
435 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
436 }
437  
438 sub new ($$;$$)
439 {
440 0 ▶ my ($self, $line, $uncommit, $error) = @_;
Subroutine new: not called CC=2 SCAR=17.9
441 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
442  
443 0 bless
444 {
445 "items" => [],
446 "uncommit" => $uncommit,
447 "error" => $error,
448 "line" => $line,
449 strcount => 0,
450 patcount => 0,
451 dircount => 0,
452 actcount => 0,
453 }, $class;
454 }
455  
456 sub expected ($)
457 {
458 0 ▶ my $itemcount = scalar @{$_[0]->{"items"}};
Subroutine expected: not called CC=2 SCAR=17.9
459 0 ▶ return ($itemcount) ? $_[0]->{"items"}[0]->describe(1) : '';
Branch: 1 branch
BranchTrueFalseTotal
$itemcount ? : 0 0 0
460 }
461  
462 sub hasleftmost ($$)
463 {
464 0 ▶ my ($self, $ref) = @_;
Subroutine hasleftmost: not called CC=2 SCAR=17.9
465 0 ▶ return ${$self->{"items"}}[0] eq $ref if scalar @{$self->{"items"}};
Branch: 1 branch
BranchTrueFalseTotal
if scalar @{$self->{"items"};} 0 0 0
466 0 return 0;
467 }
468  
469 sub isempty($)
470 {
471 0 ▶ my $self = shift;
Subroutine isempty: not called CC=1 SCAR=6.9
472 0 return 0 == @{$self->{"items"}};
473 }
474  
475 sub leftmostsubrule($)
476 {
477 0 ▶ my $self = shift;
Subroutine leftmostsubrule: not called CC=3 SCAR=24.8
478  
479 0 ▶ if ( $#{$self->{"items"}} >= 0 )
Branch: 1 branch
BranchTrueFalseTotal
if ($#{$$self{"items"};} >= 0) 0 0 0
480 {
481 0 my $subrule = $self->{"items"}[0]->issubrule();
482 0 ▶ return $subrule if defined $subrule;
Branch: 1 branch
BranchTrueFalseTotal
if defined $subrule 0 0 0
483 }
484  
485 0 return ();
486 }
487  
488 sub checkleftmost($)
489 {
490 0 ▶ my @items = @{$_[0]->{"items"}};
Subroutine checkleftmost: not called CC=15 SCAR=54.8
491 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
492 && $items[0]->{commitonly} )
493 {
494 0 Parse::RecDescent::_Runtime::_warn(2,"Lone <error?> in production treated
495 as <error?> <reject>");
496 0 Parse::RecDescent::_Runtime::_hint("A production consisting of a single
497 conditional <error?> directive would
498 normally succeed (with the value zero) if the
499 rule is not 'commited' when it is
500 tried. Since you almost certainly wanted
501 '<error?> <reject>' Parse::RecDescent::_Runtime
502 supplied it for you.");
503 0 push @{$_[0]->{items}},
504 Parse::RecDescent::_Runtime::UncondReject->new(0,0,'<reject>');
505 }
506 ▶ 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
507 {
508 # Do nothing
509 }
510 ▶ 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
511 ( ref($items[0]) =~ /\AParse::RecDescent::_Runtime::UncondReject/
512 || ($items[0]->describe||"") =~ /<autoscore/
513 ))
514 {
515 0 Parse::RecDescent::_Runtime::_warn(1,"Optimizing away production: [". $_[0]->describe ."]");
516 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
517 ? "a <rulevar> (which acts like an unconditional <reject> during parsing)"
518 : $items[0]->describe =~ /<autoscore/
519 ? "an <autoscore> (which acts like an unconditional <reject> during parsing)"
520 : "an unconditional <reject>";
521 0 ▶ my $caveat = $items[0]->describe =~ /<rulevar/
Branch: 1 branch
BranchTrueFalseTotal
$items[0]->describe =~ /<rulevar/ ? : 0 0 0
522 ? " after the specified variable was set up"
523 : "";
524 0 ▶ my $advice = @items > 1
Branch: 1 branch
BranchTrueFalseTotal
@items > 1 ? : 0 0 0
525 ? "However, there were also other (useless) items after the leading "
526 . $items[0]->describe
527 . ", so you may have been expecting some other behaviour."
528 : "You can safely ignore this message.";
529 0 Parse::RecDescent::_Runtime::_hint("The production starts with $what. That means that the
530 production can never successfully match, so it was
531 optimized out of the final parser$caveat. $advice");
532 0 return 0;
533 }
534 0 return 1;
535 }
536  
537 sub changesskip($)
538 {
539 0 ▶ my $item;
Subroutine changesskip: not called CC=4 SCAR=30.0
540 0 foreach $item (@{$_[0]->{"items"}})
541 {
542 0 ▶ if (ref($item) =~ /Parse::RecDescent::_Runtime::(Action|Directive)/)
Branch: 1 branch
BranchTrueFalseTotal
if (ref($item) =~ /Parse::RecDescent::_Runtime::(Action|Directive)/) 0 0 0
543 {
544 0 ▶ return 1 if $item->{code} =~ /\$skip\s*=/;
Branch: 1 branch
BranchTrueFalseTotal
if $item->{"code"} =~ /\$skip\s*=/ 0 0 0
545 }
546 }
547 0 return 0;
548 }
549  
550 sub adddirective
551 {
552 0 ▶ my ( $self, $whichop, $line, $name ) = @_;
Subroutine adddirective: not called CC=1 SCAR=6.9
553 0 push @{$self->{op}},
554 { type=>$whichop, line=>$line, name=>$name,
555 0 offset=> scalar(@{$self->{items}}) };
556 }
557  
558 sub addscore
559 {
560 0 ▶ my ( $self, $code, $lookahead, $line ) = @_;
Subroutine addscore: not called CC=2 SCAR=17.9
561 $self->additem(Parse::RecDescent::_Runtime::Directive->new(
562 "local \$^W;
563 my \$thisscore = do { $code } + 0;
564 if (!defined(\$score) || \$thisscore>\$score)
565 { \$score=\$thisscore; \$score_return=\$item[-1]; }
566 undef;", $lookahead, $line,"<score: $code>") )
567 0 ▶ unless $self->{items}[-1]->describe =~ /<score/;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"items"}[-1]->describe =~ /<score/ 0 0 0
568 0 return 1;
569 }
570  
571 sub check_pending
572 {
573 0 ▶ my ( $self, $line ) = @_;
Subroutine check_pending: not called CC=3 SCAR=24.8
574 0 ▶ if ($self->{op})
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"op"}) 0 0 0
575 {
576 0 ▶ while (my $next = pop @{$self->{op}})
Branch: 1 branch
BranchTrueFalseTotal
if (my $next = pop @{$$self{"op"};}) 0 0 0
577 {
578 0 Parse::RecDescent::_Runtime::_error("Incomplete <$next->{type}op:...>.", $line);
579 0 Parse::RecDescent::_Runtime::_hint(
580 "The current production ended without completing the
581 <$next->{type}op:...> directive that started near line
582 $next->{line}. Did you forget the closing '>'?");
583 }
584 }
585 0 return 1;
586 }
587  
588 sub enddirective
589 {
590 0 ▶ my ( $self, $line, $minrep, $maxrep ) = @_;
Subroutine enddirective: not called CC=4 SCAR=30.0
591 0 ▶ unless ($self->{op})
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"op"}) 0 0 0
592 {
593 0 Parse::RecDescent::_Runtime::_error("Unmatched > found.", $line);
594 0 Parse::RecDescent::_Runtime::_hint(
595 "A '>' angle bracket was encountered, which typically
596 indicates the end of a directive. However no suitable
597 preceding directive was encountered. Typically this
598 indicates either a extra '>' in the grammar, or a
599 problem inside the previous directive.");
600 0 return;
601 }
602 0 my $op = pop @{$self->{op}};
603 0 my $span = @{$self->{items}} - $op->{offset};
604 0 ▶ if ($op->{type} =~ /left|right/)
Branch: 1 branch
BranchTrueFalseTotal
if ($op->{"type"} =~ /left|right/) 0 0 0
605 {
606 0 ▶ if ($span != 3)
Branch: 1 branch
BranchTrueFalseTotal
if ($span != 3) { } 0 0 0
607 {
608 0 Parse::RecDescent::_Runtime::_error(
609 "Incorrect <$op->{type}op:...> specification:
610 expected 3 args, but found $span instead", $line);
611 0 Parse::RecDescent::_Runtime::_hint(
612 "The <$op->{type}op:...> directive requires a
613 sequence of exactly three elements. For example:
614 <$op->{type}op:leftarg /op/ rightarg>");
615 }
616 else
617 {
618 0 push @{$self->{items}},
619 Parse::RecDescent::_Runtime::Operator->new(
620 0 $op->{type}, $minrep, $maxrep, splice(@{$self->{"items"}}, -3));
621 0 $self->{items}[-1]->sethashname($self);
622 0 $self->{items}[-1]{name} = $op->{name};
623 }
624 }
625 }
626  
627 sub prevwasreturn
628 {
629 0 ▶ my ( $self, $line ) = @_;
Subroutine prevwasreturn: not called CC=2 SCAR=17.9
630 0 ▶ unless (@{$self->{items}})
Branch: 1 branch
BranchTrueFalseTotal
unless (@{$self->{"items"};}) 0 0 0
631 {
632 0 Parse::RecDescent::_Runtime::_error(
633 "Incorrect <return:...> specification:
634 expected item missing", $line);
635 0 Parse::RecDescent::_Runtime::_hint(
636 "The <return:...> directive requires a
637 sequence of at least one item. For example:
638 <return: list>");
639 0 return;
640 }
641 0 push @{$self->{items}},
642 Parse::RecDescent::_Runtime::Result->new();
643 }
644  
645 sub additem
646 {
647 0 ▶ my ( $self, $item ) = @_;
Subroutine additem: not called CC=1 SCAR=6.9
648 0 $item->sethashname($self);
649 0 push @{$self->{"items"}}, $item;
650 0 return $item;
651 }
652  
653 sub _duplicate_itempos
654 {
655 0 ▶ my ($src) = @_;
Subroutine _duplicate_itempos: not called CC=2 SCAR=17.9
656 0 my $dst = {};
657  
658 0 foreach (keys %$src)
659 {
660 0 %{$dst->{$_}} = %{$src->{$_}};
661 }
662 0 $dst;
663 }
664  
665 sub _update_itempos
666 {
667 0 ▶ my ($dst, $src, $typekeys, $poskeys) = @_;
Subroutine _update_itempos: not called CC=4 SCAR=30.0
668  
669 0 ▶ my @typekeys = 'ARRAY' eq ref $typekeys ?
Branch: 1 branch
BranchTrueFalseTotal
'ARRAY' eq ref $typekeys ? : 0 0 0
670 @$typekeys :
671 keys %$src;
672  
673 0 foreach my $k (keys %$src)
674 {
675 0 ▶ if ('ARRAY' eq ref $poskeys)
Branch: 1 branch
BranchTrueFalseTotal
if ('ARRAY' eq ref $poskeys) { } 0 0 0
676 {
677 0 @{$dst->{$k}}{@$poskeys} = @{$src->{$k}}{@$poskeys};
678 }
679 else
680 {
681 0 %{$dst->{$k}} = %{$src->{$k}};
682 }
683 }
684 }
685  
686 sub preitempos
687 {
688 return q
689 0 ▶ {
Subroutine preitempos: not called CC=1 SCAR=6.9
690 push @itempos, {'offset' => {'from'=>$thisoffset, 'to'=>undef},
691 'line' => {'from'=>$thisline, 'to'=>undef},
692 'column' => {'from'=>$thiscolumn, 'to'=>undef} };
693 }
694 }
695  
696 sub incitempos
697 {
698 return q
699 0 ▶ {
Subroutine incitempos: not called CC=1 SCAR=6.9
700 $itempos[$#itempos]{'offset'}{'from'} += length($lastsep);
701 $itempos[$#itempos]{'line'}{'from'} = $thisline;
702 $itempos[$#itempos]{'column'}{'from'} = $thiscolumn;
703 }
704 }
705  
706 sub unincitempos
707 {
708 # the next incitempos will properly set these two fields, but
709 # {'offset'}{'from'} needs to be decreased by length($lastsep)
710 # $itempos[$#itempos]{'line'}{'from'}
711 # $itempos[$#itempos]{'column'}{'from'}
712 return q
713 0 ▶ {
Subroutine unincitempos: not called CC=1 SCAR=6.9
714 $itempos[$#itempos]{'offset'}{'from'} -= length($lastsep) if defined $lastsep;
715 }
716 }
717  
718 sub postitempos
719 {
720 return q
721 0 ▶ {
Subroutine postitempos: not called CC=1 SCAR=6.9
722 $itempos[$#itempos]{'offset'}{'to'} = $prevoffset;
723 $itempos[$#itempos]{'line'}{'to'} = $prevline;
724 $itempos[$#itempos]{'column'}{'to'} = $prevcolumn;
725 }
726 }
727  
728 sub code($$$$)
729 {
730 0 ▶ my ($self,$namespace,$rule,$parser) = @_;
Subroutine code: not called CC=19 SCAR=59.4
731 my $code =
732 '
733 while (!$_matched'
734 . (defined $self->{"uncommit"} ? '' : ' && !$commit')
735 . ')
736 {
737 ' .
738 ($self->changesskip()
739 ? 'local $skip = defined($skip) ? $skip : $Parse::RecDescent::_Runtime::skip;'
740 : '') .'
741 Parse::RecDescent::_Runtime::_trace(q{Trying production: ['
742 . $self->describe . ']},
743 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
744 q{' . $rule ->{name}. '},
745 $tracelevel)
746 if defined $::RD_TRACE;
747 my $thisprod = $thisrule->{"prods"}[' . $self->{"number"} . '];
748 ' . (defined $self->{"error"} ? '' : '$text = $_[1];' ) . '
749 my $_savetext;
750 @item = (q{' . $rule->{"name"} . '});
751 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
752 my $repcount = 0;
753  
754 ';
755 $code .=
756 ' my @itempos = ({});
757 0 ▶' if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 0 0 0
758  
759 0 my $item;
760 my $i;
761  
762 0 ▶ for ($i = 0; $i < @{$self->{"items"}}; $i++)
Branch: 1 branch
BranchTrueFalseTotal
if ($i < @{$self->{"items"};}) 0 0 0
763 {
764 0 $item = ${$self->{items}}[$i];
765  
766 0 ▶ $code .= preitempos() if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 0 0 0
767  
768 0 $code .= $item->code($namespace,$rule,$parser->{_check});
769  
770 0 ▶ $code .= postitempos() if $parser->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $parser->{"_check"}{"itempos"} 0 0 0
771  
772 }
773  
774 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
775 {
776 0 $code .= $parser->{_AUTOACTION}->code($namespace,$rule);
777 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
778 \"$rule->{name}\":
779 $parser->{_AUTOACTION}{code}")
780 and
781 Parse::RecDescent::_Runtime::_hint("The \$::RD_AUTOACTION was defined,
782 so any production not ending in an
783 explicit action has the specified
784 \"auto-action\" automatically
785 appended.");
786 }
787 ▶ 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
788 {
789 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
790 {
791 0 $code .= $parser->{_AUTOTREE}{TERMINAL}->code($namespace,$rule);
792 }
793 else
794 {
795 0 $code .= $parser->{_AUTOTREE}{NODE}->code($namespace,$rule);
796 }
797 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
798 \"$rule->{name}\"")
799 and
800 Parse::RecDescent::_Runtime::_hint("The directive <autotree> was specified,
801 so any production not ending
802 in an explicit action has
803 some parse-tree building code
804 automatically appended.");
805 }
806  
807 $code .=
808 '
809 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' production: ['
810 . $self->describe . ']<<},
811 Parse::RecDescent::_Runtime::_tracefirst($text),
812 q{' . $rule->{name} . '},
813 $tracelevel)
814 if defined $::RD_TRACE;
815  
816 0 ▶' . ( $parser->{_check}{itempos} ? '
Branch: 1 branch
BranchTrueFalseTotal
$parser->{'_check'}{'itempos'} ? : 0 0 0
817 if ( defined($_itempos) )
818 {
819 Parse::RecDescent::_Runtime::Production::_update_itempos($_itempos, $itempos[ 1], undef, [qw(from)]);
820 Parse::RecDescent::_Runtime::Production::_update_itempos($_itempos, $itempos[-1], undef, [qw(to)]);
821 }
822 ' : '' ) . '
823  
824 $_matched = 1;
825 last;
826 }
827  
828 ';
829 0 return $code;
830 }
831  
832 5 1;
833  
834 package Parse::RecDescent::_Runtime::Action;
835 5 $Parse::RecDescent::_Runtime::Action::VERSION = '2.20151210';
836 0 ▶sub describe { undef }
Subroutine describe: not called CC=1 SCAR=6.9
837  
838 0 ▶sub sethashname { $_[0]->{hashname} = '__ACTION' . ++$_[1]->{actcount} .'__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
839  
840 sub new
841 {
842 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
843 0 bless
844 {
845 "code" => $_[1],
846 "lookahead" => $_[2],
847 "line" => $_[3],
848 }, $class;
849 }
850  
851 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
852 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
853  
854 sub code($$$$)
855 {
856 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=5 SCAR=34.0
857  
858 '
859 Parse::RecDescent::_Runtime::_trace(q{Trying action},
860 Parse::RecDescent::_Runtime::_tracefirst($text),
861 q{' . $rule->{name} . '},
862 $tracelevel)
863 if defined $::RD_TRACE;
864 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
865  
866 $_tok = ($_noactions) ? 0 : do ' . $self->{"code"} . ';
867 ' . ($self->{"lookahead"}<0?'if':'unless') . ' (defined $_tok)
868 {
869 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' action>> (return value: [undef])})
870 if defined $::RD_TRACE;
871 last;
872 }
873 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' action<< (return value: [}
874 . $_tok . q{])},
875 Parse::RecDescent::_Runtime::_tracefirst($text))
876 if defined $::RD_TRACE;
877 push @item, $_tok;
878 ' . ($self->{line}>=0 ? '$item{'. $self->{hashname} .'}=$_tok;' : '' ) .'
879 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
880 '
881 }
882  
883  
884 5 1;
885  
886 package Parse::RecDescent::_Runtime::Directive;
887 5 $Parse::RecDescent::_Runtime::Directive::VERSION = '2.20151210';
888 0 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
889  
890 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
891 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
892 0 ▶sub describe { $_[1] ? '' : $_[0]->{name} }
Subroutine describe: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 0 0
893  
894 sub new ($$$$$)
895 {
896 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
897 0 bless
898 {
899 "code" => $_[1],
900 "lookahead" => $_[2],
901 "line" => $_[3],
902 "name" => $_[4],
903 }, $class;
904 }
905  
906 sub code($$$$)
907 {
908 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=5 SCAR=34.0
909  
910 '
911 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
912  
913 Parse::RecDescent::_Runtime::_trace(q{Trying directive: ['
914 . $self->describe . ']},
915 Parse::RecDescent::_Runtime::_tracefirst($text),
916 q{' . $rule->{name} . '},
917 $tracelevel)
918 if defined $::RD_TRACE; ' .'
919 $_tok = do { ' . $self->{"code"} . ' };
920 if (defined($_tok))
921 {
922 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' directive<< (return value: [}
923 . $_tok . q{])},
924 Parse::RecDescent::_Runtime::_tracefirst($text))
925 if defined $::RD_TRACE;
926 }
927 else
928 {
929 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' directive>>},
930 Parse::RecDescent::_Runtime::_tracefirst($text))
931 if defined $::RD_TRACE;
932 }
933 ' . ($self->{"lookahead"} ? '$text = $_savetext and ' : '' ) .'
934 last '
935 . ($self->{"lookahead"}<0?'if':'unless') . ' defined $_tok;
936 push @item, $item{'.$self->{hashname}.'}=$_tok;
937 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
938 '
939 }
940  
941 5 1;
942  
943 package Parse::RecDescent::_Runtime::UncondReject;
944 5 $Parse::RecDescent::_Runtime::UncondReject::VERSION = '2.20151210';
945 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
946 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
947 0 ▶sub describe { $_[1] ? '' : $_[0]->{name} }
Subroutine describe: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 0 0
948 0 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
949  
950 sub new ($$$;$)
951 {
952 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
953 0 bless
954 {
955 "lookahead" => $_[1],
956 "line" => $_[2],
957 "name" => $_[3],
958 }, $class;
959 }
960  
961 # MARK, YOU MAY WANT TO OPTIMIZE THIS.
962  
963  
964 sub code($$$$)
965 {
966 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=4 SCAR=30.0
967  
968 '
969 Parse::RecDescent::_Runtime::_trace(q{>>Rejecting production<< (found '
970 . $self->describe . ')},
971 Parse::RecDescent::_Runtime::_tracefirst($text),
972 q{' . $rule->{name} . '},
973 $tracelevel)
974 if defined $::RD_TRACE;
975 undef $return;
976 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
977  
978 $_tok = undef;
979 ' . ($self->{"lookahead"} ? '$text = $_savetext and ' : '' ) .'
980 last '
981 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
982 '
983 }
984  
985 5 1;
986  
987 package Parse::RecDescent::_Runtime::Error;
988 5 $Parse::RecDescent::_Runtime::Error::VERSION = '2.20151210';
989 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
990 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
991 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
992 0 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
993  
994 sub new ($$$$$)
995 {
996 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
997 0 bless
998 {
999 "msg" => $_[1],
1000 "lookahead" => $_[2],
1001 "commitonly" => $_[3],
1002 "line" => $_[4],
1003 }, $class;
1004 }
1005  
1006 sub code($$$$)
1007 {
1008 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=3 SCAR=24.8
1009  
1010 0 my $action = '';
1011  
1012 0 ▶ if ($self->{"msg"}) # ERROR MESSAGE SUPPLIED
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'msg'}) { } 0 0 0
1013 {
1014 #WAS: $action .= "Parse::RecDescent::_Runtime::_error(qq{$self->{msg}}" . ',$thisline);';
1015 0 $action .= 'push @{$thisparser->{errors}}, [qq{'.$self->{msg}.'},$thisline];';
1016  
1017 }
1018 else # GENERATE ERROR MESSAGE DURING PARSE
1019 {
1020 0 $action .= '
1021 my $rule = $item[0];
1022 $rule =~ s/_/ /g;
1023 #WAS: Parse::RecDescent::_Runtime::_error("Invalid $rule: " . $expectation->message() ,$thisline);
1024 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
1025 ';
1026 }
1027  
1028 my $dir =
1029 new Parse::RecDescent::_Runtime::Directive('if (' .
1030 ($self->{"commitonly"} ? '$commit' : '1') .
1031 ") { do {$action} unless ".' $_noactions; undef } else {0}',
1032 0 ▶ $self->{"lookahead"},0,$self->describe);
Branch: 1 branch
BranchTrueFalseTotal
$self->{'commitonly'} ? : 0 0 0
1033 0 $dir->{hashname} = $self->{hashname};
1034 0 return $dir->code($namespace, $rule, 0);
1035 }
1036  
1037 5 1;
1038  
1039 package Parse::RecDescent::_Runtime::Token;
1040 5 $Parse::RecDescent::_Runtime::Token::VERSION = '2.20151210';
1041 0 ▶sub sethashname { $_[0]->{hashname} = '__PATTERN' . ++$_[1]->{patcount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
1042  
1043 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
1044 0 ▶sub isterminal { 1 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1045 0 ▶sub describe ($) { shift->{'description'}}
Subroutine describe: not called CC=1 SCAR=6.9
1046  
1047  
1048 # ARGS ARE: $self, $pattern, $left_delim, $modifiers, $lookahead, $linenum
1049 sub new ($$$$$$)
1050 {
1051 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
1052 0 my $pattern = $_[1];
1053 0 my $pat = $_[1];
1054 0 my $ldel = $_[2];
1055 0 my $rdel = $ldel;
1056 0 $rdel =~ tr/{[(</}])>/;
1057  
1058 0 my $mod = $_[3];
1059  
1060 0 my $desc;
1061  
1062 0 ▶ if ($ldel eq '/') { $desc = "$ldel$pattern$rdel$mod" }
Branch: 1 branch
BranchTrueFalseTotal
if ($ldel eq '/') { } 0 0 0
1063 0 else { $desc = "m$ldel$pattern$rdel$mod" }
1064 0 $desc =~ s/\\/\\\\/g;
1065 0 $desc =~ s/\$$/\\\$/g;
1066 0 $desc =~ s/}/\\}/g;
1067 0 $desc =~ s/{/\\{/g;
1068  
1069 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
1070 local \$SIG{__WARN__} = sub {0};
1071 '' =~ m$ldel$pattern$rdel$mod" and $@)
1072 {
1073 0 Parse::RecDescent::_Runtime::_warn(3, "Token pattern \"m$ldel$pattern$rdel$mod\"
1074 may not be a valid regular expression",
1075 $_[5]);
1076 0 $@ =~ s/ at \(eval.*/./;
1077 0 Parse::RecDescent::_Runtime::_hint($@);
1078 }
1079  
1080 # QUIETLY PREVENT (WELL-INTENTIONED) CALAMITY
1081 0 $mod =~ s/[gc]//g;
1082 0 $pattern =~ s/(\A|[^\\])\\G/$1/g;
1083  
1084 0 bless
1085 {
1086 "pattern" => $pattern,
1087 "ldelim" => $ldel,
1088 "rdelim" => $rdel,
1089 "mod" => $mod,
1090 "lookahead" => $_[4],
1091 "line" => $_[5],
1092 "description" => $desc,
1093 }, $class;
1094 }
1095  
1096  
1097 sub code($$$$$)
1098 {
1099 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=8 SCAR=42.8
1100 0 my $ldel = $self->{"ldelim"};
1101 0 my $rdel = $self->{"rdelim"};
1102 0 my $sdel = $ldel;
1103 0 my $mod = $self->{"mod"};
1104  
1105 0 $sdel =~ s/[[{(<]/{}/;
1106  
1107 my $code = '
1108 Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [' . $self->describe
1109 . ']}, Parse::RecDescent::_Runtime::_tracefirst($text),
1110 q{' . $rule->{name} . '},
1111 $tracelevel)
1112 if defined $::RD_TRACE;
1113 undef $lastsep;
1114 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1115 : $self->describe ) . '})->at($text);
1116 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1117  
1118 ' . ($self->{"lookahead"}<0?'if':'unless')
1119 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1120 . ($check->{itempos}? 'do {'.Parse::RecDescent::_Runtime::Production::incitempos().' 1} and ' : '')
1121 . ' $text =~ m' . $ldel . '\A(?:' . $self->{"pattern"} . ')' . $rdel . $mod . ')
1122 {
1123 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;') .
1124 ($check->{itempos} ? Parse::RecDescent::_Runtime::Production::unincitempos() : '') . '
1125 $expectation->failed();
1126 Parse::RecDescent::_Runtime::_trace(q{<<Didn\'t match terminal>>},
1127 Parse::RecDescent::_Runtime::_tracefirst($text))
1128 if defined $::RD_TRACE;
1129  
1130 last;
1131 }
1132 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1133 substr($text,0,length($current_match),q{});
1134 Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
1135 . $current_match . q{])},
1136 Parse::RecDescent::_Runtime::_tracefirst($text))
1137 if defined $::RD_TRACE;
1138 push @item, $item{'.$self->{hashname}.'}=$current_match;
1139 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
1140 ';
1141  
1142 0 return $code;
1143 }
1144  
1145 5 1;
1146  
1147 package Parse::RecDescent::_Runtime::Literal;
1148 5 $Parse::RecDescent::_Runtime::Literal::VERSION = '2.20151210';
1149 0 ▶sub sethashname { $_[0]->{hashname} = '__STRING' . ++$_[1]->{strcount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
1150  
1151 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
1152 0 ▶sub isterminal { 1 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1153 0 ▶sub describe ($) { shift->{'description'} }
Subroutine describe: not called CC=1 SCAR=6.9
1154  
1155 sub new ($$$$)
1156 {
1157 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
1158  
1159 0 my $pattern = $_[1];
1160  
1161 0 my $desc = $pattern;
1162 0 $desc=~s/\\/\\\\/g;
1163 0 $desc=~s/}/\\}/g;
1164 0 $desc=~s/{/\\{/g;
1165  
1166 0 bless
1167 {
1168 "pattern" => $pattern,
1169 "lookahead" => $_[2],
1170 "line" => $_[3],
1171 "description" => "'$desc'",
1172 }, $class;
1173 }
1174  
1175  
1176 sub code($$$$)
1177 {
1178 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=8 SCAR=42.8
1179  
1180 my $code = '
1181 Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [' . $self->describe
1182 . ']},
1183 Parse::RecDescent::_Runtime::_tracefirst($text),
1184 q{' . $rule->{name} . '},
1185 $tracelevel)
1186 if defined $::RD_TRACE;
1187 undef $lastsep;
1188 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1189 : $self->describe ) . '})->at($text);
1190 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1191  
1192 ' . ($self->{"lookahead"}<0?'if':'unless')
1193 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1194 . ($check->{itempos}? 'do {'.Parse::RecDescent::_Runtime::Production::incitempos().' 1} and ' : '')
1195 . ' $text =~ m/\A' . quotemeta($self->{"pattern"}) . '/)
1196 {
1197 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;').'
1198 '. ($check->{itempos} ? Parse::RecDescent::_Runtime::Production::unincitempos() : '') . '
1199 $expectation->failed();
1200 Parse::RecDescent::_Runtime::_trace(qq{<<Didn\'t match terminal>>},
1201 Parse::RecDescent::_Runtime::_tracefirst($text))
1202 if defined $::RD_TRACE;
1203 last;
1204 }
1205 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1206 substr($text,0,length($current_match),q{});
1207 Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
1208 . $current_match . q{])},
1209 Parse::RecDescent::_Runtime::_tracefirst($text))
1210 if defined $::RD_TRACE;
1211 push @item, $item{'.$self->{hashname}.'}=$current_match;
1212 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
1213 ';
1214  
1215 0 return $code;
1216 }
1217  
1218 5 1;
1219  
1220 package Parse::RecDescent::_Runtime::InterpLit;
1221 5 $Parse::RecDescent::_Runtime::InterpLit::VERSION = '2.20151210';
1222 0 ▶sub sethashname { $_[0]->{hashname} = '__STRING' . ++$_[1]->{strcount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
1223  
1224 0 ▶sub issubrule { undef }
Subroutine issubrule: not called CC=1 SCAR=6.9
1225 0 ▶sub isterminal { 1 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1226 0 ▶sub describe ($) { shift->{'description'} }
Subroutine describe: not called CC=1 SCAR=6.9
1227  
1228 sub new ($$$$)
1229 {
1230 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
1231  
1232 0 my $pattern = $_[1];
1233 0 $pattern =~ s#/#\\/#g;
1234  
1235 0 my $desc = $pattern;
1236 0 $desc=~s/\\/\\\\/g;
1237 0 $desc=~s/}/\\}/g;
1238 0 $desc=~s/{/\\{/g;
1239  
1240 0 bless
1241 {
1242 "pattern" => $pattern,
1243 "lookahead" => $_[2],
1244 "line" => $_[3],
1245 "description" => "'$desc'",
1246 }, $class;
1247 }
1248  
1249 sub code($$$$)
1250 {
1251 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=8 SCAR=42.8
1252  
1253 my $code = '
1254 Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [' . $self->describe
1255 . ']},
1256 Parse::RecDescent::_Runtime::_tracefirst($text),
1257 q{' . $rule->{name} . '},
1258 $tracelevel)
1259 if defined $::RD_TRACE;
1260 undef $lastsep;
1261 $expectation->is(q{' . ($rule->hasleftmost($self) ? ''
1262 : $self->describe ) . '})->at($text);
1263 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) . '
1264  
1265 ' . ($self->{"lookahead"}<0?'if':'unless')
1266 . ' ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and '
1267 . ($check->{itempos}? 'do {'.Parse::RecDescent::_Runtime::Production::incitempos().' 1} and ' : '')
1268 . ' do { $_tok = "' . $self->{"pattern"} . '"; 1 } and
1269 substr($text,0,length($_tok)) eq $_tok and
1270 do { substr($text,0,length($_tok)) = ""; 1; }
1271 )
1272 {
1273 '.($self->{"lookahead"} ? '$text = $_savetext;' : '$text = $lastsep . $text if defined $lastsep;').'
1274 '. ($check->{itempos} ? Parse::RecDescent::_Runtime::Production::unincitempos() : '') . '
1275 $expectation->failed();
1276 Parse::RecDescent::_Runtime::_trace(q{<<Didn\'t match terminal>>},
1277 Parse::RecDescent::_Runtime::_tracefirst($text))
1278 if defined $::RD_TRACE;
1279 last;
1280 }
1281 Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
1282 . $_tok . q{])},
1283 Parse::RecDescent::_Runtime::_tracefirst($text))
1284 if defined $::RD_TRACE;
1285 push @item, $item{'.$self->{hashname}.'}=$_tok;
1286 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
1287 ';
1288  
1289 0 return $code;
1290 }
1291  
1292 5 1;
1293  
1294 package Parse::RecDescent::_Runtime::Subrule;
1295 5 $Parse::RecDescent::_Runtime::Subrule::VERSION = '2.20151210';
1296 0 ▶sub issubrule ($) { return $_[0]->{"subrule"} }
Subroutine issubrule: not called CC=1 SCAR=6.9
1297 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1298 ▶sub sethashname {}
Subroutine sethashname: not called CC=1 SCAR=0.0
1299  
1300 sub describe ($)
1301 {
1302 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
1303 0 ▶ $desc = "<matchrule:$desc>" if $_[0]->{"matchrule"};
Branch: 1 branch
BranchTrueFalseTotal
if $_[0]{"matchrule"} 0 0 0
1304 0 return $desc;
1305 }
1306  
1307 sub callsyntax($$)
1308 {
1309 0 ▶ if ($_[0]->{"matchrule"})
Subroutine callsyntax: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0]{'matchrule'}) { } 0 0 0
1310 {
1311 0 return "&{'$_[1]'.qq{$_[0]->{subrule}}}";
1312 }
1313 else
1314 {
1315 0 return $_[1].$_[0]->{"subrule"};
1316 }
1317 }
1318  
1319 sub new ($$$$;$$$)
1320 {
1321 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
1322 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
1323 {
1324 "subrule" => $_[1],
1325 "lookahead" => $_[2],
1326 "line" => $_[3],
1327 "implicit" => $_[4] || undef,
1328 "matchrule" => $_[5],
1329 "argcode" => $_[6] || undef,
1330 }, $class;
1331 }
1332  
1333  
1334 sub code($$$$)
1335 {
1336 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=9 SCAR=45.0
1337  
1338 '
1339 Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [' . $self->{"subrule"} . ']},
1340 Parse::RecDescent::_Runtime::_tracefirst($text),
1341 q{' . $rule->{"name"} . '},
1342 $tracelevel)
1343 if defined $::RD_TRACE;
1344 if (1) { no strict qw{refs};
1345 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1346 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1347 : 'q{'.$self->describe.'}' ) . ')->at($text);
1348 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' )
1349 . ($self->{"lookahead"}<0?'if':'unless')
1350 . ' (defined ($_tok = '
1351 . $self->callsyntax($namespace.'::')
1352 . '($thisparser,$text,$repeating,'
1353 . ($self->{"lookahead"}?'1':'$_noactions')
1354 . ($self->{argcode} ? ",sub { return $self->{argcode} }"
1355 : ',sub { \\@arg }')
1356 . ($check->{"itempos"}?',$itempos[$#itempos]':',undef')
1357 . ')))
1358 {
1359 '.($self->{"lookahead"} ? '$text = $_savetext;' : '').'
1360 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' subrule: ['
1361 . $self->{subrule} . ']>>},
1362 Parse::RecDescent::_Runtime::_tracefirst($text),
1363 q{' . $rule->{"name"} .'},
1364 $tracelevel)
1365 if defined $::RD_TRACE;
1366 $expectation->failed();
1367 last;
1368 }
1369 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' subrule: ['
1370 . $self->{subrule} . ']<< (return value: [}
1371 . $_tok . q{]},
1372  
1373 Parse::RecDescent::_Runtime::_tracefirst($text),
1374 q{' . $rule->{"name"} .'},
1375 $tracelevel)
1376 if defined $::RD_TRACE;
1377 $item{q{' . $self->{subrule} . '}} = $_tok;
1378 push @item, $_tok;
1379 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
1380 }
1381 '
1382 }
1383  
1384 package Parse::RecDescent::_Runtime::Repetition;
1385 5 $Parse::RecDescent::_Runtime::Repetition::VERSION = '2.20151210';
1386 0 ▶sub issubrule ($) { return $_[0]->{"subrule"} }
Subroutine issubrule: not called CC=1 SCAR=6.9
1387 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1388 ▶sub sethashname { }
Subroutine sethashname: not called CC=1 SCAR=0.0
1389  
1390 sub describe ($)
1391 {
1392 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
1393 0 ▶ $desc = "<matchrule:$desc>" if $_[0]->{"matchrule"};
Branch: 1 branch
BranchTrueFalseTotal
if $_[0]{"matchrule"} 0 0 0
1394 0 return $desc;
1395 }
1396  
1397 sub callsyntax($$)
1398 {
1399 0 ▶ if ($_[0]->{matchrule})
Subroutine callsyntax: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if ($_[0]{'matchrule'}) { } 0 0 0
1400 0 { return "sub { goto &{''.qq{$_[1]$_[0]->{subrule}}} }"; }
1401 else
1402 0 { return "\\&$_[1]$_[0]->{subrule}"; }
1403 }
1404  
1405 sub new ($$$$$$$$$$)
1406 {
1407 0 ▶ my ($self, $subrule, $repspec, $min, $max, $lookahead, $line, $parser, $matchrule, $argcode) = @_;
Subroutine new: not called CC=7 SCAR=40.3
1408 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
1409 0 ▶ ($max, $min) = ( $min, $max) if ($max<$min);
Branch: 1 branch
BranchTrueFalseTotal
if $max < $min 0 0 0
1410  
1411 0 my $desc;
1412 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
1413 0 { $desc = $parser->{"rules"}{$subrule}->expected }
1414  
1415 0 ▶ if ($lookahead)
Branch: 1 branch
BranchTrueFalseTotal
if ($lookahead) 0 0 0
1416 {
1417 0 ▶ if ($min>0)
Branch: 1 branch
BranchTrueFalseTotal
if ($min > 0) { } 0 0 0
1418 {
1419 0 return new Parse::RecDescent::_Runtime::Subrule($subrule,$lookahead,$line,$desc,$matchrule,$argcode);
1420 }
1421 else
1422 {
1423 0 Parse::RecDescent::_Runtime::_error("Not symbol (\"!\") before
1424 \"$subrule\" doesn't make
1425 sense.",$line);
1426 0 Parse::RecDescent::_Runtime::_hint("Lookahead for negated optional
1427 repetitions (such as
1428 \"!$subrule($repspec)\" can never
1429 succeed, since optional items always
1430 match (zero times at worst).
1431 Did you mean a single \"!$subrule\",
1432 instead?");
1433 }
1434 }
1435 bless
1436 {
1437 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
1438 "repspec" => $repspec,
1439 "min" => $min,
1440 "max" => $max,
1441 "lookahead" => $lookahead,
1442 "line" => $line,
1443 "expected" => $desc,
1444 "argcode" => $argcode || undef,
1445 "matchrule" => $matchrule,
1446 }, $class;
1447 }
1448  
1449 sub code($$$$)
1450 {
1451 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=7 SCAR=40.3
1452  
1453 my ($subrule, $repspec, $min, $max, $lookahead) =
1454 0 @{$self}{ qw{subrule repspec min max lookahead} };
1455  
1456 '
1457 Parse::RecDescent::_Runtime::_trace(q{Trying repeated subrule: [' . $self->describe . ']},
1458 Parse::RecDescent::_Runtime::_tracefirst($text),
1459 q{' . $rule->{"name"} . '},
1460 $tracelevel)
1461 if defined $::RD_TRACE;
1462 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1463 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1464 : 'q{'.$self->describe.'}' ) . ')->at($text);
1465 ' . ($self->{"lookahead"} ? '$_savetext = $text;' : '' ) .'
1466 unless (defined ($_tok = $thisparser->_parserepeat($text, '
1467 . $self->callsyntax($namespace.'::')
1468 . ', ' . $min . ', ' . $max . ', '
1469 . ($self->{"lookahead"}?'1':'$_noactions')
1470 . ',$expectation,'
1471 . ($self->{argcode} ? "sub { return $self->{argcode} }"
1472 : 'sub { \\@arg }')
1473 . ($check->{"itempos"}?',$itempos[$#itempos]':',undef')
1474 . ')))
1475 {
1476 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' repeated subrule: ['
1477 . $self->describe . ']>>},
1478 Parse::RecDescent::_Runtime::_tracefirst($text),
1479 q{' . $rule->{"name"} .'},
1480 $tracelevel)
1481 if defined $::RD_TRACE;
1482 last;
1483 }
1484 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' repeated subrule: ['
1485 . $self->{subrule} . ']<< (}
1486 . @$_tok . q{ times)},
1487  
1488 Parse::RecDescent::_Runtime::_tracefirst($text),
1489 q{' . $rule->{"name"} .'},
1490 $tracelevel)
1491 if defined $::RD_TRACE;
1492 $item{q{' . "$self->{subrule}($self->{repspec})" . '}} = $_tok;
1493 push @item, $_tok;
1494 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
1495  
1496 '
1497 }
1498  
1499 package Parse::RecDescent::_Runtime::Result;
1500 5 $Parse::RecDescent::_Runtime::Result::VERSION = '2.20151210';
1501 0 ▶sub issubrule { 0 }
Subroutine issubrule: not called CC=1 SCAR=6.9
1502 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1503 0 ▶sub describe { '' }
Subroutine describe: not called CC=1 SCAR=6.9
1504  
1505 sub new
1506 {
1507 0 ▶ my ($class, $pos) = @_;
Subroutine new: not called CC=1 SCAR=6.9
1508  
1509 0 bless {}, $class;
1510 }
1511  
1512 sub code($$$$)
1513 {
1514 0 ▶ my ($self, $namespace, $rule) = @_;
Subroutine code: not called CC=1 SCAR=6.9
1515  
1516 0 '
1517 $return = $item[-1];
1518 ';
1519 }
1520  
1521 package Parse::RecDescent::_Runtime::Operator;
1522 5 $Parse::RecDescent::_Runtime::Operator::VERSION = '2.20151210';
1523 5 my @opertype = ( " non-optional", "n optional" );
1524  
1525 0 ▶sub issubrule { 0 }
Subroutine issubrule: not called CC=1 SCAR=6.9
1526 0 ▶sub isterminal { 0 }
Subroutine isterminal: not called CC=1 SCAR=6.9
1527  
1528 0 ▶sub describe { $_[0]->{"expected"} }
Subroutine describe: not called CC=1 SCAR=6.9
1529 0 ▶sub sethashname { $_[0]->{hashname} = '__DIRECTIVE' . ++$_[1]->{dircount} . '__'; }
Subroutine sethashname: not called CC=1 SCAR=6.9
1530  
1531  
1532 sub new
1533 {
1534 0 ▶ my ($class, $type, $minrep, $maxrep, $leftarg, $op, $rightarg) = @_;
Subroutine new: not called CC=1 SCAR=6.9
1535  
1536 0 bless
1537 {
1538 "type" => "${type}op",
1539 "leftarg" => $leftarg,
1540 "op" => $op,
1541 "min" => $minrep,
1542 "max" => $maxrep,
1543 "rightarg" => $rightarg,
1544 "expected" => "<${type}op: ".$leftarg->describe." ".$op->describe." ".$rightarg->describe.">",
1545 }, $class;
1546 }
1547  
1548 sub code($$$$)
1549 {
1550 0 ▶ my ($self, $namespace, $rule, $check) = @_;
Subroutine code: not called CC=15 SCAR=54.8
1551  
1552 0 my @codeargs = @_[1..$#_];
1553  
1554 my ($leftarg, $op, $rightarg) =
1555 0 @{$self}{ qw{leftarg op rightarg} };
1556  
1557 my $code = '
1558 Parse::RecDescent::_Runtime::_trace(q{Trying operator: [' . $self->describe . ']},
1559 Parse::RecDescent::_Runtime::_tracefirst($text),
1560 0 ▶ q{' . $rule->{"name"} . '},
Branch: 1 branch
BranchTrueFalseTotal
$rule->hasleftmost($self) ? : 0 0 0
1561 $tracelevel)
1562 if defined $::RD_TRACE;
1563 $expectation->is(' . ($rule->hasleftmost($self) ? 'q{}'
1564 # WAS : 'qq{'.$self->describe.'}' ) . ')->at($text);
1565 : 'q{'.$self->describe.'}' ) . ')->at($text);
1566  
1567 $_tok = undef;
1568 OPLOOP: while (1)
1569 {
1570 $repcount = 0;
1571 my @item;
1572 my %item;
1573 ';
1574  
1575 $code .= '
1576 my $_itempos = $itempos[-1];
1577 my $itemposfirst;
1578 0 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 0 0 0
1579  
1580 0 ▶ if ($self->{type} eq "leftop" )
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{'type'} eq 'leftop') { } 0 0 0
1581 {
1582 0 $code .= '
1583 # MATCH LEFTARG
1584 ' . $leftarg->code(@codeargs) . '
1585  
1586 ';
1587  
1588 $code .= '
1589 if (defined($_itempos) and !defined($itemposfirst))
1590 {
1591 $itemposfirst = Parse::RecDescent::_Runtime::Production::_duplicate_itempos($_itempos);
1592 }
1593 0 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 0 0 0
1594  
1595 $code .= '
1596 $repcount++;
1597  
1598 my $savetext = $text;
1599 my $backtrack;
1600  
1601 # MATCH (OP RIGHTARG)(s)
1602 while ($repcount < ' . $self->{max} . ')
1603 {
1604 $backtrack = 0;
1605 ' . $op->code(@codeargs) . '
1606 ' . ($op->isterminal() ? 'pop @item;' : '$backtrack=1;' ) . '
1607 ' . (ref($op) eq 'Parse::RecDescent::_Runtime::Token'
1608 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
1609 : "" ) . '
1610 ' . $rightarg->code(@codeargs) . '
1611 $savetext = $text;
1612 $repcount++;
1613 }
1614 $text = $savetext;
1615 pop @item if $backtrack;
1616  
1617 ';
1618 }
1619 else
1620 {
1621 $code .= '
1622 my $savetext = $text;
1623 my $backtrack;
1624 # MATCH (LEFTARG OP)(s)
1625 0 while ($repcount < ' . $self->{max} . ')
1626 {
1627 $backtrack = 0;
1628 ' . $leftarg->code(@codeargs) . '
1629 ';
1630 $code .= '
1631 if (defined($_itempos) and !defined($itemposfirst))
1632 {
1633 $itemposfirst = Parse::RecDescent::_Runtime::Production::_duplicate_itempos($_itempos);
1634 }
1635 0 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 0 0 0
1636  
1637 $code .= '
1638 $repcount++;
1639 $backtrack = 1;
1640 ' . $op->code(@codeargs) . '
1641 $savetext = $text;
1642 ' . ($op->isterminal() ? 'pop @item;' : "" ) . '
1643 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
1644 }
1645 $text = $savetext;
1646 pop @item if $backtrack;
1647  
1648 # MATCH RIGHTARG
1649 ' . $rightarg->code(@codeargs) . '
1650 $repcount++;
1651 ';
1652 }
1653  
1654 0 ▶ $code .= 'unless (@item) { undef $_tok; last }' unless $self->{min}==0;
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"min"} == 0 0 0 0
1655  
1656 0 $code .= '
1657 $_tok = [ @item ];
1658 ';
1659  
1660  
1661 $code .= '
1662 if (defined $itemposfirst)
1663 {
1664 Parse::RecDescent::_Runtime::Production::_update_itempos(
1665 $_itempos, $itemposfirst, undef, [qw(from)]);
1666 }
1667 0 ▶' if $check->{itempos};
Branch: 1 branch
BranchTrueFalseTotal
if $check->{"itempos"} 0 0 0
1668  
1669 0 $code .= '
1670 last;
1671 } # end of OPLOOP
1672 ';
1673  
1674 $code .= '
1675 unless ($repcount>='.$self->{min}.')
1676 {
1677 Parse::RecDescent::_Runtime::_trace(q{<<'.Parse::RecDescent::_Runtime::_matchtracemessage($self,1).' operator: ['
1678 . $self->describe
1679 . ']>>},
1680 Parse::RecDescent::_Runtime::_tracefirst($text),
1681 q{' . $rule->{"name"} .'},
1682 $tracelevel)
1683 if defined $::RD_TRACE;
1684 $expectation->failed();
1685 last;
1686 }
1687 Parse::RecDescent::_Runtime::_trace(q{>>'.Parse::RecDescent::_Runtime::_matchtracemessage($self).' operator: ['
1688 . $self->describe
1689 . ']<< (return value: [}
1690 . qq{@{$_tok||[]}} . q{]},
1691 Parse::RecDescent::_Runtime::_tracefirst($text),
1692 q{' . $rule->{"name"} .'},
1693 $tracelevel)
1694 if defined $::RD_TRACE;
1695  
1696 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
1697 ';
1698  
1699 0 return $code;
1700 }
1701  
1702  
1703 package Parse::RecDescent::_Runtime::Expectation;
1704 5 $Parse::RecDescent::_Runtime::Expectation::VERSION = '2.20151210';
1705 sub new ($)
1706 {
1707 3983 ▶ bless {
Subroutine new: called CC=1 SCAR=0.0
1708 "failed" => 0,
1709 "expected" => "",
1710 "unexpected" => "",
1711 "lastexpected" => "",
1712 "lastunexpected" => "",
1713 "defexpected" => $_[1],
1714 };
1715 }
1716  
1717 sub is ($$)
1718 {
1719 7875 ▶ $_[0]->{lastexpected} = $_[1]; return $_[0];
Subroutine is: called CC=1 SCAR=0.0
1720 }
1721  
1722 sub at ($$)
1723 {
1724 11858 ▶ $_[0]->{lastunexpected} = $_[1]; return $_[0];
Subroutine at: called CC=1 SCAR=0.0
1725 }
1726  
1727 sub failed ($)
1728 {
1729 4945 ▶ return unless $_[0]->{lastexpected};
Subroutine failed: called CC=4 SCAR=14.2
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"lastexpected"} 4557 388 4945
1730 388 ▶ $_[0]->{expected} = $_[0]->{lastexpected} unless $_[0]->{failed};
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"failed"} 388 0 388
1731 388 ▶ $_[0]->{unexpected} = $_[0]->{lastunexpected} unless $_[0]->{failed};
Branch: 1 branch
BranchTrueFalseTotal
unless $_[0]{"failed"} 388 0 388
1732 388 $_[0]->{failed} = 1;
1733 }
1734  
1735 sub message ($)
1736 {
1737 0 ▶ my ($self) = @_;
Subroutine message: not called CC=4 SCAR=30.0
1738 0 ▶ $self->{expected} = $self->{defexpected} unless $self->{expected};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"expected"} 0 0 0
1739 0 $self->{expected} =~ s/_/ /g;
1740 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
1741 {
1742 0 return "Was expecting $self->{expected}";
1743 }
1744 else
1745 {
1746 0 $self->{unexpected} =~ /\s*(.*)/;
1747 0 return "Was expecting $self->{expected} but found \"$1\" instead";
1748 }
1749 }
1750  
1751 5 1;
1752  
1753 package Parse::RecDescent::_Runtime;
1754  
1755 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
1756 5 ▶use vars qw ( $AUTOLOAD $VERSION $_FILENAME);
Subroutine BEGIN: called CC=1 SCAR=0.0
1757  
1758 5 my $ERRORS = 0;
1759  
1760 5 our $VERSION = '1.967009';
1761 5 $VERSION = eval $VERSION;
1762 5 $_FILENAME=__FILE__;
1763  
1764 # BUILDING A PARSER
1765  
1766 5 my $nextnamespace = "namespace000001";
1767  
1768 sub _nextnamespace()
1769 {
1770 0 ▶ return "Parse::RecDescent::_Runtime::" . $nextnamespace++;
Subroutine _nextnamespace: not called CC=1 SCAR=6.9
1771 }
1772  
1773 # ARGS ARE: $class, $grammar, $compiling, $namespace
1774 sub new ($$$$)
1775 {
1776 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
1777 0 local $Parse::RecDescent::_Runtime::compiling = $_[2];
1778 0 ▶ my $name_space_name = defined $_[3]
Branch: 1 branch
BranchTrueFalseTotal
defined $_[3] ? : 0 0 0
1779 ? "Parse::RecDescent::_Runtime::".$_[3]
1780 : _nextnamespace();
1781 0 my $self =
1782 {
1783 "rules" => {},
1784 "namespace" => $name_space_name,
1785 "startcode" => '',
1786 "localvars" => '',
1787 "_AUTOACTION" => undef,
1788 "_AUTOTREE" => undef,
1789  
1790 # Precompiled parsers used to set _precompiled, but that
1791 # wasn't present in some versions of Parse::RecDescent::_Runtime used to
1792 # build precompiled parsers. Instead, set a new
1793 # _not_precompiled flag, which is remove from future
1794 # Precompiled parsers at build time.
1795 "_not_precompiled" => 1,
1796 };
1797  
1798  
1799 0 ▶ if ($::RD_AUTOACTION) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::RD_AUTOACTION) 0 0 0
1800 0 my $sourcecode = $::RD_AUTOACTION;
1801 0 ▶ $sourcecode = "{ $sourcecode }"
Branch: 1 branch
BranchTrueFalseTotal
unless $sourcecode =~ /\A\s*\{.*\}\s*\Z/ 0 0 0
1802 unless $sourcecode =~ /\A\s*\{.*\}\s*\Z/;
1803 $self->{_check}{itempos} =
1804 0 $sourcecode =~ /\@itempos\b|\$itempos\s*\[/;
1805 $self->{_AUTOACTION}
1806 0 = new Parse::RecDescent::_Runtime::Action($sourcecode,0,-1)
1807 }
1808  
1809 0 bless $self, $class;
1810 0 return $self->Replace($_[1])
1811 }
1812  
1813 sub Compile($$$$) {
1814 0 ▶ die "Compilation of Parse::RecDescent::_Runtime grammars not yet implemented\n";
Subroutine Compile: not called CC=1 SCAR=6.9
1815 }
1816  
1817 sub DESTROY {
1818 13 ▶ my ($self) = @_;
Subroutine DESTROY: called CC=4 SCAR=20.9
1819 13 my $namespace = $self->{namespace};
1820 13 $namespace =~ s/Parse::RecDescent::_Runtime:://;
1821 13 ▶ if ($self->{_not_precompiled}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"_not_precompiled"}) 0 13 13
1822 # BEGIN WORKAROUND
1823 # Perl has a bug that creates a circular reference between
1824 # @ISA and that variable's stash:
1825 # https://rt.perl.org/rt3/Ticket/Display.html?id=92708
1826 # Emptying the array before deleting the stash seems to
1827 # prevent the leak. Once the ticket above has been resolved,
1828 # these two lines can be removed.
1829 5 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
1830 0 @{$self->{namespace} . '::ISA'} = ();
1831 # END WORKAROUND
1832  
1833 # Some grammars may contain circular references between rules,
1834 # such as:
1835 # a: 'ID' | b
1836 # b: '(' a ')'
1837 # Unless these references are broken, the subs stay around on
1838 # stash deletion below. Iterate through the stash entries and
1839 # for each defined code reference, set it to reference sub {}
1840 # instead.
1841 {
1842 0 local $^W; # avoid 'sub redefined' warnings.
1843 0 ▶ my $blank_sub = sub {};
Subroutine __ANON__: not called CC=1 SCAR=6.9
1844 0 ▶ while (my ($name, $glob) = each %{"Parse::RecDescent::_Runtime::$namespace\::"}) {
Branch: 1 branch
BranchTrueFalseTotal
if (() = each %{"Parse::RecDescent::_Runtime::${namespace}::";}) 0 0 0
1845 0 ▶ *$glob = $blank_sub if defined &$glob;
Branch: 1 branch
BranchTrueFalseTotal
if defined &$glob 0 0 0
1846 }
1847 }
1848  
1849 # Delete the namespace's stash
1850 0 delete $Parse::RecDescent::_Runtime::{$namespace.'::'};
1851 }
1852 }
1853  
1854 # BUILDING A GRAMMAR....
1855  
1856 # ARGS ARE: $self, $grammar, $isimplicit, $isleftop
1857 sub Replace ($$)
1858 {
1859 # set $replace = 1 for _generate
1860 0 ▶ splice(@_, 2, 0, 1);
Subroutine Replace: not called CC=1 SCAR=6.9
1861  
1862 0 return _generate(@_);
1863 }
1864  
1865 # ARGS ARE: $self, $grammar, $isimplicit, $isleftop
1866 sub Extend ($$)
1867 {
1868 # set $replace = 0 for _generate
1869 0 ▶ splice(@_, 2, 0, 0);
Subroutine Extend: not called CC=1 SCAR=6.9
1870  
1871 0 return _generate(@_);
1872 }
1873  
1874 sub _no_rule ($$;$)
1875 {
1876 0 ▶ _error("Ruleless $_[0] at start of grammar.",$_[1]);
Subroutine _no_rule: not called CC=2 SCAR=17.9
1877 0 ▶ my $desc = $_[2] ? "\"$_[2]\"" : "";
Branch: 1 branch
BranchTrueFalseTotal
$_[2] ? : 0 0 0
1878 0 _hint("You need to define a rule for the $_[0] $desc
1879 to be part of.");
1880 }
1881  
1882 5 my $NEGLOOKAHEAD = '\G(\s*\.\.\.\!)';
1883 5 my $POSLOOKAHEAD = '\G(\s*\.\.\.)';
1884 5 my $RULE = '\G\s*(\w+)[ \t]*:';
1885 5 my $PROD = '\G\s*([|])';
1886 5 my $TOKEN = q{\G\s*/((\\\\/|\\\\\\\\|[^/])*)/([cgimsox]*)};
1887 5 my $MTOKEN = q{\G\s*(m\s*[^\w\s])};
1888 5 my $LITERAL = q{\G\s*'((\\\\['\\\\]|[^'])*)'};
1889 5 my $INTERPLIT = q{\G\s*"((\\\\["\\\\]|[^"])*)"};
1890 5 my $SUBRULE = '\G\s*(\w+)';
1891 5 my $MATCHRULE = '\G(\s*<matchrule:)';
1892 5 my $SIMPLEPAT = '((\\s+/[^/\\\\]*(?:\\\\.[^/\\\\]*)*/)?)';
1893 5 my $OPTIONAL = '\G\((\?)'.$SIMPLEPAT.'\)';
1894 5 my $ANY = '\G\((s\?)'.$SIMPLEPAT.'\)';
1895 5 my $MANY = '\G\((s|\.\.)'.$SIMPLEPAT.'\)';
1896 5 my $EXACTLY = '\G\(([1-9]\d*)'.$SIMPLEPAT.'\)';
1897 5 my $BETWEEN = '\G\((\d+)\.\.([1-9]\d*)'.$SIMPLEPAT.'\)';
1898 5 my $ATLEAST = '\G\((\d+)\.\.'.$SIMPLEPAT.'\)';
1899 5 my $ATMOST = '\G\(\.\.([1-9]\d*)'.$SIMPLEPAT.'\)';
1900 5 my $BADREP = '\G\((-?\d+)?\.\.(-?\d+)?'.$SIMPLEPAT.'\)';
1901 5 my $ACTION = '\G\s*\{';
1902 5 my $IMPLICITSUBRULE = '\G\s*\(';
1903 5 my $COMMENT = '\G\s*(#.*)';
1904 5 my $COMMITMK = '\G\s*<commit>';
1905 5 my $UNCOMMITMK = '\G\s*<uncommit>';
1906 5 my $QUOTELIKEMK = '\G\s*<perl_quotelike>';
1907 5 my $CODEBLOCKMK = '\G\s*<perl_codeblock(?:\s+([][()<>{}]+))?>';
1908 5 my $VARIABLEMK = '\G\s*<perl_variable>';
1909 5 my $NOCHECKMK = '\G\s*<nocheck>';
1910 5 my $AUTOACTIONPATMK = '\G\s*<autoaction:';
1911 5 my $AUTOTREEMK = '\G\s*<autotree(?::\s*([\w:]+)\s*)?>';
1912 5 my $AUTOSTUBMK = '\G\s*<autostub>';
1913 5 my $AUTORULEMK = '\G\s*<autorule:(.*?)>';
1914 5 my $REJECTMK = '\G\s*<reject>';
1915 5 my $CONDREJECTMK = '\G\s*<reject:';
1916 5 my $SCOREMK = '\G\s*<score:';
1917 5 my $AUTOSCOREMK = '\G\s*<autoscore:';
1918 5 my $SKIPMK = '\G\s*<skip:';
1919 5 my $OPMK = '\G\s*<(left|right)op(?:=(\'.*?\'))?:';
1920 5 my $ENDDIRECTIVEMK = '\G\s*>';
1921 5 my $RESYNCMK = '\G\s*<resync>';
1922 5 my $RESYNCPATMK = '\G\s*<resync:';
1923 5 my $RULEVARPATMK = '\G\s*<rulevar:';
1924 5 my $DEFERPATMK = '\G\s*<defer:';
1925 5 my $TOKENPATMK = '\G\s*<token:';
1926 5 my $AUTOERRORMK = '\G\s*<error(\??)>';
1927 5 my $MSGERRORMK = '\G\s*<error(\??):';
1928 5 my $NOCHECK = '\G\s*<nocheck>';
1929 5 my $WARNMK = '\G\s*<warn((?::\s*(\d+)\s*)?)>';
1930 5 my $HINTMK = '\G\s*<hint>';
1931 5 my $TRACEBUILDMK = '\G\s*<trace_build((?::\s*(\d+)\s*)?)>';
1932 5 my $TRACEPARSEMK = '\G\s*<trace_parse((?::\s*(\d+)\s*)?)>';
1933 5 my $UNCOMMITPROD = $PROD.'\s*<uncommit';
1934 5 my $ERRORPROD = $PROD.'\s*<error';
1935 5 my $LONECOLON = '\G\s*:';
1936 5 my $OTHER = '\G\s*([^\s]+)';
1937  
1938 5 my @lines = 0;
1939  
1940 sub _generate
1941 {
1942 0 ▶ my ($self, $grammar, $replace, $isimplicit, $isleftop) = (@_, 0);
Subroutine _generate: not called CC=238 SCAR=109.5
1943  
1944 0 my $aftererror = 0;
1945 0 my $lookahead = 0;
1946 0 my $lookaheadspec = "";
1947 0 my $must_pop_lines;
1948 0 ▶ if (! $lines[-1]) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($lines[-1]) 0 0 0
1949 0 push @lines, _linecount($grammar) ;
1950 0 $must_pop_lines = 1;
1951 }
1952 $self->{_check}{itempos} = ($grammar =~ /\@itempos\b|\$itempos\s*\[/)
1953 0 ▶ unless $self->{_check}{itempos};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"_check"}{"itempos"} 0 0 0
1954 0 for (qw(thisoffset thiscolumn prevline prevoffset prevcolumn))
1955 {
1956 $self->{_check}{$_} =
1957 ($grammar =~ /\$$_/) || $self->{_check}{itempos}
1958 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
1959 }
1960 0 my $line;
1961  
1962 0 my $rule = undef;
1963 0 my $prod = undef;
1964 0 my $item = undef;
1965 0 my $lastgreedy = '';
1966 0 pos $grammar = 0;
1967 0 study $grammar;
1968  
1969 0 local $::RD_HINT = $::RD_HINT;
1970 0 local $::RD_WARN = $::RD_WARN;
1971 0 local $::RD_TRACE = $::RD_TRACE;
1972 0 local $::RD_CHECK = $::RD_CHECK;
1973  
1974 0 ▶ while (pos $grammar < length $grammar)
Branch: 1 branch
BranchTrueFalseTotal
if (pos $grammar < length $grammar) 0 0 0
1975 {
1976 0 $line = $lines[-1] - _linecount($grammar) + 1;
1977 0 my $commitonly;
1978 0 my $code = "";
1979 0 my @components = ();
1980 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
1981 {
1982 0 _parse("a comment",0,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
1983 0 next;
1984 }
1985 elsif ($grammar =~ m/$NEGLOOKAHEAD/gco)
1986 {
1987 0 _parse("a negative lookahead",$aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
1988 0 ▶ $lookahead = $lookahead ? -$lookahead : -1;
Branch: 1 branch
BranchTrueFalseTotal
$lookahead ? : 0 0 0
1989 0 $lookaheadspec .= $1;
1990 0 next; # SKIP LOOKAHEAD RESET AT END OF while LOOP
1991 }
1992 elsif ($grammar =~ m/$POSLOOKAHEAD/gco)
1993 {
1994 0 _parse("a positive lookahead",$aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
1995 0 ▶ $lookahead = $lookahead ? $lookahead : 1;
Branch: 1 branch
BranchTrueFalseTotal
$lookahead ? : 0 0 0
1996 0 $lookaheadspec .= $1;
1997 0 next; # SKIP LOOKAHEAD RESET AT END OF while LOOP
1998 }
1999 ▶ 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
2000 0 and do { ($code) = extract_codeblock($grammar); $code })
2001 {
2002 0 _parse("an action", $aftererror, $line, $code);
2003 0 $item = new Parse::RecDescent::_Runtime::Action($code,$lookahead,$line);
2004 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
2005 or $self->_addstartcode($code);
2006 }
2007 ▶ 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
2008 0 and do { ($code) = extract_codeblock($grammar,'{([',undef,'(',1);
2009 0 $code })
2010 {
2011 0 $code =~ s/\A\s*\(|\)\Z//g;
2012 0 _parse("an implicit subrule", $aftererror, $line,
2013 "( $code )");
2014 0 my $implicit = $rule->nextimplicit;
2015 return undef
2016 0 ▶ if !$self->_generate("$implicit : $code",$replace,1);
Branch: 1 branch
BranchTrueFalseTotal
unless $self->_generate("$implicit : $code", $replace, 1) 0 0 0
2017 0 my $pos = pos $grammar;
2018 0 substr($grammar,$pos,0,$implicit);
2019 0 pos $grammar = $pos;;
2020 }
2021 elsif ($grammar =~ m/$ENDDIRECTIVEMK/gco)
2022 {
2023  
2024 # EXTRACT TRAILING REPETITION SPECIFIER (IF ANY)
2025  
2026 0 my ($minrep,$maxrep) = (1,$MAXREP);
2027 0 ▶ if ($grammar =~ m/\G[(]/gc)
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar =~ /\G[(]/cg) 0 0 0
2028 {
2029 0 pos($grammar)--;
2030  
2031 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
2032 0 { ($minrep, $maxrep) = (0,1) }
2033 elsif ($grammar =~ m/$ANY/gco)
2034 0 { $minrep = 0 }
2035 elsif ($grammar =~ m/$EXACTLY/gco)
2036 0 { ($minrep, $maxrep) = ($1,$1) }
2037 elsif ($grammar =~ m/$BETWEEN/gco)
2038 0 { ($minrep, $maxrep) = ($1,$2) }
2039 elsif ($grammar =~ m/$ATLEAST/gco)
2040 0 { $minrep = $1 }
2041 elsif ($grammar =~ m/$ATMOST/gco)
2042 0 { $maxrep = $1 }
2043 elsif ($grammar =~ m/$MANY/gco)
2044 { }
2045 elsif ($grammar =~ m/$BADREP/gco)
2046 {
2047 0 _parse("an invalid repetition specifier", 0,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2048 0 _error("Incorrect specification of a repeated directive",
2049 $line);
2050 0 _hint("Repeated directives cannot have
2051 a maximum repetition of zero, nor can they have
2052 negative components in their ranges.");
2053 }
2054 }
2055  
2056 0 ▶ $prod && $prod->enddirective($line,$minrep,$maxrep);
Branch: 1 branch
BranchTrueFalseTotal
$prod and $prod->enddirective($line, $minrep, $maxrep) 0 0 0
2057 }
2058 elsif ($grammar =~ m/\G\s*<[^m]/gc)
2059 {
2060 0 pos($grammar)-=2;
2061  
2062 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
2063 {
2064 # $DB::single=1;
2065 0 _parse("a $1-associative operator directive", $aftererror, $line, "<$1op:...>");
2066 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
2067 }
2068 elsif ($grammar =~ m/$UNCOMMITMK/gco)
2069 {
2070 0 _parse("an uncommit marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2071 0 $item = new Parse::RecDescent::_Runtime::Directive('$commit=0;1',
2072 $lookahead,$line,"<uncommit>");
2073 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
2074 or _no_rule("<uncommit>",$line);
2075 }
2076 elsif ($grammar =~ m/$QUOTELIKEMK/gco)
2077 {
2078 0 _parse("an perl quotelike marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2079 0 $item = new Parse::RecDescent::_Runtime::Directive(
2080 'my ($match,@res);
2081 ($match,$text,undef,@res) =
2082 Text::Balanced::extract_quotelike($text,$skip);
2083 $match ? \@res : undef;
2084 ', $lookahead,$line,"<perl_quotelike>");
2085 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
2086 or _no_rule("<perl_quotelike>",$line);
2087 }
2088 elsif ($grammar =~ m/$CODEBLOCKMK/gco)
2089 {
2090 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
2091 0 _parse("an perl codeblock marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2092 0 $item = new Parse::RecDescent::_Runtime::Directive(
2093 'Text::Balanced::extract_codeblock($text,undef,$skip,\''.$outer.'\');
2094 ', $lookahead,$line,"<perl_codeblock>");
2095 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
2096 or _no_rule("<perl_codeblock>",$line);
2097 }
2098 elsif ($grammar =~ m/$VARIABLEMK/gco)
2099 {
2100 0 _parse("an perl variable marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2101 0 $item = new Parse::RecDescent::_Runtime::Directive(
2102 'Text::Balanced::extract_variable($text,$skip);
2103 ', $lookahead,$line,"<perl_variable>");
2104 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
2105 or _no_rule("<perl_variable>",$line);
2106 }
2107 elsif ($grammar =~ m/$NOCHECKMK/gco)
2108 {
2109 0 _parse("a disable checking marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2110 0 ▶ if ($rule)
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 0 0 0
2111 {
2112 0 _error("<nocheck> directive not at start of grammar", $line);
2113 0 _hint("The <nocheck> directive can only
2114 be specified at the start of a
2115 grammar (before the first rule
2116 is defined.");
2117 }
2118 else
2119 {
2120 0 local $::RD_CHECK = 1;
2121 }
2122 }
2123 elsif ($grammar =~ m/$AUTOSTUBMK/gco)
2124 {
2125 0 _parse("an autostub marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2126 0 $::RD_AUTOSTUB = "";
2127 }
2128 elsif ($grammar =~ m/$AUTORULEMK/gco)
2129 {
2130 0 _parse("an autorule marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2131 0 $::RD_AUTOSTUB = $1;
2132 }
2133 elsif ($grammar =~ m/$AUTOTREEMK/gco)
2134 {
2135 0 ▶ my $base = defined($1) ? $1 : "";
Branch: 1 branch
BranchTrueFalseTotal
defined $1 ? : 0 0 0
2136 0 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
2137 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
2138 0 _parse("an autotree marker", $aftererror,$line, $current_match);
2139 0 ▶ if ($rule)
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 0 0 0
2140 {
2141 0 _error("<autotree> directive not at start of grammar", $line);
2142 0 _hint("The <autotree> directive can only
2143 be specified at the start of a
2144 grammar (before the first rule
2145 is defined.");
2146 }
2147 else
2148 {
2149 0 undef $self->{_AUTOACTION};
2150 $self->{_AUTOTREE}{NODE}
2151 0 = new Parse::RecDescent::_Runtime::Action(q({bless \%item, ').$base.q('.$item[0]}),0,-1);
2152 $self->{_AUTOTREE}{TERMINAL}
2153 0 = new Parse::RecDescent::_Runtime::Action(q({bless {__VALUE__=>$item[1]}, ').$base.q('.$item[0]}),0,-1);
2154 }
2155 }
2156  
2157 elsif ($grammar =~ m/$REJECTMK/gco)
2158 {
2159 0 _parse("an reject marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2160 0 $item = new Parse::RecDescent::_Runtime::UncondReject($lookahead,$line,"<reject>");
2161 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
2162 or _no_rule("<reject>",$line);
2163 }
2164 ▶ 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
2165 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2166 0 $code })
2167 {
2168 0 _parse("a (conditional) reject marker", $aftererror,$line, $code );
2169 0 $code =~ /\A\s*<reject:(.*)>\Z/s;
2170 0 my $cond = $1;
2171 0 $item = new Parse::RecDescent::_Runtime::Directive(
2172 "($1) ? undef : 1", $lookahead,$line,"<reject:$cond>");
2173 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
2174 or _no_rule("<reject:$cond>",$line);
2175 }
2176 ▶ 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
2177 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2178 0 $code })
2179 {
2180 0 _parse("a score marker", $aftererror,$line, $code );
2181 0 $code =~ /\A\s*<score:(.*)>\Z/s;
2182 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
2183 or _no_rule($code,$line);
2184 }
2185 ▶ 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
2186 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2187 0 $code;
2188 } )
2189 {
2190 0 _parse("an autoscore specifier", $aftererror,$line,$code);
2191 0 $code =~ /\A\s*<autoscore:(.*)>\Z/s;
2192  
2193 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
2194 or _no_rule($code,$line);
2195  
2196 0 $item = new Parse::RecDescent::_Runtime::UncondReject($lookahead,$line,$code);
2197 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
2198 or _no_rule($code,$line);
2199 }
2200 elsif ($grammar =~ m/$RESYNCMK/gco)
2201 {
2202 0 _parse("a resync to newline marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2203 0 $item = new Parse::RecDescent::_Runtime::Directive(
2204 'if ($text =~ s/(\A[^\n]*\n)//) { $return = 0; $1; } else { undef }',
2205 $lookahead,$line,"<resync>");
2206 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
2207 or _no_rule("<resync>",$line);
2208 }
2209 ▶ 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
2210 0 and do { ($code) = extract_bracketed($grammar,'<');
2211 0 $code })
2212 {
2213 0 _parse("a resync with pattern marker", $aftererror,$line, $code );
2214 0 $code =~ /\A\s*<resync:(.*)>\Z/s;
2215 0 $item = new Parse::RecDescent::_Runtime::Directive(
2216 'if ($text =~ s/(\A'.$1.')//) { $return = 0; $1; } else { undef }',
2217 $lookahead,$line,$code);
2218 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
2219 or _no_rule($code,$line);
2220 }
2221 ▶ 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
2222 0 and do { ($code) = extract_codeblock($grammar,'<');
2223 0 $code })
2224 {
2225 0 _parse("a skip marker", $aftererror,$line, $code );
2226 0 $code =~ /\A\s*<skip:(.*)>\Z/s;
2227 0 ▶ if ($rule) {
Branch: 1 branch
BranchTrueFalseTotal
if ($rule) { } 0 0 0
2228 0 $item = new Parse::RecDescent::_Runtime::Directive(
2229 'my $oldskip = $skip; $skip='.$1.'; $oldskip',
2230 $lookahead,$line,$code);
2231 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
2232 or _no_rule($code,$line);
2233 } else {
2234 #global <skip> directive
2235 0 $self->{skip} = $1;
2236 }
2237 }
2238 ▶ 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
2239 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2240 0 $code;
2241 } )
2242 {
2243 0 _parse("a rule variable specifier", $aftererror,$line,$code);
2244 0 $code =~ /\A\s*<rulevar:(.*)>\Z/s;
2245  
2246 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
2247 or _no_rule($code,$line);
2248  
2249 0 $item = new Parse::RecDescent::_Runtime::UncondReject($lookahead,$line,$code);
2250 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
2251 or _no_rule($code,$line);
2252 }
2253 ▶ 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
2254 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2255 0 $code;
2256 } )
2257 {
2258 0 _parse("an autoaction specifier", $aftererror,$line,$code);
2259 0 $code =~ s/\A\s*<autoaction:(.*)>\Z/$1/s;
2260 0 ▶ if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) 0 0 0
2261 0 $code = "{ $code }"
2262 }
2263 $self->{_check}{itempos} =
2264 0 $code =~ /\@itempos\b|\$itempos\s*\[/;
2265 $self->{_AUTOACTION}
2266 0 = new Parse::RecDescent::_Runtime::Action($code,0,-$line)
2267 }
2268 ▶ 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
2269 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2270 0 $code;
2271 } )
2272 {
2273 0 _parse("a deferred action specifier", $aftererror,$line,$code);
2274 0 $code =~ s/\A\s*<defer:(.*)>\Z/$1/s;
2275 0 ▶ if ($code =~ /\A\s*[^{]|[^}]\s*\Z/)
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /\A\s*[^{]|[^}]\s*\Z/) 0 0 0
2276 {
2277 0 $code = "{ $code }"
2278 }
2279  
2280 0 $item = new Parse::RecDescent::_Runtime::Directive(
2281 "push \@{\$thisparser->{deferred}}, sub $code;",
2282 $lookahead,$line,"<defer:$code>");
2283 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
2284 or _no_rule("<defer:$code>",$line);
2285  
2286 0 $self->{deferrable} = 1;
2287 }
2288 ▶ 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
2289 0 and do { ($code) = extract_codeblock($grammar,'{',undef,'<');
2290 0 $code;
2291 } )
2292 {
2293 0 _parse("a token constructor", $aftererror,$line,$code);
2294 0 $code =~ s/\A\s*<token:(.*)>\Z/$1/s;
2295  
2296 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
2297 0 ▶ if (!$types)
Branch: 1 branch
BranchTrueFalseTotal
if (not $types) { } 0 0 0
2298 {
2299 0 _error("Incorrect token specification: \"$@\"", $line);
2300 0 _hint("The <token:...> directive requires a list
2301 of one or more strings representing possible
2302 types of the specified token. For example:
2303 <token:NOUN,VERB>");
2304 }
2305 else
2306 {
2307 0 $item = new Parse::RecDescent::_Runtime::Directive(
2308 'no strict;
2309 $return = { text => $item[-1] };
2310 @{$return->{type}}{'.$code.'} = (1..'.$types.');',
2311 $lookahead,$line,"<token:$code>");
2312 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
2313 or _no_rule("<token:$code>",$line);
2314 }
2315 }
2316 elsif ($grammar =~ m/$COMMITMK/gco)
2317 {
2318 0 _parse("an commit marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2319 0 $item = new Parse::RecDescent::_Runtime::Directive('$commit = 1',
2320 $lookahead,$line,"<commit>");
2321 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
2322 or _no_rule("<commit>",$line);
2323 }
2324 elsif ($grammar =~ m/$NOCHECKMK/gco) {
2325 0 _parse("an hint request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2326 0 $::RD_CHECK = 0;
2327 }
2328 elsif ($grammar =~ m/$HINTMK/gco) {
2329 0 _parse("an hint request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2330 0 $::RD_HINT = $self->{__HINT__} = 1;
2331 }
2332 elsif ($grammar =~ m/$WARNMK/gco) {
2333 0 _parse("an warning request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2334 0 ▶ $::RD_WARN = $self->{__WARN__} = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2335 }
2336 elsif ($grammar =~ m/$TRACEBUILDMK/gco) {
2337 0 _parse("an grammar build trace request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2338 0 ▶ $::RD_TRACE = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2339 }
2340 elsif ($grammar =~ m/$TRACEPARSEMK/gco) {
2341 0 _parse("an parse trace request", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2342 0 ▶ $self->{__TRACE__} = $1 ? $2+0 : 1;
Branch: 1 branch
BranchTrueFalseTotal
$1 ? : 0 0 0
2343 }
2344 elsif ($grammar =~ m/$AUTOERRORMK/gco)
2345 {
2346 0 $commitonly = $1;
2347 0 _parse("an error marker", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2348 0 $item = new Parse::RecDescent::_Runtime::Error('',$lookahead,$1,$line);
2349 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
2350 or _no_rule("<error>",$line);
2351 0 $aftererror = !$commitonly;
2352 }
2353 ▶ 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
2354 0 and do { $commitonly = $1;
2355 0 ($code) = extract_bracketed($grammar,'<');
2356 0 $code })
2357 {
2358 0 _parse("an error marker", $aftererror,$line,$code);
2359 0 $code =~ /\A\s*<error\??:(.*)>\Z/s;
2360 0 $item = new Parse::RecDescent::_Runtime::Error($1,$lookahead,$commitonly,$line);
2361 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
2362 or _no_rule("$code",$line);
2363 0 $aftererror = !$commitonly;
2364 }
2365 0 elsif (do { $commitonly = $1;
2366 0 ($code) = extract_bracketed($grammar,'<');
2367 0 $code })
2368 {
2369 0 ▶ if ($code =~ /^<[A-Z_]+>$/)
Branch: 1 branch
BranchTrueFalseTotal
if ($code =~ /^<[A-Z_]+>$/) { } 0 0 0
2370 {
2371 0 _error("Token items are not yet
2372 supported: \"$code\"",
2373 $line);
2374 0 _hint("Items like $code that consist of angle
2375 brackets enclosing a sequence of
2376 uppercase characters will eventually
2377 be used to specify pre-lexed tokens
2378 in a grammar. That functionality is not
2379 yet implemented. Or did you misspell
2380 \"$code\"?");
2381 }
2382 else
2383 {
2384 0 _error("Untranslatable item encountered: \"$code\"",
2385 $line);
2386 0 _hint("Did you misspell \"$code\"
2387 or forget to comment it out?");
2388 }
2389 }
2390 }
2391 elsif ($grammar =~ m/$RULE/gco)
2392 {
2393 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
2394 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2395 0 my $rulename = $1;
2396 0 ▶ if ($rulename =~ /Replace|Extend|Precompile|Save/ )
Branch: 1 branch
BranchTrueFalseTotal
if ($rulename =~ /Replace|Extend|Precompile|Save/) 0 0 0
2397 {
2398 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
2399 Parse::RecDescent::_Runtime::$rulename",$line)
2400 and
2401 _hint("The rule named \"$rulename\" cannot be directly
2402 called through the Parse::RecDescent::_Runtime object
2403 for this grammar (although it may still
2404 be used as a subrule of other rules).
2405 It can't be directly called because
2406 Parse::RecDescent::_Runtime::$rulename is already defined (it
2407 is the standard method of all
2408 parsers).");
2409 }
2410 0 $rule = new Parse::RecDescent::_Runtime::Rule($rulename,$self,$line,$replace);
2411 0 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 0 0 0
2412 0 $prod = $rule->addprod( new Parse::RecDescent::_Runtime::Production );
2413 0 $aftererror = 0;
2414 }
2415 elsif ($grammar =~ m/$UNCOMMITPROD/gco)
2416 {
2417 0 pos($grammar)-=9;
2418 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
2419 0, $lookahead, $line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2420  
2421 0 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 0 0 0
2422 0 $prod = new Parse::RecDescent::_Runtime::Production($line,1);
2423 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
2424 or _no_rule("<uncommit>",$line);
2425 0 $aftererror = 0;
2426 }
2427 elsif ($grammar =~ m/$ERRORPROD/gco)
2428 {
2429 0 pos($grammar)-=6;
2430 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
2431 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2432 0 ▶ $prod->check_pending($line) if $prod;
Branch: 1 branch
BranchTrueFalseTotal
if $prod 0 0 0
2433 0 $prod = new Parse::RecDescent::_Runtime::Production($line,0,1);
2434 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
2435 or _no_rule("<error>",$line);
2436 0 $aftererror = 0;
2437 }
2438 elsif ($grammar =~ m/$PROD/gco)
2439 {
2440 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
2441 $lookahead,$line, substr($grammar, $-[0], $+[0] - $-[0]) ) or next;
2442 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
2443 and (!$prod || $prod->check_pending($line))
2444 and $prod = $rule->addprod(new Parse::RecDescent::_Runtime::Production($line))
2445 or _no_rule("production",$line);
2446 0 $aftererror = 0;
2447 }
2448 elsif ($grammar =~ m/$LITERAL/gco)
2449 {
2450 0 my $literal = $1;
2451 0 ($code = $literal) =~ s/\\\\/\\/g;
2452 0 _parse("a literal terminal", $aftererror,$line,$literal);
2453 0 $item = new Parse::RecDescent::_Runtime::Literal($code,$lookahead,$line);
2454 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
2455 or _no_rule("literal terminal",$line,"'$literal'");
2456 }
2457 elsif ($grammar =~ m/$INTERPLIT/gco)
2458 {
2459 0 _parse("an interpolated literal terminal", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2460 0 $item = new Parse::RecDescent::_Runtime::InterpLit($1,$lookahead,$line);
2461 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
2462 or _no_rule("interpolated literal terminal",$line,"'$1'");
2463 }
2464 elsif ($grammar =~ m/$TOKEN/gco)
2465 {
2466 0 _parse("a /../ pattern terminal", $aftererror,$line, substr($grammar, $-[0], $+[0] - $-[0]) );
2467 0 ▶ $item = new Parse::RecDescent::_Runtime::Token($1,'/',$3?$3:'',$lookahead,$line);
Branch: 1 branch
BranchTrueFalseTotal
$3 ? : 0 0 0
2468 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
2469 or _no_rule("pattern terminal",$line,"/$1/");
2470 }
2471 ▶ 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
2472 0 and do { ($code, undef, @components)
2473 = extract_quotelike($grammar);
2474 0 $code }
2475 )
2476  
2477 {
2478 0 _parse("an m/../ pattern terminal", $aftererror,$line,$code);
2479 0 $item = new Parse::RecDescent::_Runtime::Token(@components[3,2,8],
2480 $lookahead,$line);
2481 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
2482 or _no_rule("pattern terminal",$line,$code);
2483 }
2484 ▶ 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
2485 0 and do { ($code) = extract_bracketed($grammar,'<');
2486 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
2487 }
2488 or $grammar =~ m/$SUBRULE/gco
2489 and $code = $1)
2490 {
2491 0 my $name = $code;
2492 0 my $matchrule = 0;
2493 0 ▶ if (substr($name,0,1) eq '<')
Branch: 1 branch
BranchTrueFalseTotal
if (substr($name, 0, 1) eq "<") 0 0 0
2494 {
2495 0 $name =~ s/$MATCHRULE\s*//;
2496 0 $name =~ s/\s*>\Z//;
2497 0 $matchrule = 1;
2498 }
2499  
2500 # EXTRACT TRAILING ARG LIST (IF ANY)
2501  
2502 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
2503  
2504 # EXTRACT TRAILING REPETITION SPECIFIER (IF ANY)
2505  
2506 0 ▶ if ($grammar =~ m/\G[(]/gc)
Branch: 1 branch
BranchTrueFalseTotal
if ($grammar =~ /\G[(]/cg) { } 0 0 0
2507 {
2508 0 pos($grammar)--;
2509  
2510 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
2511 {
2512 0 _parse("an zero-or-one subrule match", $aftererror,$line,"$code$argcode($1)");
2513 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,$1,0,1,
2514 $lookahead,$line,
2515 $self,
2516 $matchrule,
2517 $argcode);
2518 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
2519 or _no_rule("repetition",$line,"$code$argcode($1)");
2520  
2521 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
2522 }
2523 elsif ($grammar =~ m/$ANY/gco)
2524 {
2525 0 _parse("a zero-or-more subrule match", $aftererror,$line,"$code$argcode($1)");
2526 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2527 {
2528 0 my $pos = pos $grammar;
2529 0 substr($grammar,$pos,0,
2530 "<leftop='$name(s?)': $name $2 $name>(s?) ");
2531  
2532 0 pos $grammar = $pos;
2533 }
2534 else
2535 {
2536 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,$1,0,$MAXREP,
2537 $lookahead,$line,
2538 $self,
2539 $matchrule,
2540 $argcode);
2541 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
2542 or _no_rule("repetition",$line,"$code$argcode($1)");
2543  
2544 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
2545  
2546 0 ▶ _check_insatiable($name,$1,$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 0 0 0
2547 }
2548 }
2549 elsif ($grammar =~ m/$MANY/gco)
2550 {
2551 0 _parse("a one-or-more subrule match", $aftererror,$line,"$code$argcode($1)");
2552 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2553 {
2554 # $DB::single=1;
2555 0 my $pos = pos $grammar;
2556 0 substr($grammar,$pos,0,
2557 "<leftop='$name(s)': $name $2 $name> ");
2558  
2559 0 pos $grammar = $pos;
2560 }
2561 else
2562 {
2563 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,$1,1,$MAXREP,
2564 $lookahead,$line,
2565 $self,
2566 $matchrule,
2567 $argcode);
2568  
2569 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
2570 or _no_rule("repetition",$line,"$code$argcode($1)");
2571  
2572 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
2573  
2574 0 ▶ _check_insatiable($name,$1,$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 0 0 0
2575 }
2576 }
2577 elsif ($grammar =~ m/$EXACTLY/gco)
2578 {
2579 0 _parse("an exactly-$1-times subrule match", $aftererror,$line,"$code$argcode($1)");
2580 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2581 {
2582 0 my $pos = pos $grammar;
2583 0 substr($grammar,$pos,0,
2584 "<leftop='$name($1)': $name $2 $name>($1) ");
2585  
2586 0 pos $grammar = $pos;
2587 }
2588 else
2589 {
2590 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,$1,$1,$1,
2591 $lookahead,$line,
2592 $self,
2593 $matchrule,
2594 $argcode);
2595 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
2596 or _no_rule("repetition",$line,"$code$argcode($1)");
2597  
2598 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
2599 }
2600 }
2601 elsif ($grammar =~ m/$BETWEEN/gco)
2602 {
2603 0 _parse("a $1-to-$2 subrule match", $aftererror,$line,"$code$argcode($1..$2)");
2604 0 ▶ if ($3)
Branch: 1 branch
BranchTrueFalseTotal
if ($3) { } 0 0 0
2605 {
2606 0 my $pos = pos $grammar;
2607 0 substr($grammar,$pos,0,
2608 "<leftop='$name($1..$2)': $name $3 $name>($1..$2) ");
2609  
2610 0 pos $grammar = $pos;
2611 }
2612 else
2613 {
2614 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,"$1..$2",$1,$2,
2615 $lookahead,$line,
2616 $self,
2617 $matchrule,
2618 $argcode);
2619 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
2620 or _no_rule("repetition",$line,"$code$argcode($1..$2)");
2621  
2622 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
2623 }
2624 }
2625 elsif ($grammar =~ m/$ATLEAST/gco)
2626 {
2627 0 _parse("a $1-or-more subrule match", $aftererror,$line,"$code$argcode($1..)");
2628 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2629 {
2630 0 my $pos = pos $grammar;
2631 0 substr($grammar,$pos,0,
2632 "<leftop='$name($1..)': $name $2 $name>($1..) ");
2633  
2634 0 pos $grammar = $pos;
2635 }
2636 else
2637 {
2638 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,"$1..",$1,$MAXREP,
2639 $lookahead,$line,
2640 $self,
2641 $matchrule,
2642 $argcode);
2643 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
2644 or _no_rule("repetition",$line,"$code$argcode($1..)");
2645  
2646 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
2647 0 ▶ _check_insatiable($name,"$1..",$grammar,$line) if $::RD_CHECK;
Branch: 1 branch
BranchTrueFalseTotal
if $main::RD_CHECK 0 0 0
2648 }
2649 }
2650 elsif ($grammar =~ m/$ATMOST/gco)
2651 {
2652 0 _parse("a one-to-$1 subrule match", $aftererror,$line,"$code$argcode(..$1)");
2653 0 ▶ if ($2)
Branch: 1 branch
BranchTrueFalseTotal
if ($2) { } 0 0 0
2654 {
2655 0 my $pos = pos $grammar;
2656 0 substr($grammar,$pos,0,
2657 "<leftop='$name(..$1)': $name $2 $name>(..$1) ");
2658  
2659 0 pos $grammar = $pos;
2660 }
2661 else
2662 {
2663 0 $item = new Parse::RecDescent::_Runtime::Repetition($name,"..$1",1,$1,
2664 $lookahead,$line,
2665 $self,
2666 $matchrule,
2667 $argcode);
2668 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
2669 or _no_rule("repetition",$line,"$code$argcode(..$1)");
2670  
2671 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
2672 }
2673 }
2674 elsif ($grammar =~ m/$BADREP/gco)
2675 {
2676 0 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
2677 0 _parse("an subrule match with invalid repetition specifier", 0,$line, $current_match);
2678 0 _error("Incorrect specification of a repeated subrule",
2679 $line);
2680 0 _hint("Repeated subrules like \"$code$argcode$current_match\" cannot have
2681 a maximum repetition of zero, nor can they have
2682 negative components in their ranges.");
2683 }
2684 }
2685 else
2686 {
2687 0 _parse("a subrule match", $aftererror,$line,$code);
2688 0 my $desc;
2689 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
2690 0 { $desc = $self->{"rules"}{$name}->expected }
2691 0 $item = new Parse::RecDescent::_Runtime::Subrule($name,
2692 $lookahead,
2693 $line,
2694 $desc,
2695 $matchrule,
2696 $argcode);
2697  
2698 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
2699 or _no_rule("(sub)rule",$line,$name);
2700  
2701 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
2702 }
2703 }
2704 elsif ($grammar =~ m/$LONECOLON/gco )
2705 {
2706 0 _error("Unexpected colon encountered", $line);
2707 0 _hint("Did you mean \"|\" (to start a new production)?
2708 Or perhaps you forgot that the colon
2709 in a rule definition must be
2710 on the same line as the rule name?");
2711 }
2712 elsif ($grammar =~ m/$ACTION/gco ) # BAD ACTION, ALREADY FAILED
2713 {
2714 0 _error("Malformed action encountered",
2715 $line);
2716 0 _hint("Did you forget the closing curly bracket
2717 or is there a syntax error in the action?");
2718 }
2719 elsif ($grammar =~ m/$OTHER/gco )
2720 {
2721 0 _error("Untranslatable item encountered: \"$1\"",
2722 $line);
2723 0 _hint("Did you misspell \"$1\"
2724 or forget to comment it out?");
2725 }
2726  
2727 0 ▶ if ($lookaheadspec =~ tr /././ > 3)
Branch: 1 branch
BranchTrueFalseTotal
if ($lookaheadspec =~ tr/.// > 3) 0 0 0
2728 {
2729 0 $lookaheadspec =~ s/\A\s+//;
2730 0 ▶ $lookahead = $lookahead<0
Branch: 1 branch
BranchTrueFalseTotal
$lookahead < 0 ? : 0 0 0
2731 ? 'a negative lookahead ("...!")'
2732 : 'a positive lookahead ("...")' ;
2733 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
2734 row.",$line)
2735 and
2736 _hint("Multiple positive and/or negative lookaheads
2737 are simply multiplied together to produce a
2738 single positive or negative lookahead
2739 specification. In this case the sequence
2740 \"$lookaheadspec\" was reduced to $lookahead.
2741 Was this your intention?");
2742 }
2743 0 $lookahead = 0;
2744 0 $lookaheadspec = "";
2745  
2746 0 $grammar =~ m/\G\s+/gc;
2747 }
2748  
2749 0 ▶ if ($must_pop_lines) {
Branch: 1 branch
BranchTrueFalseTotal
if ($must_pop_lines) 0 0 0
2750 0 pop @lines;
2751 }
2752  
2753 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
2754 {
2755 0 $self->_check_grammar();
2756 }
2757  
2758 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
2759 {
2760 0 my $code = $self->_code();
2761 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
2762 {
2763 0 ▶ my $mode = ($nextnamespace eq "namespace000002") ? '>' : '>>';
Branch: 1 branch
BranchTrueFalseTotal
$nextnamespace eq 'namespace000002' ? : 0 0 0
2764 0 print STDERR "printing code (", length($code),") to RD_TRACE\n";
2765 0 local *TRACE_FILE;
2766 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
2767 and print TRACE_FILE "my \$ERRORS;\n$code"
2768 and close TRACE_FILE;
2769 }
2770  
2771 0 ▶ unless ( eval "$code 1" )
Branch: 1 branch
BranchTrueFalseTotal
unless (eval "$code 1") 0 0 0
2772 {
2773 0 _error("Internal error in generated parser code!");
2774 0 $@ =~ s/at grammar/in grammar at/;
2775 0 _hint($@);
2776 }
2777 }
2778  
2779 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
2780 {
2781 0 ▶ local $::RD_HINT = defined $::RD_HINT ? $::RD_HINT : 1;
Branch: 1 branch
BranchTrueFalseTotal
defined $main::RD_HINT ? : 0 0 0
2782 0 _hint('Set $::RD_HINT (or -RD_HINT if you\'re using "perl -s")
2783 for hints on fixing these problems. Use $::RD_HINT = 0
2784 to disable this message.');
2785 }
2786 0 ▶ if ($ERRORS) { $ERRORS=0; return }
Branch: 1 branch
BranchTrueFalseTotal
if ($ERRORS) 0 0 0
2787 0 return $self;
2788 }
2789  
2790  
2791 sub _addstartcode($$)
2792 {
2793 0 ▶ my ($self, $code) = @_;
Subroutine _addstartcode: not called CC=1 SCAR=6.9
2794 0 $code =~ s/\A\s*\{(.*)\}\Z/$1/s;
2795  
2796 0 $self->{"startcode"} .= "$code;\n";
2797 }
2798  
2799 # CHECK FOR GRAMMAR PROBLEMS....
2800  
2801 sub _check_insatiable($$$$)
2802 {
2803 0 ▶ my ($subrule,$repspec,$grammar,$line) = @_;
Subroutine _check_insatiable: not called CC=14 SCAR=53.5
2804 0 pos($grammar)=pos($_[2]);
2805 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
2806 0 my $min = 1;
2807 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
2808 || $grammar =~ m/$EXACTLY/gco
2809 || $grammar =~ m/$ATMOST/gco
2810 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
2811 0 || $grammar =~ m/$ATLEAST/gco && do { $min=$2; 1 }
2812 || $grammar =~ m/$SUBRULE(?!\s*:)/gco
2813 )
2814 {
2815 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
2816 0 my $current_match = substr($grammar, $-[0], $+[0] - $-[0]);
2817 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
2818 (almost certainly) fail.",$line)
2819 and
2820 _hint("Unless subrule \"$subrule\" performs some cunning
2821 lookahead, the repetition \"$subrule($repspec)\" will
2822 insatiably consume as many matches of \"$subrule\" as it
2823 can, leaving none to match the \"$current_match\" that follows.");
2824 }
2825 }
2826  
2827 sub _check_grammar ($)
2828 {
2829 0 ▶ my $self = shift;
Subroutine _check_grammar: not called CC=15 SCAR=54.8
2830 0 my $rules = $self->{"rules"};
2831 0 my $rule;
2832 0 foreach $rule ( values %$rules )
2833 {
2834 0 ▶ next if ! $rule->{"changed"};
Branch: 1 branch
BranchTrueFalseTotal
unless $rule->{"changed"} 0 0 0
2835  
2836 # CHECK FOR UNDEFINED RULES
2837  
2838 0 my $call;
2839 0 foreach $call ( @{$rule->{"calls"}} )
2840 {
2841 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
2842 0 &&!defined &{"Parse::RecDescent::_Runtime::$call"})
2843 {
2844 0 ▶ if (!defined $::RD_AUTOSTUB)
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $main::RD_AUTOSTUB) { } 0 0 0
2845 {
2846 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
2847 used in a production.")
2848 and
2849 _hint("Will you be providing this rule
2850 later, or did you perhaps
2851 misspell \"$call\"? Otherwise
2852 it will be treated as an
2853 immediate <reject>.");
2854 0 eval "sub $self->{namespace}::$call {undef}";
2855 }
2856 else # EXPERIMENTAL
2857 {
2858 0 my $rule = qq{'$call'};
2859 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
2860 0 $rule = $::RD_AUTOSTUB;
2861 }
2862 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
2863 and
2864 _hint("A call was made to a subrule
2865 named \"$call\", but no such
2866 rule was specified. However,
2867 since \$::RD_AUTOSTUB
2868 was defined, a rule stub
2869 ($call : $rule) was
2870 automatically created.");
2871  
2872 0 $self->_generate("$call: $rule",0,1);
2873 }
2874 }
2875 }
2876  
2877 # CHECK FOR LEFT RECURSION
2878  
2879 0 ▶ if ($rule->isleftrec($rules))
Branch: 1 branch
BranchTrueFalseTotal
if ($rule->isleftrec($rules)) 0 0 0
2880 {
2881 0 _error("Rule \"$rule->{name}\" is left-recursive.");
2882 0 _hint("Redesign the grammar so it's not left-recursive.
2883 That will probably mean you need to re-implement
2884 repetitions using the '(s)' notation.
2885 For example: \"$rule->{name}(s)\".");
2886 0 next;
2887 }
2888  
2889 # CHECK FOR PRODUCTIONS FOLLOWING EMPTY PRODUCTIONS
2890 {
2891 0 my $hasempty;
2892 my $prod;
2893 0 foreach $prod ( @{$rule->{"prods"}} ) {
2894 0 ▶ if ($hasempty) {
Branch: 1 branch
BranchTrueFalseTotal
if ($hasempty) 0 0 0
2895 0 _error("Production " . $prod->describe . " for \"$rule->{name}\"
2896 will never be reached (preceding empty production will
2897 always match first).");
2898 0 _hint("Reorder the grammar so that the empty production
2899 is last in the list or productions.");
2900 0 last;
2901 }
2902 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
2903 }
2904 }
2905 }
2906 }
2907  
2908 # GENERATE ACTUAL PARSER CODE
2909  
2910 sub _code($)
2911 {
2912 0 ▶ my $self = shift;
Subroutine _code: not called CC=4 SCAR=30.0
2913 0 ▶ my $initial_skip = defined($self->{skip}) ? $self->{skip} : $skip;
Branch: 1 branch
BranchTrueFalseTotal
defined $self->{'skip'} ? : 0 0 0
2914  
2915 0 my $code = qq!
2916 package $self->{namespace};
2917 use strict;
2918 use vars qw(\$skip \$AUTOLOAD $self->{localvars} );
2919 \@$self->{namespace}\::ISA = ();
2920 \$skip = '$initial_skip';
2921 $self->{startcode}
2922  
2923 {
2924 local \$SIG{__WARN__} = sub {0};
2925 # PRETEND TO BE IN Parse::RecDescent::_Runtime NAMESPACE
2926 *$self->{namespace}::AUTOLOAD = sub
2927 {
2928 no strict 'refs';
2929 !
2930 # This generated code uses ${"AUTOLOAD"} rather than $AUTOLOAD in
2931 # order to avoid the circular reference documented here:
2932 # https://rt.perl.org/rt3/Public/Bug/Display.html?id=110248
2933 # As a result of the investigation of
2934 # https://rt.cpan.org/Ticket/Display.html?id=53710
2935 . qq!
2936 \${"AUTOLOAD"} =~ s/^$self->{namespace}/Parse::RecDescent::_Runtime/;
2937 goto &{\${"AUTOLOAD"}};
2938 }
2939 }
2940  
2941 !;
2942 0 $code .= "push \@$self->{namespace}\::ISA, 'Parse::RecDescent::_Runtime';";
2943 0 $self->{"startcode"} = '';
2944  
2945 0 my $rule;
2946 0 foreach $rule ( values %{$self->{"rules"}} )
2947 {
2948 0 ▶ if ($rule->{"changed"})
Branch: 1 branch
BranchTrueFalseTotal
if ($rule->{"changed"}) 0 0 0
2949 {
2950 0 $code .= $rule->code($self->{"namespace"},$self);
2951 0 $rule->{"changed"} = 0;
2952 }
2953 }
2954  
2955 0 return $code;
2956 }
2957  
2958  
2959 # EXECUTING A PARSE....
2960  
2961 sub AUTOLOAD # ($parser, $text; $linenum, @args)
2962 {
2963 26 ▶ 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 26 26
2964 26 ▶ my $class = ref($_[0]) || $_[0];
Condition33%1/3
ref $_[0] || $_[0]
l!l&&r!l&&!r
2600
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
2965 26 ▶ my $text = ref($_[1]) eq 'SCALAR' ? ${$_[1]} : "$_[1]";
Branch: 1 branch
BranchTrueFalseTotal
ref $_[1] eq 'SCALAR' ? : 0 26 26
2966 26 $_[0]->{lastlinenum} = _linecount($text);
2967 26 ▶ $_[0]->{lastlinenum} += ($_[2]||0) if @_ > 2;
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 2 19 7 26
Condition50%1/2
$_[2] || 0
l!l
190
MC/DC0%0/1
$_[2] || 0
$_[2]
Truth table50%1/2
A
A= $_[2]
Aresult
11
00
2968 26 $_[0]->{offsetlinenum} = $_[0]->{lastlinenum};
2969 26 $_[0]->{fulltext} = $text;
2970 26 $_[0]->{fulltextlen} = length $text;
2971 26 $_[0]->{linecounter_cache} = {};
2972 26 $_[0]->{deferred} = [];
2973 26 $_[0]->{errors} = [];
2974 26 my @args = @_[3..$#_];
2975 26 ▶ my $args = sub { [ @args ] };
Subroutine __ANON__: called CC=1 SCAR=0.0
2976  
2977 26 $AUTOLOAD =~ s/$class/$_[0]->{namespace}/;
2978 5 ▶ no strict "refs";
Subroutine BEGIN: called CC=1 SCAR=0.0
2979  
2980 26 ▶ local $::RD_WARN = $::RD_WARN || $_[0]->{__WARN__};
Condition33%1/3
$main::RD_WARN || $_[0]{'__WARN__'}
l!l&&r!l&&!r
2600
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
2981 26 ▶ local $::RD_HINT = $::RD_HINT || $_[0]->{__HINT__};
Condition33%1/3
$main::RD_HINT || $_[0]{'__HINT__'}
l!l&&r!l&&!r
0026
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
2982 26 ▶ local $::RD_TRACE = $::RD_TRACE || $_[0]->{__TRACE__};
Condition33%1/3
$main::RD_TRACE || $_[0]{'__TRACE__'}
l!l&&r!l&&!r
0026
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
2983  
2984 26 ▶ croak "Unknown starting rule ($AUTOLOAD) called\n"
Branch: 1 branch
BranchTrueFalseTotal
unless defined &$Parse::RecDescent::_Runtime::AUTOLOAD 0 26 26
2985 unless defined &$AUTOLOAD;
2986 26 my $retval = &{$AUTOLOAD}(
2987 $_[0], # $parser
2988 $text, # $text
2989 undef, # $repeating
2990 undef, # $_noactions
2991 $args, # \@args
2992 undef, # $_itempos
2993 );
2994  
2995  
2996 26 ▶ if (defined $retval)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $retval) { } 24 2 26
2997 {
2998 24 foreach ( @{$_[0]->{deferred}} ) { &$_; }
2999 }
3000 else
3001 {
3002 2 foreach ( @{$_[0]->{errors}} ) { _error(@$_); }
3003 }
3004  
3005 26 ▶ if (ref $_[1] eq 'SCALAR') { ${$_[1]} = $text }
Branch: 1 branch
BranchTrueFalseTotal
if (ref $_[1] eq "SCALAR") 0 26 26
3006  
3007 26 $ERRORS = 0;
3008 26 return $retval;
3009 }
3010  
3011 sub _parserepeat($$$$$$$$$) # RETURNS A REF TO AN ARRAY OF MATCHES
3012 {
3013 0 ▶ my ($parser, $text, $prod, $min, $max, $_noactions, $expectation, $argcode, $_itempos) = @_;
Subroutine _parserepeat: not called CC=10 SCAR=47.0
3014 0 my @tokens = ();
3015  
3016 0 my $itemposfirst;
3017 my $reps;
3018 0 ▶ for ($reps=0; $reps<$max;)
Branch: 1 branch
BranchTrueFalseTotal
if ($reps < $max) 0 0 0
3019 {
3020 0 $expectation->at($text);
3021 0 my $_savetext = $text;
3022 0 my $prevtextlen = length $text;
3023 0 my $_tok;
3024 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
3025 {
3026 0 $text = $_savetext;
3027 0 last;
3028 }
3029  
3030 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
3031 {
3032 0 $itemposfirst = Parse::RecDescent::_Runtime::Production::_duplicate_itempos($_itempos);
3033 }
3034  
3035 0 ▶ push @tokens, $_tok if defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
if defined $_tok 0 0 0
3036 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
3037 }
3038  
3039 0 ▶ do { $expectation->failed(); return undef} if $reps<$min;
Branch: 1 branch
BranchTrueFalseTotal
if ($reps < $min) 0 0 0
3040  
3041 0 ▶ if (defined $itemposfirst)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $itemposfirst) 0 0 0
3042 {
3043 0 Parse::RecDescent::_Runtime::Production::_update_itempos($_itempos, $itemposfirst, undef, [qw(from)]);
3044 }
3045  
3046 0 $_[1] = $text;
3047 0 return [@tokens];
3048 }
3049  
3050 sub set_autoflush {
3051 0 ▶ my $orig_selected = select $_[0];
Subroutine set_autoflush: not called CC=1 SCAR=6.9
3052 0 $| = 1;
3053 0 select $orig_selected;
3054 0 return;
3055 }
3056  
3057 # ERROR REPORTING....
3058  
3059 sub _write_ERROR {
3060 0 ▶ my ($errorprefix, $errortext) = @_;
Subroutine _write_ERROR: not called CC=2 SCAR=17.9
3061 0 ▶ return if $errortext !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $errortext =~ /\S/ 0 0 0
3062 0 $errorprefix =~ s/\s+\Z//;
3063 0 local $^A = q{};
3064  
3065 0 formline(<<'END_FORMAT', $errorprefix, $errortext);
3066 @>>>>>>>>>>>>>>>>>>>>: ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
3067 END_FORMAT
3068 0 formline(<<'END_FORMAT', $errortext);
3069 ~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
3070 END_FORMAT
3071 0 print {*STDERR} $^A;
3072 }
3073  
3074 # TRACING
3075  
3076 5 my $TRACE_FORMAT = <<'END_FORMAT';
3077 @>|@|||||||||@^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|
3078 | ~~ |^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<|
3079 END_FORMAT
3080  
3081 5 my $TRACECONTEXT_FORMAT = <<'END_FORMAT';
3082 @>|@|||||||||@ |^<<<<<<<<<<<<<<<<<<<<<<<<<<<
3083 | ~~ | |^<<<<<<<<<<<<<<<<<<<<<<<<<<<
3084 END_FORMAT
3085  
3086 sub _write_TRACE {
3087 0 ▶ my ($tracelevel, $tracerulename, $tracemsg) = @_;
Subroutine _write_TRACE: not called CC=2 SCAR=17.9
3088 0 ▶ return if $tracemsg !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $tracemsg =~ /\S/ 0 0 0
3089 0 $tracemsg =~ s/\s*\Z//;
3090 0 local $^A = q{};
3091 0 my $bar = '|';
3092 0 formline($TRACE_FORMAT, $tracelevel, $tracerulename, $bar, $tracemsg, $tracemsg);
3093 0 print {*STDERR} $^A;
3094 }
3095  
3096 sub _write_TRACECONTEXT {
3097 0 ▶ my ($tracelevel, $tracerulename, $tracecontext) = @_;
Subroutine _write_TRACECONTEXT: not called CC=2 SCAR=17.9
3098 0 ▶ return if $tracecontext !~ /\S/;
Branch: 1 branch
BranchTrueFalseTotal
unless $tracecontext =~ /\S/ 0 0 0
3099 0 $tracecontext =~ s/\s*\Z//;
3100 0 local $^A = q{};
3101 0 my $bar = '|';
3102 0 formline($TRACECONTEXT_FORMAT, $tracelevel, $tracerulename, $bar, $tracecontext, $tracecontext);
3103 0 print {*STDERR} $^A;
3104 }
3105  
3106 sub _verbosity($)
3107 {
3108 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
3109 or defined $::RD_HINT and $::RD_HINT and $_[0] =~ /ERRORS|WARN|HINT/
3110 or defined $::RD_WARN and $::RD_WARN and $_[0] =~ /ERRORS|WARN/
3111 or defined $::RD_ERRORS and $::RD_ERRORS and $_[0] =~ /ERRORS/
3112 }
3113  
3114 sub _error($;$)
3115 {
3116 0 ▶ $ERRORS++;
Subroutine _error: not called CC=4 SCAR=30.0
3117 0 ▶ return 0 if ! _verbosity("ERRORS");
Branch: 1 branch
BranchTrueFalseTotal
unless &_verbosity("ERRORS") 0 0 0
3118 0 my $errortext = $_[0];
3119 0 ▶ my $errorprefix = "ERROR" . ($_[1] ? " (line $_[1])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 0 0
3120 0 $errortext =~ s/\s+/ /g;
3121 0 ▶ print {*STDERR} "\n" if _verbosity("WARN");
Branch: 1 branch
BranchTrueFalseTotal
if &_verbosity("WARN") 0 0 0
3122 0 _write_ERROR($errorprefix, $errortext);
3123 0 return 1;
3124 }
3125  
3126 sub _warn($$;$)
3127 {
3128 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
3129 0 my $errortext = $_[1];
3130 0 ▶ my $errorprefix = "Warning" . ($_[2] ? " (line $_[2])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[2] ? : 0 0 0
3131 0 ▶ print {*STDERR} "\n" if _verbosity("HINT");
Branch: 1 branch
BranchTrueFalseTotal
if &_verbosity("HINT") 0 0 0
3132 0 $errortext =~ s/\s+/ /g;
3133 0 _write_ERROR($errorprefix, $errortext);
3134 0 return 1;
3135 }
3136  
3137 sub _hint($)
3138 {
3139 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
3140 0 my $errortext = $_[0];
3141 0 ▶ my $errorprefix = "Hint" . ($_[1] ? " (line $_[1])" : "");
Branch: 1 branch
BranchTrueFalseTotal
$_[1] ? : 0 0 0
3142 0 $errortext =~ s/\s+/ /g;
3143 0 _write_ERROR($errorprefix, $errortext);
3144 0 return 1;
3145 }
3146  
3147 sub _tracemax($)
3148 {
3149 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
3150 && $::RD_TRACE =~ /\d+/
3151 && $::RD_TRACE>1
3152 && $::RD_TRACE+10<length($_[0]))
3153 {
3154 0 my $count = length($_[0]) - $::RD_TRACE;
3155 0 return substr($_[0],0,$::RD_TRACE/2)
3156 . "...<$count>..."
3157 . substr($_[0],-$::RD_TRACE/2);
3158 }
3159 else
3160 {
3161 0 return substr($_[0],0,500);
3162 }
3163 }
3164  
3165 sub _tracefirst($)
3166 {
3167 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
3168 && $::RD_TRACE =~ /\d+/
3169 && $::RD_TRACE>1
3170 && $::RD_TRACE+10<length($_[0]))
3171 {
3172 0 my $count = length($_[0]) - $::RD_TRACE;
3173 0 return substr($_[0],0,$::RD_TRACE) . "...<+$count>";
3174 }
3175 else
3176 {
3177 0 return substr($_[0],0,500);
3178 }
3179 }
3180  
3181 5 my $lastcontext = '';
3182 5 my $lastrulename = '';
3183 5 my $lastlevel = '';
3184  
3185 sub _trace($;$$$)
3186 {
3187 0 ▶ my $tracemsg = $_[0];
Subroutine _trace: not called CC=8 SCAR=42.8
3188 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
3189 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
3190 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
3191 0 ▶ if ($tracerulename) { $lastrulename = $tracerulename }
Branch: 1 branch
BranchTrueFalseTotal
if ($tracerulename) 0 0 0
3192 0 ▶ if ($tracelevel) { $lastlevel = $tracelevel }
Branch: 1 branch
BranchTrueFalseTotal
if ($tracelevel) 0 0 0
3193  
3194 0 $tracecontext =~ s/\n/\\n/g;
3195 0 $tracecontext =~ s/\s+/ /g;
3196 0 $tracerulename = qq{$tracerulename};
3197 0 _write_TRACE($tracelevel, $tracerulename, $tracemsg);
3198 0 ▶ if ($tracecontext ne $lastcontext)
Branch: 1 branch
BranchTrueFalseTotal
if ($tracecontext ne $lastcontext) 0 0 0
3199 {
3200 0 ▶ if ($tracecontext)
Branch: 1 branch
BranchTrueFalseTotal
if ($tracecontext) { } 0 0 0
3201 {
3202 0 $lastcontext = _tracefirst($tracecontext);
3203 0 $tracecontext = qq{"$tracecontext"};
3204 }
3205 else
3206 {
3207 0 $tracecontext = qq{<NO TEXT LEFT>};
3208 }
3209 0 _write_TRACECONTEXT($tracelevel, $tracerulename, $tracecontext);
3210 }
3211 }
3212  
3213 sub _matchtracemessage
3214 {
3215 0 ▶ my ($self, $reject) = @_;
Subroutine _matchtracemessage: not called CC=6 SCAR=37.4
3216  
3217 0 my $prefix = '';
3218 0 my $postfix = '';
3219 0 my $matched = not $reject;
3220 0 my @t = ("Matched", "Didn't match");
3221 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
3222 {
3223 0 ▶ $postfix = $reject ? "(reject)" : "(keep)";
Branch: 1 branch
BranchTrueFalseTotal
$reject ? : 0 0 0
3224 0 $prefix = "...";
3225 0 ▶ if ($self->{lookahead} < 0)
Branch: 1 branch
BranchTrueFalseTotal
if ($self->{"lookahead"} < 0) 0 0 0
3226 {
3227 0 $prefix .= '!';
3228 0 $matched = not $matched;
3229 }
3230 }
3231 0 ▶ $prefix . ($matched ? $t[0] : $t[1]) . $postfix;
Branch: 1 branch
BranchTrueFalseTotal
$matched ? : 0 0 0
3232 }
3233  
3234 sub _parseunneg($$$$$)
3235 {
3236 0 ▶ _parse($_[0],$_[1],$_[3],$_[4]);
Subroutine _parseunneg: not called CC=2 SCAR=17.9
3237 0 ▶ if ($_[2]<0)
Branch: 1 branch
BranchTrueFalseTotal
if ($_[2] < 0) 0 0 0
3238 {
3239 0 _error("Can't negate \"$_[4]\".",$_[3]);
3240 0 _hint("You can't negate $_[0]. Remove the \"...!\" before
3241 \"$_[4]\".");
3242 0 return 0;
3243 }
3244 0 return 1;
3245 }
3246  
3247 sub _parse($$$$)
3248 {
3249 0 ▶ my $what = $_[3];
Subroutine _parse: not called CC=4 SCAR=30.0
3250 0 $what =~ s/^\s+//;
3251 0 ▶ if ($_[1])
Branch: 1 branch
BranchTrueFalseTotal
if ($_[1]) 0 0 0
3252 {
3253 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
3254 and
3255 _hint("An unconditional <error> always causes the
3256 production containing it to immediately fail.
3257 \u$_[0] that follows an <error>
3258 will never be reached. Did you mean to use
3259 <error?> instead?");
3260 }
3261  
3262 0 ▶ return if ! _verbosity("TRACE");
Branch: 1 branch
BranchTrueFalseTotal
unless &_verbosity("TRACE") 0 0 0
3263 0 my $errortext = "Treating \"$what\" as $_[0]";
3264 0 my $errorprefix = "Parse::RecDescent::_Runtime";
3265 0 $errortext =~ s/\s+/ /g;
3266 0 _write_ERROR($errorprefix, $errortext);
3267 }
3268  
3269 sub _linecount($) {
3270 26 ▶ scalar substr($_[0], pos $_[0]||0) =~ tr/\n//
Subroutine _linecount: called CC=2 SCAR=7.6
Condition50%1/2
pos $_[0] || 0
l!l
026
MC/DC0%0/1
pos $_[0] || 0
pos $_[0]
Truth table50%1/2
A
A= pos $_[0]
Aresult
11
00
3271 }
3272  
3273  
3274 package main;
3275 5 $main::VERSION = '2.20151210';
3276 5 ▶use vars qw ( $RD_ERRORS $RD_WARN $RD_HINT $RD_TRACE $RD_CHECK );
Subroutine BEGIN: called CC=1 SCAR=0.0
3277 5 $::RD_CHECK = 1;
3278 5 $::RD_ERRORS = 1;
3279 5 $::RD_WARN = 3;
3280  
3281 5 1;
3282  
3283 }
3284 package Treex::Core::ScenarioParser;
3285 5 $Treex::Core::ScenarioParser::VERSION = '2.20151210';
3286 5 { my $ERRORS;
3287  
3288  
3289 package Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser;
3290 5 $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::VERSION = '2.20151210';
3291 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3292 5 ▶use vars qw($skip $AUTOLOAD );
Subroutine BEGIN: called CC=1 SCAR=0.0
3293 5 @Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::ISA = ();
3294 5 $skip = '\s*';
3295  
3296 5 ▶use File::Slurp;
Subroutine BEGIN: called CC=1 SCAR=0.0
3297 5 ▶use File::Basename;
Subroutine BEGIN: called CC=1 SCAR=0.0
3298 5 ▶use Treex::Core::Log;
Subroutine BEGIN: called CC=1 SCAR=0.0
3299 ## no critic (Miscellanea::ProhibitUnrestrictedNoCritic)
3300 ## no critic Generated code follows
3301 5 ▶no warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3302 ;
3303  
3304  
3305 {
3306 0 ▶local $SIG{__WARN__} = sub {0};
Subroutine __ANON__: not called CC=1 SCAR=0.4
3307 # PRETEND TO BE IN Parse::RecDescent::_Runtime NAMESPACE
3308 *Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::AUTOLOAD = sub
3309 {
3310 5 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
3311  
3312 0 ▶ ${"AUTOLOAD"} =~ s/^Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser/Parse::RecDescent::_Runtime/;
Subroutine __ANON__: not called CC=1 SCAR=6.9
3313 0 goto &{${"AUTOLOAD"}};
3314 }
3315 5 }
3316  
3317 5 push @Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::ISA, 'Parse::RecDescent::_Runtime';
3318 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3319 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SLASHEDDQUOTE
3320 {
3321 16 ▶ my $thisparser = $_[0];
Subroutine SLASHEDDQUOTE: called CC=29 SCAR=37.8
3322 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3323 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
3324 16 $ERRORS = 0;
3325 16 my $thisrule = $thisparser->{"rules"}{"SLASHEDDQUOTE"};
3326  
3327 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [SLASHEDDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3328 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3329 q{SLASHEDDQUOTE},
3330 $tracelevel)
3331 if defined $::RD_TRACE;
3332  
3333
3334 16 my $err_at = @{$thisparser->{errors}};
3335  
3336 16 my $score;
3337 my $score_return;
3338 16 my $_tok;
3339 16 my $return = undef;
3340 16 my $_matched=0;
3341 16 my $commit=0;
3342 16 my @item = ();
3343 16 my %item = ();
3344 16 my $repeating = $_[2];
3345 16 my $_noactions = $_[3];
3346 16 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 16 0 16
3347 16 my $_itempos = $_[5];
3348 16 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 16 16
3349 16 my $text;
3350 my $lastsep;
3351 16 my $current_match;
3352 16 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\\\"/});
3353 16 $expectation->at($_[1]);
3354
3355 16 my $thisline;
3356 16 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
3357  
3358
3359  
3360 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
3361 {
3362
3363 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\\\"/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
3364 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3365 q{SLASHEDDQUOTE},
3366 $tracelevel)
3367 if defined $::RD_TRACE;
3368 16 my $thisprod = $thisrule->{"prods"}[0];
3369 16 $text = $_[1];
3370 16 my $_savetext;
3371 16 @item = (q{SLASHEDDQUOTE});
3372 16 %item = (__RULE__ => q{SLASHEDDQUOTE});
3373 16 my $repcount = 0;
3374  
3375  
3376 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
3377 q{SLASHEDDQUOTE},
3378 $tracelevel)
3379 if defined $::RD_TRACE;
3380 16 undef $lastsep;
3381 16 $expectation->is(q{})->at($text);
3382
3383  
3384 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(?:\\")/) 8 8 16
$lastsep = $1 and "" 0 16 16
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\\")/
!ll&&!rl&&r
088
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
3385 {
3386 8 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 8 0 8
3387 8 $expectation->failed();
3388 8 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3389 Parse::RecDescent::_Runtime::_tracefirst($text))
3390 if defined $::RD_TRACE;
3391  
3392 8 last;
3393 }
3394 8 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3395 8 substr($text,0,length($current_match),q{});
3396 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3397 . $current_match . q{])},
3398 Parse::RecDescent::_Runtime::_tracefirst($text))
3399 if defined $::RD_TRACE;
3400 8 push @item, $item{__PATTERN1__}=$current_match;
3401
3402  
3403 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3404 Parse::RecDescent::_Runtime::_tracefirst($text),
3405 q{SLASHEDDQUOTE},
3406 $tracelevel)
3407 if defined $::RD_TRACE;
3408
3409  
3410 8 ▶ $_tok = ($_noactions) ? 0 : do {$return = '"'};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 8 8
3411 8 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 8 8
3412 {
3413 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
3414 if defined $::RD_TRACE;
3415 0 last;
3416 }
3417 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3418 . $_tok . q{])},
3419 Parse::RecDescent::_Runtime::_tracefirst($text))
3420 if defined $::RD_TRACE;
3421 8 push @item, $_tok;
3422 8 $item{__ACTION1__}=$_tok;
3423
3424  
3425 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\\\"/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3426 Parse::RecDescent::_Runtime::_tracefirst($text),
3427 q{SLASHEDDQUOTE},
3428 $tracelevel)
3429 if defined $::RD_TRACE;
3430  
3431  
3432  
3433 8 $_matched = 1;
3434 8 last;
3435 }
3436  
3437  
3438 16 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 8 8 16
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
808
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
3439 {
3440
3441  
3442 8 $_[1] = $text; # NOT SURE THIS IS NEEDED
3443 8 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3444 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3445 q{SLASHEDDQUOTE},
3446 $tracelevel)
3447 if defined $::RD_TRACE;
3448 8 return undef;
3449 }
3450 8 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 8 8
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
800
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
3451 {
3452 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3453 q{SLASHEDDQUOTE},
3454 $tracelevel)
3455 if defined $::RD_TRACE;
3456 0 $return = $score_return;
3457 }
3458 8 splice @{$thisparser->{errors}}, $err_at;
3459 8 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 8 8
3460 8 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 8 8
3461 {
3462 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
3463 $return . q{])}, "",
3464 q{SLASHEDDQUOTE},
3465 $tracelevel);
3466 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
3467 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
3468 Parse::RecDescent::_Runtime::_tracefirst($text),
3469 , q{SLASHEDDQUOTE},
3470 $tracelevel)
3471 }
3472 8 $_[1] = $text;
3473 8 return $return;
3474 }
3475  
3476 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3477 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PNAME
3478 {
3479 380 ▶ my $thisparser = $_[0];
Subroutine PNAME: called CC=29 SCAR=37.3
3480 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3481 380 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
3800
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
3482 380 $ERRORS = 0;
3483 380 my $thisrule = $thisparser->{"rules"}{"PNAME"};
3484  
3485 380 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 380 380
3486 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3487 q{PNAME},
3488 $tracelevel)
3489 if defined $::RD_TRACE;
3490  
3491
3492 380 my $err_at = @{$thisparser->{errors}};
3493  
3494 380 my $score;
3495 my $score_return;
3496 380 my $_tok;
3497 380 my $return = undef;
3498 380 my $_matched=0;
3499 380 my $commit=0;
3500 380 my @item = ();
3501 380 my %item = ();
3502 380 my $repeating = $_[2];
3503 380 my $_noactions = $_[3];
3504 380 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 380 0 380
3505 380 my $_itempos = $_[5];
3506 380 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 100 280 380
3507 380 my $text;
3508 my $lastsep;
3509 380 my $current_match;
3510 380 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\w+/});
3511 380 $expectation->at($_[1]);
3512
3513 380 my $thisline;
3514 380 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
3515  
3516
3517  
3518 380 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 380 0 380
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00380
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3519 {
3520
3521 380 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\w+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 380 380
3522 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3523 q{PNAME},
3524 $tracelevel)
3525 if defined $::RD_TRACE;
3526 380 my $thisprod = $thisrule->{"prods"}[0];
3527 380 $text = $_[1];
3528 380 my $_savetext;
3529 380 @item = (q{PNAME});
3530 380 %item = (__RULE__ => q{PNAME});
3531 380 my $repcount = 0;
3532  
3533  
3534 380 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\w+/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 380 380
3535 q{PNAME},
3536 $tracelevel)
3537 if defined $::RD_TRACE;
3538 380 undef $lastsep;
3539 380 $expectation->is(q{})->at($text);
3540
3541  
3542 380 ▶ 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+)/) 158 222 380
$lastsep = $1 and "" 276 104 380
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\w+)/
!ll&&!rl&&r
0158222
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
3543 {
3544 158 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 158 0 158
3545 158 $expectation->failed();
3546 158 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 158 158
3547 Parse::RecDescent::_Runtime::_tracefirst($text))
3548 if defined $::RD_TRACE;
3549  
3550 158 last;
3551 }
3552 222 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3553 222 substr($text,0,length($current_match),q{});
3554 222 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 222 222
3555 . $current_match . q{])},
3556 Parse::RecDescent::_Runtime::_tracefirst($text))
3557 if defined $::RD_TRACE;
3558 222 push @item, $item{__PATTERN1__}=$current_match;
3559
3560  
3561 222 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 222 222
3562 Parse::RecDescent::_Runtime::_tracefirst($text),
3563 q{PNAME},
3564 $tracelevel)
3565 if defined $::RD_TRACE;
3566
3567  
3568 222 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 222 222
3569 222 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 222 222
3570 {
3571 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
3572 if defined $::RD_TRACE;
3573 0 last;
3574 }
3575 222 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 222 222
3576 . $_tok . q{])},
3577 Parse::RecDescent::_Runtime::_tracefirst($text))
3578 if defined $::RD_TRACE;
3579 222 push @item, $_tok;
3580 222 $item{__ACTION1__}=$_tok;
3581
3582  
3583 222 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\w+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 222 222
3584 Parse::RecDescent::_Runtime::_tracefirst($text),
3585 q{PNAME},
3586 $tracelevel)
3587 if defined $::RD_TRACE;
3588  
3589  
3590  
3591 222 $_matched = 1;
3592 222 last;
3593 }
3594  
3595  
3596 380 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 158 222 380
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2220158
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
3597 {
3598
3599  
3600 158 $_[1] = $text; # NOT SURE THIS IS NEEDED
3601 158 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 158 158
3602 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3603 q{PNAME},
3604 $tracelevel)
3605 if defined $::RD_TRACE;
3606 158 return undef;
3607 }
3608 222 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 222 222
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
22200
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
3609 {
3610 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3611 q{PNAME},
3612 $tracelevel)
3613 if defined $::RD_TRACE;
3614 0 $return = $score_return;
3615 }
3616 222 splice @{$thisparser->{errors}}, $err_at;
3617 222 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 222 222
3618 222 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 222 222
3619 {
3620 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
3621 $return . q{])}, "",
3622 q{PNAME},
3623 $tracelevel);
3624 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
3625 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
3626 Parse::RecDescent::_Runtime::_tracefirst($text),
3627 , q{PNAME},
3628 $tracelevel)
3629 }
3630 222 $_[1] = $text;
3631 222 return $return;
3632 }
3633  
3634 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3635 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::INCLUDE
3636 {
3637 258 ▶ my $thisparser = $_[0];
Subroutine INCLUDE: called CC=46 SCAR=49.3
3638 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3639 258 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
2580
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
3640 258 $ERRORS = 0;
3641 258 my $thisrule = $thisparser->{"rules"}{"INCLUDE"};
3642  
3643 258 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [INCLUDE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
3644 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3645 q{INCLUDE},
3646 $tracelevel)
3647 if defined $::RD_TRACE;
3648  
3649
3650 258 my $err_at = @{$thisparser->{errors}};
3651  
3652 258 my $score;
3653 my $score_return;
3654 258 my $_tok;
3655 258 my $return = undef;
3656 258 my $_matched=0;
3657 258 my $commit=0;
3658 258 my @item = ();
3659 258 my %item = ();
3660 258 my $repeating = $_[2];
3661 258 my $_noactions = $_[3];
3662 258 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 258 0 258
3663 258 my $_itempos = $_[5];
3664 258 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 66 192 258
3665 258 my $text;
3666 my $lastsep;
3667 258 my $current_match;
3668 258 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\/\\S+\\.scen/, or /[^\\/#]\\S+\\.scen/});
3669 258 $expectation->at($_[1]);
3670
3671 258 my $thisline;
3672 258 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
3673  
3674
3675  
3676 258 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 258 0 258
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00258
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3677 {
3678
3679 258 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\/\\S+\\.scen/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
3680 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3681 q{INCLUDE},
3682 $tracelevel)
3683 if defined $::RD_TRACE;
3684 258 my $thisprod = $thisrule->{"prods"}[0];
3685 258 $text = $_[1];
3686 258 my $_savetext;
3687 258 @item = (q{INCLUDE});
3688 258 %item = (__RULE__ => q{INCLUDE});
3689 258 my $repcount = 0;
3690  
3691  
3692 258 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\/\\S+\\.scen/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
3693 q{INCLUDE},
3694 $tracelevel)
3695 if defined $::RD_TRACE;
3696 258 undef $lastsep;
3697 258 $expectation->is(q{})->at($text);
3698
3699  
3700 258 ▶ 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)]) 258 0 258
$lastsep = $1 and "" 135 123 258
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
02580
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
3701 {
3702 258 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 258 0 258
3703 258 $expectation->failed();
3704 258 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
3705 Parse::RecDescent::_Runtime::_tracefirst($text))
3706 if defined $::RD_TRACE;
3707  
3708 258 last;
3709 }
3710 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3711 0 substr($text,0,length($current_match),q{});
3712 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3713 . $current_match . q{])},
3714 Parse::RecDescent::_Runtime::_tracefirst($text))
3715 if defined $::RD_TRACE;
3716 0 push @item, $item{__PATTERN1__}=$current_match;
3717
3718  
3719 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3720 Parse::RecDescent::_Runtime::_tracefirst($text),
3721 q{INCLUDE},
3722 $tracelevel)
3723 if defined $::RD_TRACE;
3724
3725  
3726 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
3727 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
3728 {
3729 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
3730 if defined $::RD_TRACE;
3731 0 last;
3732 }
3733 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3734 . $_tok . q{])},
3735 Parse::RecDescent::_Runtime::_tracefirst($text))
3736 if defined $::RD_TRACE;
3737 0 push @item, $_tok;
3738 0 $item{__ACTION1__}=$_tok;
3739
3740  
3741 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\/\\S+\\.scen/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3742 Parse::RecDescent::_Runtime::_tracefirst($text),
3743 q{INCLUDE},
3744 $tracelevel)
3745 if defined $::RD_TRACE;
3746  
3747  
3748  
3749 0 $_matched = 1;
3750 0 last;
3751 }
3752  
3753  
3754 258 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 258 0 258
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00258
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3755 {
3756
3757 258 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[^\\/#]\\S+\\.scen/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
3758 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3759 q{INCLUDE},
3760 $tracelevel)
3761 if defined $::RD_TRACE;
3762 258 my $thisprod = $thisrule->{"prods"}[1];
3763 258 $text = $_[1];
3764 258 my $_savetext;
3765 258 @item = (q{INCLUDE});
3766 258 %item = (__RULE__ => q{INCLUDE});
3767 258 my $repcount = 0;
3768  
3769  
3770 258 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[^\\/#]\\S+\\.scen/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
3771 q{INCLUDE},
3772 $tracelevel)
3773 if defined $::RD_TRACE;
3774 258 undef $lastsep;
3775 258 $expectation->is(q{})->at($text);
3776
3777  
3778 258 ▶ 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)]) 253 5 258
$lastsep = $1 and "" 135 123 258
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
02535
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
3779 {
3780 253 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 253 0 253
3781 253 $expectation->failed();
3782 253 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
3783 Parse::RecDescent::_Runtime::_tracefirst($text))
3784 if defined $::RD_TRACE;
3785  
3786 253 last;
3787 }
3788 5 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3789 5 substr($text,0,length($current_match),q{});
3790 5 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3791 . $current_match . q{])},
3792 Parse::RecDescent::_Runtime::_tracefirst($text))
3793 if defined $::RD_TRACE;
3794 5 push @item, $item{__PATTERN1__}=$current_match;
3795
3796  
3797 5 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3798 Parse::RecDescent::_Runtime::_tracefirst($text),
3799 q{INCLUDE},
3800 $tracelevel)
3801 if defined $::RD_TRACE;
3802
3803  
3804 5 ▶ $_tok = ($_noactions) ? 0 : do { my $from_file = $arg[0];
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 5 5
3805 5 ▶ if (length $from_file) {
Branch: 1 branch
BranchTrueFalseTotal
if (length $from_file) { } 1 4 5
3806 1 $return = dirname($from_file) . "/$item[1]";
3807 } else {
3808 4 $return = "./$item[1]";
3809 }
3810 };
3811 5 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 5 5
3812 {
3813 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
3814 if defined $::RD_TRACE;
3815 0 last;
3816 }
3817 5 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3818 . $_tok . q{])},
3819 Parse::RecDescent::_Runtime::_tracefirst($text))
3820 if defined $::RD_TRACE;
3821 5 push @item, $_tok;
3822 5 $item{__ACTION1__}=$_tok;
3823
3824  
3825 5 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[^\\/#]\\S+\\.scen/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
3826 Parse::RecDescent::_Runtime::_tracefirst($text),
3827 q{INCLUDE},
3828 $tracelevel)
3829 if defined $::RD_TRACE;
3830  
3831  
3832  
3833 5 $_matched = 1;
3834 5 last;
3835 }
3836  
3837  
3838 258 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 253 5 258
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
50253
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
3839 {
3840
3841  
3842 253 $_[1] = $text; # NOT SURE THIS IS NEEDED
3843 253 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
3844 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3845 q{INCLUDE},
3846 $tracelevel)
3847 if defined $::RD_TRACE;
3848 253 return undef;
3849 }
3850 5 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 5 5
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
500
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
3851 {
3852 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3853 q{INCLUDE},
3854 $tracelevel)
3855 if defined $::RD_TRACE;
3856 0 $return = $score_return;
3857 }
3858 5 splice @{$thisparser->{errors}}, $err_at;
3859 5 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 5 5
3860 5 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 5 5
3861 {
3862 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
3863 $return . q{])}, "",
3864 q{INCLUDE},
3865 $tracelevel);
3866 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
3867 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
3868 Parse::RecDescent::_Runtime::_tracefirst($text),
3869 , q{INCLUDE},
3870 $tracelevel)
3871 }
3872 5 $_[1] = $text;
3873 5 return $return;
3874 }
3875  
3876 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
3877 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::NOTDQUOTE
3878 {
3879 24 ▶ my $thisparser = $_[0];
Subroutine NOTDQUOTE: called CC=24 SCAR=39.0
3880 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3881 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
240
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
3882 24 $ERRORS = 0;
3883 24 my $thisrule = $thisparser->{"rules"}{"NOTDQUOTE"};
3884  
3885 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [NOTDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3886 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3887 q{NOTDQUOTE},
3888 $tracelevel)
3889 if defined $::RD_TRACE;
3890  
3891
3892 24 my $err_at = @{$thisparser->{errors}};
3893  
3894 24 my $score;
3895 my $score_return;
3896 24 my $_tok;
3897 24 my $return = undef;
3898 24 my $_matched=0;
3899 24 my $commit=0;
3900 24 my @item = ();
3901 24 my %item = ();
3902 24 my $repeating = $_[2];
3903 24 my $_noactions = $_[3];
3904 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
3905 24 my $_itempos = $_[5];
3906 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 24 24
3907 24 my $text;
3908 my $lastsep;
3909 24 my $current_match;
3910 24 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/[^"]*[^"\\\\]/});
3911 24 $expectation->at($_[1]);
3912
3913 24 my $thisline;
3914 24 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
3915  
3916
3917  
3918 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3919 {
3920
3921 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[^"]*[^"\\\\]/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3922 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3923 q{NOTDQUOTE},
3924 $tracelevel)
3925 if defined $::RD_TRACE;
3926 24 my $thisprod = $thisrule->{"prods"}[0];
3927 24 $text = $_[1];
3928 24 my $_savetext;
3929 24 @item = (q{NOTDQUOTE});
3930 24 %item = (__RULE__ => q{NOTDQUOTE});
3931 24 my $repcount = 0;
3932  
3933  
3934 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[^"]*[^"\\\\]/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3935 q{NOTDQUOTE},
3936 $tracelevel)
3937 if defined $::RD_TRACE;
3938 24 undef $lastsep;
3939 24 $expectation->is(q{})->at($text);
3940
3941  
3942 24 ▶ 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 24 24
$lastsep = $1 and "" 0 24 24
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^"]*[^"\\])/
!ll&&!rl&&r
0024
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
3943 {
3944 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
3945 0 $expectation->failed();
3946 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3947 Parse::RecDescent::_Runtime::_tracefirst($text))
3948 if defined $::RD_TRACE;
3949  
3950 0 last;
3951 }
3952 24 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3953 24 substr($text,0,length($current_match),q{});
3954 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3955 . $current_match . q{])},
3956 Parse::RecDescent::_Runtime::_tracefirst($text))
3957 if defined $::RD_TRACE;
3958 24 push @item, $item{__PATTERN1__}=$current_match;
3959
3960  
3961 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[^"]*[^"\\\\]/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
3962 Parse::RecDescent::_Runtime::_tracefirst($text),
3963 q{NOTDQUOTE},
3964 $tracelevel)
3965 if defined $::RD_TRACE;
3966  
3967  
3968  
3969 24 $_matched = 1;
3970 24 last;
3971 }
3972  
3973  
3974 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
3975 {
3976
3977  
3978 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
3979 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3980 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
3981 q{NOTDQUOTE},
3982 $tracelevel)
3983 if defined $::RD_TRACE;
3984 0 return undef;
3985 }
3986 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
0240
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
3987 {
3988 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3989 q{NOTDQUOTE},
3990 $tracelevel)
3991 if defined $::RD_TRACE;
3992 0 $return = $score_return;
3993 }
3994 24 splice @{$thisparser->{errors}}, $err_at;
3995 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
3996 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
3997 {
3998 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
3999 $return . q{])}, "",
4000 q{NOTDQUOTE},
4001 $tracelevel);
4002 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
4003 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
4004 Parse::RecDescent::_Runtime::_tracefirst($text),
4005 , q{NOTDQUOTE},
4006 $tracelevel)
4007 }
4008 24 $_[1] = $text;
4009 24 return $return;
4010 }
4011  
4012 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4013 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAM
4014 {
4015 380 ▶ my $thisparser = $_[0];
Subroutine PARAM: called CC=43 SCAR=43.4
4016 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4017 380 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
3800
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
4018 380 $ERRORS = 0;
4019 380 my $thisrule = $thisparser->{"rules"}{"PARAM"};
4020  
4021 380 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PARAM]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 380 380
4022 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4023 q{PARAM},
4024 $tracelevel)
4025 if defined $::RD_TRACE;
4026  
4027
4028 380 my $err_at = @{$thisparser->{errors}};
4029  
4030 380 my $score;
4031 my $score_return;
4032 380 my $_tok;
4033 380 my $return = undef;
4034 380 my $_matched=0;
4035 380 my $commit=0;
4036 380 my @item = ();
4037 380 my %item = ();
4038 380 my $repeating = $_[2];
4039 380 my $_noactions = $_[3];
4040 380 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 380 0 380
4041 380 my $_itempos = $_[5];
4042 380 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 100 280 380
4043 380 my $text;
4044 my $lastsep;
4045 380 my $current_match;
4046 380 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{PNAME});
4047 380 $expectation->at($_[1]);
4048
4049 380 my $thisline;
4050 380 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4051  
4052
4053  
4054 380 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 380 0 380
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00380
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4055 {
4056 380 ▶ local $skip = defined($skip) ? $skip : $Parse::RecDescent::_Runtime::skip;
Branch: 1 branch
BranchTrueFalseTotal
defined $Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip ? : 380 0 380
4057 380 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [PNAME '=' <skip: qr//> PVALUE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 380 380
4058 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4059 q{PARAM},
4060 $tracelevel)
4061 if defined $::RD_TRACE;
4062 380 my $thisprod = $thisrule->{"prods"}[0];
4063 380 $text = $_[1];
4064 380 my $_savetext;
4065 380 @item = (q{PARAM});
4066 380 %item = (__RULE__ => q{PARAM});
4067 380 my $repcount = 0;
4068  
4069  
4070 380 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 380 380
4071 Parse::RecDescent::_Runtime::_tracefirst($text),
4072 q{PARAM},
4073 $tracelevel)
4074 if defined $::RD_TRACE;
4075 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4076 380 $expectation->is(q{})->at($text);
4077 380 ▶ 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))) 158 222 380
4078 {
4079
4080 158 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 158 158
4081 Parse::RecDescent::_Runtime::_tracefirst($text),
4082 q{PARAM},
4083 $tracelevel)
4084 if defined $::RD_TRACE;
4085 158 $expectation->failed();
4086 158 last;
4087 }
4088 222 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 222 222
4089 . $_tok . q{]},
4090  
4091 Parse::RecDescent::_Runtime::_tracefirst($text),
4092 q{PARAM},
4093 $tracelevel)
4094 if defined $::RD_TRACE;
4095 222 $item{q{PNAME}} = $_tok;
4096 222 push @item, $_tok;
4097
4098 }
4099  
4100 222 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: ['=']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 222 222
4101 Parse::RecDescent::_Runtime::_tracefirst($text),
4102 q{PARAM},
4103 $tracelevel)
4104 if defined $::RD_TRACE;
4105 222 undef $lastsep;
4106 222 $expectation->is(q{'='})->at($text);
4107
4108  
4109 222 ▶ 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\=/) 96 126 222
$lastsep = $1 and "" 0 222 222
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
!ll&&!rl&&r
096126
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
4110 {
4111 96 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 96 0 96
4112
4113 96 $expectation->failed();
4114 96 ▶ Parse::RecDescent::_Runtime::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 96 96
4115 Parse::RecDescent::_Runtime::_tracefirst($text))
4116 if defined $::RD_TRACE;
4117 96 last;
4118 }
4119 126 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4120 126 substr($text,0,length($current_match),q{});
4121 126 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4122 . $current_match . q{])},
4123 Parse::RecDescent::_Runtime::_tracefirst($text))
4124 if defined $::RD_TRACE;
4125 126 push @item, $item{__STRING1__}=$current_match;
4126
4127  
4128
4129  
4130 126 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying directive: [<skip: qr//>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4131 Parse::RecDescent::_Runtime::_tracefirst($text),
4132 q{PARAM},
4133 $tracelevel)
4134 if defined $::RD_TRACE;
4135 126 $_tok = do { my $oldskip = $skip; $skip= qr//; $oldskip };
4136 126 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 126 0 126
4137 {
4138 126 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4139 . $_tok . q{])},
4140 Parse::RecDescent::_Runtime::_tracefirst($text))
4141 if defined $::RD_TRACE;
4142 }
4143 else
4144 {
4145 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4146 Parse::RecDescent::_Runtime::_tracefirst($text))
4147 if defined $::RD_TRACE;
4148 }
4149
4150 126 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 126 126
4151 126 push @item, $item{__DIRECTIVE1__}=$_tok;
4152
4153  
4154 126 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PVALUE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4155 Parse::RecDescent::_Runtime::_tracefirst($text),
4156 q{PARAM},
4157 $tracelevel)
4158 if defined $::RD_TRACE;
4159 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4160 126 $expectation->is(q{PVALUE})->at($text);
4161 126 ▶ 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 126 126
4162 {
4163
4164 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PVALUE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4165 Parse::RecDescent::_Runtime::_tracefirst($text),
4166 q{PARAM},
4167 $tracelevel)
4168 if defined $::RD_TRACE;
4169 0 $expectation->failed();
4170 0 last;
4171 }
4172 126 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PVALUE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4173 . $_tok . q{]},
4174  
4175 Parse::RecDescent::_Runtime::_tracefirst($text),
4176 q{PARAM},
4177 $tracelevel)
4178 if defined $::RD_TRACE;
4179 126 $item{q{PVALUE}} = $_tok;
4180 126 push @item, $_tok;
4181
4182 }
4183  
4184 126 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4185 Parse::RecDescent::_Runtime::_tracefirst($text),
4186 q{PARAM},
4187 $tracelevel)
4188 if defined $::RD_TRACE;
4189
4190  
4191 126 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{PNAME}.'='.$item{PVALUE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 126 126
4192 126 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 126 126
4193 {
4194 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
4195 if defined $::RD_TRACE;
4196 0 last;
4197 }
4198 126 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4199 . $_tok . q{])},
4200 Parse::RecDescent::_Runtime::_tracefirst($text))
4201 if defined $::RD_TRACE;
4202 126 push @item, $_tok;
4203 126 $item{__ACTION1__}=$_tok;
4204
4205  
4206 126 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [PNAME '=' <skip: qr//> PVALUE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4207 Parse::RecDescent::_Runtime::_tracefirst($text),
4208 q{PARAM},
4209 $tracelevel)
4210 if defined $::RD_TRACE;
4211  
4212  
4213  
4214 126 $_matched = 1;
4215 126 last;
4216 }
4217  
4218  
4219 380 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 254 126 380
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
1260254
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
4220 {
4221
4222  
4223 254 $_[1] = $text; # NOT SURE THIS IS NEEDED
4224 254 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 254 254
4225 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4226 q{PARAM},
4227 $tracelevel)
4228 if defined $::RD_TRACE;
4229 254 return undef;
4230 }
4231 126 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 126 126
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
12600
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
4232 {
4233 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4234 q{PARAM},
4235 $tracelevel)
4236 if defined $::RD_TRACE;
4237 0 $return = $score_return;
4238 }
4239 126 splice @{$thisparser->{errors}}, $err_at;
4240 126 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 126 126
4241 126 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 126 126
4242 {
4243 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
4244 $return . q{])}, "",
4245 q{PARAM},
4246 $tracelevel);
4247 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
4248 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
4249 Parse::RecDescent::_Runtime::_tracefirst($text),
4250 , q{PARAM},
4251 $tracelevel)
4252 }
4253 126 $_[1] = $text;
4254 126 return $return;
4255 }
4256  
4257 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4258 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::TBNAME
4259 {
4260 444 ▶ my $thisparser = $_[0];
Subroutine TBNAME: called CC=46 SCAR=43.9
4261 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4262 444 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
4440
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
4263 444 $ERRORS = 0;
4264 444 my $thisrule = $thisparser->{"rules"}{"TBNAME"};
4265  
4266 444 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [TBNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 444 444
4267 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4268 q{TBNAME},
4269 $tracelevel)
4270 if defined $::RD_TRACE;
4271  
4272
4273 444 my $err_at = @{$thisparser->{errors}};
4274  
4275 444 my $score;
4276 my $score_return;
4277 444 my $_tok;
4278 444 my $return = undef;
4279 444 my $_matched=0;
4280 444 my $commit=0;
4281 444 my @item = ();
4282 444 my %item = ();
4283 444 my $repeating = $_[2];
4284 444 my $_noactions = $_[3];
4285 444 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 444 0 444
4286 444 my $_itempos = $_[5];
4287 444 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 108 336 444
4288 444 my $text;
4289 my $lastsep;
4290 444 my $current_match;
4291 444 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/::/, or BNAME});
4292 444 $expectation->at($_[1]);
4293
4294 444 my $thisline;
4295 444 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4296  
4297
4298  
4299 444 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 444 0 444
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00444
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4300 {
4301
4302 444 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/::/ BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 444 444
4303 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4304 q{TBNAME},
4305 $tracelevel)
4306 if defined $::RD_TRACE;
4307 444 my $thisprod = $thisrule->{"prods"}[0];
4308 444 $text = $_[1];
4309 444 my $_savetext;
4310 444 @item = (q{TBNAME});
4311 444 %item = (__RULE__ => q{TBNAME});
4312 444 my $repcount = 0;
4313  
4314  
4315 444 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/::/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 444 444
4316 q{TBNAME},
4317 $tracelevel)
4318 if defined $::RD_TRACE;
4319 444 undef $lastsep;
4320 444 $expectation->is(q{})->at($text);
4321
4322  
4323 444 ▶ 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(?:::)/) 440 4 444
$lastsep = $1 and "" 226 218 444
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:::)/
!ll&&!rl&&r
04404
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
4324 {
4325 440 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 440 0 440
4326 440 $expectation->failed();
4327 440 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 440 440
4328 Parse::RecDescent::_Runtime::_tracefirst($text))
4329 if defined $::RD_TRACE;
4330  
4331 440 last;
4332 }
4333 4 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4334 4 substr($text,0,length($current_match),q{});
4335 4 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4336 . $current_match . q{])},
4337 Parse::RecDescent::_Runtime::_tracefirst($text))
4338 if defined $::RD_TRACE;
4339 4 push @item, $item{__PATTERN1__}=$current_match;
4340
4341  
4342 4 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4343 Parse::RecDescent::_Runtime::_tracefirst($text),
4344 q{TBNAME},
4345 $tracelevel)
4346 if defined $::RD_TRACE;
4347 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4348 4 $expectation->is(q{BNAME})->at($text);
4349 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
4350 {
4351
4352 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4353 Parse::RecDescent::_Runtime::_tracefirst($text),
4354 q{TBNAME},
4355 $tracelevel)
4356 if defined $::RD_TRACE;
4357 0 $expectation->failed();
4358 0 last;
4359 }
4360 4 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4361 . $_tok . q{]},
4362  
4363 Parse::RecDescent::_Runtime::_tracefirst($text),
4364 q{TBNAME},
4365 $tracelevel)
4366 if defined $::RD_TRACE;
4367 4 $item{q{BNAME}} = $_tok;
4368 4 push @item, $_tok;
4369
4370 }
4371  
4372 4 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4373 Parse::RecDescent::_Runtime::_tracefirst($text),
4374 q{TBNAME},
4375 $tracelevel)
4376 if defined $::RD_TRACE;
4377
4378  
4379 4 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{BNAME}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 4 4
4380 4 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 4 4
4381 {
4382 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
4383 if defined $::RD_TRACE;
4384 0 last;
4385 }
4386 4 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4387 . $_tok . q{])},
4388 Parse::RecDescent::_Runtime::_tracefirst($text))
4389 if defined $::RD_TRACE;
4390 4 push @item, $_tok;
4391 4 $item{__ACTION1__}=$_tok;
4392
4393  
4394 4 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/::/ BNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4395 Parse::RecDescent::_Runtime::_tracefirst($text),
4396 q{TBNAME},
4397 $tracelevel)
4398 if defined $::RD_TRACE;
4399  
4400  
4401  
4402 4 $_matched = 1;
4403 4 last;
4404 }
4405  
4406  
4407 444 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 440 4 444
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
40440
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4408 {
4409
4410 440 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 440 440
4411 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4412 q{TBNAME},
4413 $tracelevel)
4414 if defined $::RD_TRACE;
4415 440 my $thisprod = $thisrule->{"prods"}[1];
4416 440 $text = $_[1];
4417 440 my $_savetext;
4418 440 @item = (q{TBNAME});
4419 440 %item = (__RULE__ => q{TBNAME});
4420 440 my $repcount = 0;
4421  
4422  
4423 440 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 440 440
4424 Parse::RecDescent::_Runtime::_tracefirst($text),
4425 q{TBNAME},
4426 $tracelevel)
4427 if defined $::RD_TRACE;
4428 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4429 440 $expectation->is(q{})->at($text);
4430 440 ▶ 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))) 252 188 440
4431 {
4432
4433 252 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 252 252
4434 Parse::RecDescent::_Runtime::_tracefirst($text),
4435 q{TBNAME},
4436 $tracelevel)
4437 if defined $::RD_TRACE;
4438 252 $expectation->failed();
4439 252 last;
4440 }
4441 188 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 188 188
4442 . $_tok . q{]},
4443  
4444 Parse::RecDescent::_Runtime::_tracefirst($text),
4445 q{TBNAME},
4446 $tracelevel)
4447 if defined $::RD_TRACE;
4448 188 $item{q{BNAME}} = $_tok;
4449 188 push @item, $_tok;
4450
4451 }
4452  
4453 188 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 188 188
4454 Parse::RecDescent::_Runtime::_tracefirst($text),
4455 q{TBNAME},
4456 $tracelevel)
4457 if defined $::RD_TRACE;
4458
4459  
4460 188 ▶ $_tok = ($_noactions) ? 0 : do {$return = "Treex::Block::$item{BNAME}"};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 188 188
4461 188 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 188 188
4462 {
4463 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
4464 if defined $::RD_TRACE;
4465 0 last;
4466 }
4467 188 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 188 188
4468 . $_tok . q{])},
4469 Parse::RecDescent::_Runtime::_tracefirst($text))
4470 if defined $::RD_TRACE;
4471 188 push @item, $_tok;
4472 188 $item{__ACTION1__}=$_tok;
4473
4474  
4475 188 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [BNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 188 188
4476 Parse::RecDescent::_Runtime::_tracefirst($text),
4477 q{TBNAME},
4478 $tracelevel)
4479 if defined $::RD_TRACE;
4480  
4481  
4482  
4483 188 $_matched = 1;
4484 188 last;
4485 }
4486  
4487  
4488 444 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 252 192 444
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
1920252
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
4489 {
4490
4491  
4492 252 $_[1] = $text; # NOT SURE THIS IS NEEDED
4493 252 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 252 252
4494 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4495 q{TBNAME},
4496 $tracelevel)
4497 if defined $::RD_TRACE;
4498 252 return undef;
4499 }
4500 192 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 192 192
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
19200
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
4501 {
4502 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4503 q{TBNAME},
4504 $tracelevel)
4505 if defined $::RD_TRACE;
4506 0 $return = $score_return;
4507 }
4508 192 splice @{$thisparser->{errors}}, $err_at;
4509 192 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 192 192
4510 192 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 192 192
4511 {
4512 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
4513 $return . q{])}, "",
4514 q{TBNAME},
4515 $tracelevel);
4516 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
4517 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
4518 Parse::RecDescent::_Runtime::_tracefirst($text),
4519 , q{TBNAME},
4520 $tracelevel)
4521 }
4522 192 $_[1] = $text;
4523 192 return $return;
4524 }
4525  
4526 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
4527 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PVALUE
4528 {
4529 126 ▶ my $thisparser = $_[0];
Subroutine PVALUE: called CC=107 SCAR=69.2
4530 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4531 126 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
1260
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
4532 126 $ERRORS = 0;
4533 126 my $thisrule = $thisparser->{"rules"}{"PVALUE"};
4534  
4535 126 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PVALUE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4536 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4537 q{PVALUE},
4538 $tracelevel)
4539 if defined $::RD_TRACE;
4540  
4541
4542 126 my $err_at = @{$thisparser->{errors}};
4543  
4544 126 my $score;
4545 my $score_return;
4546 126 my $_tok;
4547 126 my $return = undef;
4548 126 my $_matched=0;
4549 126 my $commit=0;
4550 126 my @item = ();
4551 126 my %item = ();
4552 126 my $repeating = $_[2];
4553 126 my $_noactions = $_[3];
4554 126 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 126 0 126
4555 126 my $_itempos = $_[5];
4556 126 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 32 94 126
4557 126 my $text;
4558 my $lastsep;
4559 126 my $current_match;
4560 126 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/'/, or /"/, or /`/, or PNOTQUOTED});
4561 126 $expectation->at($_[1]);
4562
4563 126 my $thisline;
4564 126 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
4565  
4566
4567  
4568 126 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 126 0 126
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00126
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4569 {
4570
4571 126 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/'/ PSQUOTE /'/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4572 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4573 q{PVALUE},
4574 $tracelevel)
4575 if defined $::RD_TRACE;
4576 126 my $thisprod = $thisrule->{"prods"}[0];
4577 126 $text = $_[1];
4578 126 my $_savetext;
4579 126 @item = (q{PVALUE});
4580 126 %item = (__RULE__ => q{PVALUE});
4581 126 my $repcount = 0;
4582  
4583  
4584 126 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/'/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
4585 q{PVALUE},
4586 $tracelevel)
4587 if defined $::RD_TRACE;
4588 126 undef $lastsep;
4589 126 $expectation->is(q{})->at($text);
4590
4591  
4592 126 ▶ 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(?:')/) 54 72 126
$lastsep = $1 and "" 0 126 126
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:')/
!ll&&!rl&&r
05472
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
4593 {
4594 54 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 54 0 54
4595 54 $expectation->failed();
4596 54 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 54 54
4597 Parse::RecDescent::_Runtime::_tracefirst($text))
4598 if defined $::RD_TRACE;
4599  
4600 54 last;
4601 }
4602 72 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4603 72 substr($text,0,length($current_match),q{});
4604 72 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4605 . $current_match . q{])},
4606 Parse::RecDescent::_Runtime::_tracefirst($text))
4607 if defined $::RD_TRACE;
4608 72 push @item, $item{__PATTERN1__}=$current_match;
4609
4610  
4611 72 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4612 Parse::RecDescent::_Runtime::_tracefirst($text),
4613 q{PVALUE},
4614 $tracelevel)
4615 if defined $::RD_TRACE;
4616 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4617 72 $expectation->is(q{PSQUOTE})->at($text);
4618 72 ▶ 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 72 72
4619 {
4620
4621 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4622 Parse::RecDescent::_Runtime::_tracefirst($text),
4623 q{PVALUE},
4624 $tracelevel)
4625 if defined $::RD_TRACE;
4626 0 $expectation->failed();
4627 0 last;
4628 }
4629 72 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4630 . $_tok . q{]},
4631  
4632 Parse::RecDescent::_Runtime::_tracefirst($text),
4633 q{PVALUE},
4634 $tracelevel)
4635 if defined $::RD_TRACE;
4636 72 $item{q{PSQUOTE}} = $_tok;
4637 72 push @item, $_tok;
4638
4639 }
4640  
4641 72 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/'/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4642 q{PVALUE},
4643 $tracelevel)
4644 if defined $::RD_TRACE;
4645 72 undef $lastsep;
4646 72 $expectation->is(q{/'/})->at($text);
4647
4648  
4649 72 ▶ 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 72 72
$lastsep = $1 and "" 0 72 72
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:')/
!ll&&!rl&&r
0072
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
4650 {
4651 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4652 0 $expectation->failed();
4653 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4654 Parse::RecDescent::_Runtime::_tracefirst($text))
4655 if defined $::RD_TRACE;
4656  
4657 0 last;
4658 }
4659 72 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4660 72 substr($text,0,length($current_match),q{});
4661 72 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4662 . $current_match . q{])},
4663 Parse::RecDescent::_Runtime::_tracefirst($text))
4664 if defined $::RD_TRACE;
4665 72 push @item, $item{__PATTERN2__}=$current_match;
4666
4667  
4668 72 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4669 Parse::RecDescent::_Runtime::_tracefirst($text),
4670 q{PVALUE},
4671 $tracelevel)
4672 if defined $::RD_TRACE;
4673
4674  
4675 72 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{PSQUOTE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 72 72
4676 72 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 72 72
4677 {
4678 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
4679 if defined $::RD_TRACE;
4680 0 last;
4681 }
4682 72 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4683 . $_tok . q{])},
4684 Parse::RecDescent::_Runtime::_tracefirst($text))
4685 if defined $::RD_TRACE;
4686 72 push @item, $_tok;
4687 72 $item{__ACTION1__}=$_tok;
4688
4689  
4690 72 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/'/ PSQUOTE /'/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
4691 Parse::RecDescent::_Runtime::_tracefirst($text),
4692 q{PVALUE},
4693 $tracelevel)
4694 if defined $::RD_TRACE;
4695  
4696  
4697  
4698 72 $_matched = 1;
4699 72 last;
4700 }
4701  
4702  
4703 126 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 54 72 126
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
72054
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4704 {
4705
4706 54 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/"/ PDQUOTE /"/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 54 54
4707 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4708 q{PVALUE},
4709 $tracelevel)
4710 if defined $::RD_TRACE;
4711 54 my $thisprod = $thisrule->{"prods"}[1];
4712 54 $text = $_[1];
4713 54 my $_savetext;
4714 54 @item = (q{PVALUE});
4715 54 %item = (__RULE__ => q{PVALUE});
4716 54 my $repcount = 0;
4717  
4718  
4719 54 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/"/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 54 54
4720 q{PVALUE},
4721 $tracelevel)
4722 if defined $::RD_TRACE;
4723 54 undef $lastsep;
4724 54 $expectation->is(q{})->at($text);
4725
4726  
4727 54 ▶ 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(?:")/) 46 8 54
$lastsep = $1 and "" 0 54 54
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:")/
!ll&&!rl&&r
0468
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
4728 {
4729 46 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 46 0 46
4730 46 $expectation->failed();
4731 46 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
4732 Parse::RecDescent::_Runtime::_tracefirst($text))
4733 if defined $::RD_TRACE;
4734  
4735 46 last;
4736 }
4737 8 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4738 8 substr($text,0,length($current_match),q{});
4739 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4740 . $current_match . q{])},
4741 Parse::RecDescent::_Runtime::_tracefirst($text))
4742 if defined $::RD_TRACE;
4743 8 push @item, $item{__PATTERN1__}=$current_match;
4744
4745  
4746 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4747 Parse::RecDescent::_Runtime::_tracefirst($text),
4748 q{PVALUE},
4749 $tracelevel)
4750 if defined $::RD_TRACE;
4751 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4752 8 $expectation->is(q{PDQUOTE})->at($text);
4753 8 ▶ 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 8 8
4754 {
4755
4756 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PDQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4757 Parse::RecDescent::_Runtime::_tracefirst($text),
4758 q{PVALUE},
4759 $tracelevel)
4760 if defined $::RD_TRACE;
4761 0 $expectation->failed();
4762 0 last;
4763 }
4764 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PDQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4765 . $_tok . q{]},
4766  
4767 Parse::RecDescent::_Runtime::_tracefirst($text),
4768 q{PVALUE},
4769 $tracelevel)
4770 if defined $::RD_TRACE;
4771 8 $item{q{PDQUOTE}} = $_tok;
4772 8 push @item, $_tok;
4773
4774 }
4775  
4776 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/"/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4777 q{PVALUE},
4778 $tracelevel)
4779 if defined $::RD_TRACE;
4780 8 undef $lastsep;
4781 8 $expectation->is(q{/"/})->at($text);
4782
4783  
4784 8 ▶ 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 8 8
$lastsep = $1 and "" 0 8 8
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:")/
!ll&&!rl&&r
008
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
4785 {
4786 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4787 0 $expectation->failed();
4788 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4789 Parse::RecDescent::_Runtime::_tracefirst($text))
4790 if defined $::RD_TRACE;
4791  
4792 0 last;
4793 }
4794 8 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4795 8 substr($text,0,length($current_match),q{});
4796 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4797 . $current_match . q{])},
4798 Parse::RecDescent::_Runtime::_tracefirst($text))
4799 if defined $::RD_TRACE;
4800 8 push @item, $item{__PATTERN2__}=$current_match;
4801
4802  
4803 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4804 Parse::RecDescent::_Runtime::_tracefirst($text),
4805 q{PVALUE},
4806 $tracelevel)
4807 if defined $::RD_TRACE;
4808
4809  
4810 8 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{PDQUOTE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 8 8
4811 8 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 8 8
4812 {
4813 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
4814 if defined $::RD_TRACE;
4815 0 last;
4816 }
4817 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4818 . $_tok . q{])},
4819 Parse::RecDescent::_Runtime::_tracefirst($text))
4820 if defined $::RD_TRACE;
4821 8 push @item, $_tok;
4822 8 $item{__ACTION1__}=$_tok;
4823
4824  
4825 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/"/ PDQUOTE /"/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4826 Parse::RecDescent::_Runtime::_tracefirst($text),
4827 q{PVALUE},
4828 $tracelevel)
4829 if defined $::RD_TRACE;
4830  
4831  
4832  
4833 8 $_matched = 1;
4834 8 last;
4835 }
4836  
4837  
4838 126 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 46 80 126
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
80046
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4839 {
4840
4841 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/`/ PTICKED /`/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
4842 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4843 q{PVALUE},
4844 $tracelevel)
4845 if defined $::RD_TRACE;
4846 46 my $thisprod = $thisrule->{"prods"}[2];
4847 46 $text = $_[1];
4848 46 my $_savetext;
4849 46 @item = (q{PVALUE});
4850 46 %item = (__RULE__ => q{PVALUE});
4851 46 my $repcount = 0;
4852  
4853  
4854 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/`/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
4855 q{PVALUE},
4856 $tracelevel)
4857 if defined $::RD_TRACE;
4858 46 undef $lastsep;
4859 46 $expectation->is(q{})->at($text);
4860
4861  
4862 46 ▶ 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(?:`)/) 46 0 46
$lastsep = $1 and "" 0 46 46
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:`)/
!ll&&!rl&&r
0460
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
4863 {
4864 46 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 46 0 46
4865 46 $expectation->failed();
4866 46 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
4867 Parse::RecDescent::_Runtime::_tracefirst($text))
4868 if defined $::RD_TRACE;
4869  
4870 46 last;
4871 }
4872 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4873 0 substr($text,0,length($current_match),q{});
4874 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4875 . $current_match . q{])},
4876 Parse::RecDescent::_Runtime::_tracefirst($text))
4877 if defined $::RD_TRACE;
4878 0 push @item, $item{__PATTERN1__}=$current_match;
4879
4880  
4881 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PTICKED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4882 Parse::RecDescent::_Runtime::_tracefirst($text),
4883 q{PVALUE},
4884 $tracelevel)
4885 if defined $::RD_TRACE;
4886 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
4887 0 $expectation->is(q{PTICKED})->at($text);
4888 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
4889 {
4890
4891 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PTICKED]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4892 Parse::RecDescent::_Runtime::_tracefirst($text),
4893 q{PVALUE},
4894 $tracelevel)
4895 if defined $::RD_TRACE;
4896 0 $expectation->failed();
4897 0 last;
4898 }
4899 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PTICKED]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4900 . $_tok . q{]},
4901  
4902 Parse::RecDescent::_Runtime::_tracefirst($text),
4903 q{PVALUE},
4904 $tracelevel)
4905 if defined $::RD_TRACE;
4906 0 $item{q{PTICKED}} = $_tok;
4907 0 push @item, $_tok;
4908
4909 }
4910  
4911 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
4912 q{PVALUE},
4913 $tracelevel)
4914 if defined $::RD_TRACE;
4915 0 undef $lastsep;
4916 0 $expectation->is(q{/`/})->at($text);
4917
4918  
4919 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
4920 {
4921 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
4922 0 $expectation->failed();
4923 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4924 Parse::RecDescent::_Runtime::_tracefirst($text))
4925 if defined $::RD_TRACE;
4926  
4927 0 last;
4928 }
4929 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4930 0 substr($text,0,length($current_match),q{});
4931 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4932 . $current_match . q{])},
4933 Parse::RecDescent::_Runtime::_tracefirst($text))
4934 if defined $::RD_TRACE;
4935 0 push @item, $item{__PATTERN2__}=$current_match;
4936
4937  
4938 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4939 Parse::RecDescent::_Runtime::_tracefirst($text),
4940 q{PVALUE},
4941 $tracelevel)
4942 if defined $::RD_TRACE;
4943
4944  
4945 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1].$item[2].$item[3]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
4946 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
4947 {
4948 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
4949 if defined $::RD_TRACE;
4950 0 last;
4951 }
4952 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4953 . $_tok . q{])},
4954 Parse::RecDescent::_Runtime::_tracefirst($text))
4955 if defined $::RD_TRACE;
4956 0 push @item, $_tok;
4957 0 $item{__ACTION1__}=$_tok;
4958
4959  
4960 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/`/ PTICKED /`/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4961 Parse::RecDescent::_Runtime::_tracefirst($text),
4962 q{PVALUE},
4963 $tracelevel)
4964 if defined $::RD_TRACE;
4965  
4966  
4967  
4968 0 $_matched = 1;
4969 0 last;
4970 }
4971  
4972  
4973 126 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 46 80 126
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
80046
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4974 {
4975
4976 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [PNOTQUOTED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
4977 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
4978 q{PVALUE},
4979 $tracelevel)
4980 if defined $::RD_TRACE;
4981 46 my $thisprod = $thisrule->{"prods"}[3];
4982 46 $text = $_[1];
4983 46 my $_savetext;
4984 46 @item = (q{PVALUE});
4985 46 %item = (__RULE__ => q{PVALUE});
4986 46 my $repcount = 0;
4987  
4988  
4989 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PNOTQUOTED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
4990 Parse::RecDescent::_Runtime::_tracefirst($text),
4991 q{PVALUE},
4992 $tracelevel)
4993 if defined $::RD_TRACE;
4994 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4995 46 $expectation->is(q{})->at($text);
4996 46 ▶ 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 46 46
4997 {
4998
4999 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PNOTQUOTED]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5000 Parse::RecDescent::_Runtime::_tracefirst($text),
5001 q{PVALUE},
5002 $tracelevel)
5003 if defined $::RD_TRACE;
5004 0 $expectation->failed();
5005 0 last;
5006 }
5007 46 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PNOTQUOTED]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
5008 . $_tok . q{]},
5009  
5010 Parse::RecDescent::_Runtime::_tracefirst($text),
5011 q{PVALUE},
5012 $tracelevel)
5013 if defined $::RD_TRACE;
5014 46 $item{q{PNOTQUOTED}} = $_tok;
5015 46 push @item, $_tok;
5016
5017 }
5018  
5019 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
5020 Parse::RecDescent::_Runtime::_tracefirst($text),
5021 q{PVALUE},
5022 $tracelevel)
5023 if defined $::RD_TRACE;
5024
5025  
5026 46 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{PNOTQUOTED}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 46 46
5027 46 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 46 46
5028 {
5029 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
5030 if defined $::RD_TRACE;
5031 0 last;
5032 }
5033 46 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
5034 . $_tok . q{])},
5035 Parse::RecDescent::_Runtime::_tracefirst($text))
5036 if defined $::RD_TRACE;
5037 46 push @item, $_tok;
5038 46 $item{__ACTION1__}=$_tok;
5039
5040  
5041 46 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [PNOTQUOTED]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
5042 Parse::RecDescent::_Runtime::_tracefirst($text),
5043 q{PVALUE},
5044 $tracelevel)
5045 if defined $::RD_TRACE;
5046  
5047  
5048  
5049 46 $_matched = 1;
5050 46 last;
5051 }
5052  
5053  
5054 126 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 126 126
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
12600
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
5055 {
5056
5057  
5058 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
5059 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5060 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5061 q{PVALUE},
5062 $tracelevel)
5063 if defined $::RD_TRACE;
5064 0 return undef;
5065 }
5066 126 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 126 126
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
12600
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
5067 {
5068 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5069 q{PVALUE},
5070 $tracelevel)
5071 if defined $::RD_TRACE;
5072 0 $return = $score_return;
5073 }
5074 126 splice @{$thisparser->{errors}}, $err_at;
5075 126 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 126 126
5076 126 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 126 126
5077 {
5078 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5079 $return . q{])}, "",
5080 q{PVALUE},
5081 $tracelevel);
5082 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5083 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5084 Parse::RecDescent::_Runtime::_tracefirst($text),
5085 , q{PVALUE},
5086 $tracelevel)
5087 }
5088 126 $_[1] = $text;
5089 126 return $return;
5090 }
5091  
5092 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5093 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::NOTSQUOTE
5094 {
5095 152 ▶ my $thisparser = $_[0];
Subroutine NOTSQUOTE: called CC=24 SCAR=38.6
5096 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5097 152 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
1520
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
5098 152 $ERRORS = 0;
5099 152 my $thisrule = $thisparser->{"rules"}{"NOTSQUOTE"};
5100  
5101 152 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [NOTSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 152 152
5102 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5103 q{NOTSQUOTE},
5104 $tracelevel)
5105 if defined $::RD_TRACE;
5106  
5107
5108 152 my $err_at = @{$thisparser->{errors}};
5109  
5110 152 my $score;
5111 my $score_return;
5112 152 my $_tok;
5113 152 my $return = undef;
5114 152 my $_matched=0;
5115 152 my $commit=0;
5116 152 my @item = ();
5117 152 my %item = ();
5118 152 my $repeating = $_[2];
5119 152 my $_noactions = $_[3];
5120 152 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 152 0 152
5121 152 my $_itempos = $_[5];
5122 152 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 64 88 152
5123 152 my $text;
5124 my $lastsep;
5125 152 my $current_match;
5126 152 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/[^']*[^'\\\\]/});
5127 152 $expectation->at($_[1]);
5128
5129 152 my $thisline;
5130 152 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5131  
5132
5133  
5134 152 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 152 0 152
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00152
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5135 {
5136
5137 152 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[^']*[^'\\\\]/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 152 152
5138 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5139 q{NOTSQUOTE},
5140 $tracelevel)
5141 if defined $::RD_TRACE;
5142 152 my $thisprod = $thisrule->{"prods"}[0];
5143 152 $text = $_[1];
5144 152 my $_savetext;
5145 152 @item = (q{NOTSQUOTE});
5146 152 %item = (__RULE__ => q{NOTSQUOTE});
5147 152 my $repcount = 0;
5148  
5149  
5150 152 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/[^']*[^'\\\\]/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 152 152
5151 q{NOTSQUOTE},
5152 $tracelevel)
5153 if defined $::RD_TRACE;
5154 152 undef $lastsep;
5155 152 $expectation->is(q{})->at($text);
5156
5157  
5158 152 ▶ 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 152 152
$lastsep = $1 and "" 0 152 152
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[^']*[^'\\])/
!ll&&!rl&&r
00152
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
5159 {
5160 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
5161 0 $expectation->failed();
5162 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5163 Parse::RecDescent::_Runtime::_tracefirst($text))
5164 if defined $::RD_TRACE;
5165  
5166 0 last;
5167 }
5168 152 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5169 152 substr($text,0,length($current_match),q{});
5170 152 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 152 152
5171 . $current_match . q{])},
5172 Parse::RecDescent::_Runtime::_tracefirst($text))
5173 if defined $::RD_TRACE;
5174 152 push @item, $item{__PATTERN1__}=$current_match;
5175
5176  
5177 152 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[^']*[^'\\\\]/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 152 152
5178 Parse::RecDescent::_Runtime::_tracefirst($text),
5179 q{NOTSQUOTE},
5180 $tracelevel)
5181 if defined $::RD_TRACE;
5182  
5183  
5184  
5185 152 $_matched = 1;
5186 152 last;
5187 }
5188  
5189  
5190 152 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 152 152
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
15200
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
5191 {
5192
5193  
5194 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
5195 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5196 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5197 q{NOTSQUOTE},
5198 $tracelevel)
5199 if defined $::RD_TRACE;
5200 0 return undef;
5201 }
5202 152 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 152 152
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
01520
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
5203 {
5204 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5205 q{NOTSQUOTE},
5206 $tracelevel)
5207 if defined $::RD_TRACE;
5208 0 $return = $score_return;
5209 }
5210 152 splice @{$thisparser->{errors}}, $err_at;
5211 152 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 152 0 152
5212 152 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 152 152
5213 {
5214 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5215 $return . q{])}, "",
5216 q{NOTSQUOTE},
5217 $tracelevel);
5218 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5219 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5220 Parse::RecDescent::_Runtime::_tracefirst($text),
5221 , q{NOTSQUOTE},
5222 $tracelevel)
5223 }
5224 152 $_[1] = $text;
5225 152 return $return;
5226 }
5227  
5228 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5229 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SPACE
5230 {
5231 0 ▶ my $thisparser = $_[0];
Subroutine SPACE: not called CC=29 SCAR=67.0
5232 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5233 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
5234 0 $ERRORS = 0;
5235 0 my $thisrule = $thisparser->{"rules"}{"SPACE"};
5236  
5237 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [SPACE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5238 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5239 q{SPACE},
5240 $tracelevel)
5241 if defined $::RD_TRACE;
5242  
5243
5244 0 my $err_at = @{$thisparser->{errors}};
5245  
5246 0 my $score;
5247 my $score_return;
5248 0 my $_tok;
5249 0 my $return = undef;
5250 0 my $_matched=0;
5251 0 my $commit=0;
5252 0 my @item = ();
5253 0 my %item = ();
5254 0 my $repeating = $_[2];
5255 0 my $_noactions = $_[3];
5256 0 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 0 0 0
5257 0 my $_itempos = $_[5];
5258 0 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 0 0
5259 0 my $text;
5260 my $lastsep;
5261 0 my $current_match;
5262 0 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\s+/});
5263 0 $expectation->at($_[1]);
5264
5265 0 my $thisline;
5266 0 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5267  
5268
5269  
5270 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
5271 {
5272
5273 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\s+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5274 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5275 q{SPACE},
5276 $tracelevel)
5277 if defined $::RD_TRACE;
5278 0 my $thisprod = $thisrule->{"prods"}[0];
5279 0 $text = $_[1];
5280 0 my $_savetext;
5281 0 @item = (q{SPACE});
5282 0 %item = (__RULE__ => q{SPACE});
5283 0 my $repcount = 0;
5284  
5285  
5286 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
5287 q{SPACE},
5288 $tracelevel)
5289 if defined $::RD_TRACE;
5290 0 undef $lastsep;
5291 0 $expectation->is(q{})->at($text);
5292
5293  
5294 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
5295 {
5296 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
5297 0 $expectation->failed();
5298 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5299 Parse::RecDescent::_Runtime::_tracefirst($text))
5300 if defined $::RD_TRACE;
5301  
5302 0 last;
5303 }
5304 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5305 0 substr($text,0,length($current_match),q{});
5306 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5307 . $current_match . q{])},
5308 Parse::RecDescent::_Runtime::_tracefirst($text))
5309 if defined $::RD_TRACE;
5310 0 push @item, $item{__PATTERN1__}=$current_match;
5311
5312  
5313 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5314 Parse::RecDescent::_Runtime::_tracefirst($text),
5315 q{SPACE},
5316 $tracelevel)
5317 if defined $::RD_TRACE;
5318
5319  
5320 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
5321 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
5322 {
5323 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
5324 if defined $::RD_TRACE;
5325 0 last;
5326 }
5327 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5328 . $_tok . q{])},
5329 Parse::RecDescent::_Runtime::_tracefirst($text))
5330 if defined $::RD_TRACE;
5331 0 push @item, $_tok;
5332 0 $item{__ACTION1__}=$_tok;
5333
5334  
5335 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\s+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5336 Parse::RecDescent::_Runtime::_tracefirst($text),
5337 q{SPACE},
5338 $tracelevel)
5339 if defined $::RD_TRACE;
5340  
5341  
5342  
5343 0 $_matched = 1;
5344 0 last;
5345 }
5346  
5347  
5348 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
5349 {
5350
5351  
5352 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
5353 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5354 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5355 q{SPACE},
5356 $tracelevel)
5357 if defined $::RD_TRACE;
5358 0 return undef;
5359 }
5360 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
5361 {
5362 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5363 q{SPACE},
5364 $tracelevel)
5365 if defined $::RD_TRACE;
5366 0 $return = $score_return;
5367 }
5368 0 splice @{$thisparser->{errors}}, $err_at;
5369 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
5370 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
5371 {
5372 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5373 $return . q{])}, "",
5374 q{SPACE},
5375 $tracelevel);
5376 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5377 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5378 Parse::RecDescent::_Runtime::_tracefirst($text),
5379 , q{SPACE},
5380 $tracelevel)
5381 }
5382 0 $_[1] = $text;
5383 0 return $return;
5384 }
5385  
5386 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5387 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::COMMENT
5388 {
5389 134 ▶ my $thisparser = $_[0];
Subroutine COMMENT: called CC=29 SCAR=37.3
5390 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5391 134 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
1340
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
5392 134 $ERRORS = 0;
5393 134 my $thisrule = $thisparser->{"rules"}{"COMMENT"};
5394  
5395 134 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
5396 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5397 q{COMMENT},
5398 $tracelevel)
5399 if defined $::RD_TRACE;
5400  
5401
5402 134 my $err_at = @{$thisparser->{errors}};
5403  
5404 134 my $score;
5405 my $score_return;
5406 134 my $_tok;
5407 134 my $return = undef;
5408 134 my $_matched=0;
5409 134 my $commit=0;
5410 134 my @item = ();
5411 134 my %item = ();
5412 134 my $repeating = $_[2];
5413 134 my $_noactions = $_[3];
5414 134 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 134 0 134
5415 134 my $_itempos = $_[5];
5416 134 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 33 101 134
5417 134 my $text;
5418 my $lastsep;
5419 134 my $current_match;
5420 134 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/#[^\\n]*/});
5421 134 $expectation->at($_[1]);
5422
5423 134 my $thisline;
5424 134 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5425  
5426
5427  
5428 134 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 134 0 134
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00134
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5429 {
5430
5431 134 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/#[^\\n]*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
5432 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5433 q{COMMENT},
5434 $tracelevel)
5435 if defined $::RD_TRACE;
5436 134 my $thisprod = $thisrule->{"prods"}[0];
5437 134 $text = $_[1];
5438 134 my $_savetext;
5439 134 @item = (q{COMMENT});
5440 134 %item = (__RULE__ => q{COMMENT});
5441 134 my $repcount = 0;
5442  
5443  
5444 134 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/#[^\\n]*/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
5445 q{COMMENT},
5446 $tracelevel)
5447 if defined $::RD_TRACE;
5448 134 undef $lastsep;
5449 134 $expectation->is(q{})->at($text);
5450
5451  
5452 134 ▶ 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]*)/) 113 21 134
$lastsep = $1 and "" 70 64 134
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:#[^\n]*)/
!ll&&!rl&&r
011321
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
5453 {
5454 113 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 113 0 113
5455 113 $expectation->failed();
5456 113 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 113 113
5457 Parse::RecDescent::_Runtime::_tracefirst($text))
5458 if defined $::RD_TRACE;
5459  
5460 113 last;
5461 }
5462 21 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5463 21 substr($text,0,length($current_match),q{});
5464 21 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5465 . $current_match . q{])},
5466 Parse::RecDescent::_Runtime::_tracefirst($text))
5467 if defined $::RD_TRACE;
5468 21 push @item, $item{__PATTERN1__}=$current_match;
5469
5470  
5471 21 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5472 Parse::RecDescent::_Runtime::_tracefirst($text),
5473 q{COMMENT},
5474 $tracelevel)
5475 if defined $::RD_TRACE;
5476
5477  
5478 21 ▶ $_tok = ($_noactions) ? 0 : do {$return = ''};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 21 21
5479 21 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 21 21
5480 {
5481 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
5482 if defined $::RD_TRACE;
5483 0 last;
5484 }
5485 21 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5486 . $_tok . q{])},
5487 Parse::RecDescent::_Runtime::_tracefirst($text))
5488 if defined $::RD_TRACE;
5489 21 push @item, $_tok;
5490 21 $item{__ACTION1__}=$_tok;
5491
5492  
5493 21 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/#[^\\n]*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5494 Parse::RecDescent::_Runtime::_tracefirst($text),
5495 q{COMMENT},
5496 $tracelevel)
5497 if defined $::RD_TRACE;
5498  
5499  
5500  
5501 21 $_matched = 1;
5502 21 last;
5503 }
5504  
5505  
5506 134 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 113 21 134
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
210113
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
5507 {
5508
5509  
5510 113 $_[1] = $text; # NOT SURE THIS IS NEEDED
5511 113 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 113 113
5512 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5513 q{COMMENT},
5514 $tracelevel)
5515 if defined $::RD_TRACE;
5516 113 return undef;
5517 }
5518 21 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 21 21
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
2100
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
5519 {
5520 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5521 q{COMMENT},
5522 $tracelevel)
5523 if defined $::RD_TRACE;
5524 0 $return = $score_return;
5525 }
5526 21 splice @{$thisparser->{errors}}, $err_at;
5527 21 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 21 21
5528 21 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 21 21
5529 {
5530 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5531 $return . q{])}, "",
5532 q{COMMENT},
5533 $tracelevel);
5534 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5535 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5536 Parse::RecDescent::_Runtime::_tracefirst($text),
5537 , q{COMMENT},
5538 $tracelevel)
5539 }
5540 21 $_[1] = $text;
5541 21 return $return;
5542 }
5543  
5544 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5545 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAMS
5546 {
5547 191 ▶ my $thisparser = $_[0];
Subroutine PARAMS: called CC=43 SCAR=41.7
5548 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5549 191 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
1910
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
5550 191 $ERRORS = 0;
5551 191 my $thisrule = $thisparser->{"rules"}{"PARAMS"};
5552  
5553 191 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 191 191
5554 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5555 q{PARAMS},
5556 $tracelevel)
5557 if defined $::RD_TRACE;
5558  
5559
5560 191 my $err_at = @{$thisparser->{errors}};
5561  
5562 191 my $score;
5563 my $score_return;
5564 191 my $_tok;
5565 191 my $return = undef;
5566 191 my $_matched=0;
5567 191 my $commit=0;
5568 191 my @item = ();
5569 191 my %item = ();
5570 191 my $repeating = $_[2];
5571 191 my $_noactions = $_[3];
5572 191 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 191 0 191
5573 191 my $_itempos = $_[5];
5574 191 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 50 141 191
5575 191 my $text;
5576 my $lastsep;
5577 191 my $current_match;
5578 191 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{PARAM});
5579 191 $expectation->at($_[1]);
5580
5581 191 my $thisline;
5582 191 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5583  
5584
5585  
5586 191 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 191 0 191
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00191
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5587 {
5588
5589 191 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [PARAM PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 191 191
5590 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5591 q{PARAMS},
5592 $tracelevel)
5593 if defined $::RD_TRACE;
5594 191 my $thisprod = $thisrule->{"prods"}[0];
5595 191 $text = $_[1];
5596 191 my $_savetext;
5597 191 @item = (q{PARAMS});
5598 191 %item = (__RULE__ => q{PARAMS});
5599 191 my $repcount = 0;
5600  
5601  
5602 191 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAM]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 191 191
5603 Parse::RecDescent::_Runtime::_tracefirst($text),
5604 q{PARAMS},
5605 $tracelevel)
5606 if defined $::RD_TRACE;
5607 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5608 191 $expectation->is(q{})->at($text);
5609 191 ▶ 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))) 127 64 191
5610 {
5611
5612 127 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAM]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 127 127
5613 Parse::RecDescent::_Runtime::_tracefirst($text),
5614 q{PARAMS},
5615 $tracelevel)
5616 if defined $::RD_TRACE;
5617 127 $expectation->failed();
5618 127 last;
5619 }
5620 64 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAM]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5621 . $_tok . q{]},
5622  
5623 Parse::RecDescent::_Runtime::_tracefirst($text),
5624 q{PARAMS},
5625 $tracelevel)
5626 if defined $::RD_TRACE;
5627 64 $item{q{PARAM}} = $_tok;
5628 64 push @item, $_tok;
5629
5630 }
5631  
5632 64 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 64 64
5633 Parse::RecDescent::_Runtime::_tracefirst($text),
5634 q{PARAMS},
5635 $tracelevel)
5636 if defined $::RD_TRACE;
5637 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5638 64 $expectation->is(q{PARAMS})->at($text);
5639 64 ▶ 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))) 62 2 64
5640 {
5641
5642 62 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAMS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
5643 Parse::RecDescent::_Runtime::_tracefirst($text),
5644 q{PARAMS},
5645 $tracelevel)
5646 if defined $::RD_TRACE;
5647 62 $expectation->failed();
5648 62 last;
5649 }
5650 2 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAMS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5651 . $_tok . q{]},
5652  
5653 Parse::RecDescent::_Runtime::_tracefirst($text),
5654 q{PARAMS},
5655 $tracelevel)
5656 if defined $::RD_TRACE;
5657 2 $item{q{PARAMS}} = $_tok;
5658 2 push @item, $_tok;
5659
5660 }
5661  
5662 2 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5663 Parse::RecDescent::_Runtime::_tracefirst($text),
5664 q{PARAMS},
5665 $tracelevel)
5666 if defined $::RD_TRACE;
5667
5668  
5669 2 ▶ $_tok = ($_noactions) ? 0 : do {$return = [$item{PARAM}, @{$item{PARAMS}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 2 2
5670 2 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 2 2
5671 {
5672 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
5673 if defined $::RD_TRACE;
5674 0 last;
5675 }
5676 2 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5677 . $_tok . q{])},
5678 Parse::RecDescent::_Runtime::_tracefirst($text))
5679 if defined $::RD_TRACE;
5680 2 push @item, $_tok;
5681 2 $item{__ACTION1__}=$_tok;
5682
5683  
5684 2 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [PARAM PARAMS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
5685 Parse::RecDescent::_Runtime::_tracefirst($text),
5686 q{PARAMS},
5687 $tracelevel)
5688 if defined $::RD_TRACE;
5689  
5690  
5691  
5692 2 $_matched = 1;
5693 2 last;
5694 }
5695  
5696  
5697 191 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 189 2 191
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
20189
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5698 {
5699
5700 189 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [PARAM]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 189 189
5701 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5702 q{PARAMS},
5703 $tracelevel)
5704 if defined $::RD_TRACE;
5705 189 my $thisprod = $thisrule->{"prods"}[1];
5706 189 $text = $_[1];
5707 189 my $_savetext;
5708 189 @item = (q{PARAMS});
5709 189 %item = (__RULE__ => q{PARAMS});
5710 189 my $repcount = 0;
5711  
5712  
5713 189 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAM]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 189 189
5714 Parse::RecDescent::_Runtime::_tracefirst($text),
5715 q{PARAMS},
5716 $tracelevel)
5717 if defined $::RD_TRACE;
5718 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5719 189 $expectation->is(q{})->at($text);
5720 189 ▶ 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))) 127 62 189
5721 {
5722
5723 127 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAM]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 127 127
5724 Parse::RecDescent::_Runtime::_tracefirst($text),
5725 q{PARAMS},
5726 $tracelevel)
5727 if defined $::RD_TRACE;
5728 127 $expectation->failed();
5729 127 last;
5730 }
5731 62 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAM]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
5732 . $_tok . q{]},
5733  
5734 Parse::RecDescent::_Runtime::_tracefirst($text),
5735 q{PARAMS},
5736 $tracelevel)
5737 if defined $::RD_TRACE;
5738 62 $item{q{PARAM}} = $_tok;
5739 62 push @item, $_tok;
5740
5741 }
5742  
5743 62 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
5744 Parse::RecDescent::_Runtime::_tracefirst($text),
5745 q{PARAMS},
5746 $tracelevel)
5747 if defined $::RD_TRACE;
5748
5749  
5750 62 ▶ $_tok = ($_noactions) ? 0 : do {$return = [$item{PARAM}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 62 62
5751 62 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 62 62
5752 {
5753 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
5754 if defined $::RD_TRACE;
5755 0 last;
5756 }
5757 62 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
5758 . $_tok . q{])},
5759 Parse::RecDescent::_Runtime::_tracefirst($text))
5760 if defined $::RD_TRACE;
5761 62 push @item, $_tok;
5762 62 $item{__ACTION1__}=$_tok;
5763
5764  
5765 62 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [PARAM]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
5766 Parse::RecDescent::_Runtime::_tracefirst($text),
5767 q{PARAMS},
5768 $tracelevel)
5769 if defined $::RD_TRACE;
5770  
5771  
5772  
5773 62 $_matched = 1;
5774 62 last;
5775 }
5776  
5777  
5778 191 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 127 64 191
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
640127
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
5779 {
5780
5781  
5782 127 $_[1] = $text; # NOT SURE THIS IS NEEDED
5783 127 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 127 127
5784 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5785 q{PARAMS},
5786 $tracelevel)
5787 if defined $::RD_TRACE;
5788 127 return undef;
5789 }
5790 64 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 64 64
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
6400
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
5791 {
5792 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5793 q{PARAMS},
5794 $tracelevel)
5795 if defined $::RD_TRACE;
5796 0 $return = $score_return;
5797 }
5798 64 splice @{$thisparser->{errors}}, $err_at;
5799 64 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 64 64
5800 64 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 64 64
5801 {
5802 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
5803 $return . q{])}, "",
5804 q{PARAMS},
5805 $tracelevel);
5806 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
5807 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
5808 Parse::RecDescent::_Runtime::_tracefirst($text),
5809 , q{PARAMS},
5810 $tracelevel)
5811 }
5812 64 $_[1] = $text;
5813 64 return $return;
5814 }
5815  
5816 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
5817 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::LINE
5818 {
5819 134 ▶ my $thisparser = $_[0];
Subroutine LINE: called CC=56 SCAR=45.3
5820 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5821 134 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
1340
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
5822 134 $ERRORS = 0;
5823 134 my $thisrule = $thisparser->{"rules"}{"LINE"};
5824  
5825 134 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [LINE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
5826 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5827 q{LINE},
5828 $tracelevel)
5829 if defined $::RD_TRACE;
5830  
5831
5832 134 my $err_at = @{$thisparser->{errors}};
5833  
5834 134 my $score;
5835 my $score_return;
5836 134 my $_tok;
5837 134 my $return = undef;
5838 134 my $_matched=0;
5839 134 my $commit=0;
5840 134 my @item = ();
5841 134 my %item = ();
5842 134 my $repeating = $_[2];
5843 134 my $_noactions = $_[3];
5844 134 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 134 0 134
5845 134 my $_itempos = $_[5];
5846 134 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 33 101 134
5847 134 my $text;
5848 my $lastsep;
5849 134 my $current_match;
5850 134 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{BLOCK, or COMMENT});
5851 134 $expectation->at($_[1]);
5852
5853 134 my $thisline;
5854 134 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
5855  
5856
5857  
5858 134 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 134 0 134
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00134
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5859 {
5860
5861 134 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [BLOCK COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
5862 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5863 q{LINE},
5864 $tracelevel)
5865 if defined $::RD_TRACE;
5866 134 my $thisprod = $thisrule->{"prods"}[0];
5867 134 $text = $_[1];
5868 134 my $_savetext;
5869 134 @item = (q{LINE});
5870 134 %item = (__RULE__ => q{LINE});
5871 134 my $repcount = 0;
5872  
5873  
5874 134 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BLOCK]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 134 134
5875 Parse::RecDescent::_Runtime::_tracefirst($text),
5876 q{LINE},
5877 $tracelevel)
5878 if defined $::RD_TRACE;
5879 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5880 134 $expectation->is(q{})->at($text);
5881 134 ▶ 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))) 63 71 134
5882 {
5883
5884 63 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BLOCK]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 63 63
5885 Parse::RecDescent::_Runtime::_tracefirst($text),
5886 q{LINE},
5887 $tracelevel)
5888 if defined $::RD_TRACE;
5889 63 $expectation->failed();
5890 63 last;
5891 }
5892 71 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BLOCK]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
5893 . $_tok . q{]},
5894  
5895 Parse::RecDescent::_Runtime::_tracefirst($text),
5896 q{LINE},
5897 $tracelevel)
5898 if defined $::RD_TRACE;
5899 71 $item{q{BLOCK}} = $_tok;
5900 71 push @item, $_tok;
5901
5902 }
5903  
5904 71 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
5905 Parse::RecDescent::_Runtime::_tracefirst($text),
5906 q{LINE},
5907 $tracelevel)
5908 if defined $::RD_TRACE;
5909 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5910 71 $expectation->is(q{COMMENT})->at($text);
5911 71 ▶ 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))) 61 10 71
5912 {
5913
5914 61 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [COMMENT]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 61 61
5915 Parse::RecDescent::_Runtime::_tracefirst($text),
5916 q{LINE},
5917 $tracelevel)
5918 if defined $::RD_TRACE;
5919 61 $expectation->failed();
5920 61 last;
5921 }
5922 10 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [COMMENT]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
5923 . $_tok . q{]},
5924  
5925 Parse::RecDescent::_Runtime::_tracefirst($text),
5926 q{LINE},
5927 $tracelevel)
5928 if defined $::RD_TRACE;
5929 10 $item{q{COMMENT}} = $_tok;
5930 10 push @item, $_tok;
5931
5932 }
5933  
5934 10 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
5935 Parse::RecDescent::_Runtime::_tracefirst($text),
5936 q{LINE},
5937 $tracelevel)
5938 if defined $::RD_TRACE;
5939
5940  
5941 10 ▶ $_tok = ($_noactions) ? 0 : do {$return = [@{$item{BLOCK}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 10 10
5942 10 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 10 10
5943 {
5944 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
5945 if defined $::RD_TRACE;
5946 0 last;
5947 }
5948 10 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
5949 . $_tok . q{])},
5950 Parse::RecDescent::_Runtime::_tracefirst($text))
5951 if defined $::RD_TRACE;
5952 10 push @item, $_tok;
5953 10 $item{__ACTION1__}=$_tok;
5954
5955  
5956 10 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [BLOCK COMMENT]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
5957 Parse::RecDescent::_Runtime::_tracefirst($text),
5958 q{LINE},
5959 $tracelevel)
5960 if defined $::RD_TRACE;
5961  
5962  
5963  
5964 10 $_matched = 1;
5965 10 last;
5966 }
5967  
5968  
5969 134 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 124 10 134
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
100124
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5970 {
5971
5972 124 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [BLOCK]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 124 124
5973 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
5974 q{LINE},
5975 $tracelevel)
5976 if defined $::RD_TRACE;
5977 124 my $thisprod = $thisrule->{"prods"}[1];
5978 124 $text = $_[1];
5979 124 my $_savetext;
5980 124 @item = (q{LINE});
5981 124 %item = (__RULE__ => q{LINE});
5982 124 my $repcount = 0;
5983  
5984  
5985 124 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BLOCK]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 124 124
5986 Parse::RecDescent::_Runtime::_tracefirst($text),
5987 q{LINE},
5988 $tracelevel)
5989 if defined $::RD_TRACE;
5990 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5991 124 $expectation->is(q{})->at($text);
5992 124 ▶ 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))) 63 61 124
5993 {
5994
5995 63 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BLOCK]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 63 63
5996 Parse::RecDescent::_Runtime::_tracefirst($text),
5997 q{LINE},
5998 $tracelevel)
5999 if defined $::RD_TRACE;
6000 63 $expectation->failed();
6001 63 last;
6002 }
6003 61 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BLOCK]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 61 61
6004 . $_tok . q{]},
6005  
6006 Parse::RecDescent::_Runtime::_tracefirst($text),
6007 q{LINE},
6008 $tracelevel)
6009 if defined $::RD_TRACE;
6010 61 $item{q{BLOCK}} = $_tok;
6011 61 push @item, $_tok;
6012
6013 }
6014  
6015 61 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 61 61
6016 Parse::RecDescent::_Runtime::_tracefirst($text),
6017 q{LINE},
6018 $tracelevel)
6019 if defined $::RD_TRACE;
6020
6021  
6022 61 ▶ $_tok = ($_noactions) ? 0 : do {$return = [@{$item{BLOCK}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 61 61
6023 61 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 61 61
6024 {
6025 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
6026 if defined $::RD_TRACE;
6027 0 last;
6028 }
6029 61 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 61 61
6030 . $_tok . q{])},
6031 Parse::RecDescent::_Runtime::_tracefirst($text))
6032 if defined $::RD_TRACE;
6033 61 push @item, $_tok;
6034 61 $item{__ACTION1__}=$_tok;
6035
6036  
6037 61 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [BLOCK]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 61 61
6038 Parse::RecDescent::_Runtime::_tracefirst($text),
6039 q{LINE},
6040 $tracelevel)
6041 if defined $::RD_TRACE;
6042  
6043  
6044  
6045 61 $_matched = 1;
6046 61 last;
6047 }
6048  
6049  
6050 134 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 63 71 134
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
71063
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6051 {
6052
6053 63 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 63 63
6054 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6055 q{LINE},
6056 $tracelevel)
6057 if defined $::RD_TRACE;
6058 63 my $thisprod = $thisrule->{"prods"}[2];
6059 63 $text = $_[1];
6060 63 my $_savetext;
6061 63 @item = (q{LINE});
6062 63 %item = (__RULE__ => q{LINE});
6063 63 my $repcount = 0;
6064  
6065  
6066 63 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [COMMENT]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 63 63
6067 Parse::RecDescent::_Runtime::_tracefirst($text),
6068 q{LINE},
6069 $tracelevel)
6070 if defined $::RD_TRACE;
6071 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6072 63 $expectation->is(q{})->at($text);
6073 63 ▶ 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))) 52 11 63
6074 {
6075
6076 52 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [COMMENT]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 52 52
6077 Parse::RecDescent::_Runtime::_tracefirst($text),
6078 q{LINE},
6079 $tracelevel)
6080 if defined $::RD_TRACE;
6081 52 $expectation->failed();
6082 52 last;
6083 }
6084 11 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [COMMENT]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
6085 . $_tok . q{]},
6086  
6087 Parse::RecDescent::_Runtime::_tracefirst($text),
6088 q{LINE},
6089 $tracelevel)
6090 if defined $::RD_TRACE;
6091 11 $item{q{COMMENT}} = $_tok;
6092 11 push @item, $_tok;
6093
6094 }
6095  
6096 11 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
6097 Parse::RecDescent::_Runtime::_tracefirst($text),
6098 q{LINE},
6099 $tracelevel)
6100 if defined $::RD_TRACE;
6101
6102  
6103 11 ▶ $_tok = ($_noactions) ? 0 : do {$return = []};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 11 11
6104 11 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 11 11
6105 {
6106 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
6107 if defined $::RD_TRACE;
6108 0 last;
6109 }
6110 11 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
6111 . $_tok . q{])},
6112 Parse::RecDescent::_Runtime::_tracefirst($text))
6113 if defined $::RD_TRACE;
6114 11 push @item, $_tok;
6115 11 $item{__ACTION1__}=$_tok;
6116
6117  
6118 11 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [COMMENT]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 11 11
6119 Parse::RecDescent::_Runtime::_tracefirst($text),
6120 q{LINE},
6121 $tracelevel)
6122 if defined $::RD_TRACE;
6123  
6124  
6125  
6126 11 $_matched = 1;
6127 11 last;
6128 }
6129  
6130  
6131 134 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 52 82 134
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
82052
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
6132 {
6133
6134  
6135 52 $_[1] = $text; # NOT SURE THIS IS NEEDED
6136 52 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 52 52
6137 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6138 q{LINE},
6139 $tracelevel)
6140 if defined $::RD_TRACE;
6141 52 return undef;
6142 }
6143 82 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 82 82
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
8200
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
6144 {
6145 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6146 q{LINE},
6147 $tracelevel)
6148 if defined $::RD_TRACE;
6149 0 $return = $score_return;
6150 }
6151 82 splice @{$thisparser->{errors}}, $err_at;
6152 82 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 82 82
6153 82 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 82 82
6154 {
6155 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
6156 $return . q{])}, "",
6157 q{LINE},
6158 $tracelevel);
6159 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
6160 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
6161 Parse::RecDescent::_Runtime::_tracefirst($text),
6162 , q{LINE},
6163 $tracelevel)
6164 }
6165 82 $_[1] = $text;
6166 82 return $return;
6167 }
6168  
6169 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6170 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SCENMODULE
6171 {
6172 506 ▶ my $thisparser = $_[0];
Subroutine SCENMODULE: called CC=33 SCAR=53.7
6173 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6174 506 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
5060
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
6175 506 $ERRORS = 0;
6176 506 my $thisrule = $thisparser->{"rules"}{"SCENMODULE"};
6177  
6178 506 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [SCENMODULE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 506 506
6179 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6180 q{SCENMODULE},
6181 $tracelevel)
6182 if defined $::RD_TRACE;
6183  
6184
6185 506 my $err_at = @{$thisparser->{errors}};
6186  
6187 506 my $score;
6188 my $score_return;
6189 506 my $_tok;
6190 506 my $return = undef;
6191 506 my $_matched=0;
6192 506 my $commit=0;
6193 506 my @item = ();
6194 506 my %item = ();
6195 506 my $repeating = $_[2];
6196 506 my $_noactions = $_[3];
6197 506 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 506 0 506
6198 506 my $_itempos = $_[5];
6199 506 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 124 382 506
6200 506 my $text;
6201 my $lastsep;
6202 506 my $current_match;
6203 506 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/Scen::/});
6204 506 $expectation->at($_[1]);
6205
6206 506 my $thisline;
6207 506 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
6208  
6209
6210  
6211 506 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 506 0 506
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00506
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6212 {
6213
6214 506 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/Scen::/ BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 506 506
6215 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6216 q{SCENMODULE},
6217 $tracelevel)
6218 if defined $::RD_TRACE;
6219 506 my $thisprod = $thisrule->{"prods"}[0];
6220 506 $text = $_[1];
6221 506 my $_savetext;
6222 506 @item = (q{SCENMODULE});
6223 506 %item = (__RULE__ => q{SCENMODULE});
6224 506 my $repcount = 0;
6225  
6226  
6227 506 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/Scen::/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 506 506
6228 q{SCENMODULE},
6229 $tracelevel)
6230 if defined $::RD_TRACE;
6231 506 undef $lastsep;
6232 506 $expectation->is(q{})->at($text);
6233
6234  
6235 506 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:Scen::)/)
Branch: 2 branches
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:Scen::)/) 506 0 506
$lastsep = $1 and "" 268 238 506
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:Scen::)/
!ll&&!rl&&r
05060
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:Scen::)/
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:Scen::)/
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:Scen::)/
ABresult
0X0
100
111
6236 {
6237 506 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 506 0 506
6238 506 $expectation->failed();
6239 506 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 506 506
6240 Parse::RecDescent::_Runtime::_tracefirst($text))
6241 if defined $::RD_TRACE;
6242  
6243 506 last;
6244 }
6245 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6246 0 substr($text,0,length($current_match),q{});
6247 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6248 . $current_match . q{])},
6249 Parse::RecDescent::_Runtime::_tracefirst($text))
6250 if defined $::RD_TRACE;
6251 0 push @item, $item{__PATTERN1__}=$current_match;
6252
6253  
6254 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6255 Parse::RecDescent::_Runtime::_tracefirst($text),
6256 q{SCENMODULE},
6257 $tracelevel)
6258 if defined $::RD_TRACE;
6259 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
6260 0 $expectation->is(q{BNAME})->at($text);
6261 0 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BNAME($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = BNAME($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
6262 {
6263
6264 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6265 Parse::RecDescent::_Runtime::_tracefirst($text),
6266 q{SCENMODULE},
6267 $tracelevel)
6268 if defined $::RD_TRACE;
6269 0 $expectation->failed();
6270 0 last;
6271 }
6272 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6273 . $_tok . q{]},
6274  
6275 Parse::RecDescent::_Runtime::_tracefirst($text),
6276 q{SCENMODULE},
6277 $tracelevel)
6278 if defined $::RD_TRACE;
6279 0 $item{q{BNAME}} = $_tok;
6280 0 push @item, $_tok;
6281
6282 }
6283  
6284 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6285 Parse::RecDescent::_Runtime::_tracefirst($text),
6286 q{SCENMODULE},
6287 $tracelevel)
6288 if defined $::RD_TRACE;
6289
6290  
6291 0 ▶ $_tok = ($_noactions) ? 0 : do { $return = "Treex::Scen::$item{BNAME}"};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
6292 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
6293 {
6294 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
6295 if defined $::RD_TRACE;
6296 0 last;
6297 }
6298 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6299 . $_tok . q{])},
6300 Parse::RecDescent::_Runtime::_tracefirst($text))
6301 if defined $::RD_TRACE;
6302 0 push @item, $_tok;
6303 0 $item{__ACTION1__}=$_tok;
6304
6305  
6306 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/Scen::/ BNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6307 Parse::RecDescent::_Runtime::_tracefirst($text),
6308 q{SCENMODULE},
6309 $tracelevel)
6310 if defined $::RD_TRACE;
6311  
6312  
6313  
6314 0 $_matched = 1;
6315 0 last;
6316 }
6317  
6318  
6319 506 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 506 0 506
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
00506
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
6320 {
6321
6322  
6323 506 $_[1] = $text; # NOT SURE THIS IS NEEDED
6324 506 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 506 506
6325 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6326 q{SCENMODULE},
6327 $tracelevel)
6328 if defined $::RD_TRACE;
6329 506 return undef;
6330 }
6331 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
6332 {
6333 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6334 q{SCENMODULE},
6335 $tracelevel)
6336 if defined $::RD_TRACE;
6337 0 $return = $score_return;
6338 }
6339 0 splice @{$thisparser->{errors}}, $err_at;
6340 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
6341 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
6342 {
6343 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
6344 $return . q{])}, "",
6345 q{SCENMODULE},
6346 $tracelevel);
6347 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
6348 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
6349 Parse::RecDescent::_Runtime::_tracefirst($text),
6350 , q{SCENMODULE},
6351 $tracelevel)
6352 }
6353 0 $_[1] = $text;
6354 0 return $return;
6355 }
6356  
6357 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6358 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::EOF
6359 {
6360 24 ▶ my $thisparser = $_[0];
Subroutine EOF: called CC=24 SCAR=38.3
6361 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6362 24 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
240
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
6363 24 $ERRORS = 0;
6364 24 my $thisrule = $thisparser->{"rules"}{"EOF"};
6365  
6366 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [EOF]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
6367 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6368 q{EOF},
6369 $tracelevel)
6370 if defined $::RD_TRACE;
6371  
6372
6373 24 my $err_at = @{$thisparser->{errors}};
6374  
6375 24 my $score;
6376 my $score_return;
6377 24 my $_tok;
6378 24 my $return = undef;
6379 24 my $_matched=0;
6380 24 my $commit=0;
6381 24 my @item = ();
6382 24 my %item = ();
6383 24 my $repeating = $_[2];
6384 24 my $_noactions = $_[3];
6385 24 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 24 0 24
6386 24 my $_itempos = $_[5];
6387 24 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 7 17 24
6388 24 my $text;
6389 my $lastsep;
6390 24 my $current_match;
6391 24 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/^\\Z/});
6392 24 $expectation->at($_[1]);
6393
6394 24 my $thisline;
6395 24 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
6396  
6397
6398  
6399 24 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 24 0 24
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0024
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6400 {
6401
6402 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/^\\Z/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
6403 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6404 q{EOF},
6405 $tracelevel)
6406 if defined $::RD_TRACE;
6407 24 my $thisprod = $thisrule->{"prods"}[0];
6408 24 $text = $_[1];
6409 24 my $_savetext;
6410 24 @item = (q{EOF});
6411 24 %item = (__RULE__ => q{EOF});
6412 24 my $repcount = 0;
6413  
6414  
6415 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/^\\Z/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
6416 q{EOF},
6417 $tracelevel)
6418 if defined $::RD_TRACE;
6419 24 undef $lastsep;
6420 24 $expectation->is(q{})->at($text);
6421
6422  
6423 24 ▶ 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 24 24
$lastsep = $1 and "" 8 16 24
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
!ll&&!rl&&r
0024
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
6424 {
6425 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
6426 0 $expectation->failed();
6427 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6428 Parse::RecDescent::_Runtime::_tracefirst($text))
6429 if defined $::RD_TRACE;
6430  
6431 0 last;
6432 }
6433 24 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6434 24 substr($text,0,length($current_match),q{});
6435 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
6436 . $current_match . q{])},
6437 Parse::RecDescent::_Runtime::_tracefirst($text))
6438 if defined $::RD_TRACE;
6439 24 push @item, $item{__PATTERN1__}=$current_match;
6440
6441  
6442 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/^\\Z/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
6443 Parse::RecDescent::_Runtime::_tracefirst($text),
6444 q{EOF},
6445 $tracelevel)
6446 if defined $::RD_TRACE;
6447  
6448  
6449  
6450 24 $_matched = 1;
6451 24 last;
6452 }
6453  
6454  
6455 24 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 24 24
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
2400
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
6456 {
6457
6458  
6459 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
6460 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6461 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6462 q{EOF},
6463 $tracelevel)
6464 if defined $::RD_TRACE;
6465 0 return undef;
6466 }
6467 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
0240
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
6468 {
6469 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6470 q{EOF},
6471 $tracelevel)
6472 if defined $::RD_TRACE;
6473 0 $return = $score_return;
6474 }
6475 24 splice @{$thisparser->{errors}}, $err_at;
6476 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
6477 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
6478 {
6479 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
6480 $return . q{])}, "",
6481 q{EOF},
6482 $tracelevel);
6483 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
6484 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
6485 Parse::RecDescent::_Runtime::_tracefirst($text),
6486 , q{EOF},
6487 $tracelevel)
6488 }
6489 24 $_[1] = $text;
6490 24 return $return;
6491 }
6492  
6493 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6494 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PDQUOTE
6495 {
6496 16 ▶ my $thisparser = $_[0];
Subroutine PDQUOTE: called CC=42 SCAR=44.6
6497 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6498 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
6499 16 $ERRORS = 0;
6500 16 my $thisrule = $thisparser->{"rules"}{"PDQUOTE"};
6501  
6502 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6503 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6504 q{PDQUOTE},
6505 $tracelevel)
6506 if defined $::RD_TRACE;
6507  
6508
6509 16 my $err_at = @{$thisparser->{errors}};
6510  
6511 16 my $score;
6512 my $score_return;
6513 16 my $_tok;
6514 16 my $return = undef;
6515 16 my $_matched=0;
6516 16 my $commit=0;
6517 16 my @item = ();
6518 16 my %item = ();
6519 16 my $repeating = $_[2];
6520 16 my $_noactions = $_[3];
6521 16 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 16 0 16
6522 16 my $_itempos = $_[5];
6523 16 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 16 16
6524 16 my $text;
6525 my $lastsep;
6526 16 my $current_match;
6527 16 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{NOTDQUOTE});
6528 16 $expectation->at($_[1]);
6529
6530 16 my $thisline;
6531 16 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
6532  
6533
6534  
6535 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
6536 {
6537
6538 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [NOTDQUOTE SLASHEDDQUOTE PDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6539 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6540 q{PDQUOTE},
6541 $tracelevel)
6542 if defined $::RD_TRACE;
6543 16 my $thisprod = $thisrule->{"prods"}[0];
6544 16 $text = $_[1];
6545 16 my $_savetext;
6546 16 @item = (q{PDQUOTE});
6547 16 %item = (__RULE__ => q{PDQUOTE});
6548 16 my $repcount = 0;
6549  
6550  
6551 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [NOTDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6552 Parse::RecDescent::_Runtime::_tracefirst($text),
6553 q{PDQUOTE},
6554 $tracelevel)
6555 if defined $::RD_TRACE;
6556 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6557 16 $expectation->is(q{})->at($text);
6558 16 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::NOTDQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NOTDQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 16 16
6559 {
6560
6561 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [NOTDQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6562 Parse::RecDescent::_Runtime::_tracefirst($text),
6563 q{PDQUOTE},
6564 $tracelevel)
6565 if defined $::RD_TRACE;
6566 0 $expectation->failed();
6567 0 last;
6568 }
6569 16 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [NOTDQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6570 . $_tok . q{]},
6571  
6572 Parse::RecDescent::_Runtime::_tracefirst($text),
6573 q{PDQUOTE},
6574 $tracelevel)
6575 if defined $::RD_TRACE;
6576 16 $item{q{NOTDQUOTE}} = $_tok;
6577 16 push @item, $_tok;
6578
6579 }
6580  
6581 16 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SLASHEDDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
6582 Parse::RecDescent::_Runtime::_tracefirst($text),
6583 q{PDQUOTE},
6584 $tracelevel)
6585 if defined $::RD_TRACE;
6586 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6587 16 $expectation->is(q{SLASHEDDQUOTE})->at($text);
6588 16 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SLASHEDDQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = SLASHEDDQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 8 8 16
6589 {
6590
6591 8 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SLASHEDDQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6592 Parse::RecDescent::_Runtime::_tracefirst($text),
6593 q{PDQUOTE},
6594 $tracelevel)
6595 if defined $::RD_TRACE;
6596 8 $expectation->failed();
6597 8 last;
6598 }
6599 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SLASHEDDQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6600 . $_tok . q{]},
6601  
6602 Parse::RecDescent::_Runtime::_tracefirst($text),
6603 q{PDQUOTE},
6604 $tracelevel)
6605 if defined $::RD_TRACE;
6606 8 $item{q{SLASHEDDQUOTE}} = $_tok;
6607 8 push @item, $_tok;
6608
6609 }
6610  
6611 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6612 Parse::RecDescent::_Runtime::_tracefirst($text),
6613 q{PDQUOTE},
6614 $tracelevel)
6615 if defined $::RD_TRACE;
6616 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6617 8 $expectation->is(q{PDQUOTE})->at($text);
6618 8 ▶ 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 8 8
6619 {
6620
6621 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PDQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6622 Parse::RecDescent::_Runtime::_tracefirst($text),
6623 q{PDQUOTE},
6624 $tracelevel)
6625 if defined $::RD_TRACE;
6626 0 $expectation->failed();
6627 0 last;
6628 }
6629 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PDQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6630 . $_tok . q{]},
6631  
6632 Parse::RecDescent::_Runtime::_tracefirst($text),
6633 q{PDQUOTE},
6634 $tracelevel)
6635 if defined $::RD_TRACE;
6636 8 $item{q{PDQUOTE}} = $_tok;
6637 8 push @item, $_tok;
6638
6639 }
6640  
6641 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6642 Parse::RecDescent::_Runtime::_tracefirst($text),
6643 q{PDQUOTE},
6644 $tracelevel)
6645 if defined $::RD_TRACE;
6646
6647  
6648 8 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{NOTDQUOTE}.$item{SLASHEDDQUOTE}.$item{PDQUOTE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 8 8
6649 8 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 8 8
6650 {
6651 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
6652 if defined $::RD_TRACE;
6653 0 last;
6654 }
6655 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6656 . $_tok . q{])},
6657 Parse::RecDescent::_Runtime::_tracefirst($text))
6658 if defined $::RD_TRACE;
6659 8 push @item, $_tok;
6660 8 $item{__ACTION1__}=$_tok;
6661
6662  
6663 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [NOTDQUOTE SLASHEDDQUOTE PDQUOTE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6664 Parse::RecDescent::_Runtime::_tracefirst($text),
6665 q{PDQUOTE},
6666 $tracelevel)
6667 if defined $::RD_TRACE;
6668  
6669  
6670  
6671 8 $_matched = 1;
6672 8 last;
6673 }
6674  
6675  
6676 16 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 8 8 16
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
808
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6677 {
6678
6679 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [NOTDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6680 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6681 q{PDQUOTE},
6682 $tracelevel)
6683 if defined $::RD_TRACE;
6684 8 my $thisprod = $thisrule->{"prods"}[1];
6685 8 $text = $_[1];
6686 8 my $_savetext;
6687 8 @item = (q{PDQUOTE});
6688 8 %item = (__RULE__ => q{PDQUOTE});
6689 8 my $repcount = 0;
6690  
6691  
6692 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [NOTDQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6693 Parse::RecDescent::_Runtime::_tracefirst($text),
6694 q{PDQUOTE},
6695 $tracelevel)
6696 if defined $::RD_TRACE;
6697 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6698 8 $expectation->is(q{})->at($text);
6699 8 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::NOTDQUOTE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = NOTDQUOTE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 8 8
6700 {
6701
6702 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [NOTDQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6703 Parse::RecDescent::_Runtime::_tracefirst($text),
6704 q{PDQUOTE},
6705 $tracelevel)
6706 if defined $::RD_TRACE;
6707 0 $expectation->failed();
6708 0 last;
6709 }
6710 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [NOTDQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6711 . $_tok . q{]},
6712  
6713 Parse::RecDescent::_Runtime::_tracefirst($text),
6714 q{PDQUOTE},
6715 $tracelevel)
6716 if defined $::RD_TRACE;
6717 8 $item{q{NOTDQUOTE}} = $_tok;
6718 8 push @item, $_tok;
6719
6720 }
6721  
6722 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [NOTDQUOTE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6723 Parse::RecDescent::_Runtime::_tracefirst($text),
6724 q{PDQUOTE},
6725 $tracelevel)
6726 if defined $::RD_TRACE;
6727  
6728  
6729  
6730 8 $_matched = 1;
6731 8 last;
6732 }
6733  
6734  
6735 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
6736 {
6737
6738  
6739 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
6740 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6741 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6742 q{PDQUOTE},
6743 $tracelevel)
6744 if defined $::RD_TRACE;
6745 0 return undef;
6746 }
6747 16 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 16 16
Condition66%2/3
not defined $return and defined $score
!ll&&!rl&&r
880
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
6748 {
6749 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6750 q{PDQUOTE},
6751 $tracelevel)
6752 if defined $::RD_TRACE;
6753 0 $return = $score_return;
6754 }
6755 16 splice @{$thisparser->{errors}}, $err_at;
6756 16 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 8 8 16
6757 16 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 16 16
6758 {
6759 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
6760 $return . q{])}, "",
6761 q{PDQUOTE},
6762 $tracelevel);
6763 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
6764 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
6765 Parse::RecDescent::_Runtime::_tracefirst($text),
6766 , q{PDQUOTE},
6767 $tracelevel)
6768 }
6769 16 $_[1] = $text;
6770 16 return $return;
6771 }
6772  
6773 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
6774 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PSQUOTE
6775 {
6776 80 ▶ my $thisparser = $_[0];
Subroutine PSQUOTE: called CC=42 SCAR=44.4
6777 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6778 80 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
800
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
6779 80 $ERRORS = 0;
6780 80 my $thisrule = $thisparser->{"rules"}{"PSQUOTE"};
6781  
6782 80 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
6783 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6784 q{PSQUOTE},
6785 $tracelevel)
6786 if defined $::RD_TRACE;
6787  
6788
6789 80 my $err_at = @{$thisparser->{errors}};
6790  
6791 80 my $score;
6792 my $score_return;
6793 80 my $_tok;
6794 80 my $return = undef;
6795 80 my $_matched=0;
6796 80 my $commit=0;
6797 80 my @item = ();
6798 80 my %item = ();
6799 80 my $repeating = $_[2];
6800 80 my $_noactions = $_[3];
6801 80 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 80 0 80
6802 80 my $_itempos = $_[5];
6803 80 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 32 48 80
6804 80 my $text;
6805 my $lastsep;
6806 80 my $current_match;
6807 80 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{NOTSQUOTE});
6808 80 $expectation->at($_[1]);
6809
6810 80 my $thisline;
6811 80 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
6812  
6813
6814  
6815 80 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 80 0 80
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0080
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6816 {
6817
6818 80 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [NOTSQUOTE SLASHEDSQUOTE PSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
6819 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6820 q{PSQUOTE},
6821 $tracelevel)
6822 if defined $::RD_TRACE;
6823 80 my $thisprod = $thisrule->{"prods"}[0];
6824 80 $text = $_[1];
6825 80 my $_savetext;
6826 80 @item = (q{PSQUOTE});
6827 80 %item = (__RULE__ => q{PSQUOTE});
6828 80 my $repcount = 0;
6829  
6830  
6831 80 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [NOTSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
6832 Parse::RecDescent::_Runtime::_tracefirst($text),
6833 q{PSQUOTE},
6834 $tracelevel)
6835 if defined $::RD_TRACE;
6836 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6837 80 $expectation->is(q{})->at($text);
6838 80 ▶ 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 80 80
6839 {
6840
6841 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [NOTSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6842 Parse::RecDescent::_Runtime::_tracefirst($text),
6843 q{PSQUOTE},
6844 $tracelevel)
6845 if defined $::RD_TRACE;
6846 0 $expectation->failed();
6847 0 last;
6848 }
6849 80 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [NOTSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
6850 . $_tok . q{]},
6851  
6852 Parse::RecDescent::_Runtime::_tracefirst($text),
6853 q{PSQUOTE},
6854 $tracelevel)
6855 if defined $::RD_TRACE;
6856 80 $item{q{NOTSQUOTE}} = $_tok;
6857 80 push @item, $_tok;
6858
6859 }
6860  
6861 80 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SLASHEDSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
6862 Parse::RecDescent::_Runtime::_tracefirst($text),
6863 q{PSQUOTE},
6864 $tracelevel)
6865 if defined $::RD_TRACE;
6866 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6867 80 $expectation->is(q{SLASHEDSQUOTE})->at($text);
6868 80 ▶ 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))) 72 8 80
6869 {
6870
6871 72 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SLASHEDSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
6872 Parse::RecDescent::_Runtime::_tracefirst($text),
6873 q{PSQUOTE},
6874 $tracelevel)
6875 if defined $::RD_TRACE;
6876 72 $expectation->failed();
6877 72 last;
6878 }
6879 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SLASHEDSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6880 . $_tok . q{]},
6881  
6882 Parse::RecDescent::_Runtime::_tracefirst($text),
6883 q{PSQUOTE},
6884 $tracelevel)
6885 if defined $::RD_TRACE;
6886 8 $item{q{SLASHEDSQUOTE}} = $_tok;
6887 8 push @item, $_tok;
6888
6889 }
6890  
6891 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6892 Parse::RecDescent::_Runtime::_tracefirst($text),
6893 q{PSQUOTE},
6894 $tracelevel)
6895 if defined $::RD_TRACE;
6896 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6897 8 $expectation->is(q{PSQUOTE})->at($text);
6898 8 ▶ 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 8 8
6899 {
6900
6901 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6902 Parse::RecDescent::_Runtime::_tracefirst($text),
6903 q{PSQUOTE},
6904 $tracelevel)
6905 if defined $::RD_TRACE;
6906 0 $expectation->failed();
6907 0 last;
6908 }
6909 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6910 . $_tok . q{]},
6911  
6912 Parse::RecDescent::_Runtime::_tracefirst($text),
6913 q{PSQUOTE},
6914 $tracelevel)
6915 if defined $::RD_TRACE;
6916 8 $item{q{PSQUOTE}} = $_tok;
6917 8 push @item, $_tok;
6918
6919 }
6920  
6921 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6922 Parse::RecDescent::_Runtime::_tracefirst($text),
6923 q{PSQUOTE},
6924 $tracelevel)
6925 if defined $::RD_TRACE;
6926
6927  
6928 8 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{NOTSQUOTE}.$item{SLASHEDSQUOTE}.$item{PSQUOTE}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 8 8
6929 8 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 8 8
6930 {
6931 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
6932 if defined $::RD_TRACE;
6933 0 last;
6934 }
6935 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6936 . $_tok . q{])},
6937 Parse::RecDescent::_Runtime::_tracefirst($text))
6938 if defined $::RD_TRACE;
6939 8 push @item, $_tok;
6940 8 $item{__ACTION1__}=$_tok;
6941
6942  
6943 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [NOTSQUOTE SLASHEDSQUOTE PSQUOTE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
6944 Parse::RecDescent::_Runtime::_tracefirst($text),
6945 q{PSQUOTE},
6946 $tracelevel)
6947 if defined $::RD_TRACE;
6948  
6949  
6950  
6951 8 $_matched = 1;
6952 8 last;
6953 }
6954  
6955  
6956 80 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 72 8 80
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
8072
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6957 {
6958
6959 72 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [NOTSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
6960 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
6961 q{PSQUOTE},
6962 $tracelevel)
6963 if defined $::RD_TRACE;
6964 72 my $thisprod = $thisrule->{"prods"}[1];
6965 72 $text = $_[1];
6966 72 my $_savetext;
6967 72 @item = (q{PSQUOTE});
6968 72 %item = (__RULE__ => q{PSQUOTE});
6969 72 my $repcount = 0;
6970  
6971  
6972 72 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [NOTSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
6973 Parse::RecDescent::_Runtime::_tracefirst($text),
6974 q{PSQUOTE},
6975 $tracelevel)
6976 if defined $::RD_TRACE;
6977 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6978 72 $expectation->is(q{})->at($text);
6979 72 ▶ 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 72 72
6980 {
6981
6982 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [NOTSQUOTE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6983 Parse::RecDescent::_Runtime::_tracefirst($text),
6984 q{PSQUOTE},
6985 $tracelevel)
6986 if defined $::RD_TRACE;
6987 0 $expectation->failed();
6988 0 last;
6989 }
6990 72 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [NOTSQUOTE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
6991 . $_tok . q{]},
6992  
6993 Parse::RecDescent::_Runtime::_tracefirst($text),
6994 q{PSQUOTE},
6995 $tracelevel)
6996 if defined $::RD_TRACE;
6997 72 $item{q{NOTSQUOTE}} = $_tok;
6998 72 push @item, $_tok;
6999
7000 }
7001  
7002 72 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [NOTSQUOTE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
7003 Parse::RecDescent::_Runtime::_tracefirst($text),
7004 q{PSQUOTE},
7005 $tracelevel)
7006 if defined $::RD_TRACE;
7007  
7008  
7009  
7010 72 $_matched = 1;
7011 72 last;
7012 }
7013  
7014  
7015 80 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 80 80
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
8000
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
7016 {
7017
7018  
7019 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
7020 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7021 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7022 q{PSQUOTE},
7023 $tracelevel)
7024 if defined $::RD_TRACE;
7025 0 return undef;
7026 }
7027 80 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 80 80
Condition66%2/3
not defined $return and defined $score
!ll&&!rl&&r
8720
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
7028 {
7029 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7030 q{PSQUOTE},
7031 $tracelevel)
7032 if defined $::RD_TRACE;
7033 0 $return = $score_return;
7034 }
7035 80 splice @{$thisparser->{errors}}, $err_at;
7036 80 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 72 8 80
7037 80 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 80 80
7038 {
7039 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
7040 $return . q{])}, "",
7041 q{PSQUOTE},
7042 $tracelevel);
7043 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
7044 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
7045 Parse::RecDescent::_Runtime::_tracefirst($text),
7046 , q{PSQUOTE},
7047 $tracelevel)
7048 }
7049 80 $_[1] = $text;
7050 80 return $return;
7051 }
7052  
7053 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7054 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::startrule
7055 {
7056 26 ▶ my $thisparser = $_[0];
Subroutine startrule: called CC=30 SCAR=38.0
7057 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7058 26 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition100%2/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
521
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
7059 26 $ERRORS = 0;
7060 26 my $thisrule = $thisparser->{"rules"}{"startrule"};
7061  
7062 26 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [startrule]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 26 26
7063 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7064 q{startrule},
7065 $tracelevel)
7066 if defined $::RD_TRACE;
7067  
7068
7069 26 my $err_at = @{$thisparser->{errors}};
7070  
7071 26 my $score;
7072 my $score_return;
7073 26 my $_tok;
7074 26 my $return = undef;
7075 26 my $_matched=0;
7076 26 my $commit=0;
7077 26 my @item = ();
7078 26 my %item = ();
7079 26 my $repeating = $_[2];
7080 26 my $_noactions = $_[3];
7081 26 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 26 0 26
7082 26 my $_itempos = $_[5];
7083 26 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 7 19 26
7084 26 my $text;
7085 my $lastsep;
7086 26 my $current_match;
7087 26 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{SCEN});
7088 26 $expectation->at($_[1]);
7089
7090 26 my $thisline;
7091 26 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
7092  
7093
7094  
7095 26 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 26 0 26
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0026
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7096 {
7097
7098 26 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [SCEN EOF]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 26 26
7099 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7100 q{startrule},
7101 $tracelevel)
7102 if defined $::RD_TRACE;
7103 26 my $thisprod = $thisrule->{"prods"}[0];
7104 26 $text = $_[1];
7105 26 my $_savetext;
7106 26 @item = (q{startrule});
7107 26 %item = (__RULE__ => q{startrule});
7108 26 my $repcount = 0;
7109  
7110  
7111 26 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SCEN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 26 26
7112 Parse::RecDescent::_Runtime::_tracefirst($text),
7113 q{startrule},
7114 $tracelevel)
7115 if defined $::RD_TRACE;
7116 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7117 26 $expectation->is(q{})->at($text);
7118 26 ▶ 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 24 26
7119 {
7120
7121 2 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SCEN]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
7122 Parse::RecDescent::_Runtime::_tracefirst($text),
7123 q{startrule},
7124 $tracelevel)
7125 if defined $::RD_TRACE;
7126 2 $expectation->failed();
7127 2 last;
7128 }
7129 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SCEN]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7130 . $_tok . q{]},
7131  
7132 Parse::RecDescent::_Runtime::_tracefirst($text),
7133 q{startrule},
7134 $tracelevel)
7135 if defined $::RD_TRACE;
7136 24 $item{q{SCEN}} = $_tok;
7137 24 push @item, $_tok;
7138
7139 }
7140  
7141 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [EOF]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7142 Parse::RecDescent::_Runtime::_tracefirst($text),
7143 q{startrule},
7144 $tracelevel)
7145 if defined $::RD_TRACE;
7146 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7147 24 $expectation->is(q{EOF})->at($text);
7148 24 ▶ 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 24 24
7149 {
7150
7151 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [EOF]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7152 Parse::RecDescent::_Runtime::_tracefirst($text),
7153 q{startrule},
7154 $tracelevel)
7155 if defined $::RD_TRACE;
7156 0 $expectation->failed();
7157 0 last;
7158 }
7159 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [EOF]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7160 . $_tok . q{]},
7161  
7162 Parse::RecDescent::_Runtime::_tracefirst($text),
7163 q{startrule},
7164 $tracelevel)
7165 if defined $::RD_TRACE;
7166 24 $item{q{EOF}} = $_tok;
7167 24 push @item, $_tok;
7168
7169 }
7170  
7171 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7172 Parse::RecDescent::_Runtime::_tracefirst($text),
7173 q{startrule},
7174 $tracelevel)
7175 if defined $::RD_TRACE;
7176
7177  
7178 24 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item{SCEN}};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 24 24
7179 24 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 24 24
7180 {
7181 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
7182 if defined $::RD_TRACE;
7183 0 last;
7184 }
7185 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7186 . $_tok . q{])},
7187 Parse::RecDescent::_Runtime::_tracefirst($text))
7188 if defined $::RD_TRACE;
7189 24 push @item, $_tok;
7190 24 $item{__ACTION1__}=$_tok;
7191
7192  
7193 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [SCEN EOF]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7194 Parse::RecDescent::_Runtime::_tracefirst($text),
7195 q{startrule},
7196 $tracelevel)
7197 if defined $::RD_TRACE;
7198  
7199  
7200  
7201 24 $_matched = 1;
7202 24 last;
7203 }
7204  
7205  
7206 26 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 2 24 26
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
2402
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
7207 {
7208
7209  
7210 2 $_[1] = $text; # NOT SURE THIS IS NEEDED
7211 2 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
7212 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7213 q{startrule},
7214 $tracelevel)
7215 if defined $::RD_TRACE;
7216 2 return undef;
7217 }
7218 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
7219 {
7220 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7221 q{startrule},
7222 $tracelevel)
7223 if defined $::RD_TRACE;
7224 0 $return = $score_return;
7225 }
7226 24 splice @{$thisparser->{errors}}, $err_at;
7227 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 24 24
7228 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
7229 {
7230 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
7231 $return . q{])}, "",
7232 q{startrule},
7233 $tracelevel);
7234 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
7235 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
7236 Parse::RecDescent::_Runtime::_tracefirst($text),
7237 , q{startrule},
7238 $tracelevel)
7239 }
7240 24 $_[1] = $text;
7241 24 return $return;
7242 }
7243  
7244 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7245 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BLOCK
7246 {
7247 258 ▶ my $thisparser = $_[0];
Subroutine BLOCK: called CC=94 SCAR=65.1
7248 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7249 258 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
2580
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
7250 258 $ERRORS = 0;
7251 258 my $thisrule = $thisparser->{"rules"}{"BLOCK"};
7252  
7253 258 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [BLOCK]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
7254 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7255 q{BLOCK},
7256 $tracelevel)
7257 if defined $::RD_TRACE;
7258  
7259
7260 258 my $err_at = @{$thisparser->{errors}};
7261  
7262 258 my $score;
7263 my $score_return;
7264 258 my $_tok;
7265 258 my $return = undef;
7266 258 my $_matched=0;
7267 258 my $commit=0;
7268 258 my @item = ();
7269 258 my %item = ();
7270 258 my $repeating = $_[2];
7271 258 my $_noactions = $_[3];
7272 258 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 258 0 258
7273 258 my $_itempos = $_[5];
7274 258 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 66 192 258
7275 258 my $text;
7276 my $lastsep;
7277 258 my $current_match;
7278 258 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{INCLUDE, or SCENMODULE, or TBNAME});
7279 258 $expectation->at($_[1]);
7280
7281 258 my $thisline;
7282 258 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
7283  
7284
7285  
7286 258 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 258 0 258
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00258
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7287 {
7288
7289 258 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [INCLUDE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
7290 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7291 q{BLOCK},
7292 $tracelevel)
7293 if defined $::RD_TRACE;
7294 258 my $thisprod = $thisrule->{"prods"}[0];
7295 258 $text = $_[1];
7296 258 my $_savetext;
7297 258 @item = (q{BLOCK});
7298 258 %item = (__RULE__ => q{BLOCK});
7299 258 my $repcount = 0;
7300  
7301  
7302 258 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [INCLUDE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 258 258
7303 Parse::RecDescent::_Runtime::_tracefirst($text),
7304 q{BLOCK},
7305 $tracelevel)
7306 if defined $::RD_TRACE;
7307 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7308 258 $expectation->is(q{})->at($text);
7309 258 ▶ 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))) 253 5 258
7310 {
7311
7312 253 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [INCLUDE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7313 Parse::RecDescent::_Runtime::_tracefirst($text),
7314 q{BLOCK},
7315 $tracelevel)
7316 if defined $::RD_TRACE;
7317 253 $expectation->failed();
7318 253 last;
7319 }
7320 5 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [INCLUDE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
7321 . $_tok . q{]},
7322  
7323 Parse::RecDescent::_Runtime::_tracefirst($text),
7324 q{BLOCK},
7325 $tracelevel)
7326 if defined $::RD_TRACE;
7327 5 $item{q{INCLUDE}} = $_tok;
7328 5 push @item, $_tok;
7329
7330 }
7331  
7332 5 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
7333 Parse::RecDescent::_Runtime::_tracefirst($text),
7334 q{BLOCK},
7335 $tracelevel)
7336 if defined $::RD_TRACE;
7337
7338  
7339 5 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 5 5
7340 5 my $included = read_file( $item{INCLUDE}, binmode => ':utf8' );
7341 5 my $result = $thisparser->startrule( $included, 1, $item{INCLUDE} );
7342 5 ▶ if (defined $result and ref $result eq 'ARRAY') {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $result and ref $result eq 'ARRAY') { } 5 0 5
Condition33%1/3
defined $result and ref $result eq "ARRAY"
!ll&&!rl&&r
005
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
7343 5 $return = [@$result];
7344 } else {
7345 0 $return = undef;
7346 }
7347 };
7348 5 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 5 5
7349 {
7350 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
7351 if defined $::RD_TRACE;
7352 0 last;
7353 }
7354 5 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
7355 . $_tok . q{])},
7356 Parse::RecDescent::_Runtime::_tracefirst($text))
7357 if defined $::RD_TRACE;
7358 5 push @item, $_tok;
7359 5 $item{__ACTION1__}=$_tok;
7360
7361  
7362 5 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [INCLUDE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 5 5
7363 Parse::RecDescent::_Runtime::_tracefirst($text),
7364 q{BLOCK},
7365 $tracelevel)
7366 if defined $::RD_TRACE;
7367  
7368  
7369  
7370 5 $_matched = 1;
7371 5 last;
7372 }
7373  
7374  
7375 258 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 253 5 258
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
50253
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7376 {
7377
7378 253 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [SCENMODULE PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7379 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7380 q{BLOCK},
7381 $tracelevel)
7382 if defined $::RD_TRACE;
7383 253 my $thisprod = $thisrule->{"prods"}[1];
7384 253 $text = $_[1];
7385 253 my $_savetext;
7386 253 @item = (q{BLOCK});
7387 253 %item = (__RULE__ => q{BLOCK});
7388 253 my $repcount = 0;
7389  
7390  
7391 253 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SCENMODULE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7392 Parse::RecDescent::_Runtime::_tracefirst($text),
7393 q{BLOCK},
7394 $tracelevel)
7395 if defined $::RD_TRACE;
7396 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7397 253 $expectation->is(q{})->at($text);
7398 253 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SCENMODULE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = SCENMODULE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 253 0 253
7399 {
7400
7401 253 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SCENMODULE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7402 Parse::RecDescent::_Runtime::_tracefirst($text),
7403 q{BLOCK},
7404 $tracelevel)
7405 if defined $::RD_TRACE;
7406 253 $expectation->failed();
7407 253 last;
7408 }
7409 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SCENMODULE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7410 . $_tok . q{]},
7411  
7412 Parse::RecDescent::_Runtime::_tracefirst($text),
7413 q{BLOCK},
7414 $tracelevel)
7415 if defined $::RD_TRACE;
7416 0 $item{q{SCENMODULE}} = $_tok;
7417 0 push @item, $_tok;
7418
7419 }
7420  
7421 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7422 Parse::RecDescent::_Runtime::_tracefirst($text),
7423 q{BLOCK},
7424 $tracelevel)
7425 if defined $::RD_TRACE;
7426 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
7427 0 $expectation->is(q{PARAMS})->at($text);
7428 0 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PARAMS($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = PARAMS($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
7429 {
7430
7431 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAMS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7432 Parse::RecDescent::_Runtime::_tracefirst($text),
7433 q{BLOCK},
7434 $tracelevel)
7435 if defined $::RD_TRACE;
7436 0 $expectation->failed();
7437 0 last;
7438 }
7439 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAMS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7440 . $_tok . q{]},
7441  
7442 Parse::RecDescent::_Runtime::_tracefirst($text),
7443 q{BLOCK},
7444 $tracelevel)
7445 if defined $::RD_TRACE;
7446 0 $item{q{PARAMS}} = $_tok;
7447 0 push @item, $_tok;
7448
7449 }
7450  
7451 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7452 Parse::RecDescent::_Runtime::_tracefirst($text),
7453 q{BLOCK},
7454 $tracelevel)
7455 if defined $::RD_TRACE;
7456
7457  
7458 0 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
7459 0 my $modulename = $item{SCENMODULE};
7460 0 ▶ eval "use $modulename; 1;" or die "Can't use $modulename !\n$@\n";
Branch: 1 branch
BranchTrueFalseTotal
eval "use $modulename; 1;" or die "Can't use $modulename !\n$@\n" 0 0 0
7461 0 my %params = map {my ($name,$value) = split /=/, $_, 2; ($name, $value)} @{$item{PARAMS}};
7462 0 my $scenmod = $modulename->new(\%params);
7463 0 my $string = $scenmod->get_scenario_string();
7464 0 my $result = $thisparser->startrule( $string, 0, '' );
7465 0 ▶ if (defined $result and ref $result eq 'ARRAY') {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $result and ref $result eq 'ARRAY') { } 0 0 0
Condition0%0/3
defined $result and ref $result eq "ARRAY"
!ll&&!rl&&r
000
MC/DC0%0/2
defined $result and ref $result eq "ARRAY"
defined $result ref $result eq "ARRAY"
Truth table0%0/3
A and B
A= defined $resultB= ref $result eq "ARRAY"
ABresult
0X0
100
111
7466 0 $return = [@$result];
7467 } else {
7468 0 log_fatal "Syntax error in '$modulename' scenario:\n<BEGIN SCENARIO>\n$string\n<END SCENARIO>";
7469 }
7470 };
7471 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
7472 {
7473 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
7474 if defined $::RD_TRACE;
7475 0 last;
7476 }
7477 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7478 . $_tok . q{])},
7479 Parse::RecDescent::_Runtime::_tracefirst($text))
7480 if defined $::RD_TRACE;
7481 0 push @item, $_tok;
7482 0 $item{__ACTION1__}=$_tok;
7483
7484  
7485 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [SCENMODULE PARAMS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7486 Parse::RecDescent::_Runtime::_tracefirst($text),
7487 q{BLOCK},
7488 $tracelevel)
7489 if defined $::RD_TRACE;
7490  
7491  
7492  
7493 0 $_matched = 1;
7494 0 last;
7495 }
7496  
7497  
7498 258 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 253 5 258
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
50253
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7499 {
7500
7501 253 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [SCENMODULE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7502 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7503 q{BLOCK},
7504 $tracelevel)
7505 if defined $::RD_TRACE;
7506 253 my $thisprod = $thisrule->{"prods"}[2];
7507 253 $text = $_[1];
7508 253 my $_savetext;
7509 253 @item = (q{BLOCK});
7510 253 %item = (__RULE__ => q{BLOCK});
7511 253 my $repcount = 0;
7512  
7513  
7514 253 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SCENMODULE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7515 Parse::RecDescent::_Runtime::_tracefirst($text),
7516 q{BLOCK},
7517 $tracelevel)
7518 if defined $::RD_TRACE;
7519 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7520 253 $expectation->is(q{})->at($text);
7521 253 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SCENMODULE($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = SCENMODULE($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 253 0 253
7522 {
7523
7524 253 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SCENMODULE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7525 Parse::RecDescent::_Runtime::_tracefirst($text),
7526 q{BLOCK},
7527 $tracelevel)
7528 if defined $::RD_TRACE;
7529 253 $expectation->failed();
7530 253 last;
7531 }
7532 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SCENMODULE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7533 . $_tok . q{]},
7534  
7535 Parse::RecDescent::_Runtime::_tracefirst($text),
7536 q{BLOCK},
7537 $tracelevel)
7538 if defined $::RD_TRACE;
7539 0 $item{q{SCENMODULE}} = $_tok;
7540 0 push @item, $_tok;
7541
7542 }
7543  
7544 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7545 Parse::RecDescent::_Runtime::_tracefirst($text),
7546 q{BLOCK},
7547 $tracelevel)
7548 if defined $::RD_TRACE;
7549
7550  
7551 0 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
7552 0 my $modulename = $item{SCENMODULE};
7553 0 ▶ eval "use $modulename; 1;" or die "Can't use $modulename !\n$@\n";
Branch: 1 branch
BranchTrueFalseTotal
eval "use $modulename; 1;" or die "Can't use $modulename !\n$@\n" 0 0 0
7554 0 my $scenmod = $modulename->new();
7555 0 my $string = $scenmod->get_scenario_string();
7556 0 my $result = $thisparser->startrule( $string, 0, '' );
7557 0 ▶ if (defined $result and ref $result eq 'ARRAY') {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $result and ref $result eq 'ARRAY') { } 0 0 0
Condition0%0/3
defined $result and ref $result eq "ARRAY"
!ll&&!rl&&r
000
MC/DC0%0/2
defined $result and ref $result eq "ARRAY"
defined $result ref $result eq "ARRAY"
Truth table0%0/3
A and B
A= defined $resultB= ref $result eq "ARRAY"
ABresult
0X0
100
111
7558 0 $return = [@$result];
7559 } else {
7560 0 log_fatal "Syntax error in '$modulename' scenario:\n<BEGIN SCENARIO>\n$string\n<END SCENARIO>";
7561 }
7562 };
7563 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
7564 {
7565 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
7566 if defined $::RD_TRACE;
7567 0 last;
7568 }
7569 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7570 . $_tok . q{])},
7571 Parse::RecDescent::_Runtime::_tracefirst($text))
7572 if defined $::RD_TRACE;
7573 0 push @item, $_tok;
7574 0 $item{__ACTION1__}=$_tok;
7575
7576  
7577 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [SCENMODULE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7578 Parse::RecDescent::_Runtime::_tracefirst($text),
7579 q{BLOCK},
7580 $tracelevel)
7581 if defined $::RD_TRACE;
7582  
7583  
7584  
7585 0 $_matched = 1;
7586 0 last;
7587 }
7588  
7589  
7590 258 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 253 5 258
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
50253
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7591 {
7592
7593 253 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [TBNAME PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7594 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7595 q{BLOCK},
7596 $tracelevel)
7597 if defined $::RD_TRACE;
7598 253 my $thisprod = $thisrule->{"prods"}[3];
7599 253 $text = $_[1];
7600 253 my $_savetext;
7601 253 @item = (q{BLOCK});
7602 253 %item = (__RULE__ => q{BLOCK});
7603 253 my $repcount = 0;
7604  
7605  
7606 253 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [TBNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 253 253
7607 Parse::RecDescent::_Runtime::_tracefirst($text),
7608 q{BLOCK},
7609 $tracelevel)
7610 if defined $::RD_TRACE;
7611 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7612 253 $expectation->is(q{})->at($text);
7613 253 ▶ 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))) 126 127 253
7614 {
7615
7616 126 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [TBNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
7617 Parse::RecDescent::_Runtime::_tracefirst($text),
7618 q{BLOCK},
7619 $tracelevel)
7620 if defined $::RD_TRACE;
7621 126 $expectation->failed();
7622 126 last;
7623 }
7624 127 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [TBNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 127 127
7625 . $_tok . q{]},
7626  
7627 Parse::RecDescent::_Runtime::_tracefirst($text),
7628 q{BLOCK},
7629 $tracelevel)
7630 if defined $::RD_TRACE;
7631 127 $item{q{TBNAME}} = $_tok;
7632 127 push @item, $_tok;
7633
7634 }
7635  
7636 127 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [PARAMS]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 127 127
7637 Parse::RecDescent::_Runtime::_tracefirst($text),
7638 q{BLOCK},
7639 $tracelevel)
7640 if defined $::RD_TRACE;
7641 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7642 127 $expectation->is(q{PARAMS})->at($text);
7643 127 ▶ 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))) 65 62 127
7644 {
7645
7646 65 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [PARAMS]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 65 65
7647 Parse::RecDescent::_Runtime::_tracefirst($text),
7648 q{BLOCK},
7649 $tracelevel)
7650 if defined $::RD_TRACE;
7651 65 $expectation->failed();
7652 65 last;
7653 }
7654 62 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [PARAMS]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
7655 . $_tok . q{]},
7656  
7657 Parse::RecDescent::_Runtime::_tracefirst($text),
7658 q{BLOCK},
7659 $tracelevel)
7660 if defined $::RD_TRACE;
7661 62 $item{q{PARAMS}} = $_tok;
7662 62 push @item, $_tok;
7663
7664 }
7665  
7666 62 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
7667 Parse::RecDescent::_Runtime::_tracefirst($text),
7668 q{BLOCK},
7669 $tracelevel)
7670 if defined $::RD_TRACE;
7671
7672  
7673 62 ▶ $_tok = ($_noactions) ? 0 : do {$return = [{
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 62 62
7674 block_name=>$item{TBNAME},
7675 block_parameters=>$item{PARAMS},
7676 62 }]
7677 };
7678 62 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 62 62
7679 {
7680 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
7681 if defined $::RD_TRACE;
7682 0 last;
7683 }
7684 62 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
7685 . $_tok . q{])},
7686 Parse::RecDescent::_Runtime::_tracefirst($text))
7687 if defined $::RD_TRACE;
7688 62 push @item, $_tok;
7689 62 $item{__ACTION1__}=$_tok;
7690
7691  
7692 62 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [TBNAME PARAMS]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 62 62
7693 Parse::RecDescent::_Runtime::_tracefirst($text),
7694 q{BLOCK},
7695 $tracelevel)
7696 if defined $::RD_TRACE;
7697  
7698  
7699  
7700 62 $_matched = 1;
7701 62 last;
7702 }
7703  
7704  
7705 258 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 191 67 258
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
670191
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7706 {
7707
7708 191 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [TBNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 191 191
7709 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7710 q{BLOCK},
7711 $tracelevel)
7712 if defined $::RD_TRACE;
7713 191 my $thisprod = $thisrule->{"prods"}[4];
7714 191 $text = $_[1];
7715 191 my $_savetext;
7716 191 @item = (q{BLOCK});
7717 191 %item = (__RULE__ => q{BLOCK});
7718 191 my $repcount = 0;
7719  
7720  
7721 191 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [TBNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 191 191
7722 Parse::RecDescent::_Runtime::_tracefirst($text),
7723 q{BLOCK},
7724 $tracelevel)
7725 if defined $::RD_TRACE;
7726 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7727 191 $expectation->is(q{})->at($text);
7728 191 ▶ 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))) 126 65 191
7729 {
7730
7731 126 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [TBNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
7732 Parse::RecDescent::_Runtime::_tracefirst($text),
7733 q{BLOCK},
7734 $tracelevel)
7735 if defined $::RD_TRACE;
7736 126 $expectation->failed();
7737 126 last;
7738 }
7739 65 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [TBNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 65 65
7740 . $_tok . q{]},
7741  
7742 Parse::RecDescent::_Runtime::_tracefirst($text),
7743 q{BLOCK},
7744 $tracelevel)
7745 if defined $::RD_TRACE;
7746 65 $item{q{TBNAME}} = $_tok;
7747 65 push @item, $_tok;
7748
7749 }
7750  
7751 65 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 65 65
7752 Parse::RecDescent::_Runtime::_tracefirst($text),
7753 q{BLOCK},
7754 $tracelevel)
7755 if defined $::RD_TRACE;
7756
7757  
7758 65 ▶ $_tok = ($_noactions) ? 0 : do {$return = [{
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 65 65
7759 block_name=>$item{TBNAME},
7760 65 block_parameters=>[],
7761 }]
7762 };
7763 65 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 65 65
7764 {
7765 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
7766 if defined $::RD_TRACE;
7767 0 last;
7768 }
7769 65 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 65 65
7770 . $_tok . q{])},
7771 Parse::RecDescent::_Runtime::_tracefirst($text))
7772 if defined $::RD_TRACE;
7773 65 push @item, $_tok;
7774 65 $item{__ACTION1__}=$_tok;
7775
7776  
7777 65 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [TBNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 65 65
7778 Parse::RecDescent::_Runtime::_tracefirst($text),
7779 q{BLOCK},
7780 $tracelevel)
7781 if defined $::RD_TRACE;
7782  
7783  
7784  
7785 65 $_matched = 1;
7786 65 last;
7787 }
7788  
7789  
7790 258 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 126 132 258
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
1320126
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
7791 {
7792
7793  
7794 126 $_[1] = $text; # NOT SURE THIS IS NEEDED
7795 126 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 126 126
7796 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7797 q{BLOCK},
7798 $tracelevel)
7799 if defined $::RD_TRACE;
7800 126 return undef;
7801 }
7802 132 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 132 132
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
13200
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
7803 {
7804 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7805 q{BLOCK},
7806 $tracelevel)
7807 if defined $::RD_TRACE;
7808 0 $return = $score_return;
7809 }
7810 132 splice @{$thisparser->{errors}}, $err_at;
7811 132 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 132 132
7812 132 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 132 132
7813 {
7814 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
7815 $return . q{])}, "",
7816 q{BLOCK},
7817 $tracelevel);
7818 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
7819 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
7820 Parse::RecDescent::_Runtime::_tracefirst($text),
7821 , q{BLOCK},
7822 $tracelevel)
7823 }
7824 132 $_[1] = $text;
7825 132 return $return;
7826 }
7827  
7828 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
7829 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SCEN
7830 {
7831 84 ▶ my $thisparser = $_[0];
Subroutine SCEN: called CC=43 SCAR=41.6
7832 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7833 84 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
840
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
7834 84 $ERRORS = 0;
7835 84 my $thisrule = $thisparser->{"rules"}{"SCEN"};
7836  
7837 84 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [SCEN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
7838 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7839 q{SCEN},
7840 $tracelevel)
7841 if defined $::RD_TRACE;
7842  
7843
7844 84 my $err_at = @{$thisparser->{errors}};
7845  
7846 84 my $score;
7847 my $score_return;
7848 84 my $_tok;
7849 84 my $return = undef;
7850 84 my $_matched=0;
7851 84 my $commit=0;
7852 84 my @item = ();
7853 84 my %item = ();
7854 84 my $repeating = $_[2];
7855 84 my $_noactions = $_[3];
7856 84 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 84 0 84
7857 84 my $_itempos = $_[5];
7858 84 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 19 65 84
7859 84 my $text;
7860 my $lastsep;
7861 84 my $current_match;
7862 84 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{LINE});
7863 84 $expectation->at($_[1]);
7864
7865 84 my $thisline;
7866 84 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
7867  
7868
7869  
7870 84 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 84 0 84
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0084
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7871 {
7872
7873 84 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [LINE SCEN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
7874 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7875 q{SCEN},
7876 $tracelevel)
7877 if defined $::RD_TRACE;
7878 84 my $thisprod = $thisrule->{"prods"}[0];
7879 84 $text = $_[1];
7880 84 my $_savetext;
7881 84 @item = (q{SCEN});
7882 84 %item = (__RULE__ => q{SCEN});
7883 84 my $repcount = 0;
7884  
7885  
7886 84 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [LINE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 84 84
7887 Parse::RecDescent::_Runtime::_tracefirst($text),
7888 q{SCEN},
7889 $tracelevel)
7890 if defined $::RD_TRACE;
7891 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7892 84 $expectation->is(q{})->at($text);
7893 84 ▶ 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))) 26 58 84
7894 {
7895
7896 26 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [LINE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 26 26
7897 Parse::RecDescent::_Runtime::_tracefirst($text),
7898 q{SCEN},
7899 $tracelevel)
7900 if defined $::RD_TRACE;
7901 26 $expectation->failed();
7902 26 last;
7903 }
7904 58 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [LINE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 58 58
7905 . $_tok . q{]},
7906  
7907 Parse::RecDescent::_Runtime::_tracefirst($text),
7908 q{SCEN},
7909 $tracelevel)
7910 if defined $::RD_TRACE;
7911 58 $item{q{LINE}} = $_tok;
7912 58 push @item, $_tok;
7913
7914 }
7915  
7916 58 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [SCEN]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 58 58
7917 Parse::RecDescent::_Runtime::_tracefirst($text),
7918 q{SCEN},
7919 $tracelevel)
7920 if defined $::RD_TRACE;
7921 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7922 58 $expectation->is(q{SCEN})->at($text);
7923 58 ▶ 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))) 24 34 58
7924 {
7925
7926 24 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [SCEN]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
7927 Parse::RecDescent::_Runtime::_tracefirst($text),
7928 q{SCEN},
7929 $tracelevel)
7930 if defined $::RD_TRACE;
7931 24 $expectation->failed();
7932 24 last;
7933 }
7934 34 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [SCEN]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7935 . $_tok . q{]},
7936  
7937 Parse::RecDescent::_Runtime::_tracefirst($text),
7938 q{SCEN},
7939 $tracelevel)
7940 if defined $::RD_TRACE;
7941 34 $item{q{SCEN}} = $_tok;
7942 34 push @item, $_tok;
7943
7944 }
7945  
7946 34 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7947 Parse::RecDescent::_Runtime::_tracefirst($text),
7948 q{SCEN},
7949 $tracelevel)
7950 if defined $::RD_TRACE;
7951
7952  
7953 34 ▶ $_tok = ($_noactions) ? 0 : do {$return = [@{$item{LINE}},@{$item{SCEN}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 34 34
7954 34 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 34 34
7955 {
7956 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
7957 if defined $::RD_TRACE;
7958 0 last;
7959 }
7960 34 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7961 . $_tok . q{])},
7962 Parse::RecDescent::_Runtime::_tracefirst($text))
7963 if defined $::RD_TRACE;
7964 34 push @item, $_tok;
7965 34 $item{__ACTION1__}=$_tok;
7966
7967  
7968 34 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [LINE SCEN]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7969 Parse::RecDescent::_Runtime::_tracefirst($text),
7970 q{SCEN},
7971 $tracelevel)
7972 if defined $::RD_TRACE;
7973  
7974  
7975  
7976 34 $_matched = 1;
7977 34 last;
7978 }
7979  
7980  
7981 84 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 50 34 84
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
34050
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7982 {
7983
7984 50 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [LINE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 50 50
7985 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
7986 q{SCEN},
7987 $tracelevel)
7988 if defined $::RD_TRACE;
7989 50 my $thisprod = $thisrule->{"prods"}[1];
7990 50 $text = $_[1];
7991 50 my $_savetext;
7992 50 @item = (q{SCEN});
7993 50 %item = (__RULE__ => q{SCEN});
7994 50 my $repcount = 0;
7995  
7996  
7997 50 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [LINE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 50 50
7998 Parse::RecDescent::_Runtime::_tracefirst($text),
7999 q{SCEN},
8000 $tracelevel)
8001 if defined $::RD_TRACE;
8002 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8003 50 $expectation->is(q{})->at($text);
8004 50 ▶ 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))) 26 24 50
8005 {
8006
8007 26 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [LINE]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 26 26
8008 Parse::RecDescent::_Runtime::_tracefirst($text),
8009 q{SCEN},
8010 $tracelevel)
8011 if defined $::RD_TRACE;
8012 26 $expectation->failed();
8013 26 last;
8014 }
8015 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [LINE]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8016 . $_tok . q{]},
8017  
8018 Parse::RecDescent::_Runtime::_tracefirst($text),
8019 q{SCEN},
8020 $tracelevel)
8021 if defined $::RD_TRACE;
8022 24 $item{q{LINE}} = $_tok;
8023 24 push @item, $_tok;
8024
8025 }
8026  
8027 24 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8028 Parse::RecDescent::_Runtime::_tracefirst($text),
8029 q{SCEN},
8030 $tracelevel)
8031 if defined $::RD_TRACE;
8032
8033  
8034 24 ▶ $_tok = ($_noactions) ? 0 : do {$return = [@{$item{LINE}}]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 24 24
8035 24 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 24 24
8036 {
8037 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
8038 if defined $::RD_TRACE;
8039 0 last;
8040 }
8041 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8042 . $_tok . q{])},
8043 Parse::RecDescent::_Runtime::_tracefirst($text))
8044 if defined $::RD_TRACE;
8045 24 push @item, $_tok;
8046 24 $item{__ACTION1__}=$_tok;
8047
8048  
8049 24 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [LINE]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
8050 Parse::RecDescent::_Runtime::_tracefirst($text),
8051 q{SCEN},
8052 $tracelevel)
8053 if defined $::RD_TRACE;
8054  
8055  
8056  
8057 24 $_matched = 1;
8058 24 last;
8059 }
8060  
8061  
8062 84 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 26 58 84
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
58026
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
8063 {
8064
8065  
8066 26 $_[1] = $text; # NOT SURE THIS IS NEEDED
8067 26 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 26 26
8068 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8069 q{SCEN},
8070 $tracelevel)
8071 if defined $::RD_TRACE;
8072 26 return undef;
8073 }
8074 58 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 58 58
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
5800
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
8075 {
8076 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8077 q{SCEN},
8078 $tracelevel)
8079 if defined $::RD_TRACE;
8080 0 $return = $score_return;
8081 }
8082 58 splice @{$thisparser->{errors}}, $err_at;
8083 58 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 58 58
8084 58 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 58 58
8085 {
8086 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
8087 $return . q{])}, "",
8088 q{SCEN},
8089 $tracelevel);
8090 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
8091 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
8092 Parse::RecDescent::_Runtime::_tracefirst($text),
8093 , q{SCEN},
8094 $tracelevel)
8095 }
8096 58 $_[1] = $text;
8097 58 return $return;
8098 }
8099  
8100 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8101 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::BNAME
8102 {
8103 624 ▶ my $thisparser = $_[0];
Subroutine BNAME: called CC=49 SCAR=44.9
8104 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8105 624 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
6240
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
8106 624 $ERRORS = 0;
8107 624 my $thisrule = $thisparser->{"rules"}{"BNAME"};
8108  
8109 624 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 624 624
8110 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8111 q{BNAME},
8112 $tracelevel)
8113 if defined $::RD_TRACE;
8114  
8115
8116 624 my $err_at = @{$thisparser->{errors}};
8117  
8118 624 my $score;
8119 my $score_return;
8120 624 my $_tok;
8121 624 my $return = undef;
8122 624 my $_matched=0;
8123 624 my $commit=0;
8124 624 my @item = ();
8125 624 my %item = ();
8126 624 my $repeating = $_[2];
8127 624 my $_noactions = $_[3];
8128 624 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 624 0 624
8129 624 my $_itempos = $_[5];
8130 624 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 160 464 624
8131 624 my $text;
8132 my $lastsep;
8133 624 my $current_match;
8134 624 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/[A-Z]\\w*::/, or /[A-Z]\\w*/});
8135 624 $expectation->at($_[1]);
8136
8137 624 my $thisline;
8138 624 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
8139  
8140
8141  
8142 624 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 624 0 624
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00624
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8143 {
8144
8145 624 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[A-Z]\\w*::/ BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 624 624
8146 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8147 q{BNAME},
8148 $tracelevel)
8149 if defined $::RD_TRACE;
8150 624 my $thisprod = $thisrule->{"prods"}[0];
8151 624 $text = $_[1];
8152 624 my $_savetext;
8153 624 @item = (q{BNAME});
8154 624 %item = (__RULE__ => q{BNAME});
8155 624 my $repcount = 0;
8156  
8157  
8158 624 ▶ 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 624 624
8159 q{BNAME},
8160 $tracelevel)
8161 if defined $::RD_TRACE;
8162 624 undef $lastsep;
8163 624 $expectation->is(q{})->at($text);
8164
8165  
8166 624 ▶ 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*::)/) 444 180 624
$lastsep = $1 and "" 222 402 624
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
0444180
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
8167 {
8168 444 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 444 0 444
8169 444 $expectation->failed();
8170 444 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 444 444
8171 Parse::RecDescent::_Runtime::_tracefirst($text))
8172 if defined $::RD_TRACE;
8173  
8174 444 last;
8175 }
8176 180 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8177 180 substr($text,0,length($current_match),q{});
8178 180 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
8179 . $current_match . q{])},
8180 Parse::RecDescent::_Runtime::_tracefirst($text))
8181 if defined $::RD_TRACE;
8182 180 push @item, $item{__PATTERN1__}=$current_match;
8183
8184  
8185 180 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [BNAME]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
8186 Parse::RecDescent::_Runtime::_tracefirst($text),
8187 q{BNAME},
8188 $tracelevel)
8189 if defined $::RD_TRACE;
8190 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8191 180 $expectation->is(q{BNAME})->at($text);
8192 180 ▶ 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 180 180
8193 {
8194
8195 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [BNAME]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8196 Parse::RecDescent::_Runtime::_tracefirst($text),
8197 q{BNAME},
8198 $tracelevel)
8199 if defined $::RD_TRACE;
8200 0 $expectation->failed();
8201 0 last;
8202 }
8203 180 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [BNAME]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
8204 . $_tok . q{]},
8205  
8206 Parse::RecDescent::_Runtime::_tracefirst($text),
8207 q{BNAME},
8208 $tracelevel)
8209 if defined $::RD_TRACE;
8210 180 $item{q{BNAME}} = $_tok;
8211 180 push @item, $_tok;
8212
8213 }
8214  
8215 180 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
8216 Parse::RecDescent::_Runtime::_tracefirst($text),
8217 q{BNAME},
8218 $tracelevel)
8219 if defined $::RD_TRACE;
8220
8221  
8222 180 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1].$item[2]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 180 180
8223 180 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 180 180
8224 {
8225 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
8226 if defined $::RD_TRACE;
8227 0 last;
8228 }
8229 180 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
8230 . $_tok . q{])},
8231 Parse::RecDescent::_Runtime::_tracefirst($text))
8232 if defined $::RD_TRACE;
8233 180 push @item, $_tok;
8234 180 $item{__ACTION1__}=$_tok;
8235
8236  
8237 180 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[A-Z]\\w*::/ BNAME]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 180 180
8238 Parse::RecDescent::_Runtime::_tracefirst($text),
8239 q{BNAME},
8240 $tracelevel)
8241 if defined $::RD_TRACE;
8242  
8243  
8244  
8245 180 $_matched = 1;
8246 180 last;
8247 }
8248  
8249  
8250 624 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 444 180 624
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
1800444
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8251 {
8252
8253 444 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[A-Z]\\w*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 444 444
8254 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8255 q{BNAME},
8256 $tracelevel)
8257 if defined $::RD_TRACE;
8258 444 my $thisprod = $thisrule->{"prods"}[1];
8259 444 $text = $_[1];
8260 444 my $_savetext;
8261 444 @item = (q{BNAME});
8262 444 %item = (__RULE__ => q{BNAME});
8263 444 my $repcount = 0;
8264  
8265  
8266 444 ▶ 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 444 444
8267 q{BNAME},
8268 $tracelevel)
8269 if defined $::RD_TRACE;
8270 444 undef $lastsep;
8271 444 $expectation->is(q{})->at($text);
8272
8273  
8274 444 ▶ 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*)/) 252 192 444
$lastsep = $1 and "" 116 328 444
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
0252192
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
8275 {
8276 252 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 252 0 252
8277 252 $expectation->failed();
8278 252 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 252 252
8279 Parse::RecDescent::_Runtime::_tracefirst($text))
8280 if defined $::RD_TRACE;
8281  
8282 252 last;
8283 }
8284 192 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8285 192 substr($text,0,length($current_match),q{});
8286 192 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 192 192
8287 . $current_match . q{])},
8288 Parse::RecDescent::_Runtime::_tracefirst($text))
8289 if defined $::RD_TRACE;
8290 192 push @item, $item{__PATTERN1__}=$current_match;
8291
8292  
8293 192 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 192 192
8294 Parse::RecDescent::_Runtime::_tracefirst($text),
8295 q{BNAME},
8296 $tracelevel)
8297 if defined $::RD_TRACE;
8298
8299  
8300 192 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 192 192
8301 192 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 192 192
8302 {
8303 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
8304 if defined $::RD_TRACE;
8305 0 last;
8306 }
8307 192 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 192 192
8308 . $_tok . q{])},
8309 Parse::RecDescent::_Runtime::_tracefirst($text))
8310 if defined $::RD_TRACE;
8311 192 push @item, $_tok;
8312 192 $item{__ACTION1__}=$_tok;
8313
8314  
8315 192 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[A-Z]\\w*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 192 192
8316 Parse::RecDescent::_Runtime::_tracefirst($text),
8317 q{BNAME},
8318 $tracelevel)
8319 if defined $::RD_TRACE;
8320  
8321  
8322  
8323 192 $_matched = 1;
8324 192 last;
8325 }
8326  
8327  
8328 624 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 252 372 624
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
3720252
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
8329 {
8330
8331  
8332 252 $_[1] = $text; # NOT SURE THIS IS NEEDED
8333 252 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 252 252
8334 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8335 q{BNAME},
8336 $tracelevel)
8337 if defined $::RD_TRACE;
8338 252 return undef;
8339 }
8340 372 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 372 372
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
37200
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
8341 {
8342 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8343 q{BNAME},
8344 $tracelevel)
8345 if defined $::RD_TRACE;
8346 0 $return = $score_return;
8347 }
8348 372 splice @{$thisparser->{errors}}, $err_at;
8349 372 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 372 372
8350 372 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 372 372
8351 {
8352 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
8353 $return . q{])}, "",
8354 q{BNAME},
8355 $tracelevel);
8356 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
8357 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
8358 Parse::RecDescent::_Runtime::_tracefirst($text),
8359 , q{BNAME},
8360 $tracelevel)
8361 }
8362 372 $_[1] = $text;
8363 372 return $return;
8364 }
8365  
8366 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8367 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PNOTQUOTED
8368 {
8369 46 ▶ my $thisparser = $_[0];
Subroutine PNOTQUOTED: called CC=42 SCAR=57.1
8370 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8371 46 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
460
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
8372 46 $ERRORS = 0;
8373 46 my $thisrule = $thisparser->{"rules"}{"PNOTQUOTED"};
8374  
8375 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PNOTQUOTED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
8376 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8377 q{PNOTQUOTED},
8378 $tracelevel)
8379 if defined $::RD_TRACE;
8380  
8381
8382 46 my $err_at = @{$thisparser->{errors}};
8383  
8384 46 my $score;
8385 my $score_return;
8386 46 my $_tok;
8387 46 my $return = undef;
8388 46 my $_matched=0;
8389 46 my $commit=0;
8390 46 my @item = ();
8391 46 my %item = ();
8392 46 my $repeating = $_[2];
8393 46 my $_noactions = $_[3];
8394 46 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 46 0 46
8395 46 my $_itempos = $_[5];
8396 46 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 46 46
8397 46 my $text;
8398 my $lastsep;
8399 46 my $current_match;
8400 46 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\S+/, or EMPTY});
8401 46 $expectation->at($_[1]);
8402
8403 46 my $thisline;
8404 46 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
8405  
8406
8407  
8408 46 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 46 0 46
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0046
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8409 {
8410
8411 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\S+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
8412 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8413 q{PNOTQUOTED},
8414 $tracelevel)
8415 if defined $::RD_TRACE;
8416 46 my $thisprod = $thisrule->{"prods"}[0];
8417 46 $text = $_[1];
8418 46 my $_savetext;
8419 46 @item = (q{PNOTQUOTED});
8420 46 %item = (__RULE__ => q{PNOTQUOTED});
8421 46 my $repcount = 0;
8422  
8423  
8424 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\S+/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
8425 q{PNOTQUOTED},
8426 $tracelevel)
8427 if defined $::RD_TRACE;
8428 46 undef $lastsep;
8429 46 $expectation->is(q{})->at($text);
8430
8431  
8432 46 ▶ 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 46 46
$lastsep = $1 and "" 0 46 46
Condition33%1/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\S+)/
!ll&&!rl&&r
0046
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 table33%1/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
8433 {
8434 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
8435 0 $expectation->failed();
8436 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8437 Parse::RecDescent::_Runtime::_tracefirst($text))
8438 if defined $::RD_TRACE;
8439  
8440 0 last;
8441 }
8442 46 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8443 46 substr($text,0,length($current_match),q{});
8444 46 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
8445 . $current_match . q{])},
8446 Parse::RecDescent::_Runtime::_tracefirst($text))
8447 if defined $::RD_TRACE;
8448 46 push @item, $item{__PATTERN1__}=$current_match;
8449
8450  
8451 46 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
8452 Parse::RecDescent::_Runtime::_tracefirst($text),
8453 q{PNOTQUOTED},
8454 $tracelevel)
8455 if defined $::RD_TRACE;
8456
8457  
8458 46 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 46 46
8459 46 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 46 46
8460 {
8461 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
8462 if defined $::RD_TRACE;
8463 0 last;
8464 }
8465 46 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
8466 . $_tok . q{])},
8467 Parse::RecDescent::_Runtime::_tracefirst($text))
8468 if defined $::RD_TRACE;
8469 46 push @item, $_tok;
8470 46 $item{__ACTION1__}=$_tok;
8471
8472  
8473 46 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\S+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 46 46
8474 Parse::RecDescent::_Runtime::_tracefirst($text),
8475 q{PNOTQUOTED},
8476 $tracelevel)
8477 if defined $::RD_TRACE;
8478  
8479  
8480  
8481 46 $_matched = 1;
8482 46 last;
8483 }
8484  
8485  
8486 46 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 0 46 46
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
4600
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8487 {
8488
8489 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [EMPTY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8490 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8491 q{PNOTQUOTED},
8492 $tracelevel)
8493 if defined $::RD_TRACE;
8494 0 my $thisprod = $thisrule->{"prods"}[1];
8495 0 $text = $_[1];
8496 0 my $_savetext;
8497 0 @item = (q{PNOTQUOTED});
8498 0 %item = (__RULE__ => q{PNOTQUOTED});
8499 0 my $repcount = 0;
8500  
8501  
8502 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying subrule: [EMPTY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8503 Parse::RecDescent::_Runtime::_tracefirst($text),
8504 q{PNOTQUOTED},
8505 $tracelevel)
8506 if defined $::RD_TRACE;
8507 5 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
8508 0 $expectation->is(q{})->at($text);
8509 0 ▶ unless (defined ($_tok = Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::EMPTY($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef)))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = EMPTY($thisparser, $text, $repeating, $_noactions, sub { \@arg; } , undef))) 0 0 0
8510 {
8511
8512 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match subrule: [EMPTY]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8513 Parse::RecDescent::_Runtime::_tracefirst($text),
8514 q{PNOTQUOTED},
8515 $tracelevel)
8516 if defined $::RD_TRACE;
8517 0 $expectation->failed();
8518 0 last;
8519 }
8520 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched subrule: [EMPTY]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8521 . $_tok . q{]},
8522  
8523 Parse::RecDescent::_Runtime::_tracefirst($text),
8524 q{PNOTQUOTED},
8525 $tracelevel)
8526 if defined $::RD_TRACE;
8527 0 $item{q{EMPTY}} = $_tok;
8528 0 push @item, $_tok;
8529
8530 }
8531  
8532 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8533 Parse::RecDescent::_Runtime::_tracefirst($text),
8534 q{PNOTQUOTED},
8535 $tracelevel)
8536 if defined $::RD_TRACE;
8537
8538  
8539 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = ''};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
8540 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
8541 {
8542 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
8543 if defined $::RD_TRACE;
8544 0 last;
8545 }
8546 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8547 . $_tok . q{])},
8548 Parse::RecDescent::_Runtime::_tracefirst($text))
8549 if defined $::RD_TRACE;
8550 0 push @item, $_tok;
8551 0 $item{__ACTION1__}=$_tok;
8552
8553  
8554 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [EMPTY]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8555 Parse::RecDescent::_Runtime::_tracefirst($text),
8556 q{PNOTQUOTED},
8557 $tracelevel)
8558 if defined $::RD_TRACE;
8559  
8560  
8561  
8562 0 $_matched = 1;
8563 0 last;
8564 }
8565  
8566  
8567 46 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 46 46
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
4600
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
8568 {
8569
8570  
8571 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
8572 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8573 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8574 q{PNOTQUOTED},
8575 $tracelevel)
8576 if defined $::RD_TRACE;
8577 0 return undef;
8578 }
8579 46 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 46 46
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
4600
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
8580 {
8581 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8582 q{PNOTQUOTED},
8583 $tracelevel)
8584 if defined $::RD_TRACE;
8585 0 $return = $score_return;
8586 }
8587 46 splice @{$thisparser->{errors}}, $err_at;
8588 46 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 46 46
8589 46 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 46 46
8590 {
8591 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
8592 $return . q{])}, "",
8593 q{PNOTQUOTED},
8594 $tracelevel);
8595 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
8596 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
8597 Parse::RecDescent::_Runtime::_tracefirst($text),
8598 , q{PNOTQUOTED},
8599 $tracelevel)
8600 }
8601 46 $_[1] = $text;
8602 46 return $return;
8603 }
8604  
8605 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8606 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::PTICKED
8607 {
8608 0 ▶ my $thisparser = $_[0];
Subroutine PTICKED: not called CC=29 SCAR=67.0
8609 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8610 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
8611 0 $ERRORS = 0;
8612 0 my $thisrule = $thisparser->{"rules"}{"PTICKED"};
8613  
8614 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [PTICKED]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8615 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8616 q{PTICKED},
8617 $tracelevel)
8618 if defined $::RD_TRACE;
8619  
8620
8621 0 my $err_at = @{$thisparser->{errors}};
8622  
8623 0 my $score;
8624 my $score_return;
8625 0 my $_tok;
8626 0 my $return = undef;
8627 0 my $_matched=0;
8628 0 my $commit=0;
8629 0 my @item = ();
8630 0 my %item = ();
8631 0 my $repeating = $_[2];
8632 0 my $_noactions = $_[3];
8633 0 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 0 0 0
8634 0 my $_itempos = $_[5];
8635 0 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 0 0
8636 0 my $text;
8637 my $lastsep;
8638 0 my $current_match;
8639 0 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/[^`]+/});
8640 0 $expectation->at($_[1]);
8641
8642 0 my $thisline;
8643 0 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
8644  
8645
8646  
8647 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
8648 {
8649
8650 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/[^`]+/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8651 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8652 q{PTICKED},
8653 $tracelevel)
8654 if defined $::RD_TRACE;
8655 0 my $thisprod = $thisrule->{"prods"}[0];
8656 0 $text = $_[1];
8657 0 my $_savetext;
8658 0 @item = (q{PTICKED});
8659 0 %item = (__RULE__ => q{PTICKED});
8660 0 my $repcount = 0;
8661  
8662  
8663 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
8664 q{PTICKED},
8665 $tracelevel)
8666 if defined $::RD_TRACE;
8667 0 undef $lastsep;
8668 0 $expectation->is(q{})->at($text);
8669
8670  
8671 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
8672 {
8673 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
8674 0 $expectation->failed();
8675 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8676 Parse::RecDescent::_Runtime::_tracefirst($text))
8677 if defined $::RD_TRACE;
8678  
8679 0 last;
8680 }
8681 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8682 0 substr($text,0,length($current_match),q{});
8683 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8684 . $current_match . q{])},
8685 Parse::RecDescent::_Runtime::_tracefirst($text))
8686 if defined $::RD_TRACE;
8687 0 push @item, $item{__PATTERN1__}=$current_match;
8688
8689  
8690 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8691 Parse::RecDescent::_Runtime::_tracefirst($text),
8692 q{PTICKED},
8693 $tracelevel)
8694 if defined $::RD_TRACE;
8695
8696  
8697 0 ▶ $_tok = ($_noactions) ? 0 : do {$return = $item[1]};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
8698 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
8699 {
8700 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
8701 if defined $::RD_TRACE;
8702 0 last;
8703 }
8704 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8705 . $_tok . q{])},
8706 Parse::RecDescent::_Runtime::_tracefirst($text))
8707 if defined $::RD_TRACE;
8708 0 push @item, $_tok;
8709 0 $item{__ACTION1__}=$_tok;
8710
8711  
8712 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/[^`]+/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8713 Parse::RecDescent::_Runtime::_tracefirst($text),
8714 q{PTICKED},
8715 $tracelevel)
8716 if defined $::RD_TRACE;
8717  
8718  
8719  
8720 0 $_matched = 1;
8721 0 last;
8722 }
8723  
8724  
8725 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
8726 {
8727
8728  
8729 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
8730 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8731 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8732 q{PTICKED},
8733 $tracelevel)
8734 if defined $::RD_TRACE;
8735 0 return undef;
8736 }
8737 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
8738 {
8739 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8740 q{PTICKED},
8741 $tracelevel)
8742 if defined $::RD_TRACE;
8743 0 $return = $score_return;
8744 }
8745 0 splice @{$thisparser->{errors}}, $err_at;
8746 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
8747 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
8748 {
8749 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
8750 $return . q{])}, "",
8751 q{PTICKED},
8752 $tracelevel);
8753 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
8754 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
8755 Parse::RecDescent::_Runtime::_tracefirst($text),
8756 , q{PTICKED},
8757 $tracelevel)
8758 }
8759 0 $_[1] = $text;
8760 0 return $return;
8761 }
8762  
8763 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8764 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::SLASHEDSQUOTE
8765 {
8766 80 ▶ my $thisparser = $_[0];
Subroutine SLASHEDSQUOTE: called CC=29 SCAR=37.5
8767 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8768 80 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::tracelevel || 0
l!l
800
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
8769 80 $ERRORS = 0;
8770 80 my $thisrule = $thisparser->{"rules"}{"SLASHEDSQUOTE"};
8771  
8772 80 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [SLASHEDSQUOTE]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
8773 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8774 q{SLASHEDSQUOTE},
8775 $tracelevel)
8776 if defined $::RD_TRACE;
8777  
8778
8779 80 my $err_at = @{$thisparser->{errors}};
8780  
8781 80 my $score;
8782 my $score_return;
8783 80 my $_tok;
8784 80 my $return = undef;
8785 80 my $_matched=0;
8786 80 my $commit=0;
8787 80 my @item = ();
8788 80 my %item = ();
8789 80 my $repeating = $_[2];
8790 80 my $_noactions = $_[3];
8791 80 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 80 0 80
8792 80 my $_itempos = $_[5];
8793 80 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 32 48 80
8794 80 my $text;
8795 my $lastsep;
8796 80 my $current_match;
8797 80 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{/\\\\'/});
8798 80 $expectation->at($_[1]);
8799
8800 80 my $thisline;
8801 80 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
8802  
8803
8804  
8805 80 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 80 0 80
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0080
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8806 {
8807
8808 80 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [/\\\\'/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
8809 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8810 q{SLASHEDSQUOTE},
8811 $tracelevel)
8812 if defined $::RD_TRACE;
8813 80 my $thisprod = $thisrule->{"prods"}[0];
8814 80 $text = $_[1];
8815 80 my $_savetext;
8816 80 @item = (q{SLASHEDSQUOTE});
8817 80 %item = (__RULE__ => q{SLASHEDSQUOTE});
8818 80 my $repcount = 0;
8819  
8820  
8821 80 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying terminal: [/\\\\'/]}, Parse::RecDescent::_Runtime::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
8822 q{SLASHEDSQUOTE},
8823 $tracelevel)
8824 if defined $::RD_TRACE;
8825 80 undef $lastsep;
8826 80 $expectation->is(q{})->at($text);
8827
8828  
8829 80 ▶ 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(?:\\')/) 72 8 80
$lastsep = $1 and "" 0 80 80
Condition66%2/3
$text =~ s/\A($Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\\')/
!ll&&!rl&&r
0728
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
8830 {
8831 72 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 72 0 72
8832 72 $expectation->failed();
8833 72 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
8834 Parse::RecDescent::_Runtime::_tracefirst($text))
8835 if defined $::RD_TRACE;
8836  
8837 72 last;
8838 }
8839 8 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8840 8 substr($text,0,length($current_match),q{});
8841 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
8842 . $current_match . q{])},
8843 Parse::RecDescent::_Runtime::_tracefirst($text))
8844 if defined $::RD_TRACE;
8845 8 push @item, $item{__PATTERN1__}=$current_match;
8846
8847  
8848 8 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
8849 Parse::RecDescent::_Runtime::_tracefirst($text),
8850 q{SLASHEDSQUOTE},
8851 $tracelevel)
8852 if defined $::RD_TRACE;
8853
8854  
8855 8 ▶ $_tok = ($_noactions) ? 0 : do {$return = "'"};
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 8 8
8856 8 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 8 8
8857 {
8858 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
8859 if defined $::RD_TRACE;
8860 0 last;
8861 }
8862 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
8863 . $_tok . q{])},
8864 Parse::RecDescent::_Runtime::_tracefirst($text))
8865 if defined $::RD_TRACE;
8866 8 push @item, $_tok;
8867 8 $item{__ACTION1__}=$_tok;
8868
8869  
8870 8 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [/\\\\'/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
8871 Parse::RecDescent::_Runtime::_tracefirst($text),
8872 q{SLASHEDSQUOTE},
8873 $tracelevel)
8874 if defined $::RD_TRACE;
8875  
8876  
8877  
8878 8 $_matched = 1;
8879 8 last;
8880 }
8881  
8882  
8883 80 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 72 8 80
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
8072
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
8884 {
8885
8886  
8887 72 $_[1] = $text; # NOT SURE THIS IS NEEDED
8888 72 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 72 72
8889 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8890 q{SLASHEDSQUOTE},
8891 $tracelevel)
8892 if defined $::RD_TRACE;
8893 72 return undef;
8894 }
8895 8 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 8 8
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
800
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
8896 {
8897 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8898 q{SLASHEDSQUOTE},
8899 $tracelevel)
8900 if defined $::RD_TRACE;
8901 0 $return = $score_return;
8902 }
8903 8 splice @{$thisparser->{errors}}, $err_at;
8904 8 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 8 8
8905 8 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 8 8
8906 {
8907 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
8908 $return . q{])}, "",
8909 q{SLASHEDSQUOTE},
8910 $tracelevel);
8911 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
8912 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
8913 Parse::RecDescent::_Runtime::_tracefirst($text),
8914 , q{SLASHEDSQUOTE},
8915 $tracelevel)
8916 }
8917 8 $_[1] = $text;
8918 8 return $return;
8919 }
8920  
8921 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos)
8922 sub Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser::EMPTY
8923 {
8924 0 ▶ my $thisparser = $_[0];
Subroutine EMPTY: not called CC=24 SCAR=63.2
8925 5 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8926 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
8927 0 $ERRORS = 0;
8928 0 my $thisrule = $thisparser->{"rules"}{"EMPTY"};
8929  
8930 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying rule: [EMPTY]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8931 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8932 q{EMPTY},
8933 $tracelevel)
8934 if defined $::RD_TRACE;
8935  
8936
8937 0 my $err_at = @{$thisparser->{errors}};
8938  
8939 0 my $score;
8940 my $score_return;
8941 0 my $_tok;
8942 0 my $return = undef;
8943 0 my $_matched=0;
8944 0 my $commit=0;
8945 0 my @item = ();
8946 0 my %item = ();
8947 0 my $repeating = $_[2];
8948 0 my $_noactions = $_[3];
8949 0 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 0 0 0
8950 0 my $_itempos = $_[5];
8951 0 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 0 0
8952 0 my $text;
8953 my $lastsep;
8954 0 my $current_match;
8955 0 my $expectation = new Parse::RecDescent::_Runtime::Expectation(q{//});
8956 0 $expectation->at($_[1]);
8957
8958 0 my $thisline;
8959 0 tie $thisline, q{Parse::RecDescent::_Runtime::LineCounter}, \$text, $thisparser;
8960  
8961
8962  
8963 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
8964 {
8965
8966 0 ▶ Parse::RecDescent::_Runtime::_trace(q{Trying production: [//]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8967 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
8968 q{EMPTY},
8969 $tracelevel)
8970 if defined $::RD_TRACE;
8971 0 my $thisprod = $thisrule->{"prods"}[0];
8972 0 $text = $_[1];
8973 0 my $_savetext;
8974 0 @item = (q{EMPTY});
8975 0 %item = (__RULE__ => q{EMPTY});
8976 0 my $repcount = 0;
8977  
8978  
8979 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
8980 q{EMPTY},
8981 $tracelevel)
8982 if defined $::RD_TRACE;
8983 0 undef $lastsep;
8984 0 $expectation->is(q{})->at($text);
8985
8986  
8987 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
8988 {
8989 0 ▶ $text = $lastsep . $text if defined $lastsep;
Branch: 1 branch
BranchTrueFalseTotal
if defined $lastsep 0 0 0
8990 0 $expectation->failed();
8991 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8992 Parse::RecDescent::_Runtime::_tracefirst($text))
8993 if defined $::RD_TRACE;
8994  
8995 0 last;
8996 }
8997 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8998 0 substr($text,0,length($current_match),q{});
8999 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9000 . $current_match . q{])},
9001 Parse::RecDescent::_Runtime::_tracefirst($text))
9002 if defined $::RD_TRACE;
9003 0 push @item, $item{__PATTERN1__}=$current_match;
9004
9005  
9006 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Matched production: [//]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9007 Parse::RecDescent::_Runtime::_tracefirst($text),
9008 q{EMPTY},
9009 $tracelevel)
9010 if defined $::RD_TRACE;
9011  
9012  
9013  
9014 0 $_matched = 1;
9015 0 last;
9016 }
9017  
9018  
9019 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
9020 {
9021
9022  
9023 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
9024 0 ▶ Parse::RecDescent::_Runtime::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9025 Parse::RecDescent::_Runtime::_tracefirst($_[1]),
9026 q{EMPTY},
9027 $tracelevel)
9028 if defined $::RD_TRACE;
9029 0 return undef;
9030 }
9031 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
9032 {
9033 0 ▶ Parse::RecDescent::_Runtime::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
9034 q{EMPTY},
9035 $tracelevel)
9036 if defined $::RD_TRACE;
9037 0 $return = $score_return;
9038 }
9039 0 splice @{$thisparser->{errors}}, $err_at;
9040 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
9041 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
9042 {
9043 0 Parse::RecDescent::_Runtime::_trace(q{>>Matched rule<< (return value: [} .
9044 $return . q{])}, "",
9045 q{EMPTY},
9046 $tracelevel);
9047 0 Parse::RecDescent::_Runtime::_trace(q{(consumed: [} .
9048 Parse::RecDescent::_Runtime::_tracemax(substr($_[1],0,-length($text))) . q{])},
9049 Parse::RecDescent::_Runtime::_tracefirst($text),
9050 , q{EMPTY},
9051 $tracelevel)
9052 }
9053 0 $_[1] = $text;
9054 0 return $return;
9055 }
9056 }
9057 15 ▶package Treex::Core::ScenarioParser; sub new { my $self = bless( {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
9058 'localvars' => '',
9059 '_AUTOTREE' => undef,
9060 'startcode' => '',
9061 'namespace' => 'Parse::RecDescent::_Runtime::Treex::Core::ScenarioParser',
9062 'rules' => {
9063 'SLASHEDDQUOTE' => bless( {
9064 'opcount' => 0,
9065 'name' => 'SLASHEDDQUOTE',
9066 'calls' => [],
9067 'impcount' => 0,
9068 'vars' => '',
9069 'prods' => [
9070 bless( {
9071 'strcount' => 0,
9072 'line' => undef,
9073 'number' => 0,
9074 'patcount' => 1,
9075 'dircount' => 0,
9076 'items' => [
9077 bless( {
9078 'ldelim' => '/',
9079 'description' => '/\\\\\\\\"/',
9080 'line' => 88,
9081 'pattern' => '\\\\"',
9082 'rdelim' => '/',
9083 'hashname' => '__PATTERN1__',
9084 'lookahead' => 0,
9085 'mod' => ''
9086 }, 'Parse::RecDescent::_Runtime::Token' ),
9087 bless( {
9088 'line' => 88,
9089 'lookahead' => 0,
9090 'code' => '{$return = \'"\'}',
9091 'hashname' => '__ACTION1__'
9092 }, 'Parse::RecDescent::_Runtime::Action' )
9093 ],
9094 'actcount' => 1,
9095 'uncommit' => undef,
9096 'error' => undef
9097 }, 'Parse::RecDescent::_Runtime::Production' )
9098 ],
9099 'line' => 88,
9100 'changed' => 0
9101 }, 'Parse::RecDescent::_Runtime::Rule' ),
9102 'PNAME' => bless( {
9103 'opcount' => 0,
9104 'name' => 'PNAME',
9105 'impcount' => 0,
9106 'calls' => [],
9107 'prods' => [
9108 bless( {
9109 'uncommit' => undef,
9110 'actcount' => 1,
9111 'error' => undef,
9112 'items' => [
9113 bless( {
9114 'mod' => '',
9115 'lookahead' => 0,
9116 'hashname' => '__PATTERN1__',
9117 'rdelim' => '/',
9118 'pattern' => '\\w+',
9119 'line' => 76,
9120 'description' => '/\\\\w+/',
9121 'ldelim' => '/'
9122 }, 'Parse::RecDescent::_Runtime::Token' ),
9123 bless( {
9124 'line' => 76,
9125 'lookahead' => 0,
9126 'code' => '{$return = $item[1]}',
9127 'hashname' => '__ACTION1__'
9128 }, 'Parse::RecDescent::_Runtime::Action' )
9129 ],
9130 'number' => 0,
9131 'patcount' => 1,
9132 'dircount' => 0,
9133 'line' => undef,
9134 'strcount' => 0
9135 }, 'Parse::RecDescent::_Runtime::Production' )
9136 ],
9137 'vars' => '',
9138 'line' => 76,
9139 'changed' => 0
9140 }, 'Parse::RecDescent::_Runtime::Rule' ),
9141 'INCLUDE' => bless( {
9142 'line' => 61,
9143 'changed' => 0,
9144 'opcount' => 0,
9145 'prods' => [
9146 bless( {
9147 'strcount' => 0,
9148 'line' => undef,
9149 'patcount' => 1,
9150 'dircount' => 0,
9151 'number' => 0,
9152 'items' => [
9153 bless( {
9154 'pattern' => '\\/\\S+\\.scen',
9155 'line' => 61,
9156 'description' => '/\\\\/\\\\S+\\\\.scen/',
9157 'ldelim' => '/',
9158 'mod' => '',
9159 'lookahead' => 0,
9160 'hashname' => '__PATTERN1__',
9161 'rdelim' => '/'
9162 }, 'Parse::RecDescent::_Runtime::Token' ),
9163 bless( {
9164 'hashname' => '__ACTION1__',
9165 'code' => '{$return = $item[1]}',
9166 'lookahead' => 0,
9167 'line' => 61
9168 }, 'Parse::RecDescent::_Runtime::Action' )
9169 ],
9170 'uncommit' => undef,
9171 'actcount' => 1,
9172 'error' => undef
9173 }, 'Parse::RecDescent::_Runtime::Production' ),
9174 bless( {
9175 'line' => undef,
9176 'strcount' => 0,
9177 'number' => 1,
9178 'patcount' => 1,
9179 'dircount' => 0,
9180 'items' => [
9181 bless( {
9182 'mod' => '',
9183 'lookahead' => 0,
9184 'hashname' => '__PATTERN1__',
9185 'rdelim' => '/',
9186 'pattern' => '[^\\/#]\\S+\\.scen',
9187 'line' => 62,
9188 'description' => '/[^\\\\/#]\\\\S+\\\\.scen/',
9189 'ldelim' => '/'
9190 }, 'Parse::RecDescent::_Runtime::Token' ),
9191 bless( {
9192 'lookahead' => 0,
9193 'line' => 62,
9194 'hashname' => '__ACTION1__',
9195 'code' => '{ my $from_file = $arg[0];
9196 if (length $from_file) {
9197 $return = dirname($from_file) . "/$item[1]";
9198 } else {
9199 $return = "./$item[1]";
9200 }
9201 }'
9202 }, 'Parse::RecDescent::_Runtime::Action' )
9203 ],
9204 'error' => undef,
9205 'uncommit' => undef,
9206 'actcount' => 1
9207 }, 'Parse::RecDescent::_Runtime::Production' )
9208 ],
9209 'vars' => '',
9210 'calls' => [],
9211 'impcount' => 0,
9212 'name' => 'INCLUDE'
9213 }, 'Parse::RecDescent::_Runtime::Rule' ),
9214 'NOTDQUOTE' => bless( {
9215 'line' => 87,
9216 'changed' => 0,
9217 'opcount' => 0,
9218 'name' => 'NOTDQUOTE',
9219 'calls' => [],
9220 'impcount' => 0,
9221 'vars' => '',
9222 'prods' => [
9223 bless( {
9224 'error' => undef,
9225 'actcount' => 0,
9226 'uncommit' => undef,
9227 'items' => [
9228 bless( {
9229 'lookahead' => 0,
9230 'mod' => '',
9231 'rdelim' => '/',
9232 'hashname' => '__PATTERN1__',
9233 'line' => 87,
9234 'pattern' => '[^"]*[^"\\\\]',
9235 'ldelim' => '/',
9236 'description' => '/[^"]*[^"\\\\\\\\]/'
9237 }, 'Parse::RecDescent::_Runtime::Token' )
9238 ],
9239 'number' => 0,
9240 'dircount' => 0,
9241 'patcount' => 1,
9242 'line' => undef,
9243 'strcount' => 0
9244 }, 'Parse::RecDescent::_Runtime::Production' )
9245 ]
9246 }, 'Parse::RecDescent::_Runtime::Rule' ),
9247 'PARAM' => bless( {
9248 'opcount' => 0,
9249 'calls' => [
9250 'PNAME',
9251 'PVALUE'
9252 ],
9253 'impcount' => 0,
9254 'prods' => [
9255 bless( {
9256 'line' => undef,
9257 'strcount' => 1,
9258 'number' => 0,
9259 'patcount' => 0,
9260 'dircount' => 1,
9261 'items' => [
9262 bless( {
9263 'line' => 75,
9264 'argcode' => undef,
9265 'lookahead' => 0,
9266 'implicit' => undef,
9267 'matchrule' => 0,
9268 'subrule' => 'PNAME'
9269 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9270 bless( {
9271 'hashname' => '__STRING1__',
9272 'description' => '\'=\'',
9273 'pattern' => '=',
9274 'lookahead' => 0,
9275 'line' => 75
9276 }, 'Parse::RecDescent::_Runtime::Literal' ),
9277 bless( {
9278 'code' => 'my $oldskip = $skip; $skip= qr//; $oldskip',
9279 'hashname' => '__DIRECTIVE1__',
9280 'name' => '<skip: qr//>',
9281 'line' => 75,
9282 'lookahead' => 0
9283 }, 'Parse::RecDescent::_Runtime::Directive' ),
9284 bless( {
9285 'line' => 75,
9286 'argcode' => undef,
9287 'lookahead' => 0,
9288 'implicit' => undef,
9289 'matchrule' => 0,
9290 'subrule' => 'PVALUE'
9291 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9292 bless( {
9293 'code' => '{$return = $item{PNAME}.\'=\'.$item{PVALUE}}',
9294 'hashname' => '__ACTION1__',
9295 'line' => 75,
9296 'lookahead' => 0
9297 }, 'Parse::RecDescent::_Runtime::Action' )
9298 ],
9299 'error' => undef,
9300 'uncommit' => undef,
9301 'actcount' => 1
9302 }, 'Parse::RecDescent::_Runtime::Production' )
9303 ],
9304 'vars' => '',
9305 'name' => 'PARAM',
9306 'line' => 75,
9307 'changed' => 0
9308 }, 'Parse::RecDescent::_Runtime::Rule' ),
9309 'TBNAME' => bless( {
9310 'changed' => 0,
9311 'line' => 69,
9312 'name' => 'TBNAME',
9313 'vars' => '',
9314 'prods' => [
9315 bless( {
9316 'line' => undef,
9317 'strcount' => 0,
9318 'number' => 0,
9319 'dircount' => 0,
9320 'patcount' => 1,
9321 'items' => [
9322 bless( {
9323 'pattern' => '::',
9324 'line' => 69,
9325 'description' => '/::/',
9326 'ldelim' => '/',
9327 'mod' => '',
9328 'lookahead' => 0,
9329 'hashname' => '__PATTERN1__',
9330 'rdelim' => '/'
9331 }, 'Parse::RecDescent::_Runtime::Token' ),
9332 bless( {
9333 'subrule' => 'BNAME',
9334 'implicit' => undef,
9335 'matchrule' => 0,
9336 'line' => 69,
9337 'argcode' => undef,
9338 'lookahead' => 0
9339 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9340 bless( {
9341 'line' => 69,
9342 'lookahead' => 0,
9343 'code' => '{$return = $item{BNAME}}',
9344 'hashname' => '__ACTION1__'
9345 }, 'Parse::RecDescent::_Runtime::Action' )
9346 ],
9347 'error' => undef,
9348 'actcount' => 1,
9349 'uncommit' => undef
9350 }, 'Parse::RecDescent::_Runtime::Production' ),
9351 bless( {
9352 'number' => 1,
9353 'dircount' => 0,
9354 'patcount' => 0,
9355 'line' => undef,
9356 'strcount' => 0,
9357 'error' => undef,
9358 'actcount' => 1,
9359 'uncommit' => undef,
9360 'items' => [
9361 bless( {
9362 'lookahead' => 0,
9363 'argcode' => undef,
9364 'line' => 70,
9365 'matchrule' => 0,
9366 'implicit' => undef,
9367 'subrule' => 'BNAME'
9368 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9369 bless( {
9370 'code' => '{$return = "Treex::Block::$item{BNAME}"}',
9371 'hashname' => '__ACTION1__',
9372 'line' => 70,
9373 'lookahead' => 0
9374 }, 'Parse::RecDescent::_Runtime::Action' )
9375 ]
9376 }, 'Parse::RecDescent::_Runtime::Production' )
9377 ],
9378 'impcount' => 0,
9379 'calls' => [
9380 'BNAME'
9381 ],
9382 'opcount' => 0
9383 }, 'Parse::RecDescent::_Runtime::Rule' ),
9384 'PVALUE' => bless( {
9385 'line' => 77,
9386 'changed' => 0,
9387 'opcount' => 0,
9388 'impcount' => 0,
9389 'calls' => [
9390 'PSQUOTE',
9391 'PDQUOTE',
9392 'PTICKED',
9393 'PNOTQUOTED'
9394 ],
9395 'vars' => '',
9396 'prods' => [
9397 bless( {
9398 'strcount' => 0,
9399 'line' => undef,
9400 'dircount' => 0,
9401 'patcount' => 2,
9402 'number' => 0,
9403 'items' => [
9404 bless( {
9405 'description' => '/\'/',
9406 'ldelim' => '/',
9407 'pattern' => '\'',
9408 'line' => 77,
9409 'hashname' => '__PATTERN1__',
9410 'rdelim' => '/',
9411 'mod' => '',
9412 'lookahead' => 0
9413 }, 'Parse::RecDescent::_Runtime::Token' ),
9414 bless( {
9415 'lookahead' => 0,
9416 'line' => 77,
9417 'argcode' => undef,
9418 'matchrule' => 0,
9419 'implicit' => undef,
9420 'subrule' => 'PSQUOTE'
9421 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9422 bless( {
9423 'hashname' => '__PATTERN2__',
9424 'rdelim' => '/',
9425 'mod' => '',
9426 'lookahead' => 0,
9427 'description' => '/\'/',
9428 'ldelim' => '/',
9429 'pattern' => '\'',
9430 'line' => 77
9431 }, 'Parse::RecDescent::_Runtime::Token' ),
9432 bless( {
9433 'hashname' => '__ACTION1__',
9434 'code' => '{$return = $item{PSQUOTE}}',
9435 'lookahead' => 0,
9436 'line' => 77
9437 }, 'Parse::RecDescent::_Runtime::Action' )
9438 ],
9439 'error' => undef,
9440 'uncommit' => undef,
9441 'actcount' => 1
9442 }, 'Parse::RecDescent::_Runtime::Production' ),
9443 bless( {
9444 'uncommit' => undef,
9445 'actcount' => 1,
9446 'error' => undef,
9447 'items' => [
9448 bless( {
9449 'line' => 78,
9450 'pattern' => '"',
9451 'ldelim' => '/',
9452 'description' => '/"/',
9453 'lookahead' => 0,
9454 'mod' => '',
9455 'rdelim' => '/',
9456 'hashname' => '__PATTERN1__'
9457 }, 'Parse::RecDescent::_Runtime::Token' ),
9458 bless( {
9459 'line' => 78,
9460 'argcode' => undef,
9461 'lookahead' => 0,
9462 'implicit' => undef,
9463 'matchrule' => 0,
9464 'subrule' => 'PDQUOTE'
9465 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9466 bless( {
9467 'mod' => '',
9468 'lookahead' => 0,
9469 'hashname' => '__PATTERN2__',
9470 'rdelim' => '/',
9471 'pattern' => '"',
9472 'line' => 78,
9473 'description' => '/"/',
9474 'ldelim' => '/'
9475 }, 'Parse::RecDescent::_Runtime::Token' ),
9476 bless( {
9477 'code' => '{$return = $item{PDQUOTE}}',
9478 'hashname' => '__ACTION1__',
9479 'line' => 78,
9480 'lookahead' => 0
9481 }, 'Parse::RecDescent::_Runtime::Action' )
9482 ],
9483 'number' => 1,
9484 'dircount' => 0,
9485 'patcount' => 2,
9486 'line' => undef,
9487 'strcount' => 0
9488 }, 'Parse::RecDescent::_Runtime::Production' ),
9489 bless( {
9490 'items' => [
9491 bless( {
9492 'rdelim' => '/',
9493 'hashname' => '__PATTERN1__',
9494 'lookahead' => 0,
9495 'mod' => '',
9496 'ldelim' => '/',
9497 'description' => '/`/',
9498 'line' => 79,
9499 'pattern' => '`'
9500 }, 'Parse::RecDescent::_Runtime::Token' ),
9501 bless( {
9502 'lookahead' => 0,
9503 'argcode' => undef,
9504 'line' => 79,
9505 'subrule' => 'PTICKED',
9506 'matchrule' => 0,
9507 'implicit' => undef
9508 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9509 bless( {
9510 'rdelim' => '/',
9511 'hashname' => '__PATTERN2__',
9512 'lookahead' => 0,
9513 'mod' => '',
9514 'ldelim' => '/',
9515 'description' => '/`/',
9516 'line' => 79,
9517 'pattern' => '`'
9518 }, 'Parse::RecDescent::_Runtime::Token' ),
9519 bless( {
9520 'lookahead' => 0,
9521 'line' => 79,
9522 'hashname' => '__ACTION1__',
9523 'code' => '{$return = $item[1].$item[2].$item[3]}'
9524 }, 'Parse::RecDescent::_Runtime::Action' )
9525 ],
9526 'error' => undef,
9527 'uncommit' => undef,
9528 'actcount' => 1,
9529 'line' => undef,
9530 'strcount' => 0,
9531 'patcount' => 2,
9532 'dircount' => 0,
9533 'number' => 2
9534 }, 'Parse::RecDescent::_Runtime::Production' ),
9535 bless( {
9536 'items' => [
9537 bless( {
9538 'lookahead' => 0,
9539 'line' => 80,
9540 'argcode' => undef,
9541 'matchrule' => 0,
9542 'implicit' => undef,
9543 'subrule' => 'PNOTQUOTED'
9544 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9545 bless( {
9546 'code' => '{$return = $item{PNOTQUOTED}}',
9547 'hashname' => '__ACTION1__',
9548 'line' => 80,
9549 'lookahead' => 0
9550 }, 'Parse::RecDescent::_Runtime::Action' )
9551 ],
9552 'error' => undef,
9553 'uncommit' => undef,
9554 'actcount' => 1,
9555 'line' => undef,
9556 'strcount' => 0,
9557 'number' => 3,
9558 'dircount' => 0,
9559 'patcount' => 0
9560 }, 'Parse::RecDescent::_Runtime::Production' )
9561 ],
9562 'name' => 'PVALUE'
9563 }, 'Parse::RecDescent::_Runtime::Rule' ),
9564 'NOTSQUOTE' => bless( {
9565 'line' => 83,
9566 'changed' => 0,
9567 'opcount' => 0,
9568 'impcount' => 0,
9569 'calls' => [],
9570 'prods' => [
9571 bless( {
9572 'dircount' => 0,
9573 'patcount' => 1,
9574 'number' => 0,
9575 'strcount' => 0,
9576 'line' => undef,
9577 'uncommit' => undef,
9578 'actcount' => 0,
9579 'error' => undef,
9580 'items' => [
9581 bless( {
9582 'hashname' => '__PATTERN1__',
9583 'rdelim' => '/',
9584 'mod' => '',
9585 'lookahead' => 0,
9586 'description' => '/[^\']*[^\'\\\\\\\\]/',
9587 'ldelim' => '/',
9588 'pattern' => '[^\']*[^\'\\\\]',
9589 'line' => 83
9590 }, 'Parse::RecDescent::_Runtime::Token' )
9591 ]
9592 }, 'Parse::RecDescent::_Runtime::Production' )
9593 ],
9594 'vars' => '',
9595 'name' => 'NOTSQUOTE'
9596 }, 'Parse::RecDescent::_Runtime::Rule' ),
9597 'SPACE' => bless( {
9598 'changed' => 0,
9599 'line' => 94,
9600 'vars' => '',
9601 'prods' => [
9602 bless( {
9603 'dircount' => 0,
9604 'patcount' => 1,
9605 'number' => 0,
9606 'line' => undef,
9607 'strcount' => 0,
9608 'error' => undef,
9609 'uncommit' => undef,
9610 'actcount' => 1,
9611 'items' => [
9612 bless( {
9613 'description' => '/\\\\s+/',
9614 'ldelim' => '/',
9615 'pattern' => '\\s+',
9616 'line' => 94,
9617 'hashname' => '__PATTERN1__',
9618 'rdelim' => '/',
9619 'mod' => '',
9620 'lookahead' => 0
9621 }, 'Parse::RecDescent::_Runtime::Token' ),
9622 bless( {
9623 'hashname' => '__ACTION1__',
9624 'code' => '{$return = $item[1]}',
9625 'lookahead' => 0,
9626 'line' => 94
9627 }, 'Parse::RecDescent::_Runtime::Action' )
9628 ]
9629 }, 'Parse::RecDescent::_Runtime::Production' )
9630 ],
9631 'calls' => [],
9632 'impcount' => 0,
9633 'name' => 'SPACE',
9634 'opcount' => 0
9635 }, 'Parse::RecDescent::_Runtime::Rule' ),
9636 'COMMENT' => bless( {
9637 'opcount' => 0,
9638 'name' => 'COMMENT',
9639 'vars' => '',
9640 'prods' => [
9641 bless( {
9642 'error' => undef,
9643 'actcount' => 1,
9644 'uncommit' => undef,
9645 'items' => [
9646 bless( {
9647 'lookahead' => 0,
9648 'mod' => '',
9649 'rdelim' => '/',
9650 'hashname' => '__PATTERN1__',
9651 'line' => 93,
9652 'pattern' => '#[^\\n]*',
9653 'ldelim' => '/',
9654 'description' => '/#[^\\\\n]*/'
9655 }, 'Parse::RecDescent::_Runtime::Token' ),
9656 bless( {
9657 'line' => 93,
9658 'lookahead' => 0,
9659 'code' => '{$return = \'\'}',
9660 'hashname' => '__ACTION1__'
9661 }, 'Parse::RecDescent::_Runtime::Action' )
9662 ],
9663 'patcount' => 1,
9664 'dircount' => 0,
9665 'number' => 0,
9666 'strcount' => 0,
9667 'line' => undef
9668 }, 'Parse::RecDescent::_Runtime::Production' )
9669 ],
9670 'calls' => [],
9671 'impcount' => 0,
9672 'line' => 93,
9673 'changed' => 0
9674 }, 'Parse::RecDescent::_Runtime::Rule' ),
9675 'PARAMS' => bless( {
9676 'name' => 'PARAMS',
9677 'prods' => [
9678 bless( {
9679 'number' => 0,
9680 'patcount' => 0,
9681 'dircount' => 0,
9682 'line' => undef,
9683 'strcount' => 0,
9684 'uncommit' => undef,
9685 'actcount' => 1,
9686 'error' => undef,
9687 'items' => [
9688 bless( {
9689 'argcode' => undef,
9690 'line' => 73,
9691 'lookahead' => 0,
9692 'implicit' => undef,
9693 'matchrule' => 0,
9694 'subrule' => 'PARAM'
9695 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9696 bless( {
9697 'matchrule' => 0,
9698 'implicit' => undef,
9699 'subrule' => 'PARAMS',
9700 'lookahead' => 0,
9701 'line' => 73,
9702 'argcode' => undef
9703 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9704 bless( {
9705 'hashname' => '__ACTION1__',
9706 'code' => '{$return = [$item{PARAM}, @{$item{PARAMS}}]}',
9707 'lookahead' => 0,
9708 'line' => 73
9709 }, 'Parse::RecDescent::_Runtime::Action' )
9710 ]
9711 }, 'Parse::RecDescent::_Runtime::Production' ),
9712 bless( {
9713 'items' => [
9714 bless( {
9715 'subrule' => 'PARAM',
9716 'matchrule' => 0,
9717 'implicit' => undef,
9718 'lookahead' => 0,
9719 'line' => 74,
9720 'argcode' => undef
9721 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9722 bless( {
9723 'code' => '{$return = [$item{PARAM}]}',
9724 'hashname' => '__ACTION1__',
9725 'line' => 74,
9726 'lookahead' => 0
9727 }, 'Parse::RecDescent::_Runtime::Action' )
9728 ],
9729 'error' => undef,
9730 'actcount' => 1,
9731 'uncommit' => undef,
9732 'strcount' => 0,
9733 'line' => undef,
9734 'number' => 1,
9735 'patcount' => 0,
9736 'dircount' => 0
9737 }, 'Parse::RecDescent::_Runtime::Production' )
9738 ],
9739 'vars' => '',
9740 'impcount' => 0,
9741 'calls' => [
9742 'PARAM',
9743 'PARAMS'
9744 ],
9745 'opcount' => 0,
9746 'changed' => 0,
9747 'line' => 73
9748 }, 'Parse::RecDescent::_Runtime::Rule' ),
9749 'LINE' => bless( {
9750 'line' => 12,
9751 'changed' => 0,
9752 'opcount' => 0,
9753 'name' => 'LINE',
9754 'calls' => [
9755 'BLOCK',
9756 'COMMENT'
9757 ],
9758 'impcount' => 0,
9759 'prods' => [
9760 bless( {
9761 'items' => [
9762 bless( {
9763 'subrule' => 'BLOCK',
9764 'matchrule' => 0,
9765 'implicit' => undef,
9766 'lookahead' => 0,
9767 'argcode' => undef,
9768 'line' => 12
9769 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9770 bless( {
9771 'subrule' => 'COMMENT',
9772 'matchrule' => 0,
9773 'implicit' => undef,
9774 'lookahead' => 0,
9775 'argcode' => undef,
9776 'line' => 12
9777 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9778 bless( {
9779 'hashname' => '__ACTION1__',
9780 'code' => '{$return = [@{$item{BLOCK}}]}',
9781 'lookahead' => 0,
9782 'line' => 12
9783 }, 'Parse::RecDescent::_Runtime::Action' )
9784 ],
9785 'actcount' => 1,
9786 'uncommit' => undef,
9787 'error' => undef,
9788 'line' => undef,
9789 'strcount' => 0,
9790 'patcount' => 0,
9791 'dircount' => 0,
9792 'number' => 0
9793 }, 'Parse::RecDescent::_Runtime::Production' ),
9794 bless( {
9795 'strcount' => 0,
9796 'line' => undef,
9797 'number' => 1,
9798 'patcount' => 0,
9799 'dircount' => 0,
9800 'items' => [
9801 bless( {
9802 'subrule' => 'BLOCK',
9803 'matchrule' => 0,
9804 'implicit' => undef,
9805 'lookahead' => 0,
9806 'argcode' => undef,
9807 'line' => 13
9808 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9809 bless( {
9810 'lookahead' => 0,
9811 'line' => 13,
9812 'hashname' => '__ACTION1__',
9813 'code' => '{$return = [@{$item{BLOCK}}]}'
9814 }, 'Parse::RecDescent::_Runtime::Action' )
9815 ],
9816 'uncommit' => undef,
9817 'actcount' => 1,
9818 'error' => undef
9819 }, 'Parse::RecDescent::_Runtime::Production' ),
9820 bless( {
9821 'line' => undef,
9822 'strcount' => 0,
9823 'number' => 2,
9824 'patcount' => 0,
9825 'dircount' => 0,
9826 'items' => [
9827 bless( {
9828 'subrule' => 'COMMENT',
9829 'implicit' => undef,
9830 'matchrule' => 0,
9831 'argcode' => undef,
9832 'line' => 14,
9833 'lookahead' => 0
9834 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9835 bless( {
9836 'lookahead' => 0,
9837 'line' => 14,
9838 'hashname' => '__ACTION1__',
9839 'code' => '{$return = []}'
9840 }, 'Parse::RecDescent::_Runtime::Action' )
9841 ],
9842 'error' => undef,
9843 'uncommit' => undef,
9844 'actcount' => 1
9845 }, 'Parse::RecDescent::_Runtime::Production' )
9846 ],
9847 'vars' => ''
9848 }, 'Parse::RecDescent::_Runtime::Rule' ),
9849 'SCENMODULE' => bless( {
9850 'name' => 'SCENMODULE',
9851 'vars' => '',
9852 'prods' => [
9853 bless( {
9854 'strcount' => 0,
9855 'line' => undef,
9856 'number' => 0,
9857 'dircount' => 0,
9858 'patcount' => 1,
9859 'items' => [
9860 bless( {
9861 'mod' => '',
9862 'lookahead' => 0,
9863 'hashname' => '__PATTERN1__',
9864 'rdelim' => '/',
9865 'pattern' => 'Scen::',
9866 'line' => 60,
9867 'description' => '/Scen::/',
9868 'ldelim' => '/'
9869 }, 'Parse::RecDescent::_Runtime::Token' ),
9870 bless( {
9871 'lookahead' => 0,
9872 'line' => 60,
9873 'argcode' => undef,
9874 'matchrule' => 0,
9875 'implicit' => undef,
9876 'subrule' => 'BNAME'
9877 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9878 bless( {
9879 'lookahead' => 0,
9880 'line' => 60,
9881 'hashname' => '__ACTION1__',
9882 'code' => '{ $return = "Treex::Scen::$item{BNAME}"}'
9883 }, 'Parse::RecDescent::_Runtime::Action' )
9884 ],
9885 'actcount' => 1,
9886 'uncommit' => undef,
9887 'error' => undef
9888 }, 'Parse::RecDescent::_Runtime::Production' )
9889 ],
9890 'impcount' => 0,
9891 'calls' => [
9892 'BNAME'
9893 ],
9894 'opcount' => 0,
9895 'changed' => 0,
9896 'line' => 60
9897 }, 'Parse::RecDescent::_Runtime::Rule' ),
9898 'EOF' => bless( {
9899 'line' => 15,
9900 'changed' => 0,
9901 'opcount' => 0,
9902 'name' => 'EOF',
9903 'vars' => '',
9904 'prods' => [
9905 bless( {
9906 'line' => undef,
9907 'strcount' => 0,
9908 'patcount' => 1,
9909 'dircount' => 0,
9910 'number' => 0,
9911 'items' => [
9912 bless( {
9913 'line' => 15,
9914 'pattern' => '^\\Z',
9915 'ldelim' => '/',
9916 'description' => '/^\\\\Z/',
9917 'lookahead' => 0,
9918 'mod' => '',
9919 'rdelim' => '/',
9920 'hashname' => '__PATTERN1__'
9921 }, 'Parse::RecDescent::_Runtime::Token' )
9922 ],
9923 'error' => undef,
9924 'uncommit' => undef,
9925 'actcount' => 0
9926 }, 'Parse::RecDescent::_Runtime::Production' )
9927 ],
9928 'impcount' => 0,
9929 'calls' => []
9930 }, 'Parse::RecDescent::_Runtime::Rule' ),
9931 'PDQUOTE' => bless( {
9932 'changed' => 0,
9933 'line' => 85,
9934 'name' => 'PDQUOTE',
9935 'prods' => [
9936 bless( {
9937 'dircount' => 0,
9938 'patcount' => 0,
9939 'number' => 0,
9940 'line' => undef,
9941 'strcount' => 0,
9942 'error' => undef,
9943 'uncommit' => undef,
9944 'actcount' => 1,
9945 'items' => [
9946 bless( {
9947 'implicit' => undef,
9948 'matchrule' => 0,
9949 'subrule' => 'NOTDQUOTE',
9950 'argcode' => undef,
9951 'line' => 85,
9952 'lookahead' => 0
9953 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9954 bless( {
9955 'argcode' => undef,
9956 'line' => 85,
9957 'lookahead' => 0,
9958 'subrule' => 'SLASHEDDQUOTE',
9959 'implicit' => undef,
9960 'matchrule' => 0
9961 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9962 bless( {
9963 'subrule' => 'PDQUOTE',
9964 'matchrule' => 0,
9965 'implicit' => undef,
9966 'lookahead' => 0,
9967 'line' => 85,
9968 'argcode' => undef
9969 }, 'Parse::RecDescent::_Runtime::Subrule' ),
9970 bless( {
9971 'lookahead' => 0,
9972 'line' => 85,
9973 'hashname' => '__ACTION1__',
9974 'code' => '{$return = $item{NOTDQUOTE}.$item{SLASHEDDQUOTE}.$item{PDQUOTE}}'
9975 }, 'Parse::RecDescent::_Runtime::Action' )
9976 ]
9977 }, 'Parse::RecDescent::_Runtime::Production' ),
9978 bless( {
9979 'strcount' => 0,
9980 'line' => undef,
9981 'number' => 1,
9982 'patcount' => 0,
9983 'dircount' => 0,
9984 'items' => [
9985 bless( {
9986 'line' => 86,
9987 'argcode' => undef,
9988 'lookahead' => 0,
9989 'subrule' => 'NOTDQUOTE',
9990 'implicit' => undef,
9991 'matchrule' => 0
9992 }, 'Parse::RecDescent::_Runtime::Subrule' )
9993 ],
9994 'uncommit' => undef,
9995 'actcount' => 0,
9996 'error' => undef
9997 }, 'Parse::RecDescent::_Runtime::Production' )
9998 ],
9999 'vars' => '',
10000 'calls' => [
10001 'NOTDQUOTE',
10002 'SLASHEDDQUOTE',
10003 'PDQUOTE'
10004 ],
10005 'impcount' => 0,
10006 'opcount' => 0
10007 }, 'Parse::RecDescent::_Runtime::Rule' ),
10008 'PSQUOTE' => bless( {
10009 'vars' => '',
10010 'prods' => [
10011 bless( {
10012 'strcount' => 0,
10013 'line' => undef,
10014 'dircount' => 0,
10015 'patcount' => 0,
10016 'number' => 0,
10017 'items' => [
10018 bless( {
10019 'matchrule' => 0,
10020 'implicit' => undef,
10021 'subrule' => 'NOTSQUOTE',
10022 'lookahead' => 0,
10023 'argcode' => undef,
10024 'line' => 81
10025 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10026 bless( {
10027 'argcode' => undef,
10028 'line' => 81,
10029 'lookahead' => 0,
10030 'implicit' => undef,
10031 'matchrule' => 0,
10032 'subrule' => 'SLASHEDSQUOTE'
10033 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10034 bless( {
10035 'subrule' => 'PSQUOTE',
10036 'matchrule' => 0,
10037 'implicit' => undef,
10038 'lookahead' => 0,
10039 'argcode' => undef,
10040 'line' => 81
10041 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10042 bless( {
10043 'line' => 81,
10044 'lookahead' => 0,
10045 'code' => '{$return = $item{NOTSQUOTE}.$item{SLASHEDSQUOTE}.$item{PSQUOTE}}',
10046 'hashname' => '__ACTION1__'
10047 }, 'Parse::RecDescent::_Runtime::Action' )
10048 ],
10049 'error' => undef,
10050 'actcount' => 1,
10051 'uncommit' => undef
10052 }, 'Parse::RecDescent::_Runtime::Production' ),
10053 bless( {
10054 'strcount' => 0,
10055 'line' => undef,
10056 'number' => 1,
10057 'dircount' => 0,
10058 'patcount' => 0,
10059 'items' => [
10060 bless( {
10061 'lookahead' => 0,
10062 'line' => 82,
10063 'argcode' => undef,
10064 'matchrule' => 0,
10065 'implicit' => undef,
10066 'subrule' => 'NOTSQUOTE'
10067 }, 'Parse::RecDescent::_Runtime::Subrule' )
10068 ],
10069 'uncommit' => undef,
10070 'actcount' => 0,
10071 'error' => undef
10072 }, 'Parse::RecDescent::_Runtime::Production' )
10073 ],
10074 'impcount' => 0,
10075 'calls' => [
10076 'NOTSQUOTE',
10077 'SLASHEDSQUOTE',
10078 'PSQUOTE'
10079 ],
10080 'name' => 'PSQUOTE',
10081 'opcount' => 0,
10082 'changed' => 0,
10083 'line' => 81
10084 }, 'Parse::RecDescent::_Runtime::Rule' ),
10085 'startrule' => bless( {
10086 'name' => 'startrule',
10087 'calls' => [
10088 'SCEN',
10089 'EOF'
10090 ],
10091 'impcount' => 0,
10092 'prods' => [
10093 bless( {
10094 'strcount' => 0,
10095 'line' => undef,
10096 'number' => 0,
10097 'patcount' => 0,
10098 'dircount' => 0,
10099 'items' => [
10100 bless( {
10101 'lookahead' => 0,
10102 'line' => 9,
10103 'argcode' => undef,
10104 'subrule' => 'SCEN',
10105 'matchrule' => 0,
10106 'implicit' => undef
10107 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10108 bless( {
10109 'implicit' => undef,
10110 'matchrule' => 0,
10111 'subrule' => 'EOF',
10112 'argcode' => undef,
10113 'line' => 9,
10114 'lookahead' => 0
10115 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10116 bless( {
10117 'lookahead' => 0,
10118 'line' => 9,
10119 'hashname' => '__ACTION1__',
10120 'code' => '{$return = $item{SCEN}}'
10121 }, 'Parse::RecDescent::_Runtime::Action' )
10122 ],
10123 'actcount' => 1,
10124 'uncommit' => undef,
10125 'error' => undef
10126 }, 'Parse::RecDescent::_Runtime::Production' )
10127 ],
10128 'vars' => '',
10129 'opcount' => 0,
10130 'changed' => 0,
10131 'line' => 9
10132 }, 'Parse::RecDescent::_Runtime::Rule' ),
10133 'BLOCK' => bless( {
10134 'name' => 'BLOCK',
10135 'impcount' => 0,
10136 'calls' => [
10137 'INCLUDE',
10138 'SCENMODULE',
10139 'PARAMS',
10140 'TBNAME'
10141 ],
10142 'vars' => '',
10143 'prods' => [
10144 bless( {
10145 'error' => undef,
10146 'actcount' => 1,
10147 'uncommit' => undef,
10148 'items' => [
10149 bless( {
10150 'implicit' => undef,
10151 'matchrule' => 0,
10152 'subrule' => 'INCLUDE',
10153 'argcode' => undef,
10154 'line' => 16,
10155 'lookahead' => 0
10156 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10157 bless( {
10158 'lookahead' => 0,
10159 'line' => 16,
10160 'hashname' => '__ACTION1__',
10161 'code' => '{
10162 my $included = read_file( $item{INCLUDE}, binmode => \':utf8\' );
10163 my $result = $thisparser->startrule( $included, 1, $item{INCLUDE} );
10164 if (defined $result and ref $result eq \'ARRAY\') {
10165 $return = [@$result];
10166 } else {
10167 $return = undef;
10168 }
10169 }'
10170 }, 'Parse::RecDescent::_Runtime::Action' )
10171 ],
10172 'number' => 0,
10173 'patcount' => 0,
10174 'dircount' => 0,
10175 'strcount' => 0,
10176 'line' => undef
10177 }, 'Parse::RecDescent::_Runtime::Production' ),
10178 bless( {
10179 'items' => [
10180 bless( {
10181 'argcode' => undef,
10182 'line' => 25,
10183 'lookahead' => 0,
10184 'subrule' => 'SCENMODULE',
10185 'implicit' => undef,
10186 'matchrule' => 0
10187 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10188 bless( {
10189 'argcode' => undef,
10190 'line' => 25,
10191 'lookahead' => 0,
10192 'subrule' => 'PARAMS',
10193 'implicit' => undef,
10194 'matchrule' => 0
10195 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10196 bless( {
10197 'code' => '{
10198 my $modulename = $item{SCENMODULE};
10199 eval "use $modulename; 1;" or die "Can\'t use $modulename !\\n$@\\n";
10200 my %params = map {my ($name,$value) = split /=/, $_, 2; ($name, $value)} @{$item{PARAMS}};
10201 my $scenmod = $modulename->new(\\%params);
10202 my $string = $scenmod->get_scenario_string();
10203 my $result = $thisparser->startrule( $string, 0, \'\' );
10204 if (defined $result and ref $result eq \'ARRAY\') {
10205 $return = [@$result];
10206 } else {
10207 log_fatal "Syntax error in \'$modulename\' scenario:\\n<BEGIN SCENARIO>\\n$string\\n<END SCENARIO>";
10208 }
10209 }',
10210 'hashname' => '__ACTION1__',
10211 'line' => 25,
10212 'lookahead' => 0
10213 }, 'Parse::RecDescent::_Runtime::Action' )
10214 ],
10215 'actcount' => 1,
10216 'uncommit' => undef,
10217 'error' => undef,
10218 'strcount' => 0,
10219 'line' => undef,
10220 'dircount' => 0,
10221 'patcount' => 0,
10222 'number' => 1
10223 }, 'Parse::RecDescent::_Runtime::Production' ),
10224 bless( {
10225 'strcount' => 0,
10226 'line' => undef,
10227 'patcount' => 0,
10228 'dircount' => 0,
10229 'number' => 2,
10230 'items' => [
10231 bless( {
10232 'lookahead' => 0,
10233 'line' => 38,
10234 'argcode' => undef,
10235 'matchrule' => 0,
10236 'implicit' => undef,
10237 'subrule' => 'SCENMODULE'
10238 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10239 bless( {
10240 'lookahead' => 0,
10241 'line' => 38,
10242 'hashname' => '__ACTION1__',
10243 'code' => '{
10244 my $modulename = $item{SCENMODULE};
10245 eval "use $modulename; 1;" or die "Can\'t use $modulename !\\n$@\\n";
10246 my $scenmod = $modulename->new();
10247 my $string = $scenmod->get_scenario_string();
10248 my $result = $thisparser->startrule( $string, 0, \'\' );
10249 if (defined $result and ref $result eq \'ARRAY\') {
10250 $return = [@$result];
10251 } else {
10252 log_fatal "Syntax error in \'$modulename\' scenario:\\n<BEGIN SCENARIO>\\n$string\\n<END SCENARIO>";
10253 }
10254 }'
10255 }, 'Parse::RecDescent::_Runtime::Action' )
10256 ],
10257 'uncommit' => undef,
10258 'actcount' => 1,
10259 'error' => undef
10260 }, 'Parse::RecDescent::_Runtime::Production' ),
10261 bless( {
10262 'dircount' => 0,
10263 'patcount' => 0,
10264 'number' => 3,
10265 'strcount' => 0,
10266 'line' => undef,
10267 'uncommit' => undef,
10268 'actcount' => 1,
10269 'error' => undef,
10270 'items' => [
10271 bless( {
10272 'line' => 50,
10273 'argcode' => undef,
10274 'lookahead' => 0,
10275 'implicit' => undef,
10276 'matchrule' => 0,
10277 'subrule' => 'TBNAME'
10278 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10279 bless( {
10280 'line' => 50,
10281 'argcode' => undef,
10282 'lookahead' => 0,
10283 'subrule' => 'PARAMS',
10284 'implicit' => undef,
10285 'matchrule' => 0
10286 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10287 bless( {
10288 'hashname' => '__ACTION1__',
10289 'code' => '{$return = [{
10290 block_name=>$item{TBNAME},
10291 block_parameters=>$item{PARAMS},
10292 }]
10293 }',
10294 'lookahead' => 0,
10295 'line' => 50
10296 }, 'Parse::RecDescent::_Runtime::Action' )
10297 ]
10298 }, 'Parse::RecDescent::_Runtime::Production' ),
10299 bless( {
10300 'strcount' => 0,
10301 'line' => undef,
10302 'patcount' => 0,
10303 'dircount' => 0,
10304 'number' => 4,
10305 'items' => [
10306 bless( {
10307 'line' => 55,
10308 'argcode' => undef,
10309 'lookahead' => 0,
10310 'subrule' => 'TBNAME',
10311 'implicit' => undef,
10312 'matchrule' => 0
10313 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10314 bless( {
10315 'lookahead' => 0,
10316 'line' => 55,
10317 'hashname' => '__ACTION1__',
10318 'code' => '{$return = [{
10319 block_name=>$item{TBNAME},
10320 block_parameters=>[],
10321 }]
10322 }'
10323 }, 'Parse::RecDescent::_Runtime::Action' )
10324 ],
10325 'uncommit' => undef,
10326 'actcount' => 1,
10327 'error' => undef
10328 }, 'Parse::RecDescent::_Runtime::Production' )
10329 ],
10330 'opcount' => 0,
10331 'changed' => 0,
10332 'line' => 16
10333 }, 'Parse::RecDescent::_Runtime::Rule' ),
10334 'SCEN' => bless( {
10335 'opcount' => 0,
10336 'name' => 'SCEN',
10337 'calls' => [
10338 'LINE',
10339 'SCEN'
10340 ],
10341 'impcount' => 0,
10342 'vars' => '',
10343 'prods' => [
10344 bless( {
10345 'uncommit' => undef,
10346 'actcount' => 1,
10347 'error' => undef,
10348 'items' => [
10349 bless( {
10350 'implicit' => undef,
10351 'matchrule' => 0,
10352 'subrule' => 'LINE',
10353 'line' => 10,
10354 'argcode' => undef,
10355 'lookahead' => 0
10356 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10357 bless( {
10358 'line' => 10,
10359 'argcode' => undef,
10360 'lookahead' => 0,
10361 'implicit' => undef,
10362 'matchrule' => 0,
10363 'subrule' => 'SCEN'
10364 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10365 bless( {
10366 'hashname' => '__ACTION1__',
10367 'code' => '{$return = [@{$item{LINE}},@{$item{SCEN}}]}',
10368 'lookahead' => 0,
10369 'line' => 10
10370 }, 'Parse::RecDescent::_Runtime::Action' )
10371 ],
10372 'number' => 0,
10373 'patcount' => 0,
10374 'dircount' => 0,
10375 'line' => undef,
10376 'strcount' => 0
10377 }, 'Parse::RecDescent::_Runtime::Production' ),
10378 bless( {
10379 'patcount' => 0,
10380 'dircount' => 0,
10381 'number' => 1,
10382 'line' => undef,
10383 'strcount' => 0,
10384 'actcount' => 1,
10385 'uncommit' => undef,
10386 'error' => undef,
10387 'items' => [
10388 bless( {
10389 'implicit' => undef,
10390 'matchrule' => 0,
10391 'subrule' => 'LINE',
10392 'argcode' => undef,
10393 'line' => 11,
10394 'lookahead' => 0
10395 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10396 bless( {
10397 'line' => 11,
10398 'lookahead' => 0,
10399 'code' => '{$return = [@{$item{LINE}}]}',
10400 'hashname' => '__ACTION1__'
10401 }, 'Parse::RecDescent::_Runtime::Action' )
10402 ]
10403 }, 'Parse::RecDescent::_Runtime::Production' )
10404 ],
10405 'line' => 10,
10406 'changed' => 0
10407 }, 'Parse::RecDescent::_Runtime::Rule' ),
10408 'BNAME' => bless( {
10409 'changed' => 0,
10410 'line' => 70,
10411 'name' => 'BNAME',
10412 'prods' => [
10413 bless( {
10414 'dircount' => 0,
10415 'patcount' => 1,
10416 'number' => 0,
10417 'line' => undef,
10418 'strcount' => 0,
10419 'uncommit' => undef,
10420 'actcount' => 1,
10421 'error' => undef,
10422 'items' => [
10423 bless( {
10424 'rdelim' => '/',
10425 'hashname' => '__PATTERN1__',
10426 'lookahead' => 0,
10427 'mod' => '',
10428 'ldelim' => '/',
10429 'description' => '/[A-Z]\\\\w*::/',
10430 'line' => 71,
10431 'pattern' => '[A-Z]\\w*::'
10432 }, 'Parse::RecDescent::_Runtime::Token' ),
10433 bless( {
10434 'subrule' => 'BNAME',
10435 'implicit' => undef,
10436 'matchrule' => 0,
10437 'argcode' => undef,
10438 'line' => 71,
10439 'lookahead' => 0
10440 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10441 bless( {
10442 'hashname' => '__ACTION1__',
10443 'code' => '{$return = $item[1].$item[2]}',
10444 'lookahead' => 0,
10445 'line' => 71
10446 }, 'Parse::RecDescent::_Runtime::Action' )
10447 ]
10448 }, 'Parse::RecDescent::_Runtime::Production' ),
10449 bless( {
10450 'line' => undef,
10451 'strcount' => 0,
10452 'number' => 1,
10453 'patcount' => 1,
10454 'dircount' => 0,
10455 'items' => [
10456 bless( {
10457 'rdelim' => '/',
10458 'hashname' => '__PATTERN1__',
10459 'lookahead' => 0,
10460 'mod' => '',
10461 'ldelim' => '/',
10462 'description' => '/[A-Z]\\\\w*/',
10463 'line' => 72,
10464 'pattern' => '[A-Z]\\w*'
10465 }, 'Parse::RecDescent::_Runtime::Token' ),
10466 bless( {
10467 'line' => 72,
10468 'lookahead' => 0,
10469 'code' => '{$return = $item[1]}',
10470 'hashname' => '__ACTION1__'
10471 }, 'Parse::RecDescent::_Runtime::Action' )
10472 ],
10473 'uncommit' => undef,
10474 'actcount' => 1,
10475 'error' => undef
10476 }, 'Parse::RecDescent::_Runtime::Production' )
10477 ],
10478 'vars' => '',
10479 'calls' => [
10480 'BNAME'
10481 ],
10482 'impcount' => 0,
10483 'opcount' => 0
10484 }, 'Parse::RecDescent::_Runtime::Rule' ),
10485 'PNOTQUOTED' => bless( {
10486 'line' => 90,
10487 'changed' => 0,
10488 'opcount' => 0,
10489 'calls' => [
10490 'EMPTY'
10491 ],
10492 'impcount' => 0,
10493 'vars' => '',
10494 'prods' => [
10495 bless( {
10496 'actcount' => 1,
10497 'uncommit' => undef,
10498 'error' => undef,
10499 'items' => [
10500 bless( {
10501 'lookahead' => 0,
10502 'mod' => '',
10503 'rdelim' => '/',
10504 'hashname' => '__PATTERN1__',
10505 'line' => 90,
10506 'pattern' => '\\S+',
10507 'ldelim' => '/',
10508 'description' => '/\\\\S+/'
10509 }, 'Parse::RecDescent::_Runtime::Token' ),
10510 bless( {
10511 'lookahead' => 0,
10512 'line' => 90,
10513 'hashname' => '__ACTION1__',
10514 'code' => '{$return = $item[1]}'
10515 }, 'Parse::RecDescent::_Runtime::Action' )
10516 ],
10517 'patcount' => 1,
10518 'dircount' => 0,
10519 'number' => 0,
10520 'strcount' => 0,
10521 'line' => undef
10522 }, 'Parse::RecDescent::_Runtime::Production' ),
10523 bless( {
10524 'items' => [
10525 bless( {
10526 'subrule' => 'EMPTY',
10527 'matchrule' => 0,
10528 'implicit' => undef,
10529 'lookahead' => 0,
10530 'line' => 91,
10531 'argcode' => undef
10532 }, 'Parse::RecDescent::_Runtime::Subrule' ),
10533 bless( {
10534 'line' => 91,
10535 'lookahead' => 0,
10536 'code' => '{$return = \'\'}',
10537 'hashname' => '__ACTION1__'
10538 }, 'Parse::RecDescent::_Runtime::Action' )
10539 ],
10540 'error' => undef,
10541 'actcount' => 1,
10542 'uncommit' => undef,
10543 'line' => undef,
10544 'strcount' => 0,
10545 'number' => 1,
10546 'dircount' => 0,
10547 'patcount' => 0
10548 }, 'Parse::RecDescent::_Runtime::Production' )
10549 ],
10550 'name' => 'PNOTQUOTED'
10551 }, 'Parse::RecDescent::_Runtime::Rule' ),
10552 'PTICKED' => bless( {
10553 'line' => 92,
10554 'changed' => 0,
10555 'opcount' => 0,
10556 'name' => 'PTICKED',
10557 'prods' => [
10558 bless( {
10559 'strcount' => 0,
10560 'line' => undef,
10561 'number' => 0,
10562 'dircount' => 0,
10563 'patcount' => 1,
10564 'items' => [
10565 bless( {
10566 'line' => 92,
10567 'pattern' => '[^`]+',
10568 'ldelim' => '/',
10569 'description' => '/[^`]+/',
10570 'lookahead' => 0,
10571 'mod' => '',
10572 'rdelim' => '/',
10573 'hashname' => '__PATTERN1__'
10574 }, 'Parse::RecDescent::_Runtime::Token' ),
10575 bless( {
10576 'lookahead' => 0,
10577 'line' => 92,
10578 'hashname' => '__ACTION1__',
10579 'code' => '{$return = $item[1]}'
10580 }, 'Parse::RecDescent::_Runtime::Action' )
10581 ],
10582 'uncommit' => undef,
10583 'actcount' => 1,
10584 'error' => undef
10585 }, 'Parse::RecDescent::_Runtime::Production' )
10586 ],
10587 'vars' => '',
10588 'impcount' => 0,
10589 'calls' => []
10590 }, 'Parse::RecDescent::_Runtime::Rule' ),
10591 'SLASHEDSQUOTE' => bless( {
10592 'changed' => 0,
10593 'line' => 84,
10594 'prods' => [
10595 bless( {
10596 'number' => 0,
10597 'dircount' => 0,
10598 'patcount' => 1,
10599 'strcount' => 0,
10600 'line' => undef,
10601 'error' => undef,
10602 'uncommit' => undef,
10603 'actcount' => 1,
10604 'items' => [
10605 bless( {
10606 'line' => 84,
10607 'pattern' => '\\\\\'',
10608 'ldelim' => '/',
10609 'description' => '/\\\\\\\\\'/',
10610 'lookahead' => 0,
10611 'mod' => '',
10612 'rdelim' => '/',
10613 'hashname' => '__PATTERN1__'
10614 }, 'Parse::RecDescent::_Runtime::Token' ),
10615 bless( {
10616 'line' => 84,
10617 'lookahead' => 0,
10618 'code' => '{$return = "\'"}',
10619 'hashname' => '__ACTION1__'
10620 }, 'Parse::RecDescent::_Runtime::Action' )
10621 ]
10622 }, 'Parse::RecDescent::_Runtime::Production' )
10623 ],
10624 'vars' => '',
10625 'calls' => [],
10626 'impcount' => 0,
10627 'name' => 'SLASHEDSQUOTE',
10628 'opcount' => 0
10629 }, 'Parse::RecDescent::_Runtime::Rule' ),
10630 'EMPTY' => bless( {
10631 'calls' => [],
10632 'impcount' => 0,
10633 'vars' => '',
10634 'prods' => [
10635 bless( {
10636 'actcount' => 0,
10637 'uncommit' => undef,
10638 'error' => undef,
10639 'items' => [
10640 bless( {
10641 'rdelim' => '/',
10642 'hashname' => '__PATTERN1__',
10643 'lookahead' => 0,
10644 'mod' => '',
10645 'ldelim' => '/',
10646 'description' => '//',
10647 'line' => 95,
10648 'pattern' => ''
10649 }, 'Parse::RecDescent::_Runtime::Token' )
10650 ],
10651 'dircount' => 0,
10652 'patcount' => 1,
10653 'number' => 0,
10654 'strcount' => 0,
10655 'line' => undef
10656 }, 'Parse::RecDescent::_Runtime::Production' )
10657 ],
10658 'name' => 'EMPTY',
10659 'opcount' => 0,
10660 'changed' => 0,
10661 'line' => 95
10662 }, 'Parse::RecDescent::_Runtime::Rule' )
10663 },
10664 '_check' => {
10665 'thiscolumn' => '',
10666 'prevline' => '',
10667 'prevcolumn' => '',
10668 'prevoffset' => '',
10669 'thisoffset' => '',
10670 'itempos' => ''
10671 },
10672 '_AUTOACTION' => undef
10673 }, 'Parse::RecDescent::_Runtime' );
10674 }
↑ Summary Treex/Core/TredView/Styles.pm »