Cheater/Parser.pm

filter: Statementstmt 79.9% 3118 / 3901 Branchbran 41.8% 969 / 2316 Conditioncond 44.8% 356 / 793 MC/DCmcdc 17.4% 87 / 499 Subroutinesub 92.7% 153 / 165 Podpod 0.0% 0 / 1 totaltotal 61.0% 4683 / 7675 CC 1449 SCAR 63.5
CC
1449
Cov
63%
qualified_column
2774.3
type_definition
1513.3
column_definition
1487.8
CRAP 573.5
↑ Summary Cheater/Eval.pm »
1 package Cheater::Parser;
2 7 ▶use Parse::RecDescent;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 7 { my $ERRORS;
5  
6  
7 package Parse::RecDescent::Cheater::Parser;
8 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 7 ▶use vars qw($skip $AUTOLOAD );
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 @Parse::RecDescent::Cheater::Parser::ISA = ();
11 7 $skip = '\s*(?:(?:\#[^\n]*|/\*.*?\*/)\s*)*';
12  
13 7 ▶ use Cheater::Parser::Util qw( parse_included_file );
Subroutine BEGIN: called CC=1 SCAR=0.0
14 ;
15  
16  
17 {
18 0 ▶local $SIG{__WARN__} = sub {0};
Subroutine __ANON__: not called CC=1 SCAR=0.4
19 # PRETEND TO BE IN Parse::RecDescent NAMESPACE
20 *Parse::RecDescent::Cheater::Parser::AUTOLOAD = sub
21 0 ▶{
Subroutine __ANON__: not called CC=1 SCAR=1.2
22 7 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
23 0 $AUTOLOAD =~ s/^Parse::RecDescent::Cheater::Parser/Parse::RecDescent/;
24 0 goto &{$AUTOLOAD};
25 }
26 7 }
27  
28 7 push @Parse::RecDescent::Cheater::Parser::ISA, 'Parse::RecDescent';
29 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
30 sub Parse::RecDescent::Cheater::Parser::qualified_column
31 0 ▶{
Subroutine qualified_column: not called CC=55 SCAR=79.3
32 0 my $thisparser = $_[0];
33 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
34 0 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition0%0/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
00
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table0%0/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
35 0 $ERRORS = 0;
36 0 my $thisrule = $thisparser->{"rules"}{"qualified_column"};
37
38 0 ▶ Parse::RecDescent::_trace(q{Trying rule: [qualified_column]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
39 Parse::RecDescent::_tracefirst($_[1]),
40 q{qualified_column},
41 $tracelevel)
42 if defined $::RD_TRACE;
43  
44
45 0 my $err_at = @{$thisparser->{errors}};
46  
47 0 my $score;
48 my $score_return;
49 0 my $_tok;
50 0 my $return = undef;
51 0 my $_matched=0;
52 0 my $commit=0;
53 0 my @item = ();
54 0 my %item = ();
55 0 ▶ my $repeating = defined($_[2]) && $_[2];
Condition0%0/3
defined $_[2] && $_[2]
!ll&&!rl&&r
000
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table0%0/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
56 0 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition0%0/3
defined $_[3] && $_[3]
!ll&&!rl&&r
000
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table0%0/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
57 0 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 0 0 0
58 0 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 0 0 0
59 0 my $text;
60 0 my $lastsep="";
61 0 my $current_match;
62 0 my $expectation = new Parse::RecDescent::Expectation(q{table_name});
63 0 $expectation->at($_[1]);
64
65 0 my $prevline;
66 0 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
67
68 0 my $thisline;
69 0 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
70  
71
72  
73 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
74 {
75
76 0 ▶ Parse::RecDescent::_trace(q{Trying production: [table_name '.' <commit> column_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
77 Parse::RecDescent::_tracefirst($_[1]),
78 q{qualified_column},
79 $tracelevel)
80 if defined $::RD_TRACE;
81 0 my $thisprod = $thisrule->{"prods"}[0];
82 0 $text = $_[1];
83 0 my $_savetext;
84 0 @item = (q{qualified_column});
85 0 %item = (__RULE__ => q{qualified_column});
86 0 my $repcount = 0;
87  
88  
89 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [table_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
90 Parse::RecDescent::_tracefirst($text),
91 q{qualified_column},
92 $tracelevel)
93 if defined $::RD_TRACE;
94 0 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
95 0 $expectation->is(q{})->at($text);
96 0 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::table_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = table_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 0 0
97 {
98
99 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [table_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
100 Parse::RecDescent::_tracefirst($text),
101 q{qualified_column},
102 $tracelevel)
103 if defined $::RD_TRACE;
104 0 $expectation->failed();
105 0 last;
106 }
107 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [table_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
108 . $_tok . q{]},
109
110 Parse::RecDescent::_tracefirst($text),
111 q{qualified_column},
112 $tracelevel)
113 if defined $::RD_TRACE;
114 0 $item{q{table_name}} = $_tok;
115 0 push @item, $_tok;
116
117 }
118  
119 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['.']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
120 Parse::RecDescent::_tracefirst($text),
121 q{qualified_column},
122 $tracelevel)
123 if defined $::RD_TRACE;
124 0 $lastsep = "";
125 0 $expectation->is(q{'.'})->at($text);
126
127  
128 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\./)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\./) 0 0 0
Condition0%0/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\./
!ll&&!rl&&r
000
($lastsep = $1) && ''
!ll
00
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\./
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\./
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\./
ABresult
0X0
100
111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
129 {
130
131 0 $expectation->failed();
132 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
133 Parse::RecDescent::_tracefirst($text))
134 if defined $::RD_TRACE;
135 0 last;
136 }
137 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
138 0 substr($text,0,length($current_match),q{});
139 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
140 . $current_match . q{])},
141 Parse::RecDescent::_tracefirst($text))
142 if defined $::RD_TRACE;
143 0 push @item, $item{__STRING1__}=$current_match;
144
145  
146
147  
148 0 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
149 Parse::RecDescent::_tracefirst($text),
150 q{qualified_column},
151 $tracelevel)
152 if defined $::RD_TRACE;
153 0 $_tok = do { $commit = 1 };
154 0 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 0 0
155 {
156 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
157 . $_tok . q{])},
158 Parse::RecDescent::_tracefirst($text))
159 if defined $::RD_TRACE;
160 }
161 else
162 {
163 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
164 Parse::RecDescent::_tracefirst($text))
165 if defined $::RD_TRACE;
166 }
167
168 0 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 0 0
169 0 push @item, $item{__DIRECTIVE1__}=$_tok;
170
171  
172 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [column_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
173 Parse::RecDescent::_tracefirst($text),
174 q{qualified_column},
175 $tracelevel)
176 if defined $::RD_TRACE;
177 0 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
178 0 $expectation->is(q{column_name})->at($text);
179 0 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::column_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = column_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 0 0
180 {
181
182 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [column_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
183 Parse::RecDescent::_tracefirst($text),
184 q{qualified_column},
185 $tracelevel)
186 if defined $::RD_TRACE;
187 0 $expectation->failed();
188 0 last;
189 }
190 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [column_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
191 . $_tok . q{]},
192
193 Parse::RecDescent::_tracefirst($text),
194 q{qualified_column},
195 $tracelevel)
196 if defined $::RD_TRACE;
197 0 $item{q{column_name}} = $_tok;
198 0 push @item, $_tok;
199
200 }
201  
202 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
203 Parse::RecDescent::_tracefirst($text),
204 q{qualified_column},
205 $tracelevel)
206 if defined $::RD_TRACE;
207
208  
209 0 ▶ $_tok = ($_noactions) ? 0 : do { [$item[1], $item[4]] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
210 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
211 {
212 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
213 if defined $::RD_TRACE;
214 0 last;
215 }
216 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
217 . $_tok . q{])},
218 Parse::RecDescent::_tracefirst($text))
219 if defined $::RD_TRACE;
220 0 push @item, $_tok;
221 0 $item{__ACTION1__}=$_tok;
222
223  
224  
225 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [table_name '.' <commit> column_name]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
226 Parse::RecDescent::_tracefirst($text),
227 q{qualified_column},
228 $tracelevel)
229 if defined $::RD_TRACE;
230 0 $_matched = 1;
231 0 last;
232 }
233  
234  
235 0 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 0 0 0
236 {
237
238 0 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
239 Parse::RecDescent::_tracefirst($_[1]),
240 q{qualified_column},
241 $tracelevel)
242 if defined $::RD_TRACE;
243 0 my $thisprod = $thisrule->{"prods"}[1];
244
245 0 my $_savetext;
246 0 @item = (q{qualified_column});
247 0 %item = (__RULE__ => q{qualified_column});
248 0 my $repcount = 0;
249  
250  
251
252  
253 0 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
254 Parse::RecDescent::_tracefirst($text),
255 q{qualified_column},
256 $tracelevel)
257 if defined $::RD_TRACE;
258 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 0 0
unless ($_noactions) 0 0 0
259 0 my $rule = $item[0];
260 0 $rule =~ s/_/ /g;
261 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
262 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
263 0 } unless $_noactions; undef } else {0} };
264 0 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 0 0
265 {
266 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
267 . $_tok . q{])},
268 Parse::RecDescent::_tracefirst($text))
269 if defined $::RD_TRACE;
270 }
271 else
272 {
273 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
274 Parse::RecDescent::_tracefirst($text))
275 if defined $::RD_TRACE;
276 }
277
278 0 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 0 0
279 0 push @item, $item{__DIRECTIVE1__}=$_tok;
280
281  
282 0 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
283 Parse::RecDescent::_tracefirst($text),
284 q{qualified_column},
285 $tracelevel)
286 if defined $::RD_TRACE;
287 0 undef $return;
288
289  
290 0 $_tok = undef;
291
292 0 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 0 0
293  
294  
295 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
296 Parse::RecDescent::_tracefirst($text),
297 q{qualified_column},
298 $tracelevel)
299 if defined $::RD_TRACE;
300 0 $_matched = 1;
301 0 last;
302 }
303  
304  
305 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
306 {
307
308  
309 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
310 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
311 Parse::RecDescent::_tracefirst($_[1]),
312 q{qualified_column},
313 $tracelevel)
314 if defined $::RD_TRACE;
315 0 return undef;
316 }
317 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
318 {
319 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
320 q{qualified_column},
321 $tracelevel)
322 if defined $::RD_TRACE;
323 0 $return = $score_return;
324 }
325 0 splice @{$thisparser->{errors}}, $err_at;
326 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
327 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
328 {
329 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
330 $return . q{])}, "",
331 q{qualified_column},
332 $tracelevel);
333 0 Parse::RecDescent::_trace(q{(consumed: [} .
334 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
335 Parse::RecDescent::_tracefirst($text),
336 , q{qualified_column},
337 $tracelevel)
338 }
339 0 $_[1] = $text;
340 0 return $return;
341 }
342  
343 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
344 sub Parse::RecDescent::Cheater::Parser::int
345 101 ▶{
Subroutine int: called CC=25 SCAR=35.2
346 101 my $thisparser = $_[0];
347 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
348 101 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
1010
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
349 101 $ERRORS = 0;
350 101 my $thisrule = $thisparser->{"rules"}{"int"};
351
352 101 ▶ Parse::RecDescent::_trace(q{Trying rule: [int]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 101 101
353 Parse::RecDescent::_tracefirst($_[1]),
354 q{int},
355 $tracelevel)
356 if defined $::RD_TRACE;
357  
358
359 101 my $err_at = @{$thisparser->{errors}};
360  
361 101 my $score;
362 my $score_return;
363 101 my $_tok;
364 101 my $return = undef;
365 101 my $_matched=0;
366 101 my $commit=0;
367 101 my @item = ();
368 101 my %item = ();
369 101 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
00101
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
370 101 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
01010
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
371 101 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 101 0 101
372 101 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 101 0 101
373 101 my $text;
374 101 my $lastsep="";
375 101 my $current_match;
376 101 my $expectation = new Parse::RecDescent::Expectation(q{/-?\\d+\\b/});
377 101 $expectation->at($_[1]);
378
379 101 my $prevline;
380 101 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
381
382 101 my $thisline;
383 101 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
384  
385
386  
387 101 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 101 0 101
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00101
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
388 {
389
390 101 ▶ Parse::RecDescent::_trace(q{Trying production: [/-?\\d+\\b/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 101 101
391 Parse::RecDescent::_tracefirst($_[1]),
392 q{int},
393 $tracelevel)
394 if defined $::RD_TRACE;
395 101 my $thisprod = $thisrule->{"prods"}[0];
396 101 $text = $_[1];
397 101 my $_savetext;
398 101 @item = (q{int});
399 101 %item = (__RULE__ => q{int});
400 101 my $repcount = 0;
401  
402  
403 101 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/-?\\d+\\b/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 101 101
404 q{int},
405 $tracelevel)
406 if defined $::RD_TRACE;
407 101 $lastsep = "";
408 101 $expectation->is(q{})->at($text);
409
410  
411 101 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:-?\d+\b)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:-?\d+\b)/) 77 24 101
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:-?\d+\b)/
!ll&&!rl&&r
07724
($lastsep = $1) && ''
!ll
4952
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:-?\d+\b)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:-?\d+\b)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:-?\d+\b)/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
412 {
413
414 77 $expectation->failed();
415 77 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 77 77
416 Parse::RecDescent::_tracefirst($text))
417 if defined $::RD_TRACE;
418  
419 77 last;
420 }
421 24 $current_match = substr($text, $-[0], $+[0] - $-[0]);
422 24 substr($text,0,length($current_match),q{});
423 24 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
424 . $current_match . q{])},
425 Parse::RecDescent::_tracefirst($text))
426 if defined $::RD_TRACE;
427 24 push @item, $item{__PATTERN1__}=$current_match;
428
429  
430  
431 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/-?\\d+\\b/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
432 Parse::RecDescent::_tracefirst($text),
433 q{int},
434 $tracelevel)
435 if defined $::RD_TRACE;
436 24 $_matched = 1;
437 24 last;
438 }
439  
440  
441 101 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 77 24 101
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
24077
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
442 {
443
444  
445 77 $_[1] = $text; # NOT SURE THIS IS NEEDED
446 77 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 77 77
447 Parse::RecDescent::_tracefirst($_[1]),
448 q{int},
449 $tracelevel)
450 if defined $::RD_TRACE;
451 77 return undef;
452 }
453 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
454 {
455 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
456 q{int},
457 $tracelevel)
458 if defined $::RD_TRACE;
459 0 $return = $score_return;
460 }
461 24 splice @{$thisparser->{errors}}, $err_at;
462 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
463 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
464 {
465 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
466 $return . q{])}, "",
467 q{int},
468 $tracelevel);
469 0 Parse::RecDescent::_trace(q{(consumed: [} .
470 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
471 Parse::RecDescent::_tracefirst($text),
472 , q{int},
473 $tracelevel)
474 }
475 24 $_[1] = $text;
476 24 return $return;
477 }
478  
479 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
480 sub Parse::RecDescent::Cheater::Parser::number
481 86 ▶{
Subroutine number: called CC=31 SCAR=37.0
482 86 my $thisparser = $_[0];
483 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
484 86 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
860
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
485 86 $ERRORS = 0;
486 86 my $thisrule = $thisparser->{"rules"}{"number"};
487
488 86 ▶ Parse::RecDescent::_trace(q{Trying rule: [number]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
489 Parse::RecDescent::_tracefirst($_[1]),
490 q{number},
491 $tracelevel)
492 if defined $::RD_TRACE;
493  
494
495 86 my $err_at = @{$thisparser->{errors}};
496  
497 86 my $score;
498 my $score_return;
499 86 my $_tok;
500 86 my $return = undef;
501 86 my $_matched=0;
502 86 my $commit=0;
503 86 my @item = ();
504 86 my %item = ();
505 86 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0086
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
506 86 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0860
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
507 86 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 86 0 86
508 86 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 86 0 86
509 86 my $text;
510 86 my $lastsep="";
511 86 my $current_match;
512 86 my $expectation = new Parse::RecDescent::Expectation(q{real, or int});
513 86 $expectation->at($_[1]);
514
515 86 my $prevline;
516 86 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
517
518 86 my $thisline;
519 86 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
520  
521
522  
523 86 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 86 0 86
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0086
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
524 {
525
526 86 ▶ Parse::RecDescent::_trace(q{Trying production: [real]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
527 Parse::RecDescent::_tracefirst($_[1]),
528 q{number},
529 $tracelevel)
530 if defined $::RD_TRACE;
531 86 my $thisprod = $thisrule->{"prods"}[0];
532 86 $text = $_[1];
533 86 my $_savetext;
534 86 @item = (q{number});
535 86 %item = (__RULE__ => q{number});
536 86 my $repcount = 0;
537  
538  
539 86 ▶ Parse::RecDescent::_trace(q{Trying subrule: [real]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
540 Parse::RecDescent::_tracefirst($text),
541 q{number},
542 $tracelevel)
543 if defined $::RD_TRACE;
544 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
545 86 $expectation->is(q{})->at($text);
546 86 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::real($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = real($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 80 6 86
547 {
548
549 80 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [real]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
550 Parse::RecDescent::_tracefirst($text),
551 q{number},
552 $tracelevel)
553 if defined $::RD_TRACE;
554 80 $expectation->failed();
555 80 last;
556 }
557 6 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [real]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 6 6
558 . $_tok . q{]},
559
560 Parse::RecDescent::_tracefirst($text),
561 q{number},
562 $tracelevel)
563 if defined $::RD_TRACE;
564 6 $item{q{real}} = $_tok;
565 6 push @item, $_tok;
566
567 }
568  
569  
570 6 ▶ Parse::RecDescent::_trace(q{>>Matched production: [real]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 6 6
571 Parse::RecDescent::_tracefirst($text),
572 q{number},
573 $tracelevel)
574 if defined $::RD_TRACE;
575 6 $_matched = 1;
576 6 last;
577 }
578  
579  
580 86 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 80 6 86
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
6080
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
581 {
582
583 80 ▶ Parse::RecDescent::_trace(q{Trying production: [int]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
584 Parse::RecDescent::_tracefirst($_[1]),
585 q{number},
586 $tracelevel)
587 if defined $::RD_TRACE;
588 80 my $thisprod = $thisrule->{"prods"}[1];
589 80 $text = $_[1];
590 80 my $_savetext;
591 80 @item = (q{number});
592 80 %item = (__RULE__ => q{number});
593 80 my $repcount = 0;
594  
595  
596 80 ▶ Parse::RecDescent::_trace(q{Trying subrule: [int]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
597 Parse::RecDescent::_tracefirst($text),
598 q{number},
599 $tracelevel)
600 if defined $::RD_TRACE;
601 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
602 80 $expectation->is(q{})->at($text);
603 80 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::int($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = Parse::RecDescent::Cheater::Parser::int($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 56 24 80
604 {
605
606 56 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [int]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 56 56
607 Parse::RecDescent::_tracefirst($text),
608 q{number},
609 $tracelevel)
610 if defined $::RD_TRACE;
611 56 $expectation->failed();
612 56 last;
613 }
614 24 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [int]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
615 . $_tok . q{]},
616
617 Parse::RecDescent::_tracefirst($text),
618 q{number},
619 $tracelevel)
620 if defined $::RD_TRACE;
621 24 $item{q{int}} = $_tok;
622 24 push @item, $_tok;
623
624 }
625  
626  
627 24 ▶ Parse::RecDescent::_trace(q{>>Matched production: [int]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 24 24
628 Parse::RecDescent::_tracefirst($text),
629 q{number},
630 $tracelevel)
631 if defined $::RD_TRACE;
632 24 $_matched = 1;
633 24 last;
634 }
635  
636  
637 86 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 56 30 86
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
30056
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
638 {
639
640  
641 56 $_[1] = $text; # NOT SURE THIS IS NEEDED
642 56 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 56 56
643 Parse::RecDescent::_tracefirst($_[1]),
644 q{number},
645 $tracelevel)
646 if defined $::RD_TRACE;
647 56 return undef;
648 }
649 30 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 30 30
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0300
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
650 {
651 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
652 q{number},
653 $tracelevel)
654 if defined $::RD_TRACE;
655 0 $return = $score_return;
656 }
657 30 splice @{$thisparser->{errors}}, $err_at;
658 30 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 30 0 30
659 30 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 30 30
660 {
661 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
662 $return . q{])}, "",
663 q{number},
664 $tracelevel);
665 0 Parse::RecDescent::_trace(q{(consumed: [} .
666 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
667 Parse::RecDescent::_tracefirst($text),
668 , q{number},
669 $tracelevel)
670 }
671 30 $_[1] = $text;
672 30 return $return;
673 }
674  
675 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
676 sub Parse::RecDescent::Cheater::Parser::time
677 44 ▶{
Subroutine time: called CC=40 SCAR=41.3
678 44 my $thisparser = $_[0];
679 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
680 44 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
440
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
681 44 $ERRORS = 0;
682 44 my $thisrule = $thisparser->{"rules"}{"time"};
683
684 44 ▶ Parse::RecDescent::_trace(q{Trying rule: [time]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
685 Parse::RecDescent::_tracefirst($_[1]),
686 q{time},
687 $tracelevel)
688 if defined $::RD_TRACE;
689  
690
691 44 my $err_at = @{$thisparser->{errors}};
692  
693 44 my $score;
694 my $score_return;
695 44 my $_tok;
696 44 my $return = undef;
697 44 my $_matched=0;
698 44 my $commit=0;
699 44 my @item = ();
700 44 my %item = ();
701 44 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0044
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
702 44 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0440
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
703 44 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 44 0 44
704 44 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 44 0 44
705 44 my $text;
706 44 my $lastsep="";
707 44 my $current_match;
708 44 my $expectation = new Parse::RecDescent::Expectation(q{/\\b\\d\{2\}:\\d\{2\}:\\d\{2\}\\b/, or /\\b\\d\{2\}:\\d\{2\}\\b(?!:)/});
709 44 $expectation->at($_[1]);
710
711 44 my $prevline;
712 44 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
713
714 44 my $thisline;
715 44 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
716  
717
718  
719 44 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 44 0 44
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0044
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
720 {
721
722 44 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\b\\d\{2\}:\\d\{2\}:\\d\{2\}\\b/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
723 Parse::RecDescent::_tracefirst($_[1]),
724 q{time},
725 $tracelevel)
726 if defined $::RD_TRACE;
727 44 my $thisprod = $thisrule->{"prods"}[0];
728 44 $text = $_[1];
729 44 my $_savetext;
730 44 @item = (q{time});
731 44 %item = (__RULE__ => q{time});
732 44 my $repcount = 0;
733  
734  
735 44 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\b\\d\{2\}:\\d\{2\}:\\d\{2\}\\b/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 44 44
736 q{time},
737 $tracelevel)
738 if defined $::RD_TRACE;
739 44 $lastsep = "";
740 44 $expectation->is(q{})->at($text);
741
742  
743 44 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\b\d{2}:\d{2}:\d{2}\b)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{2}:\d{2}:\d{2}\b)/) 42 2 44
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{2}:\d{2}:\d{2}\b)/
!ll&&!rl&&r
0422
($lastsep = $1) && ''
!ll
2024
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{2}:\d{2}:\d{2}\b)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\b\d{2}:\d{2}:\d{2}\b)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\b\d{2}:\d{2}:\d{2}\b)/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
744 {
745
746 42 $expectation->failed();
747 42 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 42 42
748 Parse::RecDescent::_tracefirst($text))
749 if defined $::RD_TRACE;
750  
751 42 last;
752 }
753 2 $current_match = substr($text, $-[0], $+[0] - $-[0]);
754 2 substr($text,0,length($current_match),q{});
755 2 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
756 . $current_match . q{])},
757 Parse::RecDescent::_tracefirst($text))
758 if defined $::RD_TRACE;
759 2 push @item, $item{__PATTERN1__}=$current_match;
760
761  
762  
763 2 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\b\\d\{2\}:\\d\{2\}:\\d\{2\}\\b/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
764 Parse::RecDescent::_tracefirst($text),
765 q{time},
766 $tracelevel)
767 if defined $::RD_TRACE;
768 2 $_matched = 1;
769 2 last;
770 }
771  
772  
773 44 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 42 2 44
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
2042
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
774 {
775
776 42 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\b\\d\{2\}:\\d\{2\}\\b(?!:)/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 42 42
777 Parse::RecDescent::_tracefirst($_[1]),
778 q{time},
779 $tracelevel)
780 if defined $::RD_TRACE;
781 42 my $thisprod = $thisrule->{"prods"}[1];
782 42 $text = $_[1];
783 42 my $_savetext;
784 42 @item = (q{time});
785 42 %item = (__RULE__ => q{time});
786 42 my $repcount = 0;
787  
788  
789 42 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\b\\d\{2\}:\\d\{2\}\\b(?!:)/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 42 42
790 q{time},
791 $tracelevel)
792 if defined $::RD_TRACE;
793 42 $lastsep = "";
794 42 $expectation->is(q{})->at($text);
795
796  
797 42 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\b\d{2}:\d{2}\b(?!:))/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{2}:\d{2}\b(?!:))/) 40 2 42
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{2}:\d{2}\b(?!:))/
!ll&&!rl&&r
0402
($lastsep = $1) && ''
!ll
2022
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{2}:\d{2}\b(?!:))/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\b\d{2}:\d{2}\b(?!:))/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\b\d{2}:\d{2}\b(?!:))/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
798 {
799
800 40 $expectation->failed();
801 40 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 40 40
802 Parse::RecDescent::_tracefirst($text))
803 if defined $::RD_TRACE;
804  
805 40 last;
806 }
807 2 $current_match = substr($text, $-[0], $+[0] - $-[0]);
808 2 substr($text,0,length($current_match),q{});
809 2 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
810 . $current_match . q{])},
811 Parse::RecDescent::_tracefirst($text))
812 if defined $::RD_TRACE;
813 2 push @item, $item{__PATTERN1__}=$current_match;
814
815  
816 2 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
817 Parse::RecDescent::_tracefirst($text),
818 q{time},
819 $tracelevel)
820 if defined $::RD_TRACE;
821
822  
823 2 ▶ $_tok = ($_noactions) ? 0 : do { "$item[1]:00" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 2 2
824 2 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 2 2
825 {
826 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
827 if defined $::RD_TRACE;
828 0 last;
829 }
830 2 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
831 . $_tok . q{])},
832 Parse::RecDescent::_tracefirst($text))
833 if defined $::RD_TRACE;
834 2 push @item, $_tok;
835 2 $item{__ACTION1__}=$_tok;
836
837  
838  
839 2 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\b\\d\{2\}:\\d\{2\}\\b(?!:)/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
840 Parse::RecDescent::_tracefirst($text),
841 q{time},
842 $tracelevel)
843 if defined $::RD_TRACE;
844 2 $_matched = 1;
845 2 last;
846 }
847  
848  
849 44 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 40 4 44
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
4040
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
850 {
851
852  
853 40 $_[1] = $text; # NOT SURE THIS IS NEEDED
854 40 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 40 40
855 Parse::RecDescent::_tracefirst($_[1]),
856 q{time},
857 $tracelevel)
858 if defined $::RD_TRACE;
859 40 return undef;
860 }
861 4 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 4 4
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
040
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
862 {
863 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
864 q{time},
865 $tracelevel)
866 if defined $::RD_TRACE;
867 0 $return = $score_return;
868 }
869 4 splice @{$thisparser->{errors}}, $err_at;
870 4 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 4 0 4
871 4 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 4 4
872 {
873 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
874 $return . q{])}, "",
875 q{time},
876 $tracelevel);
877 0 Parse::RecDescent::_trace(q{(consumed: [} .
878 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
879 Parse::RecDescent::_tracefirst($text),
880 , q{time},
881 $tracelevel)
882 }
883 4 $_[1] = $text;
884 4 return $return;
885 }
886  
887 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
888 sub Parse::RecDescent::Cheater::Parser::date
889 86 ▶{
Subroutine date: called CC=25 SCAR=35.2
890 86 my $thisparser = $_[0];
891 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
892 86 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
860
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
893 86 $ERRORS = 0;
894 86 my $thisrule = $thisparser->{"rules"}{"date"};
895
896 86 ▶ Parse::RecDescent::_trace(q{Trying rule: [date]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
897 Parse::RecDescent::_tracefirst($_[1]),
898 q{date},
899 $tracelevel)
900 if defined $::RD_TRACE;
901  
902
903 86 my $err_at = @{$thisparser->{errors}};
904  
905 86 my $score;
906 my $score_return;
907 86 my $_tok;
908 86 my $return = undef;
909 86 my $_matched=0;
910 86 my $commit=0;
911 86 my @item = ();
912 86 my %item = ();
913 86 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0086
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
914 86 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0860
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
915 86 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 86 0 86
916 86 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 86 0 86
917 86 my $text;
918 86 my $lastsep="";
919 86 my $current_match;
920 86 my $expectation = new Parse::RecDescent::Expectation(q{/\\b\\d\{4\}-\\d\{2\}-\\d\{2\}\\b/});
921 86 $expectation->at($_[1]);
922
923 86 my $prevline;
924 86 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
925
926 86 my $thisline;
927 86 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
928  
929
930  
931 86 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 86 0 86
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0086
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
932 {
933
934 86 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\b\\d\{4\}-\\d\{2\}-\\d\{2\}\\b/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
935 Parse::RecDescent::_tracefirst($_[1]),
936 q{date},
937 $tracelevel)
938 if defined $::RD_TRACE;
939 86 my $thisprod = $thisrule->{"prods"}[0];
940 86 $text = $_[1];
941 86 my $_savetext;
942 86 @item = (q{date});
943 86 %item = (__RULE__ => q{date});
944 86 my $repcount = 0;
945  
946  
947 86 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\b\\d\{4\}-\\d\{2\}-\\d\{2\}\\b/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
948 q{date},
949 $tracelevel)
950 if defined $::RD_TRACE;
951 86 $lastsep = "";
952 86 $expectation->is(q{})->at($text);
953
954  
955 86 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\b\d{4}-\d{2}-\d{2}\b)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{4}-\d{2}-\d{2}\b)/) 76 10 86
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{4}-\d{2}-\d{2}\b)/
!ll&&!rl&&r
07610
($lastsep = $1) && ''
!ll
4442
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\b\d{4}-\d{2}-\d{2}\b)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\b\d{4}-\d{2}-\d{2}\b)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\b\d{4}-\d{2}-\d{2}\b)/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
956 {
957
958 76 $expectation->failed();
959 76 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 76 76
960 Parse::RecDescent::_tracefirst($text))
961 if defined $::RD_TRACE;
962  
963 76 last;
964 }
965 10 $current_match = substr($text, $-[0], $+[0] - $-[0]);
966 10 substr($text,0,length($current_match),q{});
967 10 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
968 . $current_match . q{])},
969 Parse::RecDescent::_tracefirst($text))
970 if defined $::RD_TRACE;
971 10 push @item, $item{__PATTERN1__}=$current_match;
972
973  
974  
975 10 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\b\\d\{4\}-\\d\{2\}-\\d\{2\}\\b/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
976 Parse::RecDescent::_tracefirst($text),
977 q{date},
978 $tracelevel)
979 if defined $::RD_TRACE;
980 10 $_matched = 1;
981 10 last;
982 }
983  
984  
985 86 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 76 10 86
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
10076
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
986 {
987
988  
989 76 $_[1] = $text; # NOT SURE THIS IS NEEDED
990 76 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 76 76
991 Parse::RecDescent::_tracefirst($_[1]),
992 q{date},
993 $tracelevel)
994 if defined $::RD_TRACE;
995 76 return undef;
996 }
997 10 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 10 10
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0100
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
998 {
999 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1000 q{date},
1001 $tracelevel)
1002 if defined $::RD_TRACE;
1003 0 $return = $score_return;
1004 }
1005 10 splice @{$thisparser->{errors}}, $err_at;
1006 10 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 10 0 10
1007 10 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 10 10
1008 {
1009 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1010 $return . q{])}, "",
1011 q{date},
1012 $tracelevel);
1013 0 Parse::RecDescent::_trace(q{(consumed: [} .
1014 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1015 Parse::RecDescent::_tracefirst($text),
1016 , q{date},
1017 $tracelevel)
1018 }
1019 10 $_[1] = $text;
1020 10 return $return;
1021 }
1022  
1023 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
1024 sub Parse::RecDescent::Cheater::Parser::rows_definition
1025 71 ▶{
Subroutine rows_definition: called CC=51 SCAR=49.5
1026 71 my $thisparser = $_[0];
1027 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1028 71 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
710
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
1029 71 $ERRORS = 0;
1030 71 my $thisrule = $thisparser->{"rules"}{"rows_definition"};
1031
1032 71 ▶ Parse::RecDescent::_trace(q{Trying rule: [rows_definition]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
1033 Parse::RecDescent::_tracefirst($_[1]),
1034 q{rows_definition},
1035 $tracelevel)
1036 if defined $::RD_TRACE;
1037  
1038
1039 71 my $err_at = @{$thisparser->{errors}};
1040  
1041 71 my $score;
1042 my $score_return;
1043 71 my $_tok;
1044 71 my $return = undef;
1045 71 my $_matched=0;
1046 71 my $commit=0;
1047 71 my @item = ();
1048 71 my %item = ();
1049 71 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0071
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
1050 71 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0710
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
1051 71 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 71 0 71
1052 71 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 71 0 71
1053 71 my $text;
1054 71 my $lastsep="";
1055 71 my $current_match;
1056 71 my $expectation = new Parse::RecDescent::Expectation(q{/\\d+/});
1057 71 $expectation->at($_[1]);
1058
1059 71 my $prevline;
1060 71 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
1061
1062 71 my $thisline;
1063 71 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1064  
1065
1066  
1067 71 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 71 0 71
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0071
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1068 {
1069
1070 71 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\d+/ <commit> table_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
1071 Parse::RecDescent::_tracefirst($_[1]),
1072 q{rows_definition},
1073 $tracelevel)
1074 if defined $::RD_TRACE;
1075 71 my $thisprod = $thisrule->{"prods"}[0];
1076 71 $text = $_[1];
1077 71 my $_savetext;
1078 71 @item = (q{rows_definition});
1079 71 %item = (__RULE__ => q{rows_definition});
1080 71 my $repcount = 0;
1081  
1082  
1083 71 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\d+/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
1084 q{rows_definition},
1085 $tracelevel)
1086 if defined $::RD_TRACE;
1087 71 $lastsep = "";
1088 71 $expectation->is(q{})->at($text);
1089
1090  
1091 71 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\d+)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\d+)/) 39 32 71
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\d+)/
!ll&&!rl&&r
03932
($lastsep = $1) && ''
!ll
3437
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:\d+)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:\d+)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:\d+)/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
1092 {
1093
1094 39 $expectation->failed();
1095 39 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
1096 Parse::RecDescent::_tracefirst($text))
1097 if defined $::RD_TRACE;
1098  
1099 39 last;
1100 }
1101 32 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1102 32 substr($text,0,length($current_match),q{});
1103 32 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
1104 . $current_match . q{])},
1105 Parse::RecDescent::_tracefirst($text))
1106 if defined $::RD_TRACE;
1107 32 push @item, $item{__PATTERN1__}=$current_match;
1108
1109  
1110
1111  
1112 32 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
1113 Parse::RecDescent::_tracefirst($text),
1114 q{rows_definition},
1115 $tracelevel)
1116 if defined $::RD_TRACE;
1117 32 $_tok = do { $commit = 1 };
1118 32 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 32 0 32
1119 {
1120 32 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
1121 . $_tok . q{])},
1122 Parse::RecDescent::_tracefirst($text))
1123 if defined $::RD_TRACE;
1124 }
1125 else
1126 {
1127 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1128 Parse::RecDescent::_tracefirst($text))
1129 if defined $::RD_TRACE;
1130 }
1131
1132 32 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 32 32
1133 32 push @item, $item{__DIRECTIVE1__}=$_tok;
1134
1135  
1136 32 ▶ Parse::RecDescent::_trace(q{Trying subrule: [table_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
1137 Parse::RecDescent::_tracefirst($text),
1138 q{rows_definition},
1139 $tracelevel)
1140 if defined $::RD_TRACE;
1141 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1142 32 $expectation->is(q{table_name})->at($text);
1143 32 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::table_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = table_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 32 32
1144 {
1145
1146 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [table_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1147 Parse::RecDescent::_tracefirst($text),
1148 q{rows_definition},
1149 $tracelevel)
1150 if defined $::RD_TRACE;
1151 0 $expectation->failed();
1152 0 last;
1153 }
1154 32 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [table_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
1155 . $_tok . q{]},
1156
1157 Parse::RecDescent::_tracefirst($text),
1158 q{rows_definition},
1159 $tracelevel)
1160 if defined $::RD_TRACE;
1161 32 $item{q{table_name}} = $_tok;
1162 32 push @item, $_tok;
1163
1164 }
1165  
1166 32 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
1167 Parse::RecDescent::_tracefirst($text),
1168 q{rows_definition},
1169 $tracelevel)
1170 if defined $::RD_TRACE;
1171
1172  
1173 32 ▶ $_tok = ($_noactions) ? 0 : do { ['rows', $item[1], $item[3]] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 32 32
1174 32 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 32 32
1175 {
1176 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1177 if defined $::RD_TRACE;
1178 0 last;
1179 }
1180 32 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
1181 . $_tok . q{])},
1182 Parse::RecDescent::_tracefirst($text))
1183 if defined $::RD_TRACE;
1184 32 push @item, $_tok;
1185 32 $item{__ACTION1__}=$_tok;
1186
1187  
1188  
1189 32 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\d+/ <commit> table_name]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
1190 Parse::RecDescent::_tracefirst($text),
1191 q{rows_definition},
1192 $tracelevel)
1193 if defined $::RD_TRACE;
1194 32 $_matched = 1;
1195 32 last;
1196 }
1197  
1198  
1199 71 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 39 32 71
1200 {
1201
1202 39 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
1203 Parse::RecDescent::_tracefirst($_[1]),
1204 q{rows_definition},
1205 $tracelevel)
1206 if defined $::RD_TRACE;
1207 39 my $thisprod = $thisrule->{"prods"}[1];
1208
1209 39 my $_savetext;
1210 39 @item = (q{rows_definition});
1211 39 %item = (__RULE__ => q{rows_definition});
1212 39 my $repcount = 0;
1213  
1214  
1215
1216  
1217 39 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
1218 Parse::RecDescent::_tracefirst($text),
1219 q{rows_definition},
1220 $tracelevel)
1221 if defined $::RD_TRACE;
1222 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 39 39
unless ($_noactions) 0 0 0
1223 0 my $rule = $item[0];
1224 0 $rule =~ s/_/ /g;
1225 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
1226 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
1227 0 } unless $_noactions; undef } else {0} };
1228 39 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 39 0 39
1229 {
1230 39 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
1231 . $_tok . q{])},
1232 Parse::RecDescent::_tracefirst($text))
1233 if defined $::RD_TRACE;
1234 }
1235 else
1236 {
1237 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1238 Parse::RecDescent::_tracefirst($text))
1239 if defined $::RD_TRACE;
1240 }
1241
1242 39 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 39 39
1243 39 push @item, $item{__DIRECTIVE1__}=$_tok;
1244
1245  
1246 39 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
1247 Parse::RecDescent::_tracefirst($text),
1248 q{rows_definition},
1249 $tracelevel)
1250 if defined $::RD_TRACE;
1251 39 undef $return;
1252
1253  
1254 39 $_tok = undef;
1255
1256 39 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 39 0 39
1257  
1258  
1259 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1260 Parse::RecDescent::_tracefirst($text),
1261 q{rows_definition},
1262 $tracelevel)
1263 if defined $::RD_TRACE;
1264 0 $_matched = 1;
1265 0 last;
1266 }
1267  
1268  
1269 71 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 39 32 71
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
32039
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
1270 {
1271
1272  
1273 39 $_[1] = $text; # NOT SURE THIS IS NEEDED
1274 39 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
1275 Parse::RecDescent::_tracefirst($_[1]),
1276 q{rows_definition},
1277 $tracelevel)
1278 if defined $::RD_TRACE;
1279 39 return undef;
1280 }
1281 32 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 32 32
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0320
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
1282 {
1283 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1284 q{rows_definition},
1285 $tracelevel)
1286 if defined $::RD_TRACE;
1287 0 $return = $score_return;
1288 }
1289 32 splice @{$thisparser->{errors}}, $err_at;
1290 32 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 32 0 32
1291 32 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 32 32
1292 {
1293 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
1294 $return . q{])}, "",
1295 q{rows_definition},
1296 $tracelevel);
1297 0 Parse::RecDescent::_trace(q{(consumed: [} .
1298 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
1299 Parse::RecDescent::_tracefirst($text),
1300 , q{rows_definition},
1301 $tracelevel)
1302 }
1303 32 $_[1] = $text;
1304 32 return $return;
1305 }
1306  
1307 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
1308 sub Parse::RecDescent::Cheater::Parser::range
1309 45 ▶{
Subroutine range: called CC=139 SCAR=71.8
1310 45 my $thisparser = $_[0];
1311 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
1312 45 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
450
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
1313 45 $ERRORS = 0;
1314 45 my $thisrule = $thisparser->{"rules"}{"range"};
1315
1316 45 ▶ Parse::RecDescent::_trace(q{Trying rule: [range]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 45 45
1317 Parse::RecDescent::_tracefirst($_[1]),
1318 q{range},
1319 $tracelevel)
1320 if defined $::RD_TRACE;
1321  
1322
1323 45 my $err_at = @{$thisparser->{errors}};
1324  
1325 45 my $score;
1326 my $score_return;
1327 45 my $_tok;
1328 45 my $return = undef;
1329 45 my $_matched=0;
1330 45 my $commit=0;
1331 45 my @item = ();
1332 45 my %item = ();
1333 45 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0045
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
1334 45 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0450
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
1335 45 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 45 0 45
1336 45 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 45 0 45
1337 45 my $text;
1338 45 my $lastsep="";
1339 45 my $current_match;
1340 45 my $expectation = new Parse::RecDescent::Expectation(q{number, or date, or time, or datetime});
1341 45 $expectation->at($_[1]);
1342
1343 45 my $prevline;
1344 45 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
1345
1346 45 my $thisline;
1347 45 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
1348  
1349
1350  
1351 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 45 0 45
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0045
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1352 {
1353
1354 45 ▶ Parse::RecDescent::_trace(q{Trying production: [number '..' <commit> number]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 45 45
1355 Parse::RecDescent::_tracefirst($_[1]),
1356 q{range},
1357 $tracelevel)
1358 if defined $::RD_TRACE;
1359 45 my $thisprod = $thisrule->{"prods"}[0];
1360 45 $text = $_[1];
1361 45 my $_savetext;
1362 45 @item = (q{range});
1363 45 %item = (__RULE__ => q{range});
1364 45 my $repcount = 0;
1365  
1366  
1367 45 ▶ Parse::RecDescent::_trace(q{Trying subrule: [number]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 45 45
1368 Parse::RecDescent::_tracefirst($text),
1369 q{range},
1370 $tracelevel)
1371 if defined $::RD_TRACE;
1372 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1373 45 $expectation->is(q{})->at($text);
1374 45 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::number($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = number($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 28 17 45
1375 {
1376
1377 28 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [number]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
1378 Parse::RecDescent::_tracefirst($text),
1379 q{range},
1380 $tracelevel)
1381 if defined $::RD_TRACE;
1382 28 $expectation->failed();
1383 28 last;
1384 }
1385 17 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [number]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
1386 . $_tok . q{]},
1387
1388 Parse::RecDescent::_tracefirst($text),
1389 q{range},
1390 $tracelevel)
1391 if defined $::RD_TRACE;
1392 17 $item{q{number}} = $_tok;
1393 17 push @item, $_tok;
1394
1395 }
1396  
1397 17 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['..']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
1398 Parse::RecDescent::_tracefirst($text),
1399 q{range},
1400 $tracelevel)
1401 if defined $::RD_TRACE;
1402 17 $lastsep = "";
1403 17 $expectation->is(q{'..'})->at($text);
1404
1405  
1406 17 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\.\./)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./) 14 3 17
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./
!ll&&!rl&&r
0143
($lastsep = $1) && ''
!ll
170
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\.\./
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\.\./
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
1407 {
1408
1409 14 $expectation->failed();
1410 14 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 14 14
1411 Parse::RecDescent::_tracefirst($text))
1412 if defined $::RD_TRACE;
1413 14 last;
1414 }
1415 3 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1416 3 substr($text,0,length($current_match),q{});
1417 3 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1418 . $current_match . q{])},
1419 Parse::RecDescent::_tracefirst($text))
1420 if defined $::RD_TRACE;
1421 3 push @item, $item{__STRING1__}=$current_match;
1422
1423  
1424
1425  
1426 3 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1427 Parse::RecDescent::_tracefirst($text),
1428 q{range},
1429 $tracelevel)
1430 if defined $::RD_TRACE;
1431 3 $_tok = do { $commit = 1 };
1432 3 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 3 0 3
1433 {
1434 3 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1435 . $_tok . q{])},
1436 Parse::RecDescent::_tracefirst($text))
1437 if defined $::RD_TRACE;
1438 }
1439 else
1440 {
1441 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1442 Parse::RecDescent::_tracefirst($text))
1443 if defined $::RD_TRACE;
1444 }
1445
1446 3 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 3 3
1447 3 push @item, $item{__DIRECTIVE1__}=$_tok;
1448
1449  
1450 3 ▶ Parse::RecDescent::_trace(q{Trying subrule: [number]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1451 Parse::RecDescent::_tracefirst($text),
1452 q{range},
1453 $tracelevel)
1454 if defined $::RD_TRACE;
1455 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1456 3 $expectation->is(q{number})->at($text);
1457 3 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::number($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = number($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 3 3
1458 {
1459
1460 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [number]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1461 Parse::RecDescent::_tracefirst($text),
1462 q{range},
1463 $tracelevel)
1464 if defined $::RD_TRACE;
1465 0 $expectation->failed();
1466 0 last;
1467 }
1468 3 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [number]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1469 . $_tok . q{]},
1470
1471 Parse::RecDescent::_tracefirst($text),
1472 q{range},
1473 $tracelevel)
1474 if defined $::RD_TRACE;
1475 3 $item{q{number}} = $_tok;
1476 3 push @item, $_tok;
1477
1478 }
1479  
1480 3 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1481 Parse::RecDescent::_tracefirst($text),
1482 q{range},
1483 $tracelevel)
1484 if defined $::RD_TRACE;
1485
1486  
1487 3 ▶ $_tok = ($_noactions) ? 0 : do { ['nrange', $item[1], $item[4]] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 3 3
1488 3 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 3 3
1489 {
1490 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1491 if defined $::RD_TRACE;
1492 0 last;
1493 }
1494 3 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1495 . $_tok . q{])},
1496 Parse::RecDescent::_tracefirst($text))
1497 if defined $::RD_TRACE;
1498 3 push @item, $_tok;
1499 3 $item{__ACTION1__}=$_tok;
1500
1501  
1502  
1503 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: [number '..' <commit> number]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
1504 Parse::RecDescent::_tracefirst($text),
1505 q{range},
1506 $tracelevel)
1507 if defined $::RD_TRACE;
1508 3 $_matched = 1;
1509 3 last;
1510 }
1511  
1512  
1513 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 42 3 45
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
3042
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1514 {
1515
1516 42 ▶ Parse::RecDescent::_trace(q{Trying production: [date '..' <commit> date]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 42 42
1517 Parse::RecDescent::_tracefirst($_[1]),
1518 q{range},
1519 $tracelevel)
1520 if defined $::RD_TRACE;
1521 42 my $thisprod = $thisrule->{"prods"}[1];
1522 42 $text = $_[1];
1523 42 my $_savetext;
1524 42 @item = (q{range});
1525 42 %item = (__RULE__ => q{range});
1526 42 my $repcount = 0;
1527  
1528  
1529 42 ▶ Parse::RecDescent::_trace(q{Trying subrule: [date]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 42 42
1530 Parse::RecDescent::_tracefirst($text),
1531 q{range},
1532 $tracelevel)
1533 if defined $::RD_TRACE;
1534 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1535 42 $expectation->is(q{})->at($text);
1536 42 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::date($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = date($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 38 4 42
1537 {
1538
1539 38 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [date]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
1540 Parse::RecDescent::_tracefirst($text),
1541 q{range},
1542 $tracelevel)
1543 if defined $::RD_TRACE;
1544 38 $expectation->failed();
1545 38 last;
1546 }
1547 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [date]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
1548 . $_tok . q{]},
1549
1550 Parse::RecDescent::_tracefirst($text),
1551 q{range},
1552 $tracelevel)
1553 if defined $::RD_TRACE;
1554 4 $item{q{date}} = $_tok;
1555 4 push @item, $_tok;
1556
1557 }
1558  
1559 4 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['..']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
1560 Parse::RecDescent::_tracefirst($text),
1561 q{range},
1562 $tracelevel)
1563 if defined $::RD_TRACE;
1564 4 $lastsep = "";
1565 4 $expectation->is(q{'..'})->at($text);
1566
1567  
1568 4 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\.\./)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./) 2 2 4
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./
!ll&&!rl&&r
022
($lastsep = $1) && ''
!ll
22
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\.\./
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\.\./
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
1569 {
1570
1571 2 $expectation->failed();
1572 2 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1573 Parse::RecDescent::_tracefirst($text))
1574 if defined $::RD_TRACE;
1575 2 last;
1576 }
1577 2 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1578 2 substr($text,0,length($current_match),q{});
1579 2 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1580 . $current_match . q{])},
1581 Parse::RecDescent::_tracefirst($text))
1582 if defined $::RD_TRACE;
1583 2 push @item, $item{__STRING1__}=$current_match;
1584
1585  
1586
1587  
1588 2 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1589 Parse::RecDescent::_tracefirst($text),
1590 q{range},
1591 $tracelevel)
1592 if defined $::RD_TRACE;
1593 2 $_tok = do { $commit = 1 };
1594 2 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 2 0 2
1595 {
1596 2 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1597 . $_tok . q{])},
1598 Parse::RecDescent::_tracefirst($text))
1599 if defined $::RD_TRACE;
1600 }
1601 else
1602 {
1603 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1604 Parse::RecDescent::_tracefirst($text))
1605 if defined $::RD_TRACE;
1606 }
1607
1608 2 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 2 2
1609 2 push @item, $item{__DIRECTIVE1__}=$_tok;
1610
1611  
1612 2 ▶ Parse::RecDescent::_trace(q{Trying subrule: [date]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1613 Parse::RecDescent::_tracefirst($text),
1614 q{range},
1615 $tracelevel)
1616 if defined $::RD_TRACE;
1617 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1618 2 $expectation->is(q{date})->at($text);
1619 2 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::date($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = date($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 2 2
1620 {
1621
1622 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [date]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1623 Parse::RecDescent::_tracefirst($text),
1624 q{range},
1625 $tracelevel)
1626 if defined $::RD_TRACE;
1627 0 $expectation->failed();
1628 0 last;
1629 }
1630 2 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [date]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1631 . $_tok . q{]},
1632
1633 Parse::RecDescent::_tracefirst($text),
1634 q{range},
1635 $tracelevel)
1636 if defined $::RD_TRACE;
1637 2 $item{q{date}} = $_tok;
1638 2 push @item, $_tok;
1639
1640 }
1641  
1642 2 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1643 Parse::RecDescent::_tracefirst($text),
1644 q{range},
1645 $tracelevel)
1646 if defined $::RD_TRACE;
1647
1648  
1649 2 ▶ $_tok = ($_noactions) ? 0 : do { ['drange', $item[1], $item[4]] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 2 2
1650 2 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 2 2
1651 {
1652 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1653 if defined $::RD_TRACE;
1654 0 last;
1655 }
1656 2 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1657 . $_tok . q{])},
1658 Parse::RecDescent::_tracefirst($text))
1659 if defined $::RD_TRACE;
1660 2 push @item, $_tok;
1661 2 $item{__ACTION1__}=$_tok;
1662
1663  
1664  
1665 2 ▶ Parse::RecDescent::_trace(q{>>Matched production: [date '..' <commit> date]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1666 Parse::RecDescent::_tracefirst($text),
1667 q{range},
1668 $tracelevel)
1669 if defined $::RD_TRACE;
1670 2 $_matched = 1;
1671 2 last;
1672 }
1673  
1674  
1675 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 40 5 45
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
5040
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1676 {
1677
1678 40 ▶ Parse::RecDescent::_trace(q{Trying production: [time '..' <commit> time]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 40 40
1679 Parse::RecDescent::_tracefirst($_[1]),
1680 q{range},
1681 $tracelevel)
1682 if defined $::RD_TRACE;
1683 40 my $thisprod = $thisrule->{"prods"}[2];
1684 40 $text = $_[1];
1685 40 my $_savetext;
1686 40 @item = (q{range});
1687 40 %item = (__RULE__ => q{range});
1688 40 my $repcount = 0;
1689  
1690  
1691 40 ▶ Parse::RecDescent::_trace(q{Trying subrule: [time]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 40 40
1692 Parse::RecDescent::_tracefirst($text),
1693 q{range},
1694 $tracelevel)
1695 if defined $::RD_TRACE;
1696 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1697 40 $expectation->is(q{})->at($text);
1698 40 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::time($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = Parse::RecDescent::Cheater::Parser::time($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 40 0 40
1699 {
1700
1701 40 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [time]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 40 40
1702 Parse::RecDescent::_tracefirst($text),
1703 q{range},
1704 $tracelevel)
1705 if defined $::RD_TRACE;
1706 40 $expectation->failed();
1707 40 last;
1708 }
1709 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [time]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1710 . $_tok . q{]},
1711
1712 Parse::RecDescent::_tracefirst($text),
1713 q{range},
1714 $tracelevel)
1715 if defined $::RD_TRACE;
1716 0 $item{q{time}} = $_tok;
1717 0 push @item, $_tok;
1718
1719 }
1720  
1721 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['..']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1722 Parse::RecDescent::_tracefirst($text),
1723 q{range},
1724 $tracelevel)
1725 if defined $::RD_TRACE;
1726 0 $lastsep = "";
1727 0 $expectation->is(q{'..'})->at($text);
1728
1729  
1730 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\.\./)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./) 0 0 0
Condition0%0/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./
!ll&&!rl&&r
000
($lastsep = $1) && ''
!ll
00
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\.\./
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\.\./
ABresult
0X0
100
111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
1731 {
1732
1733 0 $expectation->failed();
1734 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1735 Parse::RecDescent::_tracefirst($text))
1736 if defined $::RD_TRACE;
1737 0 last;
1738 }
1739 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1740 0 substr($text,0,length($current_match),q{});
1741 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1742 . $current_match . q{])},
1743 Parse::RecDescent::_tracefirst($text))
1744 if defined $::RD_TRACE;
1745 0 push @item, $item{__STRING1__}=$current_match;
1746
1747  
1748
1749  
1750 0 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1751 Parse::RecDescent::_tracefirst($text),
1752 q{range},
1753 $tracelevel)
1754 if defined $::RD_TRACE;
1755 0 $_tok = do { $commit = 1 };
1756 0 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 0 0
1757 {
1758 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1759 . $_tok . q{])},
1760 Parse::RecDescent::_tracefirst($text))
1761 if defined $::RD_TRACE;
1762 }
1763 else
1764 {
1765 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1766 Parse::RecDescent::_tracefirst($text))
1767 if defined $::RD_TRACE;
1768 }
1769
1770 0 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 0 0
1771 0 push @item, $item{__DIRECTIVE1__}=$_tok;
1772
1773  
1774 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [time]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1775 Parse::RecDescent::_tracefirst($text),
1776 q{range},
1777 $tracelevel)
1778 if defined $::RD_TRACE;
1779 0 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
1780 0 $expectation->is(q{time})->at($text);
1781 0 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::time($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = Parse::RecDescent::Cheater::Parser::time($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 0 0
1782 {
1783
1784 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [time]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1785 Parse::RecDescent::_tracefirst($text),
1786 q{range},
1787 $tracelevel)
1788 if defined $::RD_TRACE;
1789 0 $expectation->failed();
1790 0 last;
1791 }
1792 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [time]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1793 . $_tok . q{]},
1794
1795 Parse::RecDescent::_tracefirst($text),
1796 q{range},
1797 $tracelevel)
1798 if defined $::RD_TRACE;
1799 0 $item{q{time}} = $_tok;
1800 0 push @item, $_tok;
1801
1802 }
1803  
1804 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1805 Parse::RecDescent::_tracefirst($text),
1806 q{range},
1807 $tracelevel)
1808 if defined $::RD_TRACE;
1809
1810  
1811 0 ▶ $_tok = ($_noactions) ? 0 : do { ['trange', $item[1], $item[4]] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
1812 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
1813 {
1814 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1815 if defined $::RD_TRACE;
1816 0 last;
1817 }
1818 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1819 . $_tok . q{])},
1820 Parse::RecDescent::_tracefirst($text))
1821 if defined $::RD_TRACE;
1822 0 push @item, $_tok;
1823 0 $item{__ACTION1__}=$_tok;
1824
1825  
1826  
1827 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [time '..' <commit> time]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1828 Parse::RecDescent::_tracefirst($text),
1829 q{range},
1830 $tracelevel)
1831 if defined $::RD_TRACE;
1832 0 $_matched = 1;
1833 0 last;
1834 }
1835  
1836  
1837 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 40 5 45
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
5040
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
1838 {
1839
1840 40 ▶ Parse::RecDescent::_trace(q{Trying production: [datetime '..' <commit> datetime]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 40 40
1841 Parse::RecDescent::_tracefirst($_[1]),
1842 q{range},
1843 $tracelevel)
1844 if defined $::RD_TRACE;
1845 40 my $thisprod = $thisrule->{"prods"}[3];
1846 40 $text = $_[1];
1847 40 my $_savetext;
1848 40 @item = (q{range});
1849 40 %item = (__RULE__ => q{range});
1850 40 my $repcount = 0;
1851  
1852  
1853 40 ▶ Parse::RecDescent::_trace(q{Trying subrule: [datetime]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 40 40
1854 Parse::RecDescent::_tracefirst($text),
1855 q{range},
1856 $tracelevel)
1857 if defined $::RD_TRACE;
1858 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1859 40 $expectation->is(q{})->at($text);
1860 40 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::datetime($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = datetime($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 38 2 40
1861 {
1862
1863 38 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [datetime]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
1864 Parse::RecDescent::_tracefirst($text),
1865 q{range},
1866 $tracelevel)
1867 if defined $::RD_TRACE;
1868 38 $expectation->failed();
1869 38 last;
1870 }
1871 2 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [datetime]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1872 . $_tok . q{]},
1873
1874 Parse::RecDescent::_tracefirst($text),
1875 q{range},
1876 $tracelevel)
1877 if defined $::RD_TRACE;
1878 2 $item{q{datetime}} = $_tok;
1879 2 push @item, $_tok;
1880
1881 }
1882  
1883 2 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['..']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1884 Parse::RecDescent::_tracefirst($text),
1885 q{range},
1886 $tracelevel)
1887 if defined $::RD_TRACE;
1888 2 $lastsep = "";
1889 2 $expectation->is(q{'..'})->at($text);
1890
1891  
1892 2 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\.\./)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./) 0 2 2
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./
!ll&&!rl&&r
002
($lastsep = $1) && ''
!ll
20
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\.\./
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\.\./
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\.\./
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
1893 {
1894
1895 0 $expectation->failed();
1896 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1897 Parse::RecDescent::_tracefirst($text))
1898 if defined $::RD_TRACE;
1899 0 last;
1900 }
1901 2 $current_match = substr($text, $-[0], $+[0] - $-[0]);
1902 2 substr($text,0,length($current_match),q{});
1903 2 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1904 . $current_match . q{])},
1905 Parse::RecDescent::_tracefirst($text))
1906 if defined $::RD_TRACE;
1907 2 push @item, $item{__STRING1__}=$current_match;
1908
1909  
1910
1911  
1912 2 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1913 Parse::RecDescent::_tracefirst($text),
1914 q{range},
1915 $tracelevel)
1916 if defined $::RD_TRACE;
1917 2 $_tok = do { $commit = 1 };
1918 2 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 2 0 2
1919 {
1920 2 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1921 . $_tok . q{])},
1922 Parse::RecDescent::_tracefirst($text))
1923 if defined $::RD_TRACE;
1924 }
1925 else
1926 {
1927 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1928 Parse::RecDescent::_tracefirst($text))
1929 if defined $::RD_TRACE;
1930 }
1931
1932 2 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 2 2
1933 2 push @item, $item{__DIRECTIVE1__}=$_tok;
1934
1935  
1936 2 ▶ Parse::RecDescent::_trace(q{Trying subrule: [datetime]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1937 Parse::RecDescent::_tracefirst($text),
1938 q{range},
1939 $tracelevel)
1940 if defined $::RD_TRACE;
1941 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
1942 2 $expectation->is(q{datetime})->at($text);
1943 2 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::datetime($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = datetime($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 2 2
1944 {
1945
1946 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [datetime]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1947 Parse::RecDescent::_tracefirst($text),
1948 q{range},
1949 $tracelevel)
1950 if defined $::RD_TRACE;
1951 0 $expectation->failed();
1952 0 last;
1953 }
1954 2 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [datetime]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1955 . $_tok . q{]},
1956
1957 Parse::RecDescent::_tracefirst($text),
1958 q{range},
1959 $tracelevel)
1960 if defined $::RD_TRACE;
1961 2 $item{q{datetime}} = $_tok;
1962 2 push @item, $_tok;
1963
1964 }
1965  
1966 2 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1967 Parse::RecDescent::_tracefirst($text),
1968 q{range},
1969 $tracelevel)
1970 if defined $::RD_TRACE;
1971
1972  
1973 2 ▶ $_tok = ($_noactions) ? 0 : do { ['dtrange', $item[1], $item[4]] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 2 2
1974 2 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 2 2
1975 {
1976 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
1977 if defined $::RD_TRACE;
1978 0 last;
1979 }
1980 2 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1981 . $_tok . q{])},
1982 Parse::RecDescent::_tracefirst($text))
1983 if defined $::RD_TRACE;
1984 2 push @item, $_tok;
1985 2 $item{__ACTION1__}=$_tok;
1986
1987  
1988  
1989 2 ▶ Parse::RecDescent::_trace(q{>>Matched production: [datetime '..' <commit> datetime]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 2 2
1990 Parse::RecDescent::_tracefirst($text),
1991 q{range},
1992 $tracelevel)
1993 if defined $::RD_TRACE;
1994 2 $_matched = 1;
1995 2 last;
1996 }
1997  
1998  
1999 45 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 38 7 45
2000 {
2001
2002 38 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2003 Parse::RecDescent::_tracefirst($_[1]),
2004 q{range},
2005 $tracelevel)
2006 if defined $::RD_TRACE;
2007 38 my $thisprod = $thisrule->{"prods"}[4];
2008
2009 38 my $_savetext;
2010 38 @item = (q{range});
2011 38 %item = (__RULE__ => q{range});
2012 38 my $repcount = 0;
2013  
2014  
2015
2016  
2017 38 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2018 Parse::RecDescent::_tracefirst($text),
2019 q{range},
2020 $tracelevel)
2021 if defined $::RD_TRACE;
2022 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 38 38
unless ($_noactions) 0 0 0
2023 0 my $rule = $item[0];
2024 0 $rule =~ s/_/ /g;
2025 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
2026 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
2027 0 } unless $_noactions; undef } else {0} };
2028 38 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 38 0 38
2029 {
2030 38 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2031 . $_tok . q{])},
2032 Parse::RecDescent::_tracefirst($text))
2033 if defined $::RD_TRACE;
2034 }
2035 else
2036 {
2037 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2038 Parse::RecDescent::_tracefirst($text))
2039 if defined $::RD_TRACE;
2040 }
2041
2042 38 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 38 38
2043 38 push @item, $item{__DIRECTIVE1__}=$_tok;
2044
2045  
2046 38 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2047 Parse::RecDescent::_tracefirst($text),
2048 q{range},
2049 $tracelevel)
2050 if defined $::RD_TRACE;
2051 38 undef $return;
2052
2053  
2054 38 $_tok = undef;
2055
2056 38 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 38 0 38
2057  
2058  
2059 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2060 Parse::RecDescent::_tracefirst($text),
2061 q{range},
2062 $tracelevel)
2063 if defined $::RD_TRACE;
2064 0 $_matched = 1;
2065 0 last;
2066 }
2067  
2068  
2069 45 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 38 7 45
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
7038
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
2070 {
2071
2072  
2073 38 $_[1] = $text; # NOT SURE THIS IS NEEDED
2074 38 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2075 Parse::RecDescent::_tracefirst($_[1]),
2076 q{range},
2077 $tracelevel)
2078 if defined $::RD_TRACE;
2079 38 return undef;
2080 }
2081 7 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 7 7
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
070
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
2082 {
2083 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2084 q{range},
2085 $tracelevel)
2086 if defined $::RD_TRACE;
2087 0 $return = $score_return;
2088 }
2089 7 splice @{$thisparser->{errors}}, $err_at;
2090 7 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 7 0 7
2091 7 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 7 7
2092 {
2093 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2094 $return . q{])}, "",
2095 q{range},
2096 $tracelevel);
2097 0 Parse::RecDescent::_trace(q{(consumed: [} .
2098 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2099 Parse::RecDescent::_tracefirst($text),
2100 , q{range},
2101 $tracelevel)
2102 }
2103 7 $_[1] = $text;
2104 7 return $return;
2105 }
2106  
2107 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
2108 sub Parse::RecDescent::Cheater::Parser::type_definition
2109 39 ▶{
Subroutine type_definition: called CC=69 SCAR=73.2
2110 39 my $thisparser = $_[0];
2111 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2112 39 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
390
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
2113 39 $ERRORS = 0;
2114 39 my $thisrule = $thisparser->{"rules"}{"type_definition"};
2115
2116 39 ▶ Parse::RecDescent::_trace(q{Trying rule: [type_definition]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2117 Parse::RecDescent::_tracefirst($_[1]),
2118 q{type_definition},
2119 $tracelevel)
2120 if defined $::RD_TRACE;
2121  
2122
2123 39 my $err_at = @{$thisparser->{errors}};
2124  
2125 39 my $score;
2126 my $score_return;
2127 39 my $_tok;
2128 39 my $return = undef;
2129 39 my $_matched=0;
2130 39 my $commit=0;
2131 39 my @item = ();
2132 39 my %item = ();
2133 39 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0039
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
2134 39 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0390
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
2135 39 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 39 0 39
2136 39 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 39 0 39
2137 39 my $text;
2138 39 my $lastsep="";
2139 39 my $current_match;
2140 39 my $expectation = new Parse::RecDescent::Expectation(q{'type'});
2141 39 $expectation->at($_[1]);
2142
2143 39 my $prevline;
2144 39 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
2145
2146 39 my $thisline;
2147 39 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2148  
2149
2150  
2151 39 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 39 0 39
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0039
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2152 {
2153
2154 39 ▶ Parse::RecDescent::_trace(q{Trying production: ['type' <commit> type '=' type domain attribute]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2155 Parse::RecDescent::_tracefirst($_[1]),
2156 q{type_definition},
2157 $tracelevel)
2158 if defined $::RD_TRACE;
2159 39 my $thisprod = $thisrule->{"prods"}[0];
2160 39 $text = $_[1];
2161 39 my $_savetext;
2162 39 @item = (q{type_definition});
2163 39 %item = (__RULE__ => q{type_definition});
2164 39 my $repcount = 0;
2165  
2166  
2167 39 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['type']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2168 Parse::RecDescent::_tracefirst($text),
2169 q{type_definition},
2170 $tracelevel)
2171 if defined $::RD_TRACE;
2172 39 $lastsep = "";
2173 39 $expectation->is(q{})->at($text);
2174
2175  
2176 39 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Atype/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Atype/) 39 0 39
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Atype/
!ll&&!rl&&r
0390
($lastsep = $1) && ''
!ll
831
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Atype/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Atype/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Atype/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
2177 {
2178
2179 39 $expectation->failed();
2180 39 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2181 Parse::RecDescent::_tracefirst($text))
2182 if defined $::RD_TRACE;
2183 39 last;
2184 }
2185 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2186 0 substr($text,0,length($current_match),q{});
2187 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2188 . $current_match . q{])},
2189 Parse::RecDescent::_tracefirst($text))
2190 if defined $::RD_TRACE;
2191 0 push @item, $item{__STRING1__}=$current_match;
2192
2193  
2194
2195  
2196 0 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2197 Parse::RecDescent::_tracefirst($text),
2198 q{type_definition},
2199 $tracelevel)
2200 if defined $::RD_TRACE;
2201 0 $_tok = do { $commit = 1 };
2202 0 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 0 0
2203 {
2204 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2205 . $_tok . q{])},
2206 Parse::RecDescent::_tracefirst($text))
2207 if defined $::RD_TRACE;
2208 }
2209 else
2210 {
2211 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2212 Parse::RecDescent::_tracefirst($text))
2213 if defined $::RD_TRACE;
2214 }
2215
2216 0 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 0 0
2217 0 push @item, $item{__DIRECTIVE1__}=$_tok;
2218
2219  
2220 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [type]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2221 Parse::RecDescent::_tracefirst($text),
2222 q{type_definition},
2223 $tracelevel)
2224 if defined $::RD_TRACE;
2225 0 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
2226 0 $expectation->is(q{type})->at($text);
2227 0 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::type($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = type($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 0 0
2228 {
2229
2230 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [type]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2231 Parse::RecDescent::_tracefirst($text),
2232 q{type_definition},
2233 $tracelevel)
2234 if defined $::RD_TRACE;
2235 0 $expectation->failed();
2236 0 last;
2237 }
2238 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [type]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2239 . $_tok . q{]},
2240
2241 Parse::RecDescent::_tracefirst($text),
2242 q{type_definition},
2243 $tracelevel)
2244 if defined $::RD_TRACE;
2245 0 $item{q{type}} = $_tok;
2246 0 push @item, $_tok;
2247
2248 }
2249  
2250 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['=']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2251 Parse::RecDescent::_tracefirst($text),
2252 q{type_definition},
2253 $tracelevel)
2254 if defined $::RD_TRACE;
2255 0 $lastsep = "";
2256 0 $expectation->is(q{'='})->at($text);
2257
2258  
2259 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\=/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/) 0 0 0
Condition0%0/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
!ll&&!rl&&r
000
($lastsep = $1) && ''
!ll
00
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\=/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\=/
ABresult
0X0
100
111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
2260 {
2261
2262 0 $expectation->failed();
2263 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2264 Parse::RecDescent::_tracefirst($text))
2265 if defined $::RD_TRACE;
2266 0 last;
2267 }
2268 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2269 0 substr($text,0,length($current_match),q{});
2270 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2271 . $current_match . q{])},
2272 Parse::RecDescent::_tracefirst($text))
2273 if defined $::RD_TRACE;
2274 0 push @item, $item{__STRING2__}=$current_match;
2275
2276  
2277 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [type]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2278 Parse::RecDescent::_tracefirst($text),
2279 q{type_definition},
2280 $tracelevel)
2281 if defined $::RD_TRACE;
2282 0 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
2283 0 $expectation->is(q{type})->at($text);
2284 0 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::type($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = type($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 0 0
2285 {
2286
2287 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [type]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2288 Parse::RecDescent::_tracefirst($text),
2289 q{type_definition},
2290 $tracelevel)
2291 if defined $::RD_TRACE;
2292 0 $expectation->failed();
2293 0 last;
2294 }
2295 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [type]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2296 . $_tok . q{]},
2297
2298 Parse::RecDescent::_tracefirst($text),
2299 q{type_definition},
2300 $tracelevel)
2301 if defined $::RD_TRACE;
2302 0 $item{q{type}} = $_tok;
2303 0 push @item, $_tok;
2304
2305 }
2306  
2307 0 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [domain]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2308 Parse::RecDescent::_tracefirst($text),
2309 q{type_definition},
2310 $tracelevel)
2311 if defined $::RD_TRACE;
2312 0 $expectation->is(q{domain})->at($text);
2313
2314 0 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::domain, 0, 1, $_noactions,$expectation,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::domain, 0, 1, $_noactions, $expectation, sub { \@arg; } ))) 0 0 0
2315 {
2316 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [domain]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2317 Parse::RecDescent::_tracefirst($text),
2318 q{type_definition},
2319 $tracelevel)
2320 if defined $::RD_TRACE;
2321 0 last;
2322 }
2323 0 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [domain]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2324 . @$_tok . q{ times)},
2325
2326 Parse::RecDescent::_tracefirst($text),
2327 q{type_definition},
2328 $tracelevel)
2329 if defined $::RD_TRACE;
2330 0 $item{q{domain(?)}} = $_tok;
2331 0 push @item, $_tok;
2332
2333  
2334  
2335 0 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [attribute]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2336 Parse::RecDescent::_tracefirst($text),
2337 q{type_definition},
2338 $tracelevel)
2339 if defined $::RD_TRACE;
2340 0 $expectation->is(q{attribute})->at($text);
2341
2342 0 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::attribute, 0, 100000000, $_noactions,$expectation,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::attribute, 0, 100000000, $_noactions, $expectation, sub { \@arg; } ))) 0 0 0
2343 {
2344 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [attribute]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2345 Parse::RecDescent::_tracefirst($text),
2346 q{type_definition},
2347 $tracelevel)
2348 if defined $::RD_TRACE;
2349 0 last;
2350 }
2351 0 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [attribute]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2352 . @$_tok . q{ times)},
2353
2354 Parse::RecDescent::_tracefirst($text),
2355 q{type_definition},
2356 $tracelevel)
2357 if defined $::RD_TRACE;
2358 0 $item{q{attribute(s?)}} = $_tok;
2359 0 push @item, $_tok;
2360
2361  
2362  
2363 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2364 Parse::RecDescent::_tracefirst($text),
2365 q{type_definition},
2366 $tracelevel)
2367 if defined $::RD_TRACE;
2368
2369  
2370 0 ▶ $_tok = ($_noactions) ? 0 : do {
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
2371 0 ['type', $item[3], $item[4], $item[5], $item[6]] };
2372 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
2373 {
2374 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2375 if defined $::RD_TRACE;
2376 0 last;
2377 }
2378 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2379 . $_tok . q{])},
2380 Parse::RecDescent::_tracefirst($text))
2381 if defined $::RD_TRACE;
2382 0 push @item, $_tok;
2383 0 $item{__ACTION1__}=$_tok;
2384
2385  
2386  
2387 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['type' <commit> type '=' type domain attribute]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2388 Parse::RecDescent::_tracefirst($text),
2389 q{type_definition},
2390 $tracelevel)
2391 if defined $::RD_TRACE;
2392 0 $_matched = 1;
2393 0 last;
2394 }
2395  
2396  
2397 39 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 39 0 39
2398 {
2399
2400 39 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2401 Parse::RecDescent::_tracefirst($_[1]),
2402 q{type_definition},
2403 $tracelevel)
2404 if defined $::RD_TRACE;
2405 39 my $thisprod = $thisrule->{"prods"}[1];
2406
2407 39 my $_savetext;
2408 39 @item = (q{type_definition});
2409 39 %item = (__RULE__ => q{type_definition});
2410 39 my $repcount = 0;
2411  
2412  
2413
2414  
2415 39 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2416 Parse::RecDescent::_tracefirst($text),
2417 q{type_definition},
2418 $tracelevel)
2419 if defined $::RD_TRACE;
2420 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 39 39
unless ($_noactions) 0 0 0
2421 0 my $rule = $item[0];
2422 0 $rule =~ s/_/ /g;
2423 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
2424 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
2425 0 } unless $_noactions; undef } else {0} };
2426 39 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 39 0 39
2427 {
2428 39 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2429 . $_tok . q{])},
2430 Parse::RecDescent::_tracefirst($text))
2431 if defined $::RD_TRACE;
2432 }
2433 else
2434 {
2435 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2436 Parse::RecDescent::_tracefirst($text))
2437 if defined $::RD_TRACE;
2438 }
2439
2440 39 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 39 39
2441 39 push @item, $item{__DIRECTIVE1__}=$_tok;
2442
2443  
2444 39 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2445 Parse::RecDescent::_tracefirst($text),
2446 q{type_definition},
2447 $tracelevel)
2448 if defined $::RD_TRACE;
2449 39 undef $return;
2450
2451  
2452 39 $_tok = undef;
2453
2454 39 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 39 0 39
2455  
2456  
2457 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2458 Parse::RecDescent::_tracefirst($text),
2459 q{type_definition},
2460 $tracelevel)
2461 if defined $::RD_TRACE;
2462 0 $_matched = 1;
2463 0 last;
2464 }
2465  
2466  
2467 39 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 39 0 39
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
0039
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
2468 {
2469
2470  
2471 39 $_[1] = $text; # NOT SURE THIS IS NEEDED
2472 39 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
2473 Parse::RecDescent::_tracefirst($_[1]),
2474 q{type_definition},
2475 $tracelevel)
2476 if defined $::RD_TRACE;
2477 39 return undef;
2478 }
2479 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
2480 {
2481 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2482 q{type_definition},
2483 $tracelevel)
2484 if defined $::RD_TRACE;
2485 0 $return = $score_return;
2486 }
2487 0 splice @{$thisparser->{errors}}, $err_at;
2488 0 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 0 0 0
2489 0 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 0 0
2490 {
2491 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2492 $return . q{])}, "",
2493 q{type_definition},
2494 $tracelevel);
2495 0 Parse::RecDescent::_trace(q{(consumed: [} .
2496 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2497 Parse::RecDescent::_tracefirst($text),
2498 , q{type_definition},
2499 $tracelevel)
2500 }
2501 0 $_[1] = $text;
2502 0 return $return;
2503 }
2504  
2505 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
2506 sub Parse::RecDescent::Cheater::Parser::string
2507 30 ▶{
Subroutine string: called CC=83 SCAR=68.4
2508 30 my $thisparser = $_[0];
2509 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2510 30 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
300
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
2511 30 $ERRORS = 0;
2512 30 my $thisrule = $thisparser->{"rules"}{"string"};
2513
2514 30 ▶ Parse::RecDescent::_trace(q{Trying rule: [string]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 30 30
2515 Parse::RecDescent::_tracefirst($_[1]),
2516 q{string},
2517 $tracelevel)
2518 if defined $::RD_TRACE;
2519  
2520
2521 30 my $err_at = @{$thisparser->{errors}};
2522  
2523 30 my $score;
2524 my $score_return;
2525 30 my $_tok;
2526 30 my $return = undef;
2527 30 my $_matched=0;
2528 30 my $commit=0;
2529 30 my @item = ();
2530 30 my %item = ();
2531 30 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0030
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
2532 30 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0300
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
2533 30 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 30 0 30
2534 30 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 30 0 30
2535 30 my $text;
2536 30 my $lastsep="";
2537 30 my $current_match;
2538 30 my $expectation = new Parse::RecDescent::Expectation(q{''', or '"'});
2539 30 $expectation->at($_[1]);
2540
2541 30 my $prevline;
2542 30 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
2543
2544 30 my $thisline;
2545 30 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2546  
2547
2548  
2549 30 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 30 0 30
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0030
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2550 {
2551
2552 30 ▶ Parse::RecDescent::_trace(q{Trying production: [''' <commit> /(?:[^']|\\\\.)*/ ''']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 30 30
2553 Parse::RecDescent::_tracefirst($_[1]),
2554 q{string},
2555 $tracelevel)
2556 if defined $::RD_TRACE;
2557 30 my $thisprod = $thisrule->{"prods"}[0];
2558 30 $text = $_[1];
2559 30 my $_savetext;
2560 30 @item = (q{string});
2561 30 %item = (__RULE__ => q{string});
2562 30 my $repcount = 0;
2563  
2564  
2565 30 ▶ Parse::RecDescent::_trace(q{Trying terminal: [''']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 30 30
2566 Parse::RecDescent::_tracefirst($text),
2567 q{string},
2568 $tracelevel)
2569 if defined $::RD_TRACE;
2570 30 $lastsep = "";
2571 30 $expectation->is(q{})->at($text);
2572
2573  
2574 30 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "'"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 21 9 30
Condition63%7/11
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
2109
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
0219
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 }
!ll&&!rl&&r
0030
($lastsep = $1) && ''
!ll
1416
MC/DC25%1/4
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e do { $_tok = "'"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table40%2/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= do { $_tok = "'"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
2575 substr($text,0,length($_tok)) eq $_tok and
2576 9 do { substr($text,0,length($_tok)) = ""; 1; }
2577 )
2578 {
2579
2580 21 $expectation->failed();
2581 21 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
2582 Parse::RecDescent::_tracefirst($text))
2583 if defined $::RD_TRACE;
2584 21 last;
2585 }
2586 9 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2587 . $_tok . q{])},
2588 Parse::RecDescent::_tracefirst($text))
2589 if defined $::RD_TRACE;
2590 9 push @item, $item{__STRING1__}=$_tok;
2591
2592  
2593
2594  
2595 9 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2596 Parse::RecDescent::_tracefirst($text),
2597 q{string},
2598 $tracelevel)
2599 if defined $::RD_TRACE;
2600 9 $_tok = do { $commit = 1 };
2601 9 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 9 0 9
2602 {
2603 9 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2604 . $_tok . q{])},
2605 Parse::RecDescent::_tracefirst($text))
2606 if defined $::RD_TRACE;
2607 }
2608 else
2609 {
2610 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2611 Parse::RecDescent::_tracefirst($text))
2612 if defined $::RD_TRACE;
2613 }
2614
2615 9 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 9 9
2616 9 push @item, $item{__DIRECTIVE1__}=$_tok;
2617
2618  
2619 9 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/(?:[^']|\\\\.)*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2620 q{string},
2621 $tracelevel)
2622 if defined $::RD_TRACE;
2623 9 $lastsep = "";
2624 9 $expectation->is(q{/(?:[^']|\\\\.)*/})->at($text);
2625
2626  
2627 9 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:[^']|\\.)*)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:[^']|\\.)*)/) 0 9 9
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:[^']|\\.)*)/
!ll&&!rl&&r
009
($lastsep = $1) && ''
!ll
90
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:[^']|\\.)*)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:(?:[^']|\\.)*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:(?:[^']|\\.)*)/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
2628 {
2629
2630 0 $expectation->failed();
2631 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2632 Parse::RecDescent::_tracefirst($text))
2633 if defined $::RD_TRACE;
2634  
2635 0 last;
2636 }
2637 9 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2638 9 substr($text,0,length($current_match),q{});
2639 9 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2640 . $current_match . q{])},
2641 Parse::RecDescent::_tracefirst($text))
2642 if defined $::RD_TRACE;
2643 9 push @item, $item{__PATTERN1__}=$current_match;
2644
2645  
2646 9 ▶ Parse::RecDescent::_trace(q{Trying terminal: [''']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2647 Parse::RecDescent::_tracefirst($text),
2648 q{string},
2649 $tracelevel)
2650 if defined $::RD_TRACE;
2651 9 $lastsep = "";
2652 9 $expectation->is(q{'''})->at($text);
2653
2654  
2655 9 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and do { $_tok = "'"; 1 } and
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }) 0 9 9
Condition36%4/11
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
!ll&&!rl&&r
009
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok
!ll&&!rl&&r
009
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 }
!ll&&!rl&&r
009
($lastsep = $1) && ''
!ll
90
MC/DC0%0/4
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and do { $_tok = "'"; 1 } and substr($text, 0, length $_tok) eq $_tok and do { substr($text, 0, length $_tok) = ""; 1 }
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e do { $_tok = "'"; 1 } substr($text, 0, length $_tok) eq $_tok do { substr($text, 0, length $_tok) = ""; 1 }
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table20%1/5
A and B and C and D
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= do { $_tok = "'"; 1 }C= substr($text, 0, length $_tok) eq $_tokD= do { substr($text, 0, length $_tok) = ""; 1 }
ABCDresult
0XXX0
10XX0
110X0
11100
11111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
2656 substr($text,0,length($_tok)) eq $_tok and
2657 9 do { substr($text,0,length($_tok)) = ""; 1; }
2658 )
2659 {
2660
2661 0 $expectation->failed();
2662 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2663 Parse::RecDescent::_tracefirst($text))
2664 if defined $::RD_TRACE;
2665 0 last;
2666 }
2667 9 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2668 . $_tok . q{])},
2669 Parse::RecDescent::_tracefirst($text))
2670 if defined $::RD_TRACE;
2671 9 push @item, $item{__STRING2__}=$_tok;
2672
2673  
2674 9 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2675 Parse::RecDescent::_tracefirst($text),
2676 q{string},
2677 $tracelevel)
2678 if defined $::RD_TRACE;
2679
2680  
2681 9 ▶ $_tok = ($_noactions) ? 0 : do { eval "'$item[3]'" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 9 9
2682 9 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 9 9
2683 {
2684 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2685 if defined $::RD_TRACE;
2686 0 last;
2687 }
2688 9 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2689 . $_tok . q{])},
2690 Parse::RecDescent::_tracefirst($text))
2691 if defined $::RD_TRACE;
2692 9 push @item, $_tok;
2693 9 $item{__ACTION1__}=$_tok;
2694
2695  
2696  
2697 9 ▶ Parse::RecDescent::_trace(q{>>Matched production: [''' <commit> /(?:[^']|\\\\.)*/ ''']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 9 9
2698 Parse::RecDescent::_tracefirst($text),
2699 q{string},
2700 $tracelevel)
2701 if defined $::RD_TRACE;
2702 9 $_matched = 1;
2703 9 last;
2704 }
2705  
2706  
2707 30 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 21 9 30
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
9021
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2708 {
2709
2710 21 ▶ Parse::RecDescent::_trace(q{Trying production: ['"' <commit> /(?:[^"]|\\\\.)*/ '"']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
2711 Parse::RecDescent::_tracefirst($_[1]),
2712 q{string},
2713 $tracelevel)
2714 if defined $::RD_TRACE;
2715 21 my $thisprod = $thisrule->{"prods"}[1];
2716 21 $text = $_[1];
2717 21 my $_savetext;
2718 21 @item = (q{string});
2719 21 %item = (__RULE__ => q{string});
2720 21 my $repcount = 0;
2721  
2722  
2723 21 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['"']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
2724 Parse::RecDescent::_tracefirst($text),
2725 q{string},
2726 $tracelevel)
2727 if defined $::RD_TRACE;
2728 21 $lastsep = "";
2729 21 $expectation->is(q{})->at($text);
2730
2731  
2732 21 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\"/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/) 21 0 21
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/
!ll&&!rl&&r
0210
($lastsep = $1) && ''
!ll
1011
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\"/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\"/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
2733 {
2734
2735 21 $expectation->failed();
2736 21 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
2737 Parse::RecDescent::_tracefirst($text))
2738 if defined $::RD_TRACE;
2739 21 last;
2740 }
2741 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2742 0 substr($text,0,length($current_match),q{});
2743 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2744 . $current_match . q{])},
2745 Parse::RecDescent::_tracefirst($text))
2746 if defined $::RD_TRACE;
2747 0 push @item, $item{__STRING1__}=$current_match;
2748
2749  
2750
2751  
2752 0 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2753 Parse::RecDescent::_tracefirst($text),
2754 q{string},
2755 $tracelevel)
2756 if defined $::RD_TRACE;
2757 0 $_tok = do { $commit = 1 };
2758 0 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 0 0
2759 {
2760 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2761 . $_tok . q{])},
2762 Parse::RecDescent::_tracefirst($text))
2763 if defined $::RD_TRACE;
2764 }
2765 else
2766 {
2767 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2768 Parse::RecDescent::_tracefirst($text))
2769 if defined $::RD_TRACE;
2770 }
2771
2772 0 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 0 0
2773 0 push @item, $item{__DIRECTIVE1__}=$_tok;
2774
2775  
2776 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/(?:[^"]|\\\\.)*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2777 q{string},
2778 $tracelevel)
2779 if defined $::RD_TRACE;
2780 0 $lastsep = "";
2781 0 $expectation->is(q{/(?:[^"]|\\\\.)*/})->at($text);
2782
2783  
2784 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:[^"]|\\.)*)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:[^"]|\\.)*)/) 0 0 0
Condition0%0/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:[^"]|\\.)*)/
!ll&&!rl&&r
000
($lastsep = $1) && ''
!ll
00
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:(?:[^"]|\\.)*)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:(?:[^"]|\\.)*)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:(?:[^"]|\\.)*)/
ABresult
0X0
100
111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
2785 {
2786
2787 0 $expectation->failed();
2788 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2789 Parse::RecDescent::_tracefirst($text))
2790 if defined $::RD_TRACE;
2791  
2792 0 last;
2793 }
2794 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2795 0 substr($text,0,length($current_match),q{});
2796 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2797 . $current_match . q{])},
2798 Parse::RecDescent::_tracefirst($text))
2799 if defined $::RD_TRACE;
2800 0 push @item, $item{__PATTERN1__}=$current_match;
2801
2802  
2803 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['"']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2804 Parse::RecDescent::_tracefirst($text),
2805 q{string},
2806 $tracelevel)
2807 if defined $::RD_TRACE;
2808 0 $lastsep = "";
2809 0 $expectation->is(q{'"'})->at($text);
2810
2811  
2812 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\"/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/) 0 0 0
Condition0%0/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/
!ll&&!rl&&r
000
($lastsep = $1) && ''
!ll
00
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\"/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\"/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\"/
ABresult
0X0
100
111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
2813 {
2814
2815 0 $expectation->failed();
2816 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2817 Parse::RecDescent::_tracefirst($text))
2818 if defined $::RD_TRACE;
2819 0 last;
2820 }
2821 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
2822 0 substr($text,0,length($current_match),q{});
2823 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2824 . $current_match . q{])},
2825 Parse::RecDescent::_tracefirst($text))
2826 if defined $::RD_TRACE;
2827 0 push @item, $item{__STRING2__}=$current_match;
2828
2829  
2830 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2831 Parse::RecDescent::_tracefirst($text),
2832 q{string},
2833 $tracelevel)
2834 if defined $::RD_TRACE;
2835
2836  
2837 0 ▶ $_tok = ($_noactions) ? 0 : do { eval qq{"$item[3]"} };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
2838 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
2839 {
2840 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2841 if defined $::RD_TRACE;
2842 0 last;
2843 }
2844 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2845 . $_tok . q{])},
2846 Parse::RecDescent::_tracefirst($text))
2847 if defined $::RD_TRACE;
2848 0 push @item, $_tok;
2849 0 $item{__ACTION1__}=$_tok;
2850
2851  
2852  
2853 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['"' <commit> /(?:[^"]|\\\\.)*/ '"']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2854 Parse::RecDescent::_tracefirst($text),
2855 q{string},
2856 $tracelevel)
2857 if defined $::RD_TRACE;
2858 0 $_matched = 1;
2859 0 last;
2860 }
2861  
2862  
2863 30 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 21 9 30
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
9021
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
2864 {
2865
2866  
2867 21 $_[1] = $text; # NOT SURE THIS IS NEEDED
2868 21 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
2869 Parse::RecDescent::_tracefirst($_[1]),
2870 q{string},
2871 $tracelevel)
2872 if defined $::RD_TRACE;
2873 21 return undef;
2874 }
2875 9 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 9 9
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
090
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
2876 {
2877 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
2878 q{string},
2879 $tracelevel)
2880 if defined $::RD_TRACE;
2881 0 $return = $score_return;
2882 }
2883 9 splice @{$thisparser->{errors}}, $err_at;
2884 9 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 9 0 9
2885 9 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 9 9
2886 {
2887 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2888 $return . q{])}, "",
2889 q{string},
2890 $tracelevel);
2891 0 Parse::RecDescent::_trace(q{(consumed: [} .
2892 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2893 Parse::RecDescent::_tracefirst($text),
2894 , q{string},
2895 $tracelevel)
2896 }
2897 9 $_[1] = $text;
2898 9 return $return;
2899 }
2900  
2901 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
2902 sub Parse::RecDescent::Cheater::Parser::datetime
2903 42 ▶{
Subroutine datetime: called CC=32 SCAR=39.9
2904 42 my $thisparser = $_[0];
2905 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
2906 42 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
420
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
2907 42 $ERRORS = 0;
2908 42 my $thisrule = $thisparser->{"rules"}{"datetime"};
2909
2910 42 ▶ Parse::RecDescent::_trace(q{Trying rule: [datetime]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 42 42
2911 Parse::RecDescent::_tracefirst($_[1]),
2912 q{datetime},
2913 $tracelevel)
2914 if defined $::RD_TRACE;
2915  
2916
2917 42 my $err_at = @{$thisparser->{errors}};
2918  
2919 42 my $score;
2920 my $score_return;
2921 42 my $_tok;
2922 42 my $return = undef;
2923 42 my $_matched=0;
2924 42 my $commit=0;
2925 42 my @item = ();
2926 42 my %item = ();
2927 42 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0042
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
2928 42 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0420
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
2929 42 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 42 0 42
2930 42 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 42 0 42
2931 42 my $text;
2932 42 my $lastsep="";
2933 42 my $current_match;
2934 42 my $expectation = new Parse::RecDescent::Expectation(q{date});
2935 42 $expectation->at($_[1]);
2936
2937 42 my $prevline;
2938 42 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
2939
2940 42 my $thisline;
2941 42 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2942  
2943
2944  
2945 42 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 42 0 42
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0042
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
2946 {
2947
2948 42 ▶ Parse::RecDescent::_trace(q{Trying production: [date time]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 42 42
2949 Parse::RecDescent::_tracefirst($_[1]),
2950 q{datetime},
2951 $tracelevel)
2952 if defined $::RD_TRACE;
2953 42 my $thisprod = $thisrule->{"prods"}[0];
2954 42 $text = $_[1];
2955 42 my $_savetext;
2956 42 @item = (q{datetime});
2957 42 %item = (__RULE__ => q{datetime});
2958 42 my $repcount = 0;
2959  
2960  
2961 42 ▶ Parse::RecDescent::_trace(q{Trying subrule: [date]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 42 42
2962 Parse::RecDescent::_tracefirst($text),
2963 q{datetime},
2964 $tracelevel)
2965 if defined $::RD_TRACE;
2966 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2967 42 $expectation->is(q{})->at($text);
2968 42 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::date($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = date($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 38 4 42
2969 {
2970
2971 38 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [date]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
2972 Parse::RecDescent::_tracefirst($text),
2973 q{datetime},
2974 $tracelevel)
2975 if defined $::RD_TRACE;
2976 38 $expectation->failed();
2977 38 last;
2978 }
2979 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [date]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
2980 . $_tok . q{]},
2981
2982 Parse::RecDescent::_tracefirst($text),
2983 q{datetime},
2984 $tracelevel)
2985 if defined $::RD_TRACE;
2986 4 $item{q{date}} = $_tok;
2987 4 push @item, $_tok;
2988
2989 }
2990  
2991 4 ▶ Parse::RecDescent::_trace(q{Trying subrule: [time]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
2992 Parse::RecDescent::_tracefirst($text),
2993 q{datetime},
2994 $tracelevel)
2995 if defined $::RD_TRACE;
2996 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
2997 4 $expectation->is(q{time})->at($text);
2998 4 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::time($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = Parse::RecDescent::Cheater::Parser::time($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 4 4
2999 {
3000
3001 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [time]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3002 Parse::RecDescent::_tracefirst($text),
3003 q{datetime},
3004 $tracelevel)
3005 if defined $::RD_TRACE;
3006 0 $expectation->failed();
3007 0 last;
3008 }
3009 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [time]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
3010 . $_tok . q{]},
3011
3012 Parse::RecDescent::_tracefirst($text),
3013 q{datetime},
3014 $tracelevel)
3015 if defined $::RD_TRACE;
3016 4 $item{q{time}} = $_tok;
3017 4 push @item, $_tok;
3018
3019 }
3020  
3021 4 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
3022 Parse::RecDescent::_tracefirst($text),
3023 q{datetime},
3024 $tracelevel)
3025 if defined $::RD_TRACE;
3026
3027  
3028 4 ▶ $_tok = ($_noactions) ? 0 : do { "$item[1] $item[2]" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 4 4
3029 4 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 4 4
3030 {
3031 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3032 if defined $::RD_TRACE;
3033 0 last;
3034 }
3035 4 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
3036 . $_tok . q{])},
3037 Parse::RecDescent::_tracefirst($text))
3038 if defined $::RD_TRACE;
3039 4 push @item, $_tok;
3040 4 $item{__ACTION1__}=$_tok;
3041
3042  
3043  
3044 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: [date time]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
3045 Parse::RecDescent::_tracefirst($text),
3046 q{datetime},
3047 $tracelevel)
3048 if defined $::RD_TRACE;
3049 4 $_matched = 1;
3050 4 last;
3051 }
3052  
3053  
3054 42 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 38 4 42
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
4038
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
3055 {
3056
3057  
3058 38 $_[1] = $text; # NOT SURE THIS IS NEEDED
3059 38 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
3060 Parse::RecDescent::_tracefirst($_[1]),
3061 q{datetime},
3062 $tracelevel)
3063 if defined $::RD_TRACE;
3064 38 return undef;
3065 }
3066 4 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 4 4
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
040
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
3067 {
3068 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3069 q{datetime},
3070 $tracelevel)
3071 if defined $::RD_TRACE;
3072 0 $return = $score_return;
3073 }
3074 4 splice @{$thisparser->{errors}}, $err_at;
3075 4 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 4 0 4
3076 4 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 4 4
3077 {
3078 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3079 $return . q{])}, "",
3080 q{datetime},
3081 $tracelevel);
3082 0 Parse::RecDescent::_trace(q{(consumed: [} .
3083 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3084 Parse::RecDescent::_tracefirst($text),
3085 , q{datetime},
3086 $tracelevel)
3087 }
3088 4 $_[1] = $text;
3089 4 return $return;
3090 }
3091  
3092 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
3093 sub Parse::RecDescent::Cheater::Parser::attribute
3094 60 ▶{
Subroutine attribute: called CC=112 SCAR=59.7
3095 60 my $thisparser = $_[0];
3096 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3097 60 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
600
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
3098 60 $ERRORS = 0;
3099 60 my $thisrule = $thisparser->{"rules"}{"attribute"};
3100
3101 60 ▶ Parse::RecDescent::_trace(q{Trying rule: [attribute]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 60 60
3102 Parse::RecDescent::_tracefirst($_[1]),
3103 q{attribute},
3104 $tracelevel)
3105 if defined $::RD_TRACE;
3106  
3107
3108 60 my $err_at = @{$thisparser->{errors}};
3109  
3110 60 my $score;
3111 my $score_return;
3112 60 my $_tok;
3113 60 my $return = undef;
3114 60 my $_matched=0;
3115 60 my $commit=0;
3116 60 my @item = ();
3117 60 my %item = ();
3118 60 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0060
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
3119 60 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0600
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
3120 60 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 60 0 60
3121 60 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 60 0 60
3122 60 my $text;
3123 60 my $lastsep="";
3124 60 my $current_match;
3125 60 my $expectation = new Parse::RecDescent::Expectation(q{'unique', or 'unsigned', or 'asc', or 'desc', or 'not', or 'for'});
3126 60 $expectation->at($_[1]);
3127
3128 60 my $prevline;
3129 60 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
3130
3131 60 my $thisline;
3132 60 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3133  
3134
3135  
3136 60 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 60 0 60
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0060
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3137 {
3138
3139 60 ▶ Parse::RecDescent::_trace(q{Trying production: ['unique']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 60 60
3140 Parse::RecDescent::_tracefirst($_[1]),
3141 q{attribute},
3142 $tracelevel)
3143 if defined $::RD_TRACE;
3144 60 my $thisprod = $thisrule->{"prods"}[0];
3145 60 $text = $_[1];
3146 60 my $_savetext;
3147 60 @item = (q{attribute});
3148 60 %item = (__RULE__ => q{attribute});
3149 60 my $repcount = 0;
3150  
3151  
3152 60 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['unique']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 60 60
3153 Parse::RecDescent::_tracefirst($text),
3154 q{attribute},
3155 $tracelevel)
3156 if defined $::RD_TRACE;
3157 60 $lastsep = "";
3158 60 $expectation->is(q{})->at($text);
3159
3160  
3161 60 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aunique/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aunique/) 57 3 60
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aunique/
!ll&&!rl&&r
0573
($lastsep = $1) && ''
!ll
3327
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aunique/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Aunique/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aunique/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
3162 {
3163
3164 57 $expectation->failed();
3165 57 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 57 57
3166 Parse::RecDescent::_tracefirst($text))
3167 if defined $::RD_TRACE;
3168 57 last;
3169 }
3170 3 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3171 3 substr($text,0,length($current_match),q{});
3172 3 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
3173 . $current_match . q{])},
3174 Parse::RecDescent::_tracefirst($text))
3175 if defined $::RD_TRACE;
3176 3 push @item, $item{__STRING1__}=$current_match;
3177
3178  
3179  
3180 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['unique']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
3181 Parse::RecDescent::_tracefirst($text),
3182 q{attribute},
3183 $tracelevel)
3184 if defined $::RD_TRACE;
3185 3 $_matched = 1;
3186 3 last;
3187 }
3188  
3189  
3190 60 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 57 3 60
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
3057
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3191 {
3192
3193 57 ▶ Parse::RecDescent::_trace(q{Trying production: ['unsigned']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 57 57
3194 Parse::RecDescent::_tracefirst($_[1]),
3195 q{attribute},
3196 $tracelevel)
3197 if defined $::RD_TRACE;
3198 57 my $thisprod = $thisrule->{"prods"}[1];
3199 57 $text = $_[1];
3200 57 my $_savetext;
3201 57 @item = (q{attribute});
3202 57 %item = (__RULE__ => q{attribute});
3203 57 my $repcount = 0;
3204  
3205  
3206 57 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['unsigned']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 57 57
3207 Parse::RecDescent::_tracefirst($text),
3208 q{attribute},
3209 $tracelevel)
3210 if defined $::RD_TRACE;
3211 57 $lastsep = "";
3212 57 $expectation->is(q{})->at($text);
3213
3214  
3215 57 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aunsigned/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aunsigned/) 57 0 57
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aunsigned/
!ll&&!rl&&r
0570
($lastsep = $1) && ''
!ll
3324
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aunsigned/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Aunsigned/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aunsigned/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
3216 {
3217
3218 57 $expectation->failed();
3219 57 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 57 57
3220 Parse::RecDescent::_tracefirst($text))
3221 if defined $::RD_TRACE;
3222 57 last;
3223 }
3224 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3225 0 substr($text,0,length($current_match),q{});
3226 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3227 . $current_match . q{])},
3228 Parse::RecDescent::_tracefirst($text))
3229 if defined $::RD_TRACE;
3230 0 push @item, $item{__STRING1__}=$current_match;
3231
3232  
3233  
3234 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['unsigned']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3235 Parse::RecDescent::_tracefirst($text),
3236 q{attribute},
3237 $tracelevel)
3238 if defined $::RD_TRACE;
3239 0 $_matched = 1;
3240 0 last;
3241 }
3242  
3243  
3244 60 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 57 3 60
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
3057
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3245 {
3246
3247 57 ▶ Parse::RecDescent::_trace(q{Trying production: ['asc']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 57 57
3248 Parse::RecDescent::_tracefirst($_[1]),
3249 q{attribute},
3250 $tracelevel)
3251 if defined $::RD_TRACE;
3252 57 my $thisprod = $thisrule->{"prods"}[2];
3253 57 $text = $_[1];
3254 57 my $_savetext;
3255 57 @item = (q{attribute});
3256 57 %item = (__RULE__ => q{attribute});
3257 57 my $repcount = 0;
3258  
3259  
3260 57 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['asc']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 57 57
3261 Parse::RecDescent::_tracefirst($text),
3262 q{attribute},
3263 $tracelevel)
3264 if defined $::RD_TRACE;
3265 57 $lastsep = "";
3266 57 $expectation->is(q{})->at($text);
3267
3268  
3269 57 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Aasc/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aasc/) 54 3 57
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aasc/
!ll&&!rl&&r
0543
($lastsep = $1) && ''
!ll
3324
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Aasc/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Aasc/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Aasc/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
3270 {
3271
3272 54 $expectation->failed();
3273 54 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 54 54
3274 Parse::RecDescent::_tracefirst($text))
3275 if defined $::RD_TRACE;
3276 54 last;
3277 }
3278 3 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3279 3 substr($text,0,length($current_match),q{});
3280 3 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
3281 . $current_match . q{])},
3282 Parse::RecDescent::_tracefirst($text))
3283 if defined $::RD_TRACE;
3284 3 push @item, $item{__STRING1__}=$current_match;
3285
3286  
3287  
3288 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['asc']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
3289 Parse::RecDescent::_tracefirst($text),
3290 q{attribute},
3291 $tracelevel)
3292 if defined $::RD_TRACE;
3293 3 $_matched = 1;
3294 3 last;
3295 }
3296  
3297  
3298 60 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 54 6 60
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
6054
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3299 {
3300
3301 54 ▶ Parse::RecDescent::_trace(q{Trying production: ['desc']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 54 54
3302 Parse::RecDescent::_tracefirst($_[1]),
3303 q{attribute},
3304 $tracelevel)
3305 if defined $::RD_TRACE;
3306 54 my $thisprod = $thisrule->{"prods"}[3];
3307 54 $text = $_[1];
3308 54 my $_savetext;
3309 54 @item = (q{attribute});
3310 54 %item = (__RULE__ => q{attribute});
3311 54 my $repcount = 0;
3312  
3313  
3314 54 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['desc']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 54 54
3315 Parse::RecDescent::_tracefirst($text),
3316 q{attribute},
3317 $tracelevel)
3318 if defined $::RD_TRACE;
3319 54 $lastsep = "";
3320 54 $expectation->is(q{})->at($text);
3321
3322  
3323 54 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Adesc/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Adesc/) 51 3 54
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Adesc/
!ll&&!rl&&r
0513
($lastsep = $1) && ''
!ll
3321
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Adesc/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Adesc/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Adesc/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
3324 {
3325
3326 51 $expectation->failed();
3327 51 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 51 51
3328 Parse::RecDescent::_tracefirst($text))
3329 if defined $::RD_TRACE;
3330 51 last;
3331 }
3332 3 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3333 3 substr($text,0,length($current_match),q{});
3334 3 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
3335 . $current_match . q{])},
3336 Parse::RecDescent::_tracefirst($text))
3337 if defined $::RD_TRACE;
3338 3 push @item, $item{__STRING1__}=$current_match;
3339
3340  
3341  
3342 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['desc']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
3343 Parse::RecDescent::_tracefirst($text),
3344 q{attribute},
3345 $tracelevel)
3346 if defined $::RD_TRACE;
3347 3 $_matched = 1;
3348 3 last;
3349 }
3350  
3351  
3352 60 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 51 9 60
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
9051
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3353 {
3354
3355 51 ▶ Parse::RecDescent::_trace(q{Trying production: ['not' <commit> 'null']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 51 51
3356 Parse::RecDescent::_tracefirst($_[1]),
3357 q{attribute},
3358 $tracelevel)
3359 if defined $::RD_TRACE;
3360 51 my $thisprod = $thisrule->{"prods"}[4];
3361 51 $text = $_[1];
3362 51 my $_savetext;
3363 51 @item = (q{attribute});
3364 51 %item = (__RULE__ => q{attribute});
3365 51 my $repcount = 0;
3366  
3367  
3368 51 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['not']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 51 51
3369 Parse::RecDescent::_tracefirst($text),
3370 q{attribute},
3371 $tracelevel)
3372 if defined $::RD_TRACE;
3373 51 $lastsep = "";
3374 51 $expectation->is(q{})->at($text);
3375
3376  
3377 51 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Anot/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Anot/) 34 17 51
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Anot/
!ll&&!rl&&r
03417
($lastsep = $1) && ''
!ll
3318
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Anot/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Anot/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Anot/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
3378 {
3379
3380 34 $expectation->failed();
3381 34 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
3382 Parse::RecDescent::_tracefirst($text))
3383 if defined $::RD_TRACE;
3384 34 last;
3385 }
3386 17 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3387 17 substr($text,0,length($current_match),q{});
3388 17 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
3389 . $current_match . q{])},
3390 Parse::RecDescent::_tracefirst($text))
3391 if defined $::RD_TRACE;
3392 17 push @item, $item{__STRING1__}=$current_match;
3393
3394  
3395
3396  
3397 17 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
3398 Parse::RecDescent::_tracefirst($text),
3399 q{attribute},
3400 $tracelevel)
3401 if defined $::RD_TRACE;
3402 17 $_tok = do { $commit = 1 };
3403 17 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 17 0 17
3404 {
3405 17 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
3406 . $_tok . q{])},
3407 Parse::RecDescent::_tracefirst($text))
3408 if defined $::RD_TRACE;
3409 }
3410 else
3411 {
3412 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3413 Parse::RecDescent::_tracefirst($text))
3414 if defined $::RD_TRACE;
3415 }
3416
3417 17 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 17 17
3418 17 push @item, $item{__DIRECTIVE1__}=$_tok;
3419
3420  
3421 17 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['null']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
3422 Parse::RecDescent::_tracefirst($text),
3423 q{attribute},
3424 $tracelevel)
3425 if defined $::RD_TRACE;
3426 17 $lastsep = "";
3427 17 $expectation->is(q{'null'})->at($text);
3428
3429  
3430 17 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Anull/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Anull/) 0 17 17
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Anull/
!ll&&!rl&&r
0017
($lastsep = $1) && ''
!ll
017
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Anull/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Anull/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Anull/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
3431 {
3432
3433 0 $expectation->failed();
3434 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3435 Parse::RecDescent::_tracefirst($text))
3436 if defined $::RD_TRACE;
3437 0 last;
3438 }
3439 17 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3440 17 substr($text,0,length($current_match),q{});
3441 17 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
3442 . $current_match . q{])},
3443 Parse::RecDescent::_tracefirst($text))
3444 if defined $::RD_TRACE;
3445 17 push @item, $item{__STRING2__}=$current_match;
3446
3447  
3448 17 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
3449 Parse::RecDescent::_tracefirst($text),
3450 q{attribute},
3451 $tracelevel)
3452 if defined $::RD_TRACE;
3453
3454  
3455 17 ▶ $_tok = ($_noactions) ? 0 : do { "$item[1] $item[3]" };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 17 17
3456 17 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 17 17
3457 {
3458 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3459 if defined $::RD_TRACE;
3460 0 last;
3461 }
3462 17 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
3463 . $_tok . q{])},
3464 Parse::RecDescent::_tracefirst($text))
3465 if defined $::RD_TRACE;
3466 17 push @item, $_tok;
3467 17 $item{__ACTION1__}=$_tok;
3468
3469  
3470  
3471 17 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['not' <commit> 'null']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 17 17
3472 Parse::RecDescent::_tracefirst($text),
3473 q{attribute},
3474 $tracelevel)
3475 if defined $::RD_TRACE;
3476 17 $_matched = 1;
3477 17 last;
3478 }
3479  
3480  
3481 60 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 34 26 60
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
26034
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3482 {
3483
3484 34 ▶ Parse::RecDescent::_trace(q{Trying production: ['for' string]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
3485 Parse::RecDescent::_tracefirst($_[1]),
3486 q{attribute},
3487 $tracelevel)
3488 if defined $::RD_TRACE;
3489 34 my $thisprod = $thisrule->{"prods"}[5];
3490 34 $text = $_[1];
3491 34 my $_savetext;
3492 34 @item = (q{attribute});
3493 34 %item = (__RULE__ => q{attribute});
3494 34 my $repcount = 0;
3495  
3496  
3497 34 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['for']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
3498 Parse::RecDescent::_tracefirst($text),
3499 q{attribute},
3500 $tracelevel)
3501 if defined $::RD_TRACE;
3502 34 $lastsep = "";
3503 34 $expectation->is(q{})->at($text);
3504
3505  
3506 34 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Afor/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Afor/) 33 1 34
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Afor/
!ll&&!rl&&r
0331
($lastsep = $1) && ''
!ll
331
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Afor/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Afor/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Afor/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
3507 {
3508
3509 33 $expectation->failed();
3510 33 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3511 Parse::RecDescent::_tracefirst($text))
3512 if defined $::RD_TRACE;
3513 33 last;
3514 }
3515 1 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3516 1 substr($text,0,length($current_match),q{});
3517 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
3518 . $current_match . q{])},
3519 Parse::RecDescent::_tracefirst($text))
3520 if defined $::RD_TRACE;
3521 1 push @item, $item{__STRING1__}=$current_match;
3522
3523  
3524 1 ▶ Parse::RecDescent::_trace(q{Trying subrule: [string]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
3525 Parse::RecDescent::_tracefirst($text),
3526 q{attribute},
3527 $tracelevel)
3528 if defined $::RD_TRACE;
3529 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3530 1 $expectation->is(q{string})->at($text);
3531 1 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::string($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = string($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 1 1
3532 {
3533
3534 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [string]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3535 Parse::RecDescent::_tracefirst($text),
3536 q{attribute},
3537 $tracelevel)
3538 if defined $::RD_TRACE;
3539 0 $expectation->failed();
3540 0 last;
3541 }
3542 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [string]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
3543 . $_tok . q{]},
3544
3545 Parse::RecDescent::_tracefirst($text),
3546 q{attribute},
3547 $tracelevel)
3548 if defined $::RD_TRACE;
3549 1 $item{q{string}} = $_tok;
3550 1 push @item, $_tok;
3551
3552 }
3553  
3554 1 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
3555 Parse::RecDescent::_tracefirst($text),
3556 q{attribute},
3557 $tracelevel)
3558 if defined $::RD_TRACE;
3559
3560  
3561 1 ▶ $_tok = ($_noactions) ? 0 : do { ['for', $item{string}] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 1 1
3562 1 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 1 1
3563 {
3564 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3565 if defined $::RD_TRACE;
3566 0 last;
3567 }
3568 1 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
3569 . $_tok . q{])},
3570 Parse::RecDescent::_tracefirst($text))
3571 if defined $::RD_TRACE;
3572 1 push @item, $_tok;
3573 1 $item{__ACTION1__}=$_tok;
3574
3575  
3576  
3577 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['for' string]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
3578 Parse::RecDescent::_tracefirst($text),
3579 q{attribute},
3580 $tracelevel)
3581 if defined $::RD_TRACE;
3582 1 $_matched = 1;
3583 1 last;
3584 }
3585  
3586  
3587 60 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 33 27 60
3588 {
3589
3590 33 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3591 Parse::RecDescent::_tracefirst($_[1]),
3592 q{attribute},
3593 $tracelevel)
3594 if defined $::RD_TRACE;
3595 33 my $thisprod = $thisrule->{"prods"}[6];
3596
3597 33 my $_savetext;
3598 33 @item = (q{attribute});
3599 33 %item = (__RULE__ => q{attribute});
3600 33 my $repcount = 0;
3601  
3602  
3603
3604  
3605 33 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3606 Parse::RecDescent::_tracefirst($text),
3607 q{attribute},
3608 $tracelevel)
3609 if defined $::RD_TRACE;
3610 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 33 33
unless ($_noactions) 0 0 0
3611 0 my $rule = $item[0];
3612 0 $rule =~ s/_/ /g;
3613 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
3614 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
3615 0 } unless $_noactions; undef } else {0} };
3616 33 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 33 0 33
3617 {
3618 33 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3619 . $_tok . q{])},
3620 Parse::RecDescent::_tracefirst($text))
3621 if defined $::RD_TRACE;
3622 }
3623 else
3624 {
3625 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3626 Parse::RecDescent::_tracefirst($text))
3627 if defined $::RD_TRACE;
3628 }
3629
3630 33 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 33 33
3631 33 push @item, $item{__DIRECTIVE1__}=$_tok;
3632
3633  
3634 33 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3635 Parse::RecDescent::_tracefirst($text),
3636 q{attribute},
3637 $tracelevel)
3638 if defined $::RD_TRACE;
3639 33 undef $return;
3640
3641  
3642 33 $_tok = undef;
3643
3644 33 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 33 0 33
3645  
3646  
3647 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3648 Parse::RecDescent::_tracefirst($text),
3649 q{attribute},
3650 $tracelevel)
3651 if defined $::RD_TRACE;
3652 0 $_matched = 1;
3653 0 last;
3654 }
3655  
3656  
3657 60 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 33 27 60
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
27033
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
3658 {
3659
3660  
3661 33 $_[1] = $text; # NOT SURE THIS IS NEEDED
3662 33 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3663 Parse::RecDescent::_tracefirst($_[1]),
3664 q{attribute},
3665 $tracelevel)
3666 if defined $::RD_TRACE;
3667 33 return undef;
3668 }
3669 27 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 27 27
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0270
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
3670 {
3671 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3672 q{attribute},
3673 $tracelevel)
3674 if defined $::RD_TRACE;
3675 0 $return = $score_return;
3676 }
3677 27 splice @{$thisparser->{errors}}, $err_at;
3678 27 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 27 0 27
3679 27 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 27 27
3680 {
3681 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3682 $return . q{])}, "",
3683 q{attribute},
3684 $tracelevel);
3685 0 Parse::RecDescent::_trace(q{(consumed: [} .
3686 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3687 Parse::RecDescent::_tracefirst($text),
3688 , q{attribute},
3689 $tracelevel)
3690 }
3691 27 $_[1] = $text;
3692 27 return $return;
3693 }
3694  
3695 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
3696 sub Parse::RecDescent::Cheater::Parser::identifier
3697 300 ▶{
Subroutine identifier: called CC=25 SCAR=35.2
3698 300 my $thisparser = $_[0];
3699 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3700 300 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
3000
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
3701 300 $ERRORS = 0;
3702 300 my $thisrule = $thisparser->{"rules"}{"identifier"};
3703
3704 300 ▶ Parse::RecDescent::_trace(q{Trying rule: [identifier]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 300 300
3705 Parse::RecDescent::_tracefirst($_[1]),
3706 q{identifier},
3707 $tracelevel)
3708 if defined $::RD_TRACE;
3709  
3710
3711 300 my $err_at = @{$thisparser->{errors}};
3712  
3713 300 my $score;
3714 my $score_return;
3715 300 my $_tok;
3716 300 my $return = undef;
3717 300 my $_matched=0;
3718 300 my $commit=0;
3719 300 my @item = ();
3720 300 my %item = ();
3721 300 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
00300
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
3722 300 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
03000
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
3723 300 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 300 0 300
3724 300 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 300 0 300
3725 300 my $text;
3726 300 my $lastsep="";
3727 300 my $current_match;
3728 300 my $expectation = new Parse::RecDescent::Expectation(q{/[A-Za-z]\\w*/});
3729 300 $expectation->at($_[1]);
3730
3731 300 my $prevline;
3732 300 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
3733
3734 300 my $thisline;
3735 300 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3736  
3737
3738  
3739 300 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 300 0 300
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00300
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3740 {
3741
3742 300 ▶ Parse::RecDescent::_trace(q{Trying production: [/[A-Za-z]\\w*/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 300 300
3743 Parse::RecDescent::_tracefirst($_[1]),
3744 q{identifier},
3745 $tracelevel)
3746 if defined $::RD_TRACE;
3747 300 my $thisprod = $thisrule->{"prods"}[0];
3748 300 $text = $_[1];
3749 300 my $_savetext;
3750 300 @item = (q{identifier});
3751 300 %item = (__RULE__ => q{identifier});
3752 300 my $repcount = 0;
3753  
3754  
3755 300 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/[A-Za-z]\\w*/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 300 300
3756 q{identifier},
3757 $tracelevel)
3758 if defined $::RD_TRACE;
3759 300 $lastsep = "";
3760 300 $expectation->is(q{})->at($text);
3761
3762  
3763 300 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[A-Za-z]\w*)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Za-z]\w*)/) 131 169 300
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Za-z]\w*)/
!ll&&!rl&&r
0131169
($lastsep = $1) && ''
!ll
5295
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:[A-Za-z]\w*)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:[A-Za-z]\w*)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:[A-Za-z]\w*)/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
3764 {
3765
3766 131 $expectation->failed();
3767 131 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 131 131
3768 Parse::RecDescent::_tracefirst($text))
3769 if defined $::RD_TRACE;
3770  
3771 131 last;
3772 }
3773 169 $current_match = substr($text, $-[0], $+[0] - $-[0]);
3774 169 substr($text,0,length($current_match),q{});
3775 169 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 169 169
3776 . $current_match . q{])},
3777 Parse::RecDescent::_tracefirst($text))
3778 if defined $::RD_TRACE;
3779 169 push @item, $item{__PATTERN1__}=$current_match;
3780
3781  
3782  
3783 169 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/[A-Za-z]\\w*/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 169 169
3784 Parse::RecDescent::_tracefirst($text),
3785 q{identifier},
3786 $tracelevel)
3787 if defined $::RD_TRACE;
3788 169 $_matched = 1;
3789 169 last;
3790 }
3791  
3792  
3793 300 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 131 169 300
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
1690131
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
3794 {
3795
3796  
3797 131 $_[1] = $text; # NOT SURE THIS IS NEEDED
3798 131 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 131 131
3799 Parse::RecDescent::_tracefirst($_[1]),
3800 q{identifier},
3801 $tracelevel)
3802 if defined $::RD_TRACE;
3803 131 return undef;
3804 }
3805 169 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 169 169
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
01690
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
3806 {
3807 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3808 q{identifier},
3809 $tracelevel)
3810 if defined $::RD_TRACE;
3811 0 $return = $score_return;
3812 }
3813 169 splice @{$thisparser->{errors}}, $err_at;
3814 169 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 169 0 169
3815 169 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 169 169
3816 {
3817 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3818 $return . q{])}, "",
3819 q{identifier},
3820 $tracelevel);
3821 0 Parse::RecDescent::_trace(q{(consumed: [} .
3822 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3823 Parse::RecDescent::_tracefirst($text),
3824 , q{identifier},
3825 $tracelevel)
3826 }
3827 169 $_[1] = $text;
3828 169 return $return;
3829 }
3830  
3831 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
3832 sub Parse::RecDescent::Cheater::Parser::domain
3833 33 ▶{
Subroutine domain: called CC=36 SCAR=39.7
3834 33 my $thisparser = $_[0];
3835 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
3836 33 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
330
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
3837 33 $ERRORS = 0;
3838 33 my $thisrule = $thisparser->{"rules"}{"domain"};
3839
3840 33 ▶ Parse::RecDescent::_trace(q{Trying rule: [domain]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3841 Parse::RecDescent::_tracefirst($_[1]),
3842 q{domain},
3843 $tracelevel)
3844 if defined $::RD_TRACE;
3845  
3846
3847 33 my $err_at = @{$thisparser->{errors}};
3848  
3849 33 my $score;
3850 my $score_return;
3851 33 my $_tok;
3852 33 my $return = undef;
3853 33 my $_matched=0;
3854 33 my $commit=0;
3855 33 my @item = ();
3856 33 my %item = ();
3857 33 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0033
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
3858 33 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0330
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
3859 33 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 33 0 33
3860 33 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 33 0 33
3861 33 my $text;
3862 33 my $lastsep="";
3863 33 my $current_match;
3864 33 my $expectation = new Parse::RecDescent::Expectation(q{enum, or atom});
3865 33 $expectation->at($_[1]);
3866
3867 33 my $prevline;
3868 33 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
3869
3870 33 my $thisline;
3871 33 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3872  
3873
3874  
3875 33 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 33 0 33
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0033
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3876 {
3877
3878 33 ▶ Parse::RecDescent::_trace(q{Trying production: [enum]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3879 Parse::RecDescent::_tracefirst($_[1]),
3880 q{domain},
3881 $tracelevel)
3882 if defined $::RD_TRACE;
3883 33 my $thisprod = $thisrule->{"prods"}[0];
3884 33 $text = $_[1];
3885 33 my $_savetext;
3886 33 @item = (q{domain});
3887 33 %item = (__RULE__ => q{domain});
3888 33 my $repcount = 0;
3889  
3890  
3891 33 ▶ Parse::RecDescent::_trace(q{Trying subrule: [enum]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
3892 Parse::RecDescent::_tracefirst($text),
3893 q{domain},
3894 $tracelevel)
3895 if defined $::RD_TRACE;
3896 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3897 33 $expectation->is(q{})->at($text);
3898 33 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::enum($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = enum($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 29 4 33
3899 {
3900
3901 29 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [enum]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
3902 Parse::RecDescent::_tracefirst($text),
3903 q{domain},
3904 $tracelevel)
3905 if defined $::RD_TRACE;
3906 29 $expectation->failed();
3907 29 last;
3908 }
3909 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [enum]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
3910 . $_tok . q{]},
3911
3912 Parse::RecDescent::_tracefirst($text),
3913 q{domain},
3914 $tracelevel)
3915 if defined $::RD_TRACE;
3916 4 $item{q{enum}} = $_tok;
3917 4 push @item, $_tok;
3918
3919 }
3920  
3921  
3922 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: [enum]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
3923 Parse::RecDescent::_tracefirst($text),
3924 q{domain},
3925 $tracelevel)
3926 if defined $::RD_TRACE;
3927 4 $_matched = 1;
3928 4 last;
3929 }
3930  
3931  
3932 33 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 29 4 33
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
4029
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
3933 {
3934
3935 29 ▶ Parse::RecDescent::_trace(q{Trying production: [atom]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
3936 Parse::RecDescent::_tracefirst($_[1]),
3937 q{domain},
3938 $tracelevel)
3939 if defined $::RD_TRACE;
3940 29 my $thisprod = $thisrule->{"prods"}[1];
3941 29 $text = $_[1];
3942 29 my $_savetext;
3943 29 @item = (q{domain});
3944 29 %item = (__RULE__ => q{domain});
3945 29 my $repcount = 0;
3946  
3947  
3948 29 ▶ Parse::RecDescent::_trace(q{Trying subrule: [atom]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
3949 Parse::RecDescent::_tracefirst($text),
3950 q{domain},
3951 $tracelevel)
3952 if defined $::RD_TRACE;
3953 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
3954 29 $expectation->is(q{})->at($text);
3955 29 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::atom($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = atom($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 21 8 29
3956 {
3957
3958 21 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [atom]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
3959 Parse::RecDescent::_tracefirst($text),
3960 q{domain},
3961 $tracelevel)
3962 if defined $::RD_TRACE;
3963 21 $expectation->failed();
3964 21 last;
3965 }
3966 8 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [atom]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3967 . $_tok . q{]},
3968
3969 Parse::RecDescent::_tracefirst($text),
3970 q{domain},
3971 $tracelevel)
3972 if defined $::RD_TRACE;
3973 8 $item{q{atom}} = $_tok;
3974 8 push @item, $_tok;
3975
3976 }
3977  
3978 8 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3979 Parse::RecDescent::_tracefirst($text),
3980 q{domain},
3981 $tracelevel)
3982 if defined $::RD_TRACE;
3983
3984  
3985 8 ▶ $_tok = ($_noactions) ? 0 : do { [ $item[1] ] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 8 8
3986 8 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 8 8
3987 {
3988 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
3989 if defined $::RD_TRACE;
3990 0 last;
3991 }
3992 8 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
3993 . $_tok . q{])},
3994 Parse::RecDescent::_tracefirst($text))
3995 if defined $::RD_TRACE;
3996 8 push @item, $_tok;
3997 8 $item{__ACTION1__}=$_tok;
3998
3999  
4000  
4001 8 ▶ Parse::RecDescent::_trace(q{>>Matched production: [atom]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 8 8
4002 Parse::RecDescent::_tracefirst($text),
4003 q{domain},
4004 $tracelevel)
4005 if defined $::RD_TRACE;
4006 8 $_matched = 1;
4007 8 last;
4008 }
4009  
4010  
4011 33 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 21 12 33
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
12021
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
4012 {
4013
4014  
4015 21 $_[1] = $text; # NOT SURE THIS IS NEEDED
4016 21 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
4017 Parse::RecDescent::_tracefirst($_[1]),
4018 q{domain},
4019 $tracelevel)
4020 if defined $::RD_TRACE;
4021 21 return undef;
4022 }
4023 12 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 12 12
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0120
MC/DC0%0/2
not defined $return and defined $score
not defined $return defined $score
Truth table33%1/3
not(A) and B
A= not defined $returnB= defined $score
ABresult
0X0
100
111
4024 {
4025 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4026 q{domain},
4027 $tracelevel)
4028 if defined $::RD_TRACE;
4029 0 $return = $score_return;
4030 }
4031 12 splice @{$thisparser->{errors}}, $err_at;
4032 12 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 12 0 12
4033 12 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 12 12
4034 {
4035 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4036 $return . q{])}, "",
4037 q{domain},
4038 $tracelevel);
4039 0 Parse::RecDescent::_trace(q{(consumed: [} .
4040 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4041 Parse::RecDescent::_tracefirst($text),
4042 , q{domain},
4043 $tracelevel)
4044 }
4045 12 $_[1] = $text;
4046 12 return $return;
4047 }
4048  
4049 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
4050 sub Parse::RecDescent::Cheater::Parser::table_definition
4051 103 ▶{
Subroutine table_definition: called CC=67 SCAR=55.6
4052 103 my $thisparser = $_[0];
4053 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4054 103 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
1030
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
4055 103 $ERRORS = 0;
4056 103 my $thisrule = $thisparser->{"rules"}{"table_definition"};
4057
4058 103 ▶ Parse::RecDescent::_trace(q{Trying rule: [table_definition]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 103 103
4059 Parse::RecDescent::_tracefirst($_[1]),
4060 q{table_definition},
4061 $tracelevel)
4062 if defined $::RD_TRACE;
4063  
4064
4065 103 my $err_at = @{$thisparser->{errors}};
4066  
4067 103 my $score;
4068 my $score_return;
4069 103 my $_tok;
4070 103 my $return = undef;
4071 103 my $_matched=0;
4072 103 my $commit=0;
4073 103 my @item = ();
4074 103 my %item = ();
4075 103 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
00103
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
4076 103 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
01030
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
4077 103 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 103 0 103
4078 103 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 103 0 103
4079 103 my $text;
4080 103 my $lastsep="";
4081 103 my $current_match;
4082 103 my $expectation = new Parse::RecDescent::Expectation(q{'table'});
4083 103 $expectation->at($_[1]);
4084
4085 103 my $prevline;
4086 103 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
4087
4088 103 my $thisline;
4089 103 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4090  
4091
4092  
4093 103 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 103 0 103
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00103
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4094 {
4095
4096 103 ▶ Parse::RecDescent::_trace(q{Trying production: ['table' <commit> table_name '(' column_definition ')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 103 103
4097 Parse::RecDescent::_tracefirst($_[1]),
4098 q{table_definition},
4099 $tracelevel)
4100 if defined $::RD_TRACE;
4101 103 my $thisprod = $thisrule->{"prods"}[0];
4102 103 $text = $_[1];
4103 103 my $_savetext;
4104 103 @item = (q{table_definition});
4105 103 %item = (__RULE__ => q{table_definition});
4106 103 my $repcount = 0;
4107  
4108  
4109 103 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['table']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 103 103
4110 Parse::RecDescent::_tracefirst($text),
4111 q{table_definition},
4112 $tracelevel)
4113 if defined $::RD_TRACE;
4114 103 $lastsep = "";
4115 103 $expectation->is(q{})->at($text);
4116
4117  
4118 103 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Atable/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Atable/) 71 32 103
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Atable/
!ll&&!rl&&r
07132
($lastsep = $1) && ''
!ll
6637
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Atable/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Atable/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Atable/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
4119 {
4120
4121 71 $expectation->failed();
4122 71 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4123 Parse::RecDescent::_tracefirst($text))
4124 if defined $::RD_TRACE;
4125 71 last;
4126 }
4127 32 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4128 32 substr($text,0,length($current_match),q{});
4129 32 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4130 . $current_match . q{])},
4131 Parse::RecDescent::_tracefirst($text))
4132 if defined $::RD_TRACE;
4133 32 push @item, $item{__STRING1__}=$current_match;
4134
4135  
4136
4137  
4138 32 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4139 Parse::RecDescent::_tracefirst($text),
4140 q{table_definition},
4141 $tracelevel)
4142 if defined $::RD_TRACE;
4143 32 $_tok = do { $commit = 1 };
4144 32 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 32 0 32
4145 {
4146 32 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4147 . $_tok . q{])},
4148 Parse::RecDescent::_tracefirst($text))
4149 if defined $::RD_TRACE;
4150 }
4151 else
4152 {
4153 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4154 Parse::RecDescent::_tracefirst($text))
4155 if defined $::RD_TRACE;
4156 }
4157
4158 32 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 32 32
4159 32 push @item, $item{__DIRECTIVE1__}=$_tok;
4160
4161  
4162 32 ▶ Parse::RecDescent::_trace(q{Trying subrule: [table_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4163 Parse::RecDescent::_tracefirst($text),
4164 q{table_definition},
4165 $tracelevel)
4166 if defined $::RD_TRACE;
4167 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4168 32 $expectation->is(q{table_name})->at($text);
4169 32 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::table_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = table_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 32 32
4170 {
4171
4172 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [table_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4173 Parse::RecDescent::_tracefirst($text),
4174 q{table_definition},
4175 $tracelevel)
4176 if defined $::RD_TRACE;
4177 0 $expectation->failed();
4178 0 last;
4179 }
4180 32 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [table_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4181 . $_tok . q{]},
4182
4183 Parse::RecDescent::_tracefirst($text),
4184 q{table_definition},
4185 $tracelevel)
4186 if defined $::RD_TRACE;
4187 32 $item{q{table_name}} = $_tok;
4188 32 push @item, $_tok;
4189
4190 }
4191  
4192 32 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['(']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4193 Parse::RecDescent::_tracefirst($text),
4194 q{table_definition},
4195 $tracelevel)
4196 if defined $::RD_TRACE;
4197 32 $lastsep = "";
4198 32 $expectation->is(q{'('})->at($text);
4199
4200  
4201 32 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/) 0 32 32
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/
!ll&&!rl&&r
0032
($lastsep = $1) && ''
!ll
032
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\(/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\(/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\(/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
4202 {
4203
4204 0 $expectation->failed();
4205 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4206 Parse::RecDescent::_tracefirst($text))
4207 if defined $::RD_TRACE;
4208 0 last;
4209 }
4210 32 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4211 32 substr($text,0,length($current_match),q{});
4212 32 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4213 . $current_match . q{])},
4214 Parse::RecDescent::_tracefirst($text))
4215 if defined $::RD_TRACE;
4216 32 push @item, $item{__STRING2__}=$current_match;
4217
4218  
4219 32 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [column_definition]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4220 Parse::RecDescent::_tracefirst($text),
4221 q{table_definition},
4222 $tracelevel)
4223 if defined $::RD_TRACE;
4224 32 $expectation->is(q{column_definition})->at($text);
4225
4226 32 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::column_definition, 1, 100000000, $_noactions,$expectation,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::column_definition, 1, 100000000, $_noactions, $expectation, sub { \@arg; } ))) 0 32 32
4227 {
4228 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [column_definition]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4229 Parse::RecDescent::_tracefirst($text),
4230 q{table_definition},
4231 $tracelevel)
4232 if defined $::RD_TRACE;
4233 0 last;
4234 }
4235 32 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [column_definition]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4236 . @$_tok . q{ times)},
4237
4238 Parse::RecDescent::_tracefirst($text),
4239 q{table_definition},
4240 $tracelevel)
4241 if defined $::RD_TRACE;
4242 32 $item{q{column_definition(s)}} = $_tok;
4243 32 push @item, $_tok;
4244
4245  
4246  
4247 32 ▶ Parse::RecDescent::_trace(q{Trying terminal: [')']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4248 Parse::RecDescent::_tracefirst($text),
4249 q{table_definition},
4250 $tracelevel)
4251 if defined $::RD_TRACE;
4252 32 $lastsep = "";
4253 32 $expectation->is(q{')'})->at($text);
4254
4255  
4256 32 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/) 0 32 32
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/
!ll&&!rl&&r
0032
($lastsep = $1) && ''
!ll
032
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\)/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
4257 {
4258
4259 0 $expectation->failed();
4260 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4261 Parse::RecDescent::_tracefirst($text))
4262 if defined $::RD_TRACE;
4263 0 last;
4264 }
4265 32 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4266 32 substr($text,0,length($current_match),q{});
4267 32 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4268 . $current_match . q{])},
4269 Parse::RecDescent::_tracefirst($text))
4270 if defined $::RD_TRACE;
4271 32 push @item, $item{__STRING3__}=$current_match;
4272
4273  
4274 32 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4275 Parse::RecDescent::_tracefirst($text),
4276 q{table_definition},
4277 $tracelevel)
4278 if defined $::RD_TRACE;
4279
4280  
4281 32 ▶ $_tok = ($_noactions) ? 0 : do { ['table', $item[3], $item[5]] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 32 32
4282 32 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 32 32
4283 {
4284 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4285 if defined $::RD_TRACE;
4286 0 last;
4287 }
4288 32 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4289 . $_tok . q{])},
4290 Parse::RecDescent::_tracefirst($text))
4291 if defined $::RD_TRACE;
4292 32 push @item, $_tok;
4293 32 $item{__ACTION1__}=$_tok;
4294
4295  
4296  
4297 32 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['table' <commit> table_name '(' column_definition ')']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4298 Parse::RecDescent::_tracefirst($text),
4299 q{table_definition},
4300 $tracelevel)
4301 if defined $::RD_TRACE;
4302 32 $_matched = 1;
4303 32 last;
4304 }
4305  
4306  
4307 103 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 71 32 103
4308 {
4309
4310 71 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4311 Parse::RecDescent::_tracefirst($_[1]),
4312 q{table_definition},
4313 $tracelevel)
4314 if defined $::RD_TRACE;
4315 71 my $thisprod = $thisrule->{"prods"}[1];
4316
4317 71 my $_savetext;
4318 71 @item = (q{table_definition});
4319 71 %item = (__RULE__ => q{table_definition});
4320 71 my $repcount = 0;
4321  
4322  
4323
4324  
4325 71 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4326 Parse::RecDescent::_tracefirst($text),
4327 q{table_definition},
4328 $tracelevel)
4329 if defined $::RD_TRACE;
4330 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 71 71
unless ($_noactions) 0 0 0
4331 0 my $rule = $item[0];
4332 0 $rule =~ s/_/ /g;
4333 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
4334 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
4335 0 } unless $_noactions; undef } else {0} };
4336 71 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 71 0 71
4337 {
4338 71 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4339 . $_tok . q{])},
4340 Parse::RecDescent::_tracefirst($text))
4341 if defined $::RD_TRACE;
4342 }
4343 else
4344 {
4345 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4346 Parse::RecDescent::_tracefirst($text))
4347 if defined $::RD_TRACE;
4348 }
4349
4350 71 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 71 71
4351 71 push @item, $item{__DIRECTIVE1__}=$_tok;
4352
4353  
4354 71 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4355 Parse::RecDescent::_tracefirst($text),
4356 q{table_definition},
4357 $tracelevel)
4358 if defined $::RD_TRACE;
4359 71 undef $return;
4360
4361  
4362 71 $_tok = undef;
4363
4364 71 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 71 0 71
4365  
4366  
4367 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4368 Parse::RecDescent::_tracefirst($text),
4369 q{table_definition},
4370 $tracelevel)
4371 if defined $::RD_TRACE;
4372 0 $_matched = 1;
4373 0 last;
4374 }
4375  
4376  
4377 103 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 71 32 103
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
32071
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
4378 {
4379
4380  
4381 71 $_[1] = $text; # NOT SURE THIS IS NEEDED
4382 71 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4383 Parse::RecDescent::_tracefirst($_[1]),
4384 q{table_definition},
4385 $tracelevel)
4386 if defined $::RD_TRACE;
4387 71 return undef;
4388 }
4389 32 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 32 32
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0320
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
4390 {
4391 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4392 q{table_definition},
4393 $tracelevel)
4394 if defined $::RD_TRACE;
4395 0 $return = $score_return;
4396 }
4397 32 splice @{$thisparser->{errors}}, $err_at;
4398 32 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 32 0 32
4399 32 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 32 32
4400 {
4401 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4402 $return . q{])}, "",
4403 q{table_definition},
4404 $tracelevel);
4405 0 Parse::RecDescent::_trace(q{(consumed: [} .
4406 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4407 Parse::RecDescent::_tracefirst($text),
4408 , q{table_definition},
4409 $tracelevel)
4410 }
4411 32 $_[1] = $text;
4412 32 return $return;
4413 }
4414  
4415 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
4416 sub Parse::RecDescent::Cheater::Parser::column_name
4417 166 ▶{
Subroutine column_name: called CC=23 SCAR=34.1
4418 166 my $thisparser = $_[0];
4419 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4420 166 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
1660
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
4421 166 $ERRORS = 0;
4422 166 my $thisrule = $thisparser->{"rules"}{"column_name"};
4423
4424 166 ▶ Parse::RecDescent::_trace(q{Trying rule: [column_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 166 166
4425 Parse::RecDescent::_tracefirst($_[1]),
4426 q{column_name},
4427 $tracelevel)
4428 if defined $::RD_TRACE;
4429  
4430
4431 166 my $err_at = @{$thisparser->{errors}};
4432  
4433 166 my $score;
4434 my $score_return;
4435 166 my $_tok;
4436 166 my $return = undef;
4437 166 my $_matched=0;
4438 166 my $commit=0;
4439 166 my @item = ();
4440 166 my %item = ();
4441 166 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
00166
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
4442 166 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
01660
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
4443 166 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 166 0 166
4444 166 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 166 0 166
4445 166 my $text;
4446 166 my $lastsep="";
4447 166 my $current_match;
4448 166 my $expectation = new Parse::RecDescent::Expectation(q{identifier});
4449 166 $expectation->at($_[1]);
4450
4451 166 my $prevline;
4452 166 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
4453
4454 166 my $thisline;
4455 166 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4456  
4457
4458  
4459 166 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 166 0 166
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00166
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4460 {
4461
4462 166 ▶ Parse::RecDescent::_trace(q{Trying production: [identifier]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 166 166
4463 Parse::RecDescent::_tracefirst($_[1]),
4464 q{column_name},
4465 $tracelevel)
4466 if defined $::RD_TRACE;
4467 166 my $thisprod = $thisrule->{"prods"}[0];
4468 166 $text = $_[1];
4469 166 my $_savetext;
4470 166 @item = (q{column_name});
4471 166 %item = (__RULE__ => q{column_name});
4472 166 my $repcount = 0;
4473  
4474  
4475 166 ▶ Parse::RecDescent::_trace(q{Trying subrule: [identifier]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 166 166
4476 Parse::RecDescent::_tracefirst($text),
4477 q{column_name},
4478 $tracelevel)
4479 if defined $::RD_TRACE;
4480 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4481 166 $expectation->is(q{})->at($text);
4482 166 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::identifier($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = identifier($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 96 70 166
4483 {
4484
4485 96 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [identifier]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 96 96
4486 Parse::RecDescent::_tracefirst($text),
4487 q{column_name},
4488 $tracelevel)
4489 if defined $::RD_TRACE;
4490 96 $expectation->failed();
4491 96 last;
4492 }
4493 70 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [identifier]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 70 70
4494 . $_tok . q{]},
4495
4496 Parse::RecDescent::_tracefirst($text),
4497 q{column_name},
4498 $tracelevel)
4499 if defined $::RD_TRACE;
4500 70 $item{q{identifier}} = $_tok;
4501 70 push @item, $_tok;
4502
4503 }
4504  
4505  
4506 70 ▶ Parse::RecDescent::_trace(q{>>Matched production: [identifier]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 70 70
4507 Parse::RecDescent::_tracefirst($text),
4508 q{column_name},
4509 $tracelevel)
4510 if defined $::RD_TRACE;
4511 70 $_matched = 1;
4512 70 last;
4513 }
4514  
4515  
4516 166 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 96 70 166
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
70096
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
4517 {
4518
4519  
4520 96 $_[1] = $text; # NOT SURE THIS IS NEEDED
4521 96 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 96 96
4522 Parse::RecDescent::_tracefirst($_[1]),
4523 q{column_name},
4524 $tracelevel)
4525 if defined $::RD_TRACE;
4526 96 return undef;
4527 }
4528 70 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 70 70
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0700
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
4529 {
4530 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4531 q{column_name},
4532 $tracelevel)
4533 if defined $::RD_TRACE;
4534 0 $return = $score_return;
4535 }
4536 70 splice @{$thisparser->{errors}}, $err_at;
4537 70 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 70 0 70
4538 70 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 70 70
4539 {
4540 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
4541 $return . q{])}, "",
4542 q{column_name},
4543 $tracelevel);
4544 0 Parse::RecDescent::_trace(q{(consumed: [} .
4545 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
4546 Parse::RecDescent::_tracefirst($text),
4547 , q{column_name},
4548 $tracelevel)
4549 }
4550 70 $_[1] = $text;
4551 70 return $return;
4552 }
4553  
4554 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
4555 sub Parse::RecDescent::Cheater::Parser::statement
4556 103 ▶{
Subroutine statement: called CC=119 SCAR=66.4
4557 103 my $thisparser = $_[0];
4558 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
4559 103 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
1030
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
4560 103 $ERRORS = 0;
4561 103 my $thisrule = $thisparser->{"rules"}{"statement"};
4562
4563 103 ▶ Parse::RecDescent::_trace(q{Trying rule: [statement]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 103 103
4564 Parse::RecDescent::_tracefirst($_[1]),
4565 q{statement},
4566 $tracelevel)
4567 if defined $::RD_TRACE;
4568  
4569
4570 103 my $err_at = @{$thisparser->{errors}};
4571  
4572 103 my $score;
4573 my $score_return;
4574 103 my $_tok;
4575 103 my $return = undef;
4576 103 my $_matched=0;
4577 103 my $commit=0;
4578 103 my @item = ();
4579 103 my %item = ();
4580 103 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
00103
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
4581 103 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
01030
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
4582 103 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 103 0 103
4583 103 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 103 0 103
4584 103 my $text;
4585 103 my $lastsep="";
4586 103 my $current_match;
4587 103 my $expectation = new Parse::RecDescent::Expectation(q{table_definition, or rows_definition, or type_definition, or include_statement, or table_assignment});
4588 103 $expectation->at($_[1]);
4589
4590 103 my $prevline;
4591 103 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
4592
4593 103 my $thisline;
4594 103 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
4595  
4596
4597  
4598 103 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 103 0 103
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00103
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4599 {
4600
4601 103 ▶ Parse::RecDescent::_trace(q{Trying production: [table_definition /;?/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 103 103
4602 Parse::RecDescent::_tracefirst($_[1]),
4603 q{statement},
4604 $tracelevel)
4605 if defined $::RD_TRACE;
4606 103 my $thisprod = $thisrule->{"prods"}[0];
4607 103 $text = $_[1];
4608 103 my $_savetext;
4609 103 @item = (q{statement});
4610 103 %item = (__RULE__ => q{statement});
4611 103 my $repcount = 0;
4612  
4613  
4614 103 ▶ Parse::RecDescent::_trace(q{Trying subrule: [table_definition]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 103 103
4615 Parse::RecDescent::_tracefirst($text),
4616 q{statement},
4617 $tracelevel)
4618 if defined $::RD_TRACE;
4619 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4620 103 $expectation->is(q{})->at($text);
4621 103 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::table_definition($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = table_definition($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 71 32 103
4622 {
4623
4624 71 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [table_definition]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4625 Parse::RecDescent::_tracefirst($text),
4626 q{statement},
4627 $tracelevel)
4628 if defined $::RD_TRACE;
4629 71 $expectation->failed();
4630 71 last;
4631 }
4632 32 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [table_definition]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4633 . $_tok . q{]},
4634
4635 Parse::RecDescent::_tracefirst($text),
4636 q{statement},
4637 $tracelevel)
4638 if defined $::RD_TRACE;
4639 32 $item{q{table_definition}} = $_tok;
4640 32 push @item, $_tok;
4641
4642 }
4643  
4644 32 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/;?/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4645 q{statement},
4646 $tracelevel)
4647 if defined $::RD_TRACE;
4648 32 $lastsep = "";
4649 32 $expectation->is(q{/;?/})->at($text);
4650
4651  
4652 32 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:;?)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:;?)/) 0 32 32
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:;?)/
!ll&&!rl&&r
0032
($lastsep = $1) && ''
!ll
032
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:;?)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:;?)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:;?)/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
4653 {
4654
4655 0 $expectation->failed();
4656 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4657 Parse::RecDescent::_tracefirst($text))
4658 if defined $::RD_TRACE;
4659  
4660 0 last;
4661 }
4662 32 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4663 32 substr($text,0,length($current_match),q{});
4664 32 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4665 . $current_match . q{])},
4666 Parse::RecDescent::_tracefirst($text))
4667 if defined $::RD_TRACE;
4668 32 push @item, $item{__PATTERN1__}=$current_match;
4669
4670  
4671 32 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4672 Parse::RecDescent::_tracefirst($text),
4673 q{statement},
4674 $tracelevel)
4675 if defined $::RD_TRACE;
4676
4677  
4678 32 ▶ $_tok = ($_noactions) ? 0 : do { $item[1] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 32 32
4679 32 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 32 32
4680 {
4681 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4682 if defined $::RD_TRACE;
4683 0 last;
4684 }
4685 32 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4686 . $_tok . q{])},
4687 Parse::RecDescent::_tracefirst($text))
4688 if defined $::RD_TRACE;
4689 32 push @item, $_tok;
4690 32 $item{__ACTION1__}=$_tok;
4691
4692  
4693  
4694 32 ▶ Parse::RecDescent::_trace(q{>>Matched production: [table_definition /;?/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4695 Parse::RecDescent::_tracefirst($text),
4696 q{statement},
4697 $tracelevel)
4698 if defined $::RD_TRACE;
4699 32 $_matched = 1;
4700 32 last;
4701 }
4702  
4703  
4704 103 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 71 32 103
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
32071
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4705 {
4706
4707 71 ▶ Parse::RecDescent::_trace(q{Trying production: [rows_definition ';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4708 Parse::RecDescent::_tracefirst($_[1]),
4709 q{statement},
4710 $tracelevel)
4711 if defined $::RD_TRACE;
4712 71 my $thisprod = $thisrule->{"prods"}[1];
4713 71 $text = $_[1];
4714 71 my $_savetext;
4715 71 @item = (q{statement});
4716 71 %item = (__RULE__ => q{statement});
4717 71 my $repcount = 0;
4718  
4719  
4720 71 ▶ Parse::RecDescent::_trace(q{Trying subrule: [rows_definition]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 71 71
4721 Parse::RecDescent::_tracefirst($text),
4722 q{statement},
4723 $tracelevel)
4724 if defined $::RD_TRACE;
4725 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4726 71 $expectation->is(q{})->at($text);
4727 71 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::rows_definition($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = rows_definition($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 39 32 71
4728 {
4729
4730 39 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [rows_definition]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
4731 Parse::RecDescent::_tracefirst($text),
4732 q{statement},
4733 $tracelevel)
4734 if defined $::RD_TRACE;
4735 39 $expectation->failed();
4736 39 last;
4737 }
4738 32 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [rows_definition]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4739 . $_tok . q{]},
4740
4741 Parse::RecDescent::_tracefirst($text),
4742 q{statement},
4743 $tracelevel)
4744 if defined $::RD_TRACE;
4745 32 $item{q{rows_definition}} = $_tok;
4746 32 push @item, $_tok;
4747
4748 }
4749  
4750 32 ▶ Parse::RecDescent::_trace(q{Trying terminal: [';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4751 Parse::RecDescent::_tracefirst($text),
4752 q{statement},
4753 $tracelevel)
4754 if defined $::RD_TRACE;
4755 32 $lastsep = "";
4756 32 $expectation->is(q{';'})->at($text);
4757
4758  
4759 32 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\;/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/) 0 32 32
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
!ll&&!rl&&r
0032
($lastsep = $1) && ''
!ll
320
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\;/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\;/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
4760 {
4761
4762 0 $expectation->failed();
4763 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4764 Parse::RecDescent::_tracefirst($text))
4765 if defined $::RD_TRACE;
4766 0 last;
4767 }
4768 32 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4769 32 substr($text,0,length($current_match),q{});
4770 32 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4771 . $current_match . q{])},
4772 Parse::RecDescent::_tracefirst($text))
4773 if defined $::RD_TRACE;
4774 32 push @item, $item{__STRING1__}=$current_match;
4775
4776  
4777 32 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4778 Parse::RecDescent::_tracefirst($text),
4779 q{statement},
4780 $tracelevel)
4781 if defined $::RD_TRACE;
4782
4783  
4784 32 ▶ $_tok = ($_noactions) ? 0 : do { $item[1] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 32 32
4785 32 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 32 32
4786 {
4787 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4788 if defined $::RD_TRACE;
4789 0 last;
4790 }
4791 32 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4792 . $_tok . q{])},
4793 Parse::RecDescent::_tracefirst($text))
4794 if defined $::RD_TRACE;
4795 32 push @item, $_tok;
4796 32 $item{__ACTION1__}=$_tok;
4797
4798  
4799  
4800 32 ▶ Parse::RecDescent::_trace(q{>>Matched production: [rows_definition ';']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
4801 Parse::RecDescent::_tracefirst($text),
4802 q{statement},
4803 $tracelevel)
4804 if defined $::RD_TRACE;
4805 32 $_matched = 1;
4806 32 last;
4807 }
4808  
4809  
4810 103 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 39 64 103
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
64039
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4811 {
4812
4813 39 ▶ Parse::RecDescent::_trace(q{Trying production: [type_definition ';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
4814 Parse::RecDescent::_tracefirst($_[1]),
4815 q{statement},
4816 $tracelevel)
4817 if defined $::RD_TRACE;
4818 39 my $thisprod = $thisrule->{"prods"}[2];
4819 39 $text = $_[1];
4820 39 my $_savetext;
4821 39 @item = (q{statement});
4822 39 %item = (__RULE__ => q{statement});
4823 39 my $repcount = 0;
4824  
4825  
4826 39 ▶ Parse::RecDescent::_trace(q{Trying subrule: [type_definition]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
4827 Parse::RecDescent::_tracefirst($text),
4828 q{statement},
4829 $tracelevel)
4830 if defined $::RD_TRACE;
4831 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4832 39 $expectation->is(q{})->at($text);
4833 39 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::type_definition($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = type_definition($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 39 0 39
4834 {
4835
4836 39 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [type_definition]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
4837 Parse::RecDescent::_tracefirst($text),
4838 q{statement},
4839 $tracelevel)
4840 if defined $::RD_TRACE;
4841 39 $expectation->failed();
4842 39 last;
4843 }
4844 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [type_definition]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4845 . $_tok . q{]},
4846
4847 Parse::RecDescent::_tracefirst($text),
4848 q{statement},
4849 $tracelevel)
4850 if defined $::RD_TRACE;
4851 0 $item{q{type_definition}} = $_tok;
4852 0 push @item, $_tok;
4853
4854 }
4855  
4856 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: [';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4857 Parse::RecDescent::_tracefirst($text),
4858 q{statement},
4859 $tracelevel)
4860 if defined $::RD_TRACE;
4861 0 $lastsep = "";
4862 0 $expectation->is(q{';'})->at($text);
4863
4864  
4865 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\;/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/) 0 0 0
Condition0%0/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
!ll&&!rl&&r
000
($lastsep = $1) && ''
!ll
00
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\;/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\;/
ABresult
0X0
100
111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
4866 {
4867
4868 0 $expectation->failed();
4869 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4870 Parse::RecDescent::_tracefirst($text))
4871 if defined $::RD_TRACE;
4872 0 last;
4873 }
4874 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4875 0 substr($text,0,length($current_match),q{});
4876 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4877 . $current_match . q{])},
4878 Parse::RecDescent::_tracefirst($text))
4879 if defined $::RD_TRACE;
4880 0 push @item, $item{__STRING1__}=$current_match;
4881
4882  
4883 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4884 Parse::RecDescent::_tracefirst($text),
4885 q{statement},
4886 $tracelevel)
4887 if defined $::RD_TRACE;
4888
4889  
4890 0 ▶ $_tok = ($_noactions) ? 0 : do { $item[1] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
4891 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
4892 {
4893 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4894 if defined $::RD_TRACE;
4895 0 last;
4896 }
4897 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4898 . $_tok . q{])},
4899 Parse::RecDescent::_tracefirst($text))
4900 if defined $::RD_TRACE;
4901 0 push @item, $_tok;
4902 0 $item{__ACTION1__}=$_tok;
4903
4904  
4905  
4906 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [type_definition ';']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4907 Parse::RecDescent::_tracefirst($text),
4908 q{statement},
4909 $tracelevel)
4910 if defined $::RD_TRACE;
4911 0 $_matched = 1;
4912 0 last;
4913 }
4914  
4915  
4916 103 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 39 64 103
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
64039
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
4917 {
4918
4919 39 ▶ Parse::RecDescent::_trace(q{Trying production: [include_statement ';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
4920 Parse::RecDescent::_tracefirst($_[1]),
4921 q{statement},
4922 $tracelevel)
4923 if defined $::RD_TRACE;
4924 39 my $thisprod = $thisrule->{"prods"}[3];
4925 39 $text = $_[1];
4926 39 my $_savetext;
4927 39 @item = (q{statement});
4928 39 %item = (__RULE__ => q{statement});
4929 39 my $repcount = 0;
4930  
4931  
4932 39 ▶ Parse::RecDescent::_trace(q{Trying subrule: [include_statement]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
4933 Parse::RecDescent::_tracefirst($text),
4934 q{statement},
4935 $tracelevel)
4936 if defined $::RD_TRACE;
4937 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
4938 39 $expectation->is(q{})->at($text);
4939 39 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::include_statement($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = include_statement($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 35 4 39
4940 {
4941
4942 35 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [include_statement]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
4943 Parse::RecDescent::_tracefirst($text),
4944 q{statement},
4945 $tracelevel)
4946 if defined $::RD_TRACE;
4947 35 $expectation->failed();
4948 35 last;
4949 }
4950 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [include_statement]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4951 . $_tok . q{]},
4952
4953 Parse::RecDescent::_tracefirst($text),
4954 q{statement},
4955 $tracelevel)
4956 if defined $::RD_TRACE;
4957 4 $item{q{include_statement}} = $_tok;
4958 4 push @item, $_tok;
4959
4960 }
4961  
4962 4 ▶ Parse::RecDescent::_trace(q{Trying terminal: [';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4963 Parse::RecDescent::_tracefirst($text),
4964 q{statement},
4965 $tracelevel)
4966 if defined $::RD_TRACE;
4967 4 $lastsep = "";
4968 4 $expectation->is(q{';'})->at($text);
4969
4970  
4971 4 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\;/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/) 0 4 4
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
!ll&&!rl&&r
004
($lastsep = $1) && ''
!ll
40
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\;/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\;/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
4972 {
4973
4974 0 $expectation->failed();
4975 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
4976 Parse::RecDescent::_tracefirst($text))
4977 if defined $::RD_TRACE;
4978 0 last;
4979 }
4980 4 $current_match = substr($text, $-[0], $+[0] - $-[0]);
4981 4 substr($text,0,length($current_match),q{});
4982 4 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4983 . $current_match . q{])},
4984 Parse::RecDescent::_tracefirst($text))
4985 if defined $::RD_TRACE;
4986 4 push @item, $item{__STRING1__}=$current_match;
4987
4988  
4989 4 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
4990 Parse::RecDescent::_tracefirst($text),
4991 q{statement},
4992 $tracelevel)
4993 if defined $::RD_TRACE;
4994
4995  
4996 4 ▶ $_tok = ($_noactions) ? 0 : do { $item[1] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 4 4
4997 4 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 4 4
4998 {
4999 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5000 if defined $::RD_TRACE;
5001 0 last;
5002 }
5003 4 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5004 . $_tok . q{])},
5005 Parse::RecDescent::_tracefirst($text))
5006 if defined $::RD_TRACE;
5007 4 push @item, $_tok;
5008 4 $item{__ACTION1__}=$_tok;
5009
5010  
5011  
5012 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: [include_statement ';']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5013 Parse::RecDescent::_tracefirst($text),
5014 q{statement},
5015 $tracelevel)
5016 if defined $::RD_TRACE;
5017 4 $_matched = 1;
5018 4 last;
5019 }
5020  
5021  
5022 103 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 35 68 103
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
68035
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5023 {
5024
5025 35 ▶ Parse::RecDescent::_trace(q{Trying production: [table_assignment ';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
5026 Parse::RecDescent::_tracefirst($_[1]),
5027 q{statement},
5028 $tracelevel)
5029 if defined $::RD_TRACE;
5030 35 my $thisprod = $thisrule->{"prods"}[4];
5031 35 $text = $_[1];
5032 35 my $_savetext;
5033 35 @item = (q{statement});
5034 35 %item = (__RULE__ => q{statement});
5035 35 my $repcount = 0;
5036  
5037  
5038 35 ▶ Parse::RecDescent::_trace(q{Trying subrule: [table_assignment]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
5039 Parse::RecDescent::_tracefirst($text),
5040 q{statement},
5041 $tracelevel)
5042 if defined $::RD_TRACE;
5043 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5044 35 $expectation->is(q{})->at($text);
5045 35 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::table_assignment($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = table_assignment($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 34 1 35
5046 {
5047
5048 34 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [table_assignment]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
5049 Parse::RecDescent::_tracefirst($text),
5050 q{statement},
5051 $tracelevel)
5052 if defined $::RD_TRACE;
5053 34 $expectation->failed();
5054 34 last;
5055 }
5056 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [table_assignment]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
5057 . $_tok . q{]},
5058
5059 Parse::RecDescent::_tracefirst($text),
5060 q{statement},
5061 $tracelevel)
5062 if defined $::RD_TRACE;
5063 1 $item{q{table_assignment}} = $_tok;
5064 1 push @item, $_tok;
5065
5066 }
5067  
5068 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: [';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
5069 Parse::RecDescent::_tracefirst($text),
5070 q{statement},
5071 $tracelevel)
5072 if defined $::RD_TRACE;
5073 1 $lastsep = "";
5074 1 $expectation->is(q{';'})->at($text);
5075
5076  
5077 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\;/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/) 0 1 1
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
10
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\;/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\;/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
5078 {
5079
5080 0 $expectation->failed();
5081 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5082 Parse::RecDescent::_tracefirst($text))
5083 if defined $::RD_TRACE;
5084 0 last;
5085 }
5086 1 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5087 1 substr($text,0,length($current_match),q{});
5088 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
5089 . $current_match . q{])},
5090 Parse::RecDescent::_tracefirst($text))
5091 if defined $::RD_TRACE;
5092 1 push @item, $item{__STRING1__}=$current_match;
5093
5094  
5095 1 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
5096 Parse::RecDescent::_tracefirst($text),
5097 q{statement},
5098 $tracelevel)
5099 if defined $::RD_TRACE;
5100
5101  
5102 1 ▶ $_tok = ($_noactions) ? 0 : do { $item[1] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 1 1
5103 1 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 1 1
5104 {
5105 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5106 if defined $::RD_TRACE;
5107 0 last;
5108 }
5109 1 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
5110 . $_tok . q{])},
5111 Parse::RecDescent::_tracefirst($text))
5112 if defined $::RD_TRACE;
5113 1 push @item, $_tok;
5114 1 $item{__ACTION1__}=$_tok;
5115
5116  
5117  
5118 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [table_assignment ';']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
5119 Parse::RecDescent::_tracefirst($text),
5120 q{statement},
5121 $tracelevel)
5122 if defined $::RD_TRACE;
5123 1 $_matched = 1;
5124 1 last;
5125 }
5126  
5127  
5128 103 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 34 69 103
5129 {
5130
5131 34 ▶ Parse::RecDescent::_trace(q{Trying production: [<error...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
5132 Parse::RecDescent::_tracefirst($_[1]),
5133 q{statement},
5134 $tracelevel)
5135 if defined $::RD_TRACE;
5136 34 my $thisprod = $thisrule->{"prods"}[5];
5137
5138 34 my $_savetext;
5139 34 @item = (q{statement});
5140 34 %item = (__RULE__ => q{statement});
5141 34 my $repcount = 0;
5142  
5143  
5144
5145  
5146 34 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
5147 Parse::RecDescent::_tracefirst($text),
5148 q{statement},
5149 $tracelevel)
5150 if defined $::RD_TRACE;
5151 34 ▶ $_tok = do { if (1) { do {
Branch: 1 branch
BranchTrueFalseTotal
unless ($_noactions) 34 0 34
5152 34 my $rule = $item[0];
5153 34 $rule =~ s/_/ /g;
5154 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
5155 34 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
5156 34 } unless $_noactions; undef } else {0} };
5157 34 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 34 34
5158 {
5159 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5160 . $_tok . q{])},
5161 Parse::RecDescent::_tracefirst($text))
5162 if defined $::RD_TRACE;
5163 }
5164 else
5165 {
5166 34 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
5167 Parse::RecDescent::_tracefirst($text))
5168 if defined $::RD_TRACE;
5169 }
5170
5171 34 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 34 0 34
5172 0 push @item, $item{__DIRECTIVE1__}=$_tok;
5173
5174  
5175  
5176 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error...>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5177 Parse::RecDescent::_tracefirst($text),
5178 q{statement},
5179 $tracelevel)
5180 if defined $::RD_TRACE;
5181 0 $_matched = 1;
5182 0 last;
5183 }
5184  
5185  
5186 103 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 34 69 103
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
69034
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
5187 {
5188
5189  
5190 34 $_[1] = $text; # NOT SURE THIS IS NEEDED
5191 34 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
5192 Parse::RecDescent::_tracefirst($_[1]),
5193 q{statement},
5194 $tracelevel)
5195 if defined $::RD_TRACE;
5196 34 return undef;
5197 }
5198 69 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 69 69
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0690
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
5199 {
5200 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5201 q{statement},
5202 $tracelevel)
5203 if defined $::RD_TRACE;
5204 0 $return = $score_return;
5205 }
5206 69 splice @{$thisparser->{errors}}, $err_at;
5207 69 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 69 0 69
5208 69 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 69 69
5209 {
5210 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5211 $return . q{])}, "",
5212 q{statement},
5213 $tracelevel);
5214 0 Parse::RecDescent::_trace(q{(consumed: [} .
5215 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5216 Parse::RecDescent::_tracefirst($text),
5217 , q{statement},
5218 $tracelevel)
5219 }
5220 69 $_[1] = $text;
5221 69 return $return;
5222 }
5223  
5224 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
5225 sub Parse::RecDescent::Cheater::Parser::file_name
5226 4 ▶{
Subroutine file_name: called CC=23 SCAR=37.4
5227 4 my $thisparser = $_[0];
5228 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5229 4 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
40
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
5230 4 $ERRORS = 0;
5231 4 my $thisrule = $thisparser->{"rules"}{"file_name"};
5232
5233 4 ▶ Parse::RecDescent::_trace(q{Trying rule: [file_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5234 Parse::RecDescent::_tracefirst($_[1]),
5235 q{file_name},
5236 $tracelevel)
5237 if defined $::RD_TRACE;
5238  
5239
5240 4 my $err_at = @{$thisparser->{errors}};
5241  
5242 4 my $score;
5243 my $score_return;
5244 4 my $_tok;
5245 4 my $return = undef;
5246 4 my $_matched=0;
5247 4 my $commit=0;
5248 4 my @item = ();
5249 4 my %item = ();
5250 4 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
004
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
5251 4 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
040
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
5252 4 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 4 0 4
5253 4 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 4 0 4
5254 4 my $text;
5255 4 my $lastsep="";
5256 4 my $current_match;
5257 4 my $expectation = new Parse::RecDescent::Expectation(q{string});
5258 4 $expectation->at($_[1]);
5259
5260 4 my $prevline;
5261 4 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
5262
5263 4 my $thisline;
5264 4 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5265  
5266
5267  
5268 4 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 4 0 4
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
004
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5269 {
5270
5271 4 ▶ Parse::RecDescent::_trace(q{Trying production: [string]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5272 Parse::RecDescent::_tracefirst($_[1]),
5273 q{file_name},
5274 $tracelevel)
5275 if defined $::RD_TRACE;
5276 4 my $thisprod = $thisrule->{"prods"}[0];
5277 4 $text = $_[1];
5278 4 my $_savetext;
5279 4 @item = (q{file_name});
5280 4 %item = (__RULE__ => q{file_name});
5281 4 my $repcount = 0;
5282  
5283  
5284 4 ▶ Parse::RecDescent::_trace(q{Trying subrule: [string]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5285 Parse::RecDescent::_tracefirst($text),
5286 q{file_name},
5287 $tracelevel)
5288 if defined $::RD_TRACE;
5289 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5290 4 $expectation->is(q{})->at($text);
5291 4 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::string($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = string($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 4 4
5292 {
5293
5294 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [string]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5295 Parse::RecDescent::_tracefirst($text),
5296 q{file_name},
5297 $tracelevel)
5298 if defined $::RD_TRACE;
5299 0 $expectation->failed();
5300 0 last;
5301 }
5302 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [string]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5303 . $_tok . q{]},
5304
5305 Parse::RecDescent::_tracefirst($text),
5306 q{file_name},
5307 $tracelevel)
5308 if defined $::RD_TRACE;
5309 4 $item{q{string}} = $_tok;
5310 4 push @item, $_tok;
5311
5312 }
5313  
5314  
5315 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: [string]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5316 Parse::RecDescent::_tracefirst($text),
5317 q{file_name},
5318 $tracelevel)
5319 if defined $::RD_TRACE;
5320 4 $_matched = 1;
5321 4 last;
5322 }
5323  
5324  
5325 4 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 4 4
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
400
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
5326 {
5327
5328  
5329 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
5330 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5331 Parse::RecDescent::_tracefirst($_[1]),
5332 q{file_name},
5333 $tracelevel)
5334 if defined $::RD_TRACE;
5335 0 return undef;
5336 }
5337 4 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 4 4
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
040
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
5338 {
5339 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5340 q{file_name},
5341 $tracelevel)
5342 if defined $::RD_TRACE;
5343 0 $return = $score_return;
5344 }
5345 4 splice @{$thisparser->{errors}}, $err_at;
5346 4 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 4 0 4
5347 4 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 4 4
5348 {
5349 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5350 $return . q{])}, "",
5351 q{file_name},
5352 $tracelevel);
5353 0 Parse::RecDescent::_trace(q{(consumed: [} .
5354 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5355 Parse::RecDescent::_tracefirst($text),
5356 , q{file_name},
5357 $tracelevel)
5358 }
5359 4 $_[1] = $text;
5360 4 return $return;
5361 }
5362  
5363 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
5364 sub Parse::RecDescent::Cheater::Parser::atom
5365 45 ▶{
Subroutine atom: called CC=55 SCAR=44.4
5366 45 my $thisparser = $_[0];
5367 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5368 45 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
450
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
5369 45 $ERRORS = 0;
5370 45 my $thisrule = $thisparser->{"rules"}{"atom"};
5371
5372 45 ▶ Parse::RecDescent::_trace(q{Trying rule: [atom]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 45 45
5373 Parse::RecDescent::_tracefirst($_[1]),
5374 q{atom},
5375 $tracelevel)
5376 if defined $::RD_TRACE;
5377  
5378
5379 45 my $err_at = @{$thisparser->{errors}};
5380  
5381 45 my $score;
5382 my $score_return;
5383 45 my $_tok;
5384 45 my $return = undef;
5385 45 my $_matched=0;
5386 45 my $commit=0;
5387 45 my @item = ();
5388 45 my %item = ();
5389 45 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0045
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
5390 45 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0450
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
5391 45 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 45 0 45
5392 45 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 45 0 45
5393 45 my $text;
5394 45 my $lastsep="";
5395 45 my $current_match;
5396 45 my $expectation = new Parse::RecDescent::Expectation(q{range, or number, or regex, or string, or int});
5397 45 $expectation->at($_[1]);
5398
5399 45 my $prevline;
5400 45 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
5401
5402 45 my $thisline;
5403 45 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5404  
5405
5406  
5407 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 45 0 45
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0045
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5408 {
5409
5410 45 ▶ Parse::RecDescent::_trace(q{Trying production: [range]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 45 45
5411 Parse::RecDescent::_tracefirst($_[1]),
5412 q{atom},
5413 $tracelevel)
5414 if defined $::RD_TRACE;
5415 45 my $thisprod = $thisrule->{"prods"}[0];
5416 45 $text = $_[1];
5417 45 my $_savetext;
5418 45 @item = (q{atom});
5419 45 %item = (__RULE__ => q{atom});
5420 45 my $repcount = 0;
5421  
5422  
5423 45 ▶ Parse::RecDescent::_trace(q{Trying subrule: [range]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 45 45
5424 Parse::RecDescent::_tracefirst($text),
5425 q{atom},
5426 $tracelevel)
5427 if defined $::RD_TRACE;
5428 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5429 45 $expectation->is(q{})->at($text);
5430 45 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::range($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = range($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 38 7 45
5431 {
5432
5433 38 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [range]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
5434 Parse::RecDescent::_tracefirst($text),
5435 q{atom},
5436 $tracelevel)
5437 if defined $::RD_TRACE;
5438 38 $expectation->failed();
5439 38 last;
5440 }
5441 7 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [range]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 7 7
5442 . $_tok . q{]},
5443
5444 Parse::RecDescent::_tracefirst($text),
5445 q{atom},
5446 $tracelevel)
5447 if defined $::RD_TRACE;
5448 7 $item{q{range}} = $_tok;
5449 7 push @item, $_tok;
5450
5451 }
5452  
5453  
5454 7 ▶ Parse::RecDescent::_trace(q{>>Matched production: [range]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 7 7
5455 Parse::RecDescent::_tracefirst($text),
5456 q{atom},
5457 $tracelevel)
5458 if defined $::RD_TRACE;
5459 7 $_matched = 1;
5460 7 last;
5461 }
5462  
5463  
5464 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 38 7 45
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
7038
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5465 {
5466
5467 38 ▶ Parse::RecDescent::_trace(q{Trying production: [number]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
5468 Parse::RecDescent::_tracefirst($_[1]),
5469 q{atom},
5470 $tracelevel)
5471 if defined $::RD_TRACE;
5472 38 my $thisprod = $thisrule->{"prods"}[1];
5473 38 $text = $_[1];
5474 38 my $_savetext;
5475 38 @item = (q{atom});
5476 38 %item = (__RULE__ => q{atom});
5477 38 my $repcount = 0;
5478  
5479  
5480 38 ▶ Parse::RecDescent::_trace(q{Trying subrule: [number]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 38 38
5481 Parse::RecDescent::_tracefirst($text),
5482 q{atom},
5483 $tracelevel)
5484 if defined $::RD_TRACE;
5485 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5486 38 $expectation->is(q{})->at($text);
5487 38 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::number($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = number($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 28 10 38
5488 {
5489
5490 28 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [number]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
5491 Parse::RecDescent::_tracefirst($text),
5492 q{atom},
5493 $tracelevel)
5494 if defined $::RD_TRACE;
5495 28 $expectation->failed();
5496 28 last;
5497 }
5498 10 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [number]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
5499 . $_tok . q{]},
5500
5501 Parse::RecDescent::_tracefirst($text),
5502 q{atom},
5503 $tracelevel)
5504 if defined $::RD_TRACE;
5505 10 $item{q{number}} = $_tok;
5506 10 push @item, $_tok;
5507
5508 }
5509  
5510  
5511 10 ▶ Parse::RecDescent::_trace(q{>>Matched production: [number]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 10 10
5512 Parse::RecDescent::_tracefirst($text),
5513 q{atom},
5514 $tracelevel)
5515 if defined $::RD_TRACE;
5516 10 $_matched = 1;
5517 10 last;
5518 }
5519  
5520  
5521 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 28 17 45
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
17028
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5522 {
5523
5524 28 ▶ Parse::RecDescent::_trace(q{Trying production: [regex]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
5525 Parse::RecDescent::_tracefirst($_[1]),
5526 q{atom},
5527 $tracelevel)
5528 if defined $::RD_TRACE;
5529 28 my $thisprod = $thisrule->{"prods"}[2];
5530 28 $text = $_[1];
5531 28 my $_savetext;
5532 28 @item = (q{atom});
5533 28 %item = (__RULE__ => q{atom});
5534 28 my $repcount = 0;
5535  
5536  
5537 28 ▶ Parse::RecDescent::_trace(q{Trying subrule: [regex]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
5538 Parse::RecDescent::_tracefirst($text),
5539 q{atom},
5540 $tracelevel)
5541 if defined $::RD_TRACE;
5542 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5543 28 $expectation->is(q{})->at($text);
5544 28 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::regex($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = regex($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 25 3 28
5545 {
5546
5547 25 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [regex]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 25 25
5548 Parse::RecDescent::_tracefirst($text),
5549 q{atom},
5550 $tracelevel)
5551 if defined $::RD_TRACE;
5552 25 $expectation->failed();
5553 25 last;
5554 }
5555 3 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [regex]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
5556 . $_tok . q{]},
5557
5558 Parse::RecDescent::_tracefirst($text),
5559 q{atom},
5560 $tracelevel)
5561 if defined $::RD_TRACE;
5562 3 $item{q{regex}} = $_tok;
5563 3 push @item, $_tok;
5564
5565 }
5566  
5567  
5568 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: [regex]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
5569 Parse::RecDescent::_tracefirst($text),
5570 q{atom},
5571 $tracelevel)
5572 if defined $::RD_TRACE;
5573 3 $_matched = 1;
5574 3 last;
5575 }
5576  
5577  
5578 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 25 20 45
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
20025
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5579 {
5580
5581 25 ▶ Parse::RecDescent::_trace(q{Trying production: [string]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 25 25
5582 Parse::RecDescent::_tracefirst($_[1]),
5583 q{atom},
5584 $tracelevel)
5585 if defined $::RD_TRACE;
5586 25 my $thisprod = $thisrule->{"prods"}[3];
5587 25 $text = $_[1];
5588 25 my $_savetext;
5589 25 @item = (q{atom});
5590 25 %item = (__RULE__ => q{atom});
5591 25 my $repcount = 0;
5592  
5593  
5594 25 ▶ Parse::RecDescent::_trace(q{Trying subrule: [string]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 25 25
5595 Parse::RecDescent::_tracefirst($text),
5596 q{atom},
5597 $tracelevel)
5598 if defined $::RD_TRACE;
5599 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5600 25 $expectation->is(q{})->at($text);
5601 25 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::string($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = string($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 21 4 25
5602 {
5603
5604 21 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [string]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5605 Parse::RecDescent::_tracefirst($text),
5606 q{atom},
5607 $tracelevel)
5608 if defined $::RD_TRACE;
5609 21 $expectation->failed();
5610 21 last;
5611 }
5612 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [string]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5613 . $_tok . q{]},
5614
5615 Parse::RecDescent::_tracefirst($text),
5616 q{atom},
5617 $tracelevel)
5618 if defined $::RD_TRACE;
5619 4 $item{q{string}} = $_tok;
5620 4 push @item, $_tok;
5621
5622 }
5623  
5624  
5625 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: [string]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5626 Parse::RecDescent::_tracefirst($text),
5627 q{atom},
5628 $tracelevel)
5629 if defined $::RD_TRACE;
5630 4 $_matched = 1;
5631 4 last;
5632 }
5633  
5634  
5635 45 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 21 24 45
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
24021
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5636 {
5637
5638 21 ▶ Parse::RecDescent::_trace(q{Trying production: [int]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5639 Parse::RecDescent::_tracefirst($_[1]),
5640 q{atom},
5641 $tracelevel)
5642 if defined $::RD_TRACE;
5643 21 my $thisprod = $thisrule->{"prods"}[4];
5644 21 $text = $_[1];
5645 21 my $_savetext;
5646 21 @item = (q{atom});
5647 21 %item = (__RULE__ => q{atom});
5648 21 my $repcount = 0;
5649  
5650  
5651 21 ▶ Parse::RecDescent::_trace(q{Trying subrule: [int]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5652 Parse::RecDescent::_tracefirst($text),
5653 q{atom},
5654 $tracelevel)
5655 if defined $::RD_TRACE;
5656 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5657 21 $expectation->is(q{})->at($text);
5658 21 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::int($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = Parse::RecDescent::Cheater::Parser::int($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 21 0 21
5659 {
5660
5661 21 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [int]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5662 Parse::RecDescent::_tracefirst($text),
5663 q{atom},
5664 $tracelevel)
5665 if defined $::RD_TRACE;
5666 21 $expectation->failed();
5667 21 last;
5668 }
5669 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [int]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5670 . $_tok . q{]},
5671
5672 Parse::RecDescent::_tracefirst($text),
5673 q{atom},
5674 $tracelevel)
5675 if defined $::RD_TRACE;
5676 0 $item{q{int}} = $_tok;
5677 0 push @item, $_tok;
5678
5679 }
5680  
5681  
5682 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [int]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5683 Parse::RecDescent::_tracefirst($text),
5684 q{atom},
5685 $tracelevel)
5686 if defined $::RD_TRACE;
5687 0 $_matched = 1;
5688 0 last;
5689 }
5690  
5691  
5692 45 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 21 24 45
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
24021
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
5693 {
5694
5695  
5696 21 $_[1] = $text; # NOT SURE THIS IS NEEDED
5697 21 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 21 21
5698 Parse::RecDescent::_tracefirst($_[1]),
5699 q{atom},
5700 $tracelevel)
5701 if defined $::RD_TRACE;
5702 21 return undef;
5703 }
5704 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
5705 {
5706 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5707 q{atom},
5708 $tracelevel)
5709 if defined $::RD_TRACE;
5710 0 $return = $score_return;
5711 }
5712 24 splice @{$thisparser->{errors}}, $err_at;
5713 24 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 24 0 24
5714 24 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 24 24
5715 {
5716 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
5717 $return . q{])}, "",
5718 q{atom},
5719 $tracelevel);
5720 0 Parse::RecDescent::_trace(q{(consumed: [} .
5721 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
5722 Parse::RecDescent::_tracefirst($text),
5723 , q{atom},
5724 $tracelevel)
5725 }
5726 24 $_[1] = $text;
5727 24 return $return;
5728 }
5729  
5730 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
5731 sub Parse::RecDescent::Cheater::Parser::enum
5732 33 ▶{
Subroutine enum: called CC=76 SCAR=56.7
5733 33 my $thisparser = $_[0];
5734 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
5735 33 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
330
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
5736 33 $ERRORS = 0;
5737 33 my $thisrule = $thisparser->{"rules"}{"enum"};
5738
5739 33 ▶ Parse::RecDescent::_trace(q{Trying rule: [enum]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
5740 Parse::RecDescent::_tracefirst($_[1]),
5741 q{enum},
5742 $tracelevel)
5743 if defined $::RD_TRACE;
5744  
5745
5746 33 my $err_at = @{$thisparser->{errors}};
5747  
5748 33 my $score;
5749 my $score_return;
5750 33 my $_tok;
5751 33 my $return = undef;
5752 33 my $_matched=0;
5753 33 my $commit=0;
5754 33 my @item = ();
5755 33 my %item = ();
5756 33 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0033
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
5757 33 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0330
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
5758 33 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 33 0 33
5759 33 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 33 0 33
5760 33 my $text;
5761 33 my $lastsep="";
5762 33 my $current_match;
5763 33 my $expectation = new Parse::RecDescent::Expectation(q{'\{'});
5764 33 $expectation->at($_[1]);
5765
5766 33 my $prevline;
5767 33 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
5768
5769 33 my $thisline;
5770 33 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
5771  
5772
5773  
5774 33 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 33 0 33
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0033
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
5775 {
5776
5777 33 ▶ Parse::RecDescent::_trace(q{Trying production: ['\{' <commit> <leftop: atom /,/ atom> '\}']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
5778 Parse::RecDescent::_tracefirst($_[1]),
5779 q{enum},
5780 $tracelevel)
5781 if defined $::RD_TRACE;
5782 33 my $thisprod = $thisrule->{"prods"}[0];
5783 33 $text = $_[1];
5784 33 my $_savetext;
5785 33 @item = (q{enum});
5786 33 %item = (__RULE__ => q{enum});
5787 33 my $repcount = 0;
5788  
5789  
5790 33 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['\{']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
5791 Parse::RecDescent::_tracefirst($text),
5792 q{enum},
5793 $tracelevel)
5794 if defined $::RD_TRACE;
5795 33 $lastsep = "";
5796 33 $expectation->is(q{})->at($text);
5797
5798  
5799 33 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\{/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\{/) 29 4 33
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\{/
!ll&&!rl&&r
0294
($lastsep = $1) && ''
!ll
1023
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\{/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\{/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\{/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
5800 {
5801
5802 29 $expectation->failed();
5803 29 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
5804 Parse::RecDescent::_tracefirst($text))
5805 if defined $::RD_TRACE;
5806 29 last;
5807 }
5808 4 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5809 4 substr($text,0,length($current_match),q{});
5810 4 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5811 . $current_match . q{])},
5812 Parse::RecDescent::_tracefirst($text))
5813 if defined $::RD_TRACE;
5814 4 push @item, $item{__STRING1__}=$current_match;
5815
5816  
5817
5818  
5819 4 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5820 Parse::RecDescent::_tracefirst($text),
5821 q{enum},
5822 $tracelevel)
5823 if defined $::RD_TRACE;
5824 4 $_tok = do { $commit = 1 };
5825 4 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 4 0 4
5826 {
5827 4 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5828 . $_tok . q{])},
5829 Parse::RecDescent::_tracefirst($text))
5830 if defined $::RD_TRACE;
5831 }
5832 else
5833 {
5834 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5835 Parse::RecDescent::_tracefirst($text))
5836 if defined $::RD_TRACE;
5837 }
5838
5839 4 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 4 4
5840 4 push @item, $item{__DIRECTIVE1__}=$_tok;
5841
5842  
5843 4 ▶ Parse::RecDescent::_trace(q{Trying operator: [<leftop: atom /,/ atom>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5844 Parse::RecDescent::_tracefirst($text),
5845 q{enum},
5846 $tracelevel)
5847 if defined $::RD_TRACE;
5848 4 $expectation->is(q{<leftop: atom /,/ atom>})->at($text);
5849  
5850 4 $_tok = undef;
5851 4 OPLOOP: while (1)
5852 {
5853 4 $repcount = 0;
5854 4 my @item;
5855
5856 # MATCH LEFTARG
5857
5858 4 ▶ Parse::RecDescent::_trace(q{Trying subrule: [atom]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5859 Parse::RecDescent::_tracefirst($text),
5860 q{enum},
5861 $tracelevel)
5862 if defined $::RD_TRACE;
5863 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5864 4 $expectation->is(q{atom})->at($text);
5865 4 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::atom($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = atom($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 4 4
5866 {
5867
5868 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [atom]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5869 Parse::RecDescent::_tracefirst($text),
5870 q{enum},
5871 $tracelevel)
5872 if defined $::RD_TRACE;
5873 0 $expectation->failed();
5874 0 last;
5875 }
5876 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [atom]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5877 . $_tok . q{]},
5878
5879 Parse::RecDescent::_tracefirst($text),
5880 q{enum},
5881 $tracelevel)
5882 if defined $::RD_TRACE;
5883 4 $item{q{atom}} = $_tok;
5884 4 push @item, $_tok;
5885
5886 }
5887  
5888  
5889 4 $repcount++;
5890  
5891 4 my $savetext = $text;
5892 4 my $backtrack;
5893  
5894 # MATCH (OP RIGHTARG)(s)
5895 4 ▶ while ($repcount < 100000000)
Branch: 1 branch
BranchTrueFalseTotal
if ($repcount < 100000000) 16 0 16
5896 {
5897 16 $backtrack = 0;
5898
5899 16 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/,/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 16 16
5900 q{enum},
5901 $tracelevel)
5902 if defined $::RD_TRACE;
5903 16 $lastsep = "";
5904 16 $expectation->is(q{/,/})->at($text);
5905
5906  
5907 16 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:,)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:,)/) 4 12 16
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:,)/
!ll&&!rl&&r
0412
($lastsep = $1) && ''
!ll
160
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:,)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:,)/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:,)/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
5908 {
5909
5910 4 $expectation->failed();
5911 4 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5912 Parse::RecDescent::_tracefirst($text))
5913 if defined $::RD_TRACE;
5914  
5915 4 last;
5916 }
5917 12 $current_match = substr($text, $-[0], $+[0] - $-[0]);
5918 12 substr($text,0,length($current_match),q{});
5919 12 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
5920 . $current_match . q{])},
5921 Parse::RecDescent::_tracefirst($text))
5922 if defined $::RD_TRACE;
5923 12 push @item, $item{__PATTERN1__}=$current_match;
5924
5925  
5926 12 pop @item;
5927 0 ▶ if (defined $1) {push @item, $item{'atom(s?)'}=$1; $backtrack=1;}
Branch: 1 branch
BranchTrueFalseTotal
if (defined $1) 0 12 12
5928
5929 12 ▶ Parse::RecDescent::_trace(q{Trying subrule: [atom]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
5930 Parse::RecDescent::_tracefirst($text),
5931 q{enum},
5932 $tracelevel)
5933 if defined $::RD_TRACE;
5934 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
5935 12 $expectation->is(q{atom})->at($text);
5936 12 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::atom($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = atom($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 12 12
5937 {
5938
5939 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [atom]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5940 Parse::RecDescent::_tracefirst($text),
5941 q{enum},
5942 $tracelevel)
5943 if defined $::RD_TRACE;
5944 0 $expectation->failed();
5945 0 last;
5946 }
5947 12 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [atom]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 12 12
5948 . $_tok . q{]},
5949
5950 Parse::RecDescent::_tracefirst($text),
5951 q{enum},
5952 $tracelevel)
5953 if defined $::RD_TRACE;
5954 12 $item{q{atom}} = $_tok;
5955 12 push @item, $_tok;
5956
5957 }
5958  
5959 12 $savetext = $text;
5960 12 $repcount++;
5961 }
5962 4 $text = $savetext;
5963 4 ▶ pop @item if $backtrack;
Branch: 1 branch
BranchTrueFalseTotal
if $backtrack 0 4 4
5964  
5965
5966 4 $_tok = [ @item ];
5967 4 last;
5968 }
5969  
5970 4 ▶ unless ($repcount>=0)
Branch: 1 branch
BranchTrueFalseTotal
unless ($repcount >= 0) 0 4 4
5971 {
5972 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match operator: [<leftop: atom /,/ atom>]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
5973 Parse::RecDescent::_tracefirst($text),
5974 q{enum},
5975 $tracelevel)
5976 if defined $::RD_TRACE;
5977 0 $expectation->failed();
5978 0 last;
5979 }
5980 4 ▶ Parse::RecDescent::_trace(q{>>Matched operator: [<leftop: atom /,/ atom>]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5981 0 ▶ . qq{@{$_tok||[]}} . q{]},
Condition0%0/2
$_tok || []
l!l
00
MC/DC0%0/1
$_tok || []
$_tok
Truth table0%0/2
A
A= $_tok
Aresult
11
00
5982 Parse::RecDescent::_tracefirst($text),
5983 q{enum},
5984 $tracelevel)
5985 if defined $::RD_TRACE;
5986  
5987 4 ▶ push @item, $item{'atom(s?)'}=$_tok||[];
Condition50%1/2
$_tok || []
l!l
40
MC/DC0%0/1
$_tok || []
$_tok
Truth table50%1/2
A
A= $_tok
Aresult
11
00
5988  
5989  
5990 4 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['\}']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
5991 Parse::RecDescent::_tracefirst($text),
5992 q{enum},
5993 $tracelevel)
5994 if defined $::RD_TRACE;
5995 4 $lastsep = "";
5996 4 $expectation->is(q{'\}'})->at($text);
5997
5998  
5999 4 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\}/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\}/) 0 4 4
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\}/
!ll&&!rl&&r
004
($lastsep = $1) && ''
!ll
40
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\}/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\}/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\}/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
6000 {
6001
6002 0 $expectation->failed();
6003 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6004 Parse::RecDescent::_tracefirst($text))
6005 if defined $::RD_TRACE;
6006 0 last;
6007 }
6008 4 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6009 4 substr($text,0,length($current_match),q{});
6010 4 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
6011 . $current_match . q{])},
6012 Parse::RecDescent::_tracefirst($text))
6013 if defined $::RD_TRACE;
6014 4 push @item, $item{__STRING2__}=$current_match;
6015
6016  
6017 4 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
6018 Parse::RecDescent::_tracefirst($text),
6019 q{enum},
6020 $tracelevel)
6021 if defined $::RD_TRACE;
6022
6023  
6024 4 ▶ $_tok = ($_noactions) ? 0 : do { $item[3] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 4 4
6025 4 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 4 4
6026 {
6027 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6028 if defined $::RD_TRACE;
6029 0 last;
6030 }
6031 4 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
6032 . $_tok . q{])},
6033 Parse::RecDescent::_tracefirst($text))
6034 if defined $::RD_TRACE;
6035 4 push @item, $_tok;
6036 4 $item{__ACTION1__}=$_tok;
6037
6038  
6039  
6040 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['\{' <commit> <leftop: atom /,/ atom> '\}']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
6041 Parse::RecDescent::_tracefirst($text),
6042 q{enum},
6043 $tracelevel)
6044 if defined $::RD_TRACE;
6045 4 $_matched = 1;
6046 4 last;
6047 }
6048  
6049  
6050 33 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 29 4 33
6051 {
6052
6053 29 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6054 Parse::RecDescent::_tracefirst($_[1]),
6055 q{enum},
6056 $tracelevel)
6057 if defined $::RD_TRACE;
6058 29 my $thisprod = $thisrule->{"prods"}[1];
6059
6060 29 my $_savetext;
6061 29 @item = (q{enum});
6062 29 %item = (__RULE__ => q{enum});
6063 29 my $repcount = 0;
6064  
6065  
6066
6067  
6068 29 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6069 Parse::RecDescent::_tracefirst($text),
6070 q{enum},
6071 $tracelevel)
6072 if defined $::RD_TRACE;
6073 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 29 29
unless ($_noactions) 0 0 0
6074 0 my $rule = $item[0];
6075 0 $rule =~ s/_/ /g;
6076 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
6077 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
6078 0 } unless $_noactions; undef } else {0} };
6079 29 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 29 0 29
6080 {
6081 29 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6082 . $_tok . q{])},
6083 Parse::RecDescent::_tracefirst($text))
6084 if defined $::RD_TRACE;
6085 }
6086 else
6087 {
6088 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6089 Parse::RecDescent::_tracefirst($text))
6090 if defined $::RD_TRACE;
6091 }
6092
6093 29 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 29 29
6094 29 push @item, $item{__DIRECTIVE1__}=$_tok;
6095
6096  
6097 29 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6098 Parse::RecDescent::_tracefirst($text),
6099 q{enum},
6100 $tracelevel)
6101 if defined $::RD_TRACE;
6102 29 undef $return;
6103
6104  
6105 29 $_tok = undef;
6106
6107 29 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 29 0 29
6108  
6109  
6110 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6111 Parse::RecDescent::_tracefirst($text),
6112 q{enum},
6113 $tracelevel)
6114 if defined $::RD_TRACE;
6115 0 $_matched = 1;
6116 0 last;
6117 }
6118  
6119  
6120 33 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 29 4 33
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
4029
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
6121 {
6122
6123  
6124 29 $_[1] = $text; # NOT SURE THIS IS NEEDED
6125 29 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 29 29
6126 Parse::RecDescent::_tracefirst($_[1]),
6127 q{enum},
6128 $tracelevel)
6129 if defined $::RD_TRACE;
6130 29 return undef;
6131 }
6132 4 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 4 4
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
040
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
6133 {
6134 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6135 q{enum},
6136 $tracelevel)
6137 if defined $::RD_TRACE;
6138 0 $return = $score_return;
6139 }
6140 4 splice @{$thisparser->{errors}}, $err_at;
6141 4 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 4 0 4
6142 4 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 4 4
6143 {
6144 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
6145 $return . q{])}, "",
6146 q{enum},
6147 $tracelevel);
6148 0 Parse::RecDescent::_trace(q{(consumed: [} .
6149 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
6150 Parse::RecDescent::_tracefirst($text),
6151 , q{enum},
6152 $tracelevel)
6153 }
6154 4 $_[1] = $text;
6155 4 return $return;
6156 }
6157  
6158 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
6159 sub Parse::RecDescent::Cheater::Parser::column_definition
6160 66 ▶{
Subroutine column_definition: called CC=125 SCAR=73.1
6161 66 my $thisparser = $_[0];
6162 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6163 66 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
660
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
6164 66 $ERRORS = 0;
6165 66 my $thisrule = $thisparser->{"rules"}{"column_definition"};
6166
6167 66 ▶ Parse::RecDescent::_trace(q{Trying rule: [column_definition]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
6168 Parse::RecDescent::_tracefirst($_[1]),
6169 q{column_definition},
6170 $tracelevel)
6171 if defined $::RD_TRACE;
6172  
6173
6174 66 my $err_at = @{$thisparser->{errors}};
6175  
6176 66 my $score;
6177 my $score_return;
6178 66 my $_tok;
6179 66 my $return = undef;
6180 66 my $_matched=0;
6181 66 my $commit=0;
6182 66 my @item = ();
6183 66 my %item = ();
6184 66 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0066
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
6185 66 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0660
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
6186 66 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 66 0 66
6187 66 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 66 0 66
6188 66 my $text;
6189 66 my $lastsep="";
6190 66 my $current_match;
6191 66 my $expectation = new Parse::RecDescent::Expectation(q{column_name});
6192 66 $expectation->at($_[1]);
6193
6194 66 my $prevline;
6195 66 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
6196
6197 66 my $thisline;
6198 66 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
6199  
6200
6201  
6202 66 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 66 0 66
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0066
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6203 {
6204
6205 66 ▶ Parse::RecDescent::_trace(q{Trying production: [column_name 'references' <commit> qualified_column attribute ';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
6206 Parse::RecDescent::_tracefirst($_[1]),
6207 q{column_definition},
6208 $tracelevel)
6209 if defined $::RD_TRACE;
6210 66 my $thisprod = $thisrule->{"prods"}[0];
6211 66 $text = $_[1];
6212 66 my $_savetext;
6213 66 @item = (q{column_definition});
6214 66 %item = (__RULE__ => q{column_definition});
6215 66 my $repcount = 0;
6216  
6217  
6218 66 ▶ Parse::RecDescent::_trace(q{Trying subrule: [column_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
6219 Parse::RecDescent::_tracefirst($text),
6220 q{column_definition},
6221 $tracelevel)
6222 if defined $::RD_TRACE;
6223 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6224 66 $expectation->is(q{})->at($text);
6225 66 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::column_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = column_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 32 34 66
6226 {
6227
6228 32 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [column_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6229 Parse::RecDescent::_tracefirst($text),
6230 q{column_definition},
6231 $tracelevel)
6232 if defined $::RD_TRACE;
6233 32 $expectation->failed();
6234 32 last;
6235 }
6236 34 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [column_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
6237 . $_tok . q{]},
6238
6239 Parse::RecDescent::_tracefirst($text),
6240 q{column_definition},
6241 $tracelevel)
6242 if defined $::RD_TRACE;
6243 34 $item{q{column_name}} = $_tok;
6244 34 push @item, $_tok;
6245
6246 }
6247  
6248 34 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['references']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
6249 Parse::RecDescent::_tracefirst($text),
6250 q{column_definition},
6251 $tracelevel)
6252 if defined $::RD_TRACE;
6253 34 $lastsep = "";
6254 34 $expectation->is(q{'references'})->at($text);
6255
6256  
6257 34 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Areferences/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Areferences/) 34 0 34
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Areferences/
!ll&&!rl&&r
0340
($lastsep = $1) && ''
!ll
034
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Areferences/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Areferences/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Areferences/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
6258 {
6259
6260 34 $expectation->failed();
6261 34 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
6262 Parse::RecDescent::_tracefirst($text))
6263 if defined $::RD_TRACE;
6264 34 last;
6265 }
6266 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6267 0 substr($text,0,length($current_match),q{});
6268 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6269 . $current_match . q{])},
6270 Parse::RecDescent::_tracefirst($text))
6271 if defined $::RD_TRACE;
6272 0 push @item, $item{__STRING1__}=$current_match;
6273
6274  
6275
6276  
6277 0 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6278 Parse::RecDescent::_tracefirst($text),
6279 q{column_definition},
6280 $tracelevel)
6281 if defined $::RD_TRACE;
6282 0 $_tok = do { $commit = 1 };
6283 0 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 0 0 0
6284 {
6285 0 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6286 . $_tok . q{])},
6287 Parse::RecDescent::_tracefirst($text))
6288 if defined $::RD_TRACE;
6289 }
6290 else
6291 {
6292 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6293 Parse::RecDescent::_tracefirst($text))
6294 if defined $::RD_TRACE;
6295 }
6296
6297 0 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 0 0
6298 0 push @item, $item{__DIRECTIVE1__}=$_tok;
6299
6300  
6301 0 ▶ Parse::RecDescent::_trace(q{Trying subrule: [qualified_column]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6302 Parse::RecDescent::_tracefirst($text),
6303 q{column_definition},
6304 $tracelevel)
6305 if defined $::RD_TRACE;
6306 0 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.2
6307 0 $expectation->is(q{qualified_column})->at($text);
6308 0 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::qualified_column($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = qualified_column($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 0 0
6309 {
6310
6311 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [qualified_column]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6312 Parse::RecDescent::_tracefirst($text),
6313 q{column_definition},
6314 $tracelevel)
6315 if defined $::RD_TRACE;
6316 0 $expectation->failed();
6317 0 last;
6318 }
6319 0 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [qualified_column]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6320 . $_tok . q{]},
6321
6322 Parse::RecDescent::_tracefirst($text),
6323 q{column_definition},
6324 $tracelevel)
6325 if defined $::RD_TRACE;
6326 0 $item{q{qualified_column}} = $_tok;
6327 0 push @item, $_tok;
6328
6329 }
6330  
6331 0 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [attribute]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6332 Parse::RecDescent::_tracefirst($text),
6333 q{column_definition},
6334 $tracelevel)
6335 if defined $::RD_TRACE;
6336 0 $expectation->is(q{attribute})->at($text);
6337
6338 0 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::attribute, 0, 100000000, $_noactions,$expectation,sub { \@arg })))
Subroutine __ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::attribute, 0, 100000000, $_noactions, $expectation, sub { \@arg; } ))) 0 0 0
6339 {
6340 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [attribute]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6341 Parse::RecDescent::_tracefirst($text),
6342 q{column_definition},
6343 $tracelevel)
6344 if defined $::RD_TRACE;
6345 0 last;
6346 }
6347 0 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [attribute]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6348 . @$_tok . q{ times)},
6349
6350 Parse::RecDescent::_tracefirst($text),
6351 q{column_definition},
6352 $tracelevel)
6353 if defined $::RD_TRACE;
6354 0 $item{q{attribute(s?)}} = $_tok;
6355 0 push @item, $_tok;
6356
6357  
6358  
6359 0 ▶ Parse::RecDescent::_trace(q{Trying terminal: [';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6360 Parse::RecDescent::_tracefirst($text),
6361 q{column_definition},
6362 $tracelevel)
6363 if defined $::RD_TRACE;
6364 0 $lastsep = "";
6365 0 $expectation->is(q{';'})->at($text);
6366
6367  
6368 0 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\;/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/) 0 0 0
Condition0%0/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
!ll&&!rl&&r
000
($lastsep = $1) && ''
!ll
00
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\;/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table0%0/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\;/
ABresult
0X0
100
111
Truth table0%0/2
A
A= ($lastsep = $1)
Aresult
00
11
6369 {
6370
6371 0 $expectation->failed();
6372 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6373 Parse::RecDescent::_tracefirst($text))
6374 if defined $::RD_TRACE;
6375 0 last;
6376 }
6377 0 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6378 0 substr($text,0,length($current_match),q{});
6379 0 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6380 . $current_match . q{])},
6381 Parse::RecDescent::_tracefirst($text))
6382 if defined $::RD_TRACE;
6383 0 push @item, $item{__STRING2__}=$current_match;
6384
6385  
6386 0 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6387 Parse::RecDescent::_tracefirst($text),
6388 q{column_definition},
6389 $tracelevel)
6390 if defined $::RD_TRACE;
6391
6392  
6393 0 ▶ $_tok = ($_noactions) ? 0 : do { [ $item[1], 'refs', $item[4], $item[5] ] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 0 0
6394 0 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 0 0
6395 {
6396 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6397 if defined $::RD_TRACE;
6398 0 last;
6399 }
6400 0 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6401 . $_tok . q{])},
6402 Parse::RecDescent::_tracefirst($text))
6403 if defined $::RD_TRACE;
6404 0 push @item, $_tok;
6405 0 $item{__ACTION1__}=$_tok;
6406
6407  
6408  
6409 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [column_name 'references' <commit> qualified_column attribute ';']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6410 Parse::RecDescent::_tracefirst($text),
6411 q{column_definition},
6412 $tracelevel)
6413 if defined $::RD_TRACE;
6414 0 $_matched = 1;
6415 0 last;
6416 }
6417  
6418  
6419 66 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 66 0 66
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0066
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6420 {
6421
6422 66 ▶ Parse::RecDescent::_trace(q{Trying production: [column_name type domain attribute ';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
6423 Parse::RecDescent::_tracefirst($_[1]),
6424 q{column_definition},
6425 $tracelevel)
6426 if defined $::RD_TRACE;
6427 66 my $thisprod = $thisrule->{"prods"}[1];
6428 66 $text = $_[1];
6429 66 my $_savetext;
6430 66 @item = (q{column_definition});
6431 66 %item = (__RULE__ => q{column_definition});
6432 66 my $repcount = 0;
6433  
6434  
6435 66 ▶ Parse::RecDescent::_trace(q{Trying subrule: [column_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
6436 Parse::RecDescent::_tracefirst($text),
6437 q{column_definition},
6438 $tracelevel)
6439 if defined $::RD_TRACE;
6440 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6441 66 $expectation->is(q{})->at($text);
6442 66 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::column_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = column_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 32 34 66
6443 {
6444
6445 32 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [column_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6446 Parse::RecDescent::_tracefirst($text),
6447 q{column_definition},
6448 $tracelevel)
6449 if defined $::RD_TRACE;
6450 32 $expectation->failed();
6451 32 last;
6452 }
6453 34 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [column_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
6454 . $_tok . q{]},
6455
6456 Parse::RecDescent::_tracefirst($text),
6457 q{column_definition},
6458 $tracelevel)
6459 if defined $::RD_TRACE;
6460 34 $item{q{column_name}} = $_tok;
6461 34 push @item, $_tok;
6462
6463 }
6464  
6465 34 ▶ Parse::RecDescent::_trace(q{Trying subrule: [type]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
6466 Parse::RecDescent::_tracefirst($text),
6467 q{column_definition},
6468 $tracelevel)
6469 if defined $::RD_TRACE;
6470 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6471 34 $expectation->is(q{type})->at($text);
6472 34 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::type($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = type($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 1 33 34
6473 {
6474
6475 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [type]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6476 Parse::RecDescent::_tracefirst($text),
6477 q{column_definition},
6478 $tracelevel)
6479 if defined $::RD_TRACE;
6480 1 $expectation->failed();
6481 1 last;
6482 }
6483 33 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [type]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6484 . $_tok . q{]},
6485
6486 Parse::RecDescent::_tracefirst($text),
6487 q{column_definition},
6488 $tracelevel)
6489 if defined $::RD_TRACE;
6490 33 $item{q{type}} = $_tok;
6491 33 push @item, $_tok;
6492
6493 }
6494  
6495 33 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [domain]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6496 Parse::RecDescent::_tracefirst($text),
6497 q{column_definition},
6498 $tracelevel)
6499 if defined $::RD_TRACE;
6500 33 $expectation->is(q{domain})->at($text);
6501
6502 33 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::domain, 0, 1, $_noactions,$expectation,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::domain, 0, 1, $_noactions, $expectation, sub { \@arg; } ))) 0 33 33
6503 {
6504 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [domain]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6505 Parse::RecDescent::_tracefirst($text),
6506 q{column_definition},
6507 $tracelevel)
6508 if defined $::RD_TRACE;
6509 0 last;
6510 }
6511 33 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [domain]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6512 . @$_tok . q{ times)},
6513
6514 Parse::RecDescent::_tracefirst($text),
6515 q{column_definition},
6516 $tracelevel)
6517 if defined $::RD_TRACE;
6518 33 $item{q{domain(?)}} = $_tok;
6519 33 push @item, $_tok;
6520
6521  
6522  
6523 33 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [attribute]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6524 Parse::RecDescent::_tracefirst($text),
6525 q{column_definition},
6526 $tracelevel)
6527 if defined $::RD_TRACE;
6528 33 $expectation->is(q{attribute})->at($text);
6529
6530 33 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::attribute, 0, 100000000, $_noactions,$expectation,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::attribute, 0, 100000000, $_noactions, $expectation, sub { \@arg; } ))) 0 33 33
6531 {
6532 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [attribute]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6533 Parse::RecDescent::_tracefirst($text),
6534 q{column_definition},
6535 $tracelevel)
6536 if defined $::RD_TRACE;
6537 0 last;
6538 }
6539 33 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [attribute]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6540 . @$_tok . q{ times)},
6541
6542 Parse::RecDescent::_tracefirst($text),
6543 q{column_definition},
6544 $tracelevel)
6545 if defined $::RD_TRACE;
6546 33 $item{q{attribute(s?)}} = $_tok;
6547 33 push @item, $_tok;
6548
6549  
6550  
6551 33 ▶ Parse::RecDescent::_trace(q{Trying terminal: [';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6552 Parse::RecDescent::_tracefirst($text),
6553 q{column_definition},
6554 $tracelevel)
6555 if defined $::RD_TRACE;
6556 33 $lastsep = "";
6557 33 $expectation->is(q{';'})->at($text);
6558
6559  
6560 33 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\;/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/) 0 33 33
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
!ll&&!rl&&r
0033
($lastsep = $1) && ''
!ll
330
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\;/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\;/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
6561 {
6562
6563 0 $expectation->failed();
6564 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6565 Parse::RecDescent::_tracefirst($text))
6566 if defined $::RD_TRACE;
6567 0 last;
6568 }
6569 33 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6570 33 substr($text,0,length($current_match),q{});
6571 33 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6572 . $current_match . q{])},
6573 Parse::RecDescent::_tracefirst($text))
6574 if defined $::RD_TRACE;
6575 33 push @item, $item{__STRING1__}=$current_match;
6576
6577  
6578 33 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6579 Parse::RecDescent::_tracefirst($text),
6580 q{column_definition},
6581 $tracelevel)
6582 if defined $::RD_TRACE;
6583
6584  
6585 33 ▶ $_tok = ($_noactions) ? 0 : do { [$item[1], $item[2], $item[3], $item[4] ] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 33 33
6586 33 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 33 33
6587 {
6588 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6589 if defined $::RD_TRACE;
6590 0 last;
6591 }
6592 33 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6593 . $_tok . q{])},
6594 Parse::RecDescent::_tracefirst($text))
6595 if defined $::RD_TRACE;
6596 33 push @item, $_tok;
6597 33 $item{__ACTION1__}=$_tok;
6598
6599  
6600  
6601 33 ▶ Parse::RecDescent::_trace(q{>>Matched production: [column_name type domain attribute ';']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6602 Parse::RecDescent::_tracefirst($text),
6603 q{column_definition},
6604 $tracelevel)
6605 if defined $::RD_TRACE;
6606 33 $_matched = 1;
6607 33 last;
6608 }
6609  
6610  
6611 66 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 33 33 66
Condition66%2/3
$_matched or $commit
l!l&&r!l&&!r
33033
MC/DC50%1/2
$_matched or $commit
$_matched $commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6612 {
6613
6614 33 ▶ Parse::RecDescent::_trace(q{Trying production: [column_name '=' column_name ';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6615 Parse::RecDescent::_tracefirst($_[1]),
6616 q{column_definition},
6617 $tracelevel)
6618 if defined $::RD_TRACE;
6619 33 my $thisprod = $thisrule->{"prods"}[2];
6620 33 $text = $_[1];
6621 33 my $_savetext;
6622 33 @item = (q{column_definition});
6623 33 %item = (__RULE__ => q{column_definition});
6624 33 my $repcount = 0;
6625  
6626  
6627 33 ▶ Parse::RecDescent::_trace(q{Trying subrule: [column_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
6628 Parse::RecDescent::_tracefirst($text),
6629 q{column_definition},
6630 $tracelevel)
6631 if defined $::RD_TRACE;
6632 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6633 33 $expectation->is(q{})->at($text);
6634 33 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::column_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = column_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 32 1 33
6635 {
6636
6637 32 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [column_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6638 Parse::RecDescent::_tracefirst($text),
6639 q{column_definition},
6640 $tracelevel)
6641 if defined $::RD_TRACE;
6642 32 $expectation->failed();
6643 32 last;
6644 }
6645 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [column_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6646 . $_tok . q{]},
6647
6648 Parse::RecDescent::_tracefirst($text),
6649 q{column_definition},
6650 $tracelevel)
6651 if defined $::RD_TRACE;
6652 1 $item{q{column_name}} = $_tok;
6653 1 push @item, $_tok;
6654
6655 }
6656  
6657 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['=']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6658 Parse::RecDescent::_tracefirst($text),
6659 q{column_definition},
6660 $tracelevel)
6661 if defined $::RD_TRACE;
6662 1 $lastsep = "";
6663 1 $expectation->is(q{'='})->at($text);
6664
6665  
6666 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\=/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/) 0 1 1
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
01
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\=/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\=/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
6667 {
6668
6669 0 $expectation->failed();
6670 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6671 Parse::RecDescent::_tracefirst($text))
6672 if defined $::RD_TRACE;
6673 0 last;
6674 }
6675 1 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6676 1 substr($text,0,length($current_match),q{});
6677 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6678 . $current_match . q{])},
6679 Parse::RecDescent::_tracefirst($text))
6680 if defined $::RD_TRACE;
6681 1 push @item, $item{__STRING1__}=$current_match;
6682
6683  
6684 1 ▶ Parse::RecDescent::_trace(q{Trying subrule: [column_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6685 Parse::RecDescent::_tracefirst($text),
6686 q{column_definition},
6687 $tracelevel)
6688 if defined $::RD_TRACE;
6689 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
6690 1 $expectation->is(q{column_name})->at($text);
6691 1 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::column_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = column_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 1 1
6692 {
6693
6694 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [column_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6695 Parse::RecDescent::_tracefirst($text),
6696 q{column_definition},
6697 $tracelevel)
6698 if defined $::RD_TRACE;
6699 0 $expectation->failed();
6700 0 last;
6701 }
6702 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [column_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6703 . $_tok . q{]},
6704
6705 Parse::RecDescent::_tracefirst($text),
6706 q{column_definition},
6707 $tracelevel)
6708 if defined $::RD_TRACE;
6709 1 $item{q{column_name}} = $_tok;
6710 1 push @item, $_tok;
6711
6712 }
6713  
6714 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: [';']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6715 Parse::RecDescent::_tracefirst($text),
6716 q{column_definition},
6717 $tracelevel)
6718 if defined $::RD_TRACE;
6719 1 $lastsep = "";
6720 1 $expectation->is(q{';'})->at($text);
6721
6722  
6723 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\;/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/) 0 1 1
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
10
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\;/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\;/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\;/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
6724 {
6725
6726 0 $expectation->failed();
6727 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6728 Parse::RecDescent::_tracefirst($text))
6729 if defined $::RD_TRACE;
6730 0 last;
6731 }
6732 1 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6733 1 substr($text,0,length($current_match),q{});
6734 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6735 . $current_match . q{])},
6736 Parse::RecDescent::_tracefirst($text))
6737 if defined $::RD_TRACE;
6738 1 push @item, $item{__STRING2__}=$current_match;
6739
6740  
6741 1 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6742 Parse::RecDescent::_tracefirst($text),
6743 q{column_definition},
6744 $tracelevel)
6745 if defined $::RD_TRACE;
6746
6747  
6748 1 ▶ $_tok = ($_noactions) ? 0 : do { [$item[1], '=', $item[3]] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 1 1
6749 1 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 1 1
6750 {
6751 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6752 if defined $::RD_TRACE;
6753 0 last;
6754 }
6755 1 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6756 . $_tok . q{])},
6757 Parse::RecDescent::_tracefirst($text))
6758 if defined $::RD_TRACE;
6759 1 push @item, $_tok;
6760 1 $item{__ACTION1__}=$_tok;
6761
6762  
6763  
6764 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [column_name '=' column_name ';']<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
6765 Parse::RecDescent::_tracefirst($text),
6766 q{column_definition},
6767 $tracelevel)
6768 if defined $::RD_TRACE;
6769 1 $_matched = 1;
6770 1 last;
6771 }
6772  
6773  
6774 66 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 32 34 66
6775 {
6776
6777 32 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6778 Parse::RecDescent::_tracefirst($_[1]),
6779 q{column_definition},
6780 $tracelevel)
6781 if defined $::RD_TRACE;
6782 32 my $thisprod = $thisrule->{"prods"}[3];
6783
6784 32 my $_savetext;
6785 32 @item = (q{column_definition});
6786 32 %item = (__RULE__ => q{column_definition});
6787 32 my $repcount = 0;
6788  
6789  
6790
6791  
6792 32 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6793 Parse::RecDescent::_tracefirst($text),
6794 q{column_definition},
6795 $tracelevel)
6796 if defined $::RD_TRACE;
6797 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 32 32
unless ($_noactions) 0 0 0
6798 0 my $rule = $item[0];
6799 0 $rule =~ s/_/ /g;
6800 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
6801 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
6802 0 } unless $_noactions; undef } else {0} };
6803 32 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 32 0 32
6804 {
6805 32 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6806 . $_tok . q{])},
6807 Parse::RecDescent::_tracefirst($text))
6808 if defined $::RD_TRACE;
6809 }
6810 else
6811 {
6812 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6813 Parse::RecDescent::_tracefirst($text))
6814 if defined $::RD_TRACE;
6815 }
6816
6817 32 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 32 32
6818 32 push @item, $item{__DIRECTIVE1__}=$_tok;
6819
6820  
6821 32 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6822 Parse::RecDescent::_tracefirst($text),
6823 q{column_definition},
6824 $tracelevel)
6825 if defined $::RD_TRACE;
6826 32 undef $return;
6827
6828  
6829 32 $_tok = undef;
6830
6831 32 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 32 0 32
6832  
6833  
6834 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6835 Parse::RecDescent::_tracefirst($text),
6836 q{column_definition},
6837 $tracelevel)
6838 if defined $::RD_TRACE;
6839 0 $_matched = 1;
6840 0 last;
6841 }
6842  
6843  
6844 66 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 32 34 66
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
34032
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
6845 {
6846
6847  
6848 32 $_[1] = $text; # NOT SURE THIS IS NEEDED
6849 32 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 32 32
6850 Parse::RecDescent::_tracefirst($_[1]),
6851 q{column_definition},
6852 $tracelevel)
6853 if defined $::RD_TRACE;
6854 32 return undef;
6855 }
6856 34 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 34 34
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0340
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
6857 {
6858 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6859 q{column_definition},
6860 $tracelevel)
6861 if defined $::RD_TRACE;
6862 0 $return = $score_return;
6863 }
6864 34 splice @{$thisparser->{errors}}, $err_at;
6865 34 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 34 0 34
6866 34 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 34 34
6867 {
6868 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
6869 $return . q{])}, "",
6870 q{column_definition},
6871 $tracelevel);
6872 0 Parse::RecDescent::_trace(q{(consumed: [} .
6873 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
6874 Parse::RecDescent::_tracefirst($text),
6875 , q{column_definition},
6876 $tracelevel)
6877 }
6878 34 $_[1] = $text;
6879 34 return $return;
6880 }
6881  
6882 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
6883 sub Parse::RecDescent::Cheater::Parser::real
6884 86 ▶{
Subroutine real: called CC=25 SCAR=35.2
6885 86 my $thisparser = $_[0];
6886 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
6887 86 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
860
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
6888 86 $ERRORS = 0;
6889 86 my $thisrule = $thisparser->{"rules"}{"real"};
6890
6891 86 ▶ Parse::RecDescent::_trace(q{Trying rule: [real]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
6892 Parse::RecDescent::_tracefirst($_[1]),
6893 q{real},
6894 $tracelevel)
6895 if defined $::RD_TRACE;
6896  
6897
6898 86 my $err_at = @{$thisparser->{errors}};
6899  
6900 86 my $score;
6901 my $score_return;
6902 86 my $_tok;
6903 86 my $return = undef;
6904 86 my $_matched=0;
6905 86 my $commit=0;
6906 86 my @item = ();
6907 86 my %item = ();
6908 86 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0086
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
6909 86 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0860
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
6910 86 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 86 0 86
6911 86 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 86 0 86
6912 86 my $text;
6913 86 my $lastsep="";
6914 86 my $current_match;
6915 86 my $expectation = new Parse::RecDescent::Expectation(q{/-?\\d+\\.\\d+\\b/});
6916 86 $expectation->at($_[1]);
6917
6918 86 my $prevline;
6919 86 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
6920
6921 86 my $thisline;
6922 86 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
6923  
6924
6925  
6926 86 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 86 0 86
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0086
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
6927 {
6928
6929 86 ▶ Parse::RecDescent::_trace(q{Trying production: [/-?\\d+\\.\\d+\\b/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
6930 Parse::RecDescent::_tracefirst($_[1]),
6931 q{real},
6932 $tracelevel)
6933 if defined $::RD_TRACE;
6934 86 my $thisprod = $thisrule->{"prods"}[0];
6935 86 $text = $_[1];
6936 86 my $_savetext;
6937 86 @item = (q{real});
6938 86 %item = (__RULE__ => q{real});
6939 86 my $repcount = 0;
6940  
6941  
6942 86 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/-?\\d+\\.\\d+\\b/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 86 86
6943 q{real},
6944 $tracelevel)
6945 if defined $::RD_TRACE;
6946 86 $lastsep = "";
6947 86 $expectation->is(q{})->at($text);
6948
6949  
6950 86 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:-?\d+\.\d+\b)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:-?\d+\.\d+\b)/) 80 6 86
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:-?\d+\.\d+\b)/
!ll&&!rl&&r
0806
($lastsep = $1) && ''
!ll
4343
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:-?\d+\.\d+\b)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:-?\d+\.\d+\b)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:-?\d+\.\d+\b)/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
6951 {
6952
6953 80 $expectation->failed();
6954 80 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
6955 Parse::RecDescent::_tracefirst($text))
6956 if defined $::RD_TRACE;
6957  
6958 80 last;
6959 }
6960 6 $current_match = substr($text, $-[0], $+[0] - $-[0]);
6961 6 substr($text,0,length($current_match),q{});
6962 6 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 6 6
6963 . $current_match . q{])},
6964 Parse::RecDescent::_tracefirst($text))
6965 if defined $::RD_TRACE;
6966 6 push @item, $item{__PATTERN1__}=$current_match;
6967
6968  
6969  
6970 6 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/-?\\d+\\.\\d+\\b/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 6 6
6971 Parse::RecDescent::_tracefirst($text),
6972 q{real},
6973 $tracelevel)
6974 if defined $::RD_TRACE;
6975 6 $_matched = 1;
6976 6 last;
6977 }
6978  
6979  
6980 86 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 80 6 86
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
6080
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
6981 {
6982
6983  
6984 80 $_[1] = $text; # NOT SURE THIS IS NEEDED
6985 80 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 80 80
6986 Parse::RecDescent::_tracefirst($_[1]),
6987 q{real},
6988 $tracelevel)
6989 if defined $::RD_TRACE;
6990 80 return undef;
6991 }
6992 6 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 6 6
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
060
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
6993 {
6994 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
6995 q{real},
6996 $tracelevel)
6997 if defined $::RD_TRACE;
6998 0 $return = $score_return;
6999 }
7000 6 splice @{$thisparser->{errors}}, $err_at;
7001 6 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 6 0 6
7002 6 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 6 6
7003 {
7004 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
7005 $return . q{])}, "",
7006 q{real},
7007 $tracelevel);
7008 0 Parse::RecDescent::_trace(q{(consumed: [} .
7009 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
7010 Parse::RecDescent::_tracefirst($text),
7011 , q{real},
7012 $tracelevel)
7013 }
7014 6 $_[1] = $text;
7015 6 return $return;
7016 }
7017  
7018 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
7019 sub Parse::RecDescent::Cheater::Parser::spec
7020 34 ▶{
Subroutine spec: called CC=32 SCAR=43.0
7021 34 my $thisparser = $_[0];
7022 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7023 34 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition100%2/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
430
MC/DC100%1/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table100%2/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
7024 34 $ERRORS = 0;
7025 34 my $thisrule = $thisparser->{"rules"}{"spec"};
7026
7027 34 ▶ Parse::RecDescent::_trace(q{Trying rule: [spec]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7028 Parse::RecDescent::_tracefirst($_[1]),
7029 q{spec},
7030 $tracelevel)
7031 if defined $::RD_TRACE;
7032  
7033
7034 34 my $err_at = @{$thisparser->{errors}};
7035  
7036 34 my $score;
7037 my $score_return;
7038 34 my $_tok;
7039 34 my $return = undef;
7040 34 my $_matched=0;
7041 34 my $commit=0;
7042 34 my @item = ();
7043 34 my %item = ();
7044 34 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
3400
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
7045 34 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
3400
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
7046 34 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 34 0 34
7047 34 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 34 0 34
7048 34 my $text;
7049 34 my $lastsep="";
7050 34 my $current_match;
7051 34 my $expectation = new Parse::RecDescent::Expectation(q{statement});
7052 34 $expectation->at($_[1]);
7053
7054 34 my $prevline;
7055 34 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
7056
7057 34 my $thisline;
7058 34 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
7059  
7060
7061  
7062 34 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 34 0 34
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0034
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7063 {
7064
7065 34 ▶ Parse::RecDescent::_trace(q{Trying production: [statement eof]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7066 Parse::RecDescent::_tracefirst($_[1]),
7067 q{spec},
7068 $tracelevel)
7069 if defined $::RD_TRACE;
7070 34 my $thisprod = $thisrule->{"prods"}[0];
7071 34 $text = $_[1];
7072 34 my $_savetext;
7073 34 @item = (q{spec});
7074 34 %item = (__RULE__ => q{spec});
7075 34 my $repcount = 0;
7076  
7077  
7078 34 ▶ Parse::RecDescent::_trace(q{Trying repeated subrule: [statement]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7079 Parse::RecDescent::_tracefirst($text),
7080 q{spec},
7081 $tracelevel)
7082 if defined $::RD_TRACE;
7083 34 $expectation->is(q{})->at($text);
7084
7085 34 ▶ unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::statement, 1, 100000000, $_noactions,$expectation,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Cheater::Parser::statement, 1, 100000000, $_noactions, $expectation, sub { \@arg; } ))) 0 34 34
7086 {
7087 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [statement]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7088 Parse::RecDescent::_tracefirst($text),
7089 q{spec},
7090 $tracelevel)
7091 if defined $::RD_TRACE;
7092 0 last;
7093 }
7094 34 ▶ Parse::RecDescent::_trace(q{>>Matched repeated subrule: [statement]<< (}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7095 . @$_tok . q{ times)},
7096
7097 Parse::RecDescent::_tracefirst($text),
7098 q{spec},
7099 $tracelevel)
7100 if defined $::RD_TRACE;
7101 34 $item{q{statement(s)}} = $_tok;
7102 34 push @item, $_tok;
7103
7104  
7105  
7106 34 ▶ Parse::RecDescent::_trace(q{Trying subrule: [eof]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7107 Parse::RecDescent::_tracefirst($text),
7108 q{spec},
7109 $tracelevel)
7110 if defined $::RD_TRACE;
7111 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7112 34 $expectation->is(q{eof})->at($text);
7113 34 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::eof($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = Parse::RecDescent::Cheater::Parser::eof($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 34 34
7114 {
7115
7116 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [eof]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7117 Parse::RecDescent::_tracefirst($text),
7118 q{spec},
7119 $tracelevel)
7120 if defined $::RD_TRACE;
7121 0 $expectation->failed();
7122 0 last;
7123 }
7124 34 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [eof]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7125 . $_tok . q{]},
7126
7127 Parse::RecDescent::_tracefirst($text),
7128 q{spec},
7129 $tracelevel)
7130 if defined $::RD_TRACE;
7131 34 $item{q{eof}} = $_tok;
7132 34 push @item, $_tok;
7133
7134 }
7135  
7136 34 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7137 Parse::RecDescent::_tracefirst($text),
7138 q{spec},
7139 $tracelevel)
7140 if defined $::RD_TRACE;
7141
7142  
7143 34 ▶ $_tok = ($_noactions) ? 0 : do { $item[1] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 34 34
7144 34 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 34 34
7145 {
7146 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7147 if defined $::RD_TRACE;
7148 0 last;
7149 }
7150 34 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7151 . $_tok . q{])},
7152 Parse::RecDescent::_tracefirst($text))
7153 if defined $::RD_TRACE;
7154 34 push @item, $_tok;
7155 34 $item{__ACTION1__}=$_tok;
7156
7157  
7158  
7159 34 ▶ Parse::RecDescent::_trace(q{>>Matched production: [statement eof]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7160 Parse::RecDescent::_tracefirst($text),
7161 q{spec},
7162 $tracelevel)
7163 if defined $::RD_TRACE;
7164 34 $_matched = 1;
7165 34 last;
7166 }
7167  
7168  
7169 34 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 34 34
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
3400
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
7170 {
7171
7172  
7173 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
7174 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7175 Parse::RecDescent::_tracefirst($_[1]),
7176 q{spec},
7177 $tracelevel)
7178 if defined $::RD_TRACE;
7179 0 return undef;
7180 }
7181 34 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 34 34
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0340
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
7182 {
7183 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7184 q{spec},
7185 $tracelevel)
7186 if defined $::RD_TRACE;
7187 0 $return = $score_return;
7188 }
7189 34 splice @{$thisparser->{errors}}, $err_at;
7190 34 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 34 0 34
7191 34 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 34 34
7192 {
7193 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
7194 $return . q{])}, "",
7195 q{spec},
7196 $tracelevel);
7197 0 Parse::RecDescent::_trace(q{(consumed: [} .
7198 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
7199 Parse::RecDescent::_tracefirst($text),
7200 , q{spec},
7201 $tracelevel)
7202 }
7203 34 $_[1] = $text;
7204 34 return $return;
7205 }
7206  
7207 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
7208 sub Parse::RecDescent::Cheater::Parser::table_assignment
7209 35 ▶{
Subroutine table_assignment: called CC=55 SCAR=51.4
7210 35 my $thisparser = $_[0];
7211 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7212 35 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
350
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
7213 35 $ERRORS = 0;
7214 35 my $thisrule = $thisparser->{"rules"}{"table_assignment"};
7215
7216 35 ▶ Parse::RecDescent::_trace(q{Trying rule: [table_assignment]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7217 Parse::RecDescent::_tracefirst($_[1]),
7218 q{table_assignment},
7219 $tracelevel)
7220 if defined $::RD_TRACE;
7221  
7222
7223 35 my $err_at = @{$thisparser->{errors}};
7224  
7225 35 my $score;
7226 my $score_return;
7227 35 my $_tok;
7228 35 my $return = undef;
7229 35 my $_matched=0;
7230 35 my $commit=0;
7231 35 my @item = ();
7232 35 my %item = ();
7233 35 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0035
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
7234 35 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0350
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
7235 35 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 35 0 35
7236 35 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 35 0 35
7237 35 my $text;
7238 35 my $lastsep="";
7239 35 my $current_match;
7240 35 my $expectation = new Parse::RecDescent::Expectation(q{table_name});
7241 35 $expectation->at($_[1]);
7242
7243 35 my $prevline;
7244 35 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
7245
7246 35 my $thisline;
7247 35 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
7248  
7249
7250  
7251 35 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 35 0 35
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0035
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7252 {
7253
7254 35 ▶ Parse::RecDescent::_trace(q{Trying production: [table_name '=' <commit> table_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7255 Parse::RecDescent::_tracefirst($_[1]),
7256 q{table_assignment},
7257 $tracelevel)
7258 if defined $::RD_TRACE;
7259 35 my $thisprod = $thisrule->{"prods"}[0];
7260 35 $text = $_[1];
7261 35 my $_savetext;
7262 35 @item = (q{table_assignment});
7263 35 %item = (__RULE__ => q{table_assignment});
7264 35 my $repcount = 0;
7265  
7266  
7267 35 ▶ Parse::RecDescent::_trace(q{Trying subrule: [table_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7268 Parse::RecDescent::_tracefirst($text),
7269 q{table_assignment},
7270 $tracelevel)
7271 if defined $::RD_TRACE;
7272 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7273 35 $expectation->is(q{})->at($text);
7274 35 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::table_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = table_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 34 1 35
7275 {
7276
7277 34 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [table_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7278 Parse::RecDescent::_tracefirst($text),
7279 q{table_assignment},
7280 $tracelevel)
7281 if defined $::RD_TRACE;
7282 34 $expectation->failed();
7283 34 last;
7284 }
7285 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [table_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7286 . $_tok . q{]},
7287
7288 Parse::RecDescent::_tracefirst($text),
7289 q{table_assignment},
7290 $tracelevel)
7291 if defined $::RD_TRACE;
7292 1 $item{q{table_name}} = $_tok;
7293 1 push @item, $_tok;
7294
7295 }
7296  
7297 1 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['=']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7298 Parse::RecDescent::_tracefirst($text),
7299 q{table_assignment},
7300 $tracelevel)
7301 if defined $::RD_TRACE;
7302 1 $lastsep = "";
7303 1 $expectation->is(q{'='})->at($text);
7304
7305  
7306 1 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\=/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/) 0 1 1
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
!ll&&!rl&&r
001
($lastsep = $1) && ''
!ll
01
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A\=/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A\=/
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A\=/
ABresult
0X0
100
111
Truth table50%1/2
A
A= ($lastsep = $1)
Aresult
00
11
7307 {
7308
7309 0 $expectation->failed();
7310 0 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7311 Parse::RecDescent::_tracefirst($text))
7312 if defined $::RD_TRACE;
7313 0 last;
7314 }
7315 1 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7316 1 substr($text,0,length($current_match),q{});
7317 1 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7318 . $current_match . q{])},
7319 Parse::RecDescent::_tracefirst($text))
7320 if defined $::RD_TRACE;
7321 1 push @item, $item{__STRING1__}=$current_match;
7322
7323  
7324
7325  
7326 1 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7327 Parse::RecDescent::_tracefirst($text),
7328 q{table_assignment},
7329 $tracelevel)
7330 if defined $::RD_TRACE;
7331 1 $_tok = do { $commit = 1 };
7332 1 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 1 0 1
7333 {
7334 1 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7335 . $_tok . q{])},
7336 Parse::RecDescent::_tracefirst($text))
7337 if defined $::RD_TRACE;
7338 }
7339 else
7340 {
7341 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7342 Parse::RecDescent::_tracefirst($text))
7343 if defined $::RD_TRACE;
7344 }
7345
7346 1 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 1 1
7347 1 push @item, $item{__DIRECTIVE1__}=$_tok;
7348
7349  
7350 1 ▶ Parse::RecDescent::_trace(q{Trying subrule: [table_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7351 Parse::RecDescent::_tracefirst($text),
7352 q{table_assignment},
7353 $tracelevel)
7354 if defined $::RD_TRACE;
7355 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7356 1 $expectation->is(q{table_name})->at($text);
7357 1 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::table_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = table_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 1 1
7358 {
7359
7360 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [table_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7361 Parse::RecDescent::_tracefirst($text),
7362 q{table_assignment},
7363 $tracelevel)
7364 if defined $::RD_TRACE;
7365 0 $expectation->failed();
7366 0 last;
7367 }
7368 1 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [table_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7369 . $_tok . q{]},
7370
7371 Parse::RecDescent::_tracefirst($text),
7372 q{table_assignment},
7373 $tracelevel)
7374 if defined $::RD_TRACE;
7375 1 $item{q{table_name}} = $_tok;
7376 1 push @item, $_tok;
7377
7378 }
7379  
7380 1 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7381 Parse::RecDescent::_tracefirst($text),
7382 q{table_assignment},
7383 $tracelevel)
7384 if defined $::RD_TRACE;
7385
7386  
7387 1 ▶ $_tok = ($_noactions) ? 0 : do { [ 'table_assign', $item[1], $item[4] ] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 1 1
7388 1 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 1 1
7389 {
7390 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7391 if defined $::RD_TRACE;
7392 0 last;
7393 }
7394 1 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7395 . $_tok . q{])},
7396 Parse::RecDescent::_tracefirst($text))
7397 if defined $::RD_TRACE;
7398 1 push @item, $_tok;
7399 1 $item{__ACTION1__}=$_tok;
7400
7401  
7402  
7403 1 ▶ Parse::RecDescent::_trace(q{>>Matched production: [table_name '=' <commit> table_name]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
7404 Parse::RecDescent::_tracefirst($text),
7405 q{table_assignment},
7406 $tracelevel)
7407 if defined $::RD_TRACE;
7408 1 $_matched = 1;
7409 1 last;
7410 }
7411  
7412  
7413 35 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 34 1 35
7414 {
7415
7416 34 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7417 Parse::RecDescent::_tracefirst($_[1]),
7418 q{table_assignment},
7419 $tracelevel)
7420 if defined $::RD_TRACE;
7421 34 my $thisprod = $thisrule->{"prods"}[1];
7422
7423 34 my $_savetext;
7424 34 @item = (q{table_assignment});
7425 34 %item = (__RULE__ => q{table_assignment});
7426 34 my $repcount = 0;
7427  
7428  
7429
7430  
7431 34 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7432 Parse::RecDescent::_tracefirst($text),
7433 q{table_assignment},
7434 $tracelevel)
7435 if defined $::RD_TRACE;
7436 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 34 34
unless ($_noactions) 0 0 0
7437 0 my $rule = $item[0];
7438 0 $rule =~ s/_/ /g;
7439 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
7440 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
7441 0 } unless $_noactions; undef } else {0} };
7442 34 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 34 0 34
7443 {
7444 34 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7445 . $_tok . q{])},
7446 Parse::RecDescent::_tracefirst($text))
7447 if defined $::RD_TRACE;
7448 }
7449 else
7450 {
7451 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7452 Parse::RecDescent::_tracefirst($text))
7453 if defined $::RD_TRACE;
7454 }
7455
7456 34 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 34 34
7457 34 push @item, $item{__DIRECTIVE1__}=$_tok;
7458
7459  
7460 34 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7461 Parse::RecDescent::_tracefirst($text),
7462 q{table_assignment},
7463 $tracelevel)
7464 if defined $::RD_TRACE;
7465 34 undef $return;
7466
7467  
7468 34 $_tok = undef;
7469
7470 34 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 34 0 34
7471  
7472  
7473 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7474 Parse::RecDescent::_tracefirst($text),
7475 q{table_assignment},
7476 $tracelevel)
7477 if defined $::RD_TRACE;
7478 0 $_matched = 1;
7479 0 last;
7480 }
7481  
7482  
7483 35 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 34 1 35
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
1034
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
7484 {
7485
7486  
7487 34 $_[1] = $text; # NOT SURE THIS IS NEEDED
7488 34 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7489 Parse::RecDescent::_tracefirst($_[1]),
7490 q{table_assignment},
7491 $tracelevel)
7492 if defined $::RD_TRACE;
7493 34 return undef;
7494 }
7495 1 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 1 1
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
010
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
7496 {
7497 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7498 q{table_assignment},
7499 $tracelevel)
7500 if defined $::RD_TRACE;
7501 0 $return = $score_return;
7502 }
7503 1 splice @{$thisparser->{errors}}, $err_at;
7504 1 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 1 0 1
7505 1 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 1 1
7506 {
7507 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
7508 $return . q{])}, "",
7509 q{table_assignment},
7510 $tracelevel);
7511 0 Parse::RecDescent::_trace(q{(consumed: [} .
7512 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
7513 Parse::RecDescent::_tracefirst($text),
7514 , q{table_assignment},
7515 $tracelevel)
7516 }
7517 1 $_[1] = $text;
7518 1 return $return;
7519 }
7520  
7521 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
7522 sub Parse::RecDescent::Cheater::Parser::include_statement
7523 39 ▶{
Subroutine include_statement: called CC=51 SCAR=49.5
7524 39 my $thisparser = $_[0];
7525 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7526 39 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
390
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
7527 39 $ERRORS = 0;
7528 39 my $thisrule = $thisparser->{"rules"}{"include_statement"};
7529
7530 39 ▶ Parse::RecDescent::_trace(q{Trying rule: [include_statement]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
7531 Parse::RecDescent::_tracefirst($_[1]),
7532 q{include_statement},
7533 $tracelevel)
7534 if defined $::RD_TRACE;
7535  
7536
7537 39 my $err_at = @{$thisparser->{errors}};
7538  
7539 39 my $score;
7540 my $score_return;
7541 39 my $_tok;
7542 39 my $return = undef;
7543 39 my $_matched=0;
7544 39 my $commit=0;
7545 39 my @item = ();
7546 39 my %item = ();
7547 39 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0039
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
7548 39 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0390
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
7549 39 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 39 0 39
7550 39 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 39 0 39
7551 39 my $text;
7552 39 my $lastsep="";
7553 39 my $current_match;
7554 39 my $expectation = new Parse::RecDescent::Expectation(q{'include'});
7555 39 $expectation->at($_[1]);
7556
7557 39 my $prevline;
7558 39 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
7559
7560 39 my $thisline;
7561 39 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
7562  
7563
7564  
7565 39 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 39 0 39
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0039
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7566 {
7567
7568 39 ▶ Parse::RecDescent::_trace(q{Trying production: ['include' <commit> file_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
7569 Parse::RecDescent::_tracefirst($_[1]),
7570 q{include_statement},
7571 $tracelevel)
7572 if defined $::RD_TRACE;
7573 39 my $thisprod = $thisrule->{"prods"}[0];
7574 39 $text = $_[1];
7575 39 my $_savetext;
7576 39 @item = (q{include_statement});
7577 39 %item = (__RULE__ => q{include_statement});
7578 39 my $repcount = 0;
7579  
7580  
7581 39 ▶ Parse::RecDescent::_trace(q{Trying terminal: ['include']},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 39 39
7582 Parse::RecDescent::_tracefirst($text),
7583 q{include_statement},
7584 $tracelevel)
7585 if defined $::RD_TRACE;
7586 39 $lastsep = "";
7587 39 $expectation->is(q{})->at($text);
7588
7589  
7590 39 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Ainclude/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Ainclude/) 35 4 39
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Ainclude/
!ll&&!rl&&r
0354
($lastsep = $1) && ''
!ll
831
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\Ainclude/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\Ainclude/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\Ainclude/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
7591 {
7592
7593 35 $expectation->failed();
7594 35 ▶ Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7595 Parse::RecDescent::_tracefirst($text))
7596 if defined $::RD_TRACE;
7597 35 last;
7598 }
7599 4 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7600 4 substr($text,0,length($current_match),q{});
7601 4 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
7602 . $current_match . q{])},
7603 Parse::RecDescent::_tracefirst($text))
7604 if defined $::RD_TRACE;
7605 4 push @item, $item{__STRING1__}=$current_match;
7606
7607  
7608
7609  
7610 4 ▶ Parse::RecDescent::_trace(q{Trying directive: [<commit>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
7611 Parse::RecDescent::_tracefirst($text),
7612 q{include_statement},
7613 $tracelevel)
7614 if defined $::RD_TRACE;
7615 4 $_tok = do { $commit = 1 };
7616 4 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 4 0 4
7617 {
7618 4 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
7619 . $_tok . q{])},
7620 Parse::RecDescent::_tracefirst($text))
7621 if defined $::RD_TRACE;
7622 }
7623 else
7624 {
7625 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7626 Parse::RecDescent::_tracefirst($text))
7627 if defined $::RD_TRACE;
7628 }
7629
7630 4 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 4 4
7631 4 push @item, $item{__DIRECTIVE1__}=$_tok;
7632
7633  
7634 4 ▶ Parse::RecDescent::_trace(q{Trying subrule: [file_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
7635 Parse::RecDescent::_tracefirst($text),
7636 q{include_statement},
7637 $tracelevel)
7638 if defined $::RD_TRACE;
7639 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
7640 4 $expectation->is(q{file_name})->at($text);
7641 4 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::file_name($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = file_name($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 0 4 4
7642 {
7643
7644 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [file_name]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7645 Parse::RecDescent::_tracefirst($text),
7646 q{include_statement},
7647 $tracelevel)
7648 if defined $::RD_TRACE;
7649 0 $expectation->failed();
7650 0 last;
7651 }
7652 4 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [file_name]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
7653 . $_tok . q{]},
7654
7655 Parse::RecDescent::_tracefirst($text),
7656 q{include_statement},
7657 $tracelevel)
7658 if defined $::RD_TRACE;
7659 4 $item{q{file_name}} = $_tok;
7660 4 push @item, $_tok;
7661
7662 }
7663  
7664 4 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
7665 Parse::RecDescent::_tracefirst($text),
7666 q{include_statement},
7667 $tracelevel)
7668 if defined $::RD_TRACE;
7669
7670  
7671 4 ▶ $_tok = ($_noactions) ? 0 : do { ['include', parse_included_file($item[3], $thisline)] };
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 4 4
7672 4 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 4 4
7673 {
7674 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7675 if defined $::RD_TRACE;
7676 0 last;
7677 }
7678 4 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
7679 . $_tok . q{])},
7680 Parse::RecDescent::_tracefirst($text))
7681 if defined $::RD_TRACE;
7682 4 push @item, $_tok;
7683 4 $item{__ACTION1__}=$_tok;
7684
7685  
7686  
7687 4 ▶ Parse::RecDescent::_trace(q{>>Matched production: ['include' <commit> file_name]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 4 4
7688 Parse::RecDescent::_tracefirst($text),
7689 q{include_statement},
7690 $tracelevel)
7691 if defined $::RD_TRACE;
7692 4 $_matched = 1;
7693 4 last;
7694 }
7695  
7696  
7697 39 ▶ while (!$_matched)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched) 35 4 39
7698 {
7699
7700 35 ▶ Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7701 Parse::RecDescent::_tracefirst($_[1]),
7702 q{include_statement},
7703 $tracelevel)
7704 if defined $::RD_TRACE;
7705 35 my $thisprod = $thisrule->{"prods"}[1];
7706
7707 35 my $_savetext;
7708 35 @item = (q{include_statement});
7709 35 %item = (__RULE__ => q{include_statement});
7710 35 my $repcount = 0;
7711  
7712  
7713
7714  
7715 35 ▶ Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7716 Parse::RecDescent::_tracefirst($text),
7717 q{include_statement},
7718 $tracelevel)
7719 if defined $::RD_TRACE;
7720 0 ▶ $_tok = do { if ($commit) { do {
Branch: 2 branches
BranchTrueFalseTotal
if ($commit) { } 0 35 35
unless ($_noactions) 0 0 0
7721 0 my $rule = $item[0];
7722 0 $rule =~ s/_/ /g;
7723 #WAS: Parse::RecDescent::_error("Invalid $rule: " . $expectation->message() ,$thisline);
7724 0 push @{$thisparser->{errors}}, ["Invalid $rule: " . $expectation->message() ,$thisline];
7725 0 } unless $_noactions; undef } else {0} };
7726 35 ▶ if (defined($_tok))
Branch: 1 branch
BranchTrueFalseTotal
if (defined $_tok) { } 35 0 35
7727 {
7728 35 ▶ Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7729 . $_tok . q{])},
7730 Parse::RecDescent::_tracefirst($text))
7731 if defined $::RD_TRACE;
7732 }
7733 else
7734 {
7735 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match directive>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7736 Parse::RecDescent::_tracefirst($text))
7737 if defined $::RD_TRACE;
7738 }
7739
7740 35 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 0 35 35
7741 35 push @item, $item{__DIRECTIVE1__}=$_tok;
7742
7743  
7744 35 ▶ Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7745 Parse::RecDescent::_tracefirst($text),
7746 q{include_statement},
7747 $tracelevel)
7748 if defined $::RD_TRACE;
7749 35 undef $return;
7750
7751  
7752 35 $_tok = undef;
7753
7754 35 ▶ last unless defined $_tok;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $_tok 35 0 35
7755  
7756  
7757 0 ▶ Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7758 Parse::RecDescent::_tracefirst($text),
7759 q{include_statement},
7760 $tracelevel)
7761 if defined $::RD_TRACE;
7762 0 $_matched = 1;
7763 0 last;
7764 }
7765  
7766  
7767 39 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 35 4 39
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
4035
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
7768 {
7769
7770  
7771 35 $_[1] = $text; # NOT SURE THIS IS NEEDED
7772 35 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 35 35
7773 Parse::RecDescent::_tracefirst($_[1]),
7774 q{include_statement},
7775 $tracelevel)
7776 if defined $::RD_TRACE;
7777 35 return undef;
7778 }
7779 4 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 4 4
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
040
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
7780 {
7781 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7782 q{include_statement},
7783 $tracelevel)
7784 if defined $::RD_TRACE;
7785 0 $return = $score_return;
7786 }
7787 4 splice @{$thisparser->{errors}}, $err_at;
7788 4 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 4 0 4
7789 4 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 4 4
7790 {
7791 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
7792 $return . q{])}, "",
7793 q{include_statement},
7794 $tracelevel);
7795 0 Parse::RecDescent::_trace(q{(consumed: [} .
7796 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
7797 Parse::RecDescent::_tracefirst($text),
7798 , q{include_statement},
7799 $tracelevel)
7800 }
7801 4 $_[1] = $text;
7802 4 return $return;
7803 }
7804  
7805 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
7806 sub Parse::RecDescent::Cheater::Parser::regex
7807 28 ▶{
Subroutine regex: called CC=31 SCAR=39.0
7808 28 my $thisparser = $_[0];
7809 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7810 28 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
280
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
7811 28 $ERRORS = 0;
7812 28 my $thisrule = $thisparser->{"rules"}{"regex"};
7813
7814 28 ▶ Parse::RecDescent::_trace(q{Trying rule: [regex]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
7815 Parse::RecDescent::_tracefirst($_[1]),
7816 q{regex},
7817 $tracelevel)
7818 if defined $::RD_TRACE;
7819  
7820
7821 28 my $err_at = @{$thisparser->{errors}};
7822  
7823 28 my $score;
7824 my $score_return;
7825 28 my $_tok;
7826 28 my $return = undef;
7827 28 my $_matched=0;
7828 28 my $commit=0;
7829 28 my @item = ();
7830 28 my %item = ();
7831 28 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0028
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
7832 28 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0280
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
7833 28 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 28 0 28
7834 28 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 28 0 28
7835 28 my $text;
7836 28 my $lastsep="";
7837 28 my $current_match;
7838 28 my $expectation = new Parse::RecDescent::Expectation(q{/\\/(?:[^\\\\\\/]|\\\\.)*\\//});
7839 28 $expectation->at($_[1]);
7840
7841 28 my $prevline;
7842 28 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
7843
7844 28 my $thisline;
7845 28 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
7846  
7847
7848  
7849 28 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 28 0 28
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0028
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
7850 {
7851
7852 28 ▶ Parse::RecDescent::_trace(q{Trying production: [/\\/(?:[^\\\\\\/]|\\\\.)*\\//]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
7853 Parse::RecDescent::_tracefirst($_[1]),
7854 q{regex},
7855 $tracelevel)
7856 if defined $::RD_TRACE;
7857 28 my $thisprod = $thisrule->{"prods"}[0];
7858 28 $text = $_[1];
7859 28 my $_savetext;
7860 28 @item = (q{regex});
7861 28 %item = (__RULE__ => q{regex});
7862 28 my $repcount = 0;
7863  
7864  
7865 28 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/\\/(?:[^\\\\\\/]|\\\\.)*\\//]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 28 28
7866 q{regex},
7867 $tracelevel)
7868 if defined $::RD_TRACE;
7869 28 $lastsep = "";
7870 28 $expectation->is(q{})->at($text);
7871
7872  
7873 28 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\/(?:[^\\\/]|\\.)*\/)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:/(?:[^\\/]|\\.)*/)]) 25 3 28
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:/(?:[^\\/]|\\.)*/)]
!ll&&!rl&&r
0253
($lastsep = $1) && ''
!ll
1414
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ m[\A(?:/(?:[^\\/]|\\.)*/)]
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ m[\A(?:/(?:[^\\/]|\\.)*/)]
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ m[\A(?:/(?:[^\\/]|\\.)*/)]
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
7874 {
7875
7876 25 $expectation->failed();
7877 25 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 25 25
7878 Parse::RecDescent::_tracefirst($text))
7879 if defined $::RD_TRACE;
7880  
7881 25 last;
7882 }
7883 3 $current_match = substr($text, $-[0], $+[0] - $-[0]);
7884 3 substr($text,0,length($current_match),q{});
7885 3 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
7886 . $current_match . q{])},
7887 Parse::RecDescent::_tracefirst($text))
7888 if defined $::RD_TRACE;
7889 3 push @item, $item{__PATTERN1__}=$current_match;
7890
7891  
7892 3 ▶ Parse::RecDescent::_trace(q{Trying action},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
7893 Parse::RecDescent::_tracefirst($text),
7894 q{regex},
7895 $tracelevel)
7896 if defined $::RD_TRACE;
7897
7898  
7899 3 ▶ $_tok = ($_noactions) ? 0 : do { my $regex = 'qr' . $item[1];
Branch: 1 branch
BranchTrueFalseTotal
$_noactions ? : 0 3 3
7900 3 my $re = eval $regex;
7901 3 ▶ if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 0 3 3
7902 0 die "Bad regex on line $prevline: $regex: $@";
7903 }
7904 $re
7905 3 };
7906 3 ▶ unless (defined $_tok)
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $_tok) 0 3 3
7907 {
7908 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7909 if defined $::RD_TRACE;
7910 0 last;
7911 }
7912 3 ▶ Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
7913 . $_tok . q{])},
7914 Parse::RecDescent::_tracefirst($text))
7915 if defined $::RD_TRACE;
7916 3 push @item, $_tok;
7917 3 $item{__ACTION1__}=$_tok;
7918
7919  
7920  
7921 3 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/\\/(?:[^\\\\\\/]|\\\\.)*\\//]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 3 3
7922 Parse::RecDescent::_tracefirst($text),
7923 q{regex},
7924 $tracelevel)
7925 if defined $::RD_TRACE;
7926 3 $_matched = 1;
7927 3 last;
7928 }
7929  
7930  
7931 28 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 25 3 28
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
3025
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
7932 {
7933
7934  
7935 25 $_[1] = $text; # NOT SURE THIS IS NEEDED
7936 25 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 25 25
7937 Parse::RecDescent::_tracefirst($_[1]),
7938 q{regex},
7939 $tracelevel)
7940 if defined $::RD_TRACE;
7941 25 return undef;
7942 }
7943 3 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 3 3
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
030
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
7944 {
7945 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
7946 q{regex},
7947 $tracelevel)
7948 if defined $::RD_TRACE;
7949 0 $return = $score_return;
7950 }
7951 3 splice @{$thisparser->{errors}}, $err_at;
7952 3 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 3 0 3
7953 3 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 3 3
7954 {
7955 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
7956 $return . q{])}, "",
7957 q{regex},
7958 $tracelevel);
7959 0 Parse::RecDescent::_trace(q{(consumed: [} .
7960 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
7961 Parse::RecDescent::_tracefirst($text),
7962 , q{regex},
7963 $tracelevel)
7964 }
7965 3 $_[1] = $text;
7966 3 return $return;
7967 }
7968  
7969 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
7970 sub Parse::RecDescent::Cheater::Parser::eof
7971 34 ▶{
Subroutine eof: called CC=25 SCAR=39.0
7972 34 my $thisparser = $_[0];
7973 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
7974 34 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
340
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
7975 34 $ERRORS = 0;
7976 34 my $thisrule = $thisparser->{"rules"}{"eof"};
7977
7978 34 ▶ Parse::RecDescent::_trace(q{Trying rule: [eof]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
7979 Parse::RecDescent::_tracefirst($_[1]),
7980 q{eof},
7981 $tracelevel)
7982 if defined $::RD_TRACE;
7983  
7984
7985 34 my $err_at = @{$thisparser->{errors}};
7986  
7987 34 my $score;
7988 my $score_return;
7989 34 my $_tok;
7990 34 my $return = undef;
7991 34 my $_matched=0;
7992 34 my $commit=0;
7993 34 my @item = ();
7994 34 my %item = ();
7995 34 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0340
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
7996 34 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0340
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
7997 34 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 34 0 34
7998 34 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 34 0 34
7999 34 my $text;
8000 34 my $lastsep="";
8001 34 my $current_match;
8002 34 my $expectation = new Parse::RecDescent::Expectation(q{/^\\Z/});
8003 34 $expectation->at($_[1]);
8004
8005 34 my $prevline;
8006 34 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
8007
8008 34 my $thisline;
8009 34 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8010  
8011
8012  
8013 34 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 34 0 34
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0034
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8014 {
8015
8016 34 ▶ Parse::RecDescent::_trace(q{Trying production: [/^\\Z/]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8017 Parse::RecDescent::_tracefirst($_[1]),
8018 q{eof},
8019 $tracelevel)
8020 if defined $::RD_TRACE;
8021 34 my $thisprod = $thisrule->{"prods"}[0];
8022 34 $text = $_[1];
8023 34 my $_savetext;
8024 34 @item = (q{eof});
8025 34 %item = (__RULE__ => q{eof});
8026 34 my $repcount = 0;
8027  
8028  
8029 34 ▶ Parse::RecDescent::_trace(q{Trying terminal: [/^\\Z/]}, Parse::RecDescent::_tracefirst($text),
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8030 q{eof},
8031 $tracelevel)
8032 if defined $::RD_TRACE;
8033 34 $lastsep = "";
8034 34 $expectation->is(q{})->at($text);
8035
8036  
8037 34 ▶ unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^\Z)/)
Branch: 1 branch
BranchTrueFalseTotal
unless ($text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/) 0 34 34
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
!ll&&!rl&&r
0034
($lastsep = $1) && ''
!ll
430
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e and $text =~ /\A(?:^\Z)/
$text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/e $text =~ /\A(?:^\Z)/
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Cheater::Parser::skip)/$lastsep = $1 and "";/eB= $text =~ /\A(?:^\Z)/
ABresult
0X0
100
111
Truth table100%2/2
A
A= ($lastsep = $1)
Aresult
00
11
8038 {
8039
8040 0 $expectation->failed();
8041 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8042 Parse::RecDescent::_tracefirst($text))
8043 if defined $::RD_TRACE;
8044  
8045 0 last;
8046 }
8047 34 $current_match = substr($text, $-[0], $+[0] - $-[0]);
8048 34 substr($text,0,length($current_match),q{});
8049 34 ▶ Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8050 . $current_match . q{])},
8051 Parse::RecDescent::_tracefirst($text))
8052 if defined $::RD_TRACE;
8053 34 push @item, $item{__PATTERN1__}=$current_match;
8054
8055  
8056  
8057 34 ▶ Parse::RecDescent::_trace(q{>>Matched production: [/^\\Z/]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8058 Parse::RecDescent::_tracefirst($text),
8059 q{eof},
8060 $tracelevel)
8061 if defined $::RD_TRACE;
8062 34 $_matched = 1;
8063 34 last;
8064 }
8065  
8066  
8067 34 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 0 34 34
Condition33%1/3
$_matched or defined $score
l!l&&r!l&&!r
3400
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
8068 {
8069
8070  
8071 0 $_[1] = $text; # NOT SURE THIS IS NEEDED
8072 0 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8073 Parse::RecDescent::_tracefirst($_[1]),
8074 q{eof},
8075 $tracelevel)
8076 if defined $::RD_TRACE;
8077 0 return undef;
8078 }
8079 34 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 34 34
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0340
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
8080 {
8081 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8082 q{eof},
8083 $tracelevel)
8084 if defined $::RD_TRACE;
8085 0 $return = $score_return;
8086 }
8087 34 splice @{$thisparser->{errors}}, $err_at;
8088 34 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 34 0 34
8089 34 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 34 34
8090 {
8091 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8092 $return . q{])}, "",
8093 q{eof},
8094 $tracelevel);
8095 0 Parse::RecDescent::_trace(q{(consumed: [} .
8096 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8097 Parse::RecDescent::_tracefirst($text),
8098 , q{eof},
8099 $tracelevel)
8100 }
8101 34 $_[1] = $text;
8102 34 return $return;
8103 }
8104  
8105 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
8106 sub Parse::RecDescent::Cheater::Parser::table_name
8107 100 ▶{
Subroutine table_name: called CC=23 SCAR=34.1
8108 100 my $thisparser = $_[0];
8109 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8110 100 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
1000
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
8111 100 $ERRORS = 0;
8112 100 my $thisrule = $thisparser->{"rules"}{"table_name"};
8113
8114 100 ▶ Parse::RecDescent::_trace(q{Trying rule: [table_name]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 100 100
8115 Parse::RecDescent::_tracefirst($_[1]),
8116 q{table_name},
8117 $tracelevel)
8118 if defined $::RD_TRACE;
8119  
8120
8121 100 my $err_at = @{$thisparser->{errors}};
8122  
8123 100 my $score;
8124 my $score_return;
8125 100 my $_tok;
8126 100 my $return = undef;
8127 100 my $_matched=0;
8128 100 my $commit=0;
8129 100 my @item = ();
8130 100 my %item = ();
8131 100 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
00100
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
8132 100 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
01000
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
8133 100 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 100 0 100
8134 100 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 100 0 100
8135 100 my $text;
8136 100 my $lastsep="";
8137 100 my $current_match;
8138 100 my $expectation = new Parse::RecDescent::Expectation(q{identifier});
8139 100 $expectation->at($_[1]);
8140
8141 100 my $prevline;
8142 100 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
8143
8144 100 my $thisline;
8145 100 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8146  
8147
8148  
8149 100 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 100 0 100
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
00100
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8150 {
8151
8152 100 ▶ Parse::RecDescent::_trace(q{Trying production: [identifier]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 100 100
8153 Parse::RecDescent::_tracefirst($_[1]),
8154 q{table_name},
8155 $tracelevel)
8156 if defined $::RD_TRACE;
8157 100 my $thisprod = $thisrule->{"prods"}[0];
8158 100 $text = $_[1];
8159 100 my $_savetext;
8160 100 @item = (q{table_name});
8161 100 %item = (__RULE__ => q{table_name});
8162 100 my $repcount = 0;
8163  
8164  
8165 100 ▶ Parse::RecDescent::_trace(q{Trying subrule: [identifier]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 100 100
8166 Parse::RecDescent::_tracefirst($text),
8167 q{table_name},
8168 $tracelevel)
8169 if defined $::RD_TRACE;
8170 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8171 100 $expectation->is(q{})->at($text);
8172 100 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::identifier($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = identifier($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 34 66 100
8173 {
8174
8175 34 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [identifier]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8176 Parse::RecDescent::_tracefirst($text),
8177 q{table_name},
8178 $tracelevel)
8179 if defined $::RD_TRACE;
8180 34 $expectation->failed();
8181 34 last;
8182 }
8183 66 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [identifier]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
8184 . $_tok . q{]},
8185
8186 Parse::RecDescent::_tracefirst($text),
8187 q{table_name},
8188 $tracelevel)
8189 if defined $::RD_TRACE;
8190 66 $item{q{identifier}} = $_tok;
8191 66 push @item, $_tok;
8192
8193 }
8194  
8195  
8196 66 ▶ Parse::RecDescent::_trace(q{>>Matched production: [identifier]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 66 66
8197 Parse::RecDescent::_tracefirst($text),
8198 q{table_name},
8199 $tracelevel)
8200 if defined $::RD_TRACE;
8201 66 $_matched = 1;
8202 66 last;
8203 }
8204  
8205  
8206 100 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 34 66 100
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
66034
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
8207 {
8208
8209  
8210 34 $_[1] = $text; # NOT SURE THIS IS NEEDED
8211 34 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8212 Parse::RecDescent::_tracefirst($_[1]),
8213 q{table_name},
8214 $tracelevel)
8215 if defined $::RD_TRACE;
8216 34 return undef;
8217 }
8218 66 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 66 66
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0660
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
8219 {
8220 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8221 q{table_name},
8222 $tracelevel)
8223 if defined $::RD_TRACE;
8224 0 $return = $score_return;
8225 }
8226 66 splice @{$thisparser->{errors}}, $err_at;
8227 66 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 66 0 66
8228 66 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 66 66
8229 {
8230 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8231 $return . q{])}, "",
8232 q{table_name},
8233 $tracelevel);
8234 0 Parse::RecDescent::_trace(q{(consumed: [} .
8235 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8236 Parse::RecDescent::_tracefirst($text),
8237 , q{table_name},
8238 $tracelevel)
8239 }
8240 66 $_[1] = $text;
8241 66 return $return;
8242 }
8243  
8244 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
8245 sub Parse::RecDescent::Cheater::Parser::type
8246 34 ▶{
Subroutine type: called CC=23 SCAR=34.1
8247 34 my $thisparser = $_[0];
8248 7 ▶ use vars q{$tracelevel};
Subroutine BEGIN: called CC=1 SCAR=0.0
8249 34 ▶ local $tracelevel = ($tracelevel||0)+1;
Condition50%1/2
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
l!l
340
MC/DC0%0/1
$Parse::RecDescent::Cheater::Parser::tracelevel || 0
$Parse::RecDescent::Cheater::Parser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Cheater::Parser::tracelevel
Aresult
11
00
8250 34 $ERRORS = 0;
8251 34 my $thisrule = $thisparser->{"rules"}{"type"};
8252
8253 34 ▶ Parse::RecDescent::_trace(q{Trying rule: [type]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8254 Parse::RecDescent::_tracefirst($_[1]),
8255 q{type},
8256 $tracelevel)
8257 if defined $::RD_TRACE;
8258  
8259
8260 34 my $err_at = @{$thisparser->{errors}};
8261  
8262 34 my $score;
8263 my $score_return;
8264 34 my $_tok;
8265 34 my $return = undef;
8266 34 my $_matched=0;
8267 34 my $commit=0;
8268 34 my @item = ();
8269 34 my %item = ();
8270 34 ▶ my $repeating = defined($_[2]) && $_[2];
Condition33%1/3
defined $_[2] && $_[2]
!ll&&!rl&&r
0034
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2] $_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
ABresult
0X0
100
111
8271 34 ▶ my $_noactions = defined($_[3]) && $_[3];
Condition33%1/3
defined $_[3] && $_[3]
!ll&&!rl&&r
0340
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3] $_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
ABresult
0X0
100
111
8272 34 ▶ my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
Branch: 1 branch
BranchTrueFalseTotal
defined $_[4] ? : 34 0 34
8273 34 ▶ my %arg = ($#arg & 01) ? @arg : (@arg, undef);
Branch: 1 branch
BranchTrueFalseTotal
$#arg & 1 ? : 34 0 34
8274 34 my $text;
8275 34 my $lastsep="";
8276 34 my $current_match;
8277 34 my $expectation = new Parse::RecDescent::Expectation(q{identifier});
8278 34 $expectation->at($_[1]);
8279
8280 34 my $prevline;
8281 34 tie $prevline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser, 1;
8282
8283 34 my $thisline;
8284 34 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
8285  
8286
8287  
8288 34 ▶ while (!$_matched && !$commit)
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or $commit) 34 0 34
Condition33%1/3
$_matched or $commit
l!l&&r!l&&!r
0034
MC/DC0%0/2
$_matched or $commit
$_matched $commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
ABresult
1X1
011
000
8289 {
8290
8291 34 ▶ Parse::RecDescent::_trace(q{Trying production: [identifier]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8292 Parse::RecDescent::_tracefirst($_[1]),
8293 q{type},
8294 $tracelevel)
8295 if defined $::RD_TRACE;
8296 34 my $thisprod = $thisrule->{"prods"}[0];
8297 34 $text = $_[1];
8298 34 my $_savetext;
8299 34 @item = (q{type});
8300 34 %item = (__RULE__ => q{type});
8301 34 my $repcount = 0;
8302  
8303  
8304 34 ▶ Parse::RecDescent::_trace(q{Trying subrule: [identifier]},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 34 34
8305 Parse::RecDescent::_tracefirst($text),
8306 q{type},
8307 $tracelevel)
8308 if defined $::RD_TRACE;
8309 7 ▶ if (1) { no strict qw{refs};
Subroutine BEGIN: called CC=1 SCAR=0.0
8310 34 $expectation->is(q{})->at($text);
8311 34 ▶ unless (defined ($_tok = Parse::RecDescent::Cheater::Parser::identifier($thisparser,$text,$repeating,$_noactions,sub { \@arg })))
Subroutine __ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
BranchTrueFalseTotal
unless (defined($_tok = identifier($thisparser, $text, $repeating, $_noactions, sub { \@arg; } ))) 1 33 34
8312 {
8313
8314 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match subrule: [identifier]>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
8315 Parse::RecDescent::_tracefirst($text),
8316 q{type},
8317 $tracelevel)
8318 if defined $::RD_TRACE;
8319 1 $expectation->failed();
8320 1 last;
8321 }
8322 33 ▶ Parse::RecDescent::_trace(q{>>Matched subrule: [identifier]<< (return value: [}
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
8323 . $_tok . q{]},
8324
8325 Parse::RecDescent::_tracefirst($text),
8326 q{type},
8327 $tracelevel)
8328 if defined $::RD_TRACE;
8329 33 $item{q{identifier}} = $_tok;
8330 33 push @item, $_tok;
8331
8332 }
8333  
8334  
8335 33 ▶ Parse::RecDescent::_trace(q{>>Matched production: [identifier]<<},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 33 33
8336 Parse::RecDescent::_tracefirst($text),
8337 q{type},
8338 $tracelevel)
8339 if defined $::RD_TRACE;
8340 33 $_matched = 1;
8341 33 last;
8342 }
8343  
8344  
8345 34 ▶ unless ( $_matched || defined($score) )
Branch: 1 branch
BranchTrueFalseTotal
unless ($_matched or defined $score) 1 33 34
Condition66%2/3
$_matched or defined $score
l!l&&r!l&&!r
3301
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
8346 {
8347
8348  
8349 1 $_[1] = $text; # NOT SURE THIS IS NEEDED
8350 1 ▶ Parse::RecDescent::_trace(q{<<Didn't match rule>>},
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 1 1
8351 Parse::RecDescent::_tracefirst($_[1]),
8352 q{type},
8353 $tracelevel)
8354 if defined $::RD_TRACE;
8355 1 return undef;
8356 }
8357 33 ▶ if (!defined($return) && defined($score))
Branch: 1 branch
BranchTrueFalseTotal
if (not defined $return and defined $score) 0 33 33
Condition33%1/3
not defined $return and defined $score
!ll&&!rl&&r
0330
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
8358 {
8359 0 ▶ Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
Branch: 1 branch
BranchTrueFalseTotal
if defined $main::RD_TRACE 0 0 0
8360 q{type},
8361 $tracelevel)
8362 if defined $::RD_TRACE;
8363 0 $return = $score_return;
8364 }
8365 33 splice @{$thisparser->{errors}}, $err_at;
8366 33 ▶ $return = $item[$#item] unless defined $return;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $return 33 0 33
8367 33 ▶ if (defined $::RD_TRACE)
Branch: 1 branch
BranchTrueFalseTotal
if (defined $main::RD_TRACE) 0 33 33
8368 {
8369 0 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
8370 $return . q{])}, "",
8371 q{type},
8372 $tracelevel);
8373 0 Parse::RecDescent::_trace(q{(consumed: [} .
8374 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
8375 Parse::RecDescent::_tracefirst($text),
8376 , q{type},
8377 $tracelevel)
8378 }
8379 33 $_[1] = $text;
8380 33 return $return;
8381 }
8382 }
8383 34 ▶package Cheater::Parser; sub new { my $self = bless( {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8384 '_precompiled' => 1,
8385 'localvars' => '',
8386 'startcode' => '',
8387 'namespace' => 'Parse::RecDescent::Cheater::Parser',
8388 'rules' => {
8389 'qualified_column' => bless( {
8390 'impcount' => 0,
8391 'calls' => [
8392 'table_name',
8393 'column_name'
8394 ],
8395 'changed' => 0,
8396 'opcount' => 0,
8397 'prods' => [
8398 bless( {
8399 'number' => 0,
8400 'strcount' => 1,
8401 'dircount' => 1,
8402 'uncommit' => undef,
8403 'error' => undef,
8404 'patcount' => 0,
8405 'actcount' => 1,
8406 'items' => [
8407 bless( {
8408 'subrule' => 'table_name',
8409 'matchrule' => 0,
8410 'implicit' => undef,
8411 'argcode' => undef,
8412 'lookahead' => 0,
8413 'line' => 70
8414 }, 'Parse::RecDescent::Subrule' ),
8415 bless( {
8416 'pattern' => '.',
8417 'hashname' => '__STRING1__',
8418 'description' => '\'.\'',
8419 'lookahead' => 0,
8420 'line' => 70
8421 }, 'Parse::RecDescent::Literal' ),
8422 bless( {
8423 'hashname' => '__DIRECTIVE1__',
8424 'name' => '<commit>',
8425 'lookahead' => 0,
8426 'line' => 70,
8427 'code' => '$commit = 1'
8428 }, 'Parse::RecDescent::Directive' ),
8429 bless( {
8430 'subrule' => 'column_name',
8431 'matchrule' => 0,
8432 'implicit' => undef,
8433 'argcode' => undef,
8434 'lookahead' => 0,
8435 'line' => 70
8436 }, 'Parse::RecDescent::Subrule' ),
8437 bless( {
8438 'hashname' => '__ACTION1__',
8439 'lookahead' => 0,
8440 'line' => 71,
8441 'code' => '{ [$item[1], $item[4]] }'
8442 }, 'Parse::RecDescent::Action' )
8443 ],
8444 'line' => undef
8445 }, 'Parse::RecDescent::Production' ),
8446 bless( {
8447 'number' => 1,
8448 'strcount' => 0,
8449 'dircount' => 2,
8450 'uncommit' => 0,
8451 'error' => 1,
8452 'patcount' => 0,
8453 'actcount' => 0,
8454 'items' => [
8455 bless( {
8456 'msg' => '',
8457 'hashname' => '__DIRECTIVE1__',
8458 'commitonly' => '?',
8459 'lookahead' => 0,
8460 'line' => 72
8461 }, 'Parse::RecDescent::Error' ),
8462 bless( {
8463 'hashname' => '__DIRECTIVE2__',
8464 'name' => '<reject>',
8465 'lookahead' => 0,
8466 'line' => 72
8467 }, 'Parse::RecDescent::UncondReject' )
8468 ],
8469 'line' => 72
8470 }, 'Parse::RecDescent::Production' )
8471 ],
8472 'name' => 'qualified_column',
8473 'vars' => '',
8474 'line' => 70
8475 }, 'Parse::RecDescent::Rule' ),
8476 'int' => bless( {
8477 'impcount' => 0,
8478 'calls' => [],
8479 'changed' => 0,
8480 'opcount' => 0,
8481 'prods' => [
8482 bless( {
8483 'number' => 0,
8484 'strcount' => 0,
8485 'dircount' => 0,
8486 'uncommit' => undef,
8487 'error' => undef,
8488 'patcount' => 1,
8489 'actcount' => 0,
8490 'items' => [
8491 bless( {
8492 'pattern' => '-?\\d+\\b',
8493 'hashname' => '__PATTERN1__',
8494 'description' => '/-?\\\\d+\\\\b/',
8495 'lookahead' => 0,
8496 'rdelim' => '/',
8497 'line' => 114,
8498 'mod' => '',
8499 'ldelim' => '/'
8500 }, 'Parse::RecDescent::Token' )
8501 ],
8502 'line' => undef
8503 }, 'Parse::RecDescent::Production' )
8504 ],
8505 'name' => 'int',
8506 'vars' => '',
8507 'line' => 114
8508 }, 'Parse::RecDescent::Rule' ),
8509 'number' => bless( {
8510 'impcount' => 0,
8511 'calls' => [
8512 'real',
8513 'int'
8514 ],
8515 'changed' => 0,
8516 'opcount' => 0,
8517 'prods' => [
8518 bless( {
8519 'number' => 0,
8520 'strcount' => 0,
8521 'dircount' => 0,
8522 'uncommit' => undef,
8523 'error' => undef,
8524 'patcount' => 0,
8525 'actcount' => 0,
8526 'items' => [
8527 bless( {
8528 'subrule' => 'real',
8529 'matchrule' => 0,
8530 'implicit' => undef,
8531 'argcode' => undef,
8532 'lookahead' => 0,
8533 'line' => 109
8534 }, 'Parse::RecDescent::Subrule' )
8535 ],
8536 'line' => undef
8537 }, 'Parse::RecDescent::Production' ),
8538 bless( {
8539 'number' => 1,
8540 'strcount' => 0,
8541 'dircount' => 0,
8542 'uncommit' => undef,
8543 'error' => undef,
8544 'patcount' => 0,
8545 'actcount' => 0,
8546 'items' => [
8547 bless( {
8548 'subrule' => 'int',
8549 'matchrule' => 0,
8550 'implicit' => undef,
8551 'argcode' => undef,
8552 'lookahead' => 0,
8553 'line' => 110
8554 }, 'Parse::RecDescent::Subrule' )
8555 ],
8556 'line' => 110
8557 }, 'Parse::RecDescent::Production' )
8558 ],
8559 'name' => 'number',
8560 'vars' => '',
8561 'line' => 109
8562 }, 'Parse::RecDescent::Rule' ),
8563 'time' => bless( {
8564 'impcount' => 0,
8565 'calls' => [],
8566 'changed' => 0,
8567 'opcount' => 0,
8568 'prods' => [
8569 bless( {
8570 'number' => 0,
8571 'strcount' => 0,
8572 'dircount' => 0,
8573 'uncommit' => undef,
8574 'error' => undef,
8575 'patcount' => 1,
8576 'actcount' => 0,
8577 'items' => [
8578 bless( {
8579 'pattern' => '\\b\\d{2}:\\d{2}:\\d{2}\\b',
8580 'hashname' => '__PATTERN1__',
8581 'description' => '/\\\\b\\\\d\\{2\\}:\\\\d\\{2\\}:\\\\d\\{2\\}\\\\b/',
8582 'lookahead' => 0,
8583 'rdelim' => '/',
8584 'line' => 104,
8585 'mod' => '',
8586 'ldelim' => '/'
8587 }, 'Parse::RecDescent::Token' )
8588 ],
8589 'line' => undef
8590 }, 'Parse::RecDescent::Production' ),
8591 bless( {
8592 'number' => 1,
8593 'strcount' => 0,
8594 'dircount' => 0,
8595 'uncommit' => undef,
8596 'error' => undef,
8597 'patcount' => 1,
8598 'actcount' => 1,
8599 'items' => [
8600 bless( {
8601 'pattern' => '\\b\\d{2}:\\d{2}\\b(?!:)',
8602 'hashname' => '__PATTERN1__',
8603 'description' => '/\\\\b\\\\d\\{2\\}:\\\\d\\{2\\}\\\\b(?!:)/',
8604 'lookahead' => 0,
8605 'rdelim' => '/',
8606 'line' => 105,
8607 'mod' => '',
8608 'ldelim' => '/'
8609 }, 'Parse::RecDescent::Token' ),
8610 bless( {
8611 'hashname' => '__ACTION1__',
8612 'lookahead' => 0,
8613 'line' => 105,
8614 'code' => '{ "$item[1]:00" }'
8615 }, 'Parse::RecDescent::Action' )
8616 ],
8617 'line' => 105
8618 }, 'Parse::RecDescent::Production' )
8619 ],
8620 'name' => 'time',
8621 'vars' => '',
8622 'line' => 104
8623 }, 'Parse::RecDescent::Rule' ),
8624 'date' => bless( {
8625 'impcount' => 0,
8626 'calls' => [],
8627 'changed' => 0,
8628 'opcount' => 0,
8629 'prods' => [
8630 bless( {
8631 'number' => 0,
8632 'strcount' => 0,
8633 'dircount' => 0,
8634 'uncommit' => undef,
8635 'error' => undef,
8636 'patcount' => 1,
8637 'actcount' => 0,
8638 'items' => [
8639 bless( {
8640 'pattern' => '\\b\\d{4}-\\d{2}-\\d{2}\\b',
8641 'hashname' => '__PATTERN1__',
8642 'description' => '/\\\\b\\\\d\\{4\\}-\\\\d\\{2\\}-\\\\d\\{2\\}\\\\b/',
8643 'lookahead' => 0,
8644 'rdelim' => '/',
8645 'line' => 102,
8646 'mod' => '',
8647 'ldelim' => '/'
8648 }, 'Parse::RecDescent::Token' )
8649 ],
8650 'line' => undef
8651 }, 'Parse::RecDescent::Production' )
8652 ],
8653 'name' => 'date',
8654 'vars' => '',
8655 'line' => 102
8656 }, 'Parse::RecDescent::Rule' ),
8657 'rows_definition' => bless( {
8658 'impcount' => 0,
8659 'calls' => [
8660 'table_name'
8661 ],
8662 'changed' => 0,
8663 'opcount' => 0,
8664 'prods' => [
8665 bless( {
8666 'number' => 0,
8667 'strcount' => 0,
8668 'dircount' => 1,
8669 'uncommit' => undef,
8670 'error' => undef,
8671 'patcount' => 1,
8672 'actcount' => 1,
8673 'items' => [
8674 bless( {
8675 'pattern' => '\\d+',
8676 'hashname' => '__PATTERN1__',
8677 'description' => '/\\\\d+/',
8678 'lookahead' => 0,
8679 'rdelim' => '/',
8680 'line' => 74,
8681 'mod' => '',
8682 'ldelim' => '/'
8683 }, 'Parse::RecDescent::Token' ),
8684 bless( {
8685 'hashname' => '__DIRECTIVE1__',
8686 'name' => '<commit>',
8687 'lookahead' => 0,
8688 'line' => 74,
8689 'code' => '$commit = 1'
8690 }, 'Parse::RecDescent::Directive' ),
8691 bless( {
8692 'subrule' => 'table_name',
8693 'matchrule' => 0,
8694 'implicit' => undef,
8695 'argcode' => undef,
8696 'lookahead' => 0,
8697 'line' => 74
8698 }, 'Parse::RecDescent::Subrule' ),
8699 bless( {
8700 'hashname' => '__ACTION1__',
8701 'lookahead' => 0,
8702 'line' => 75,
8703 'code' => '{ [\'rows\', $item[1], $item[3]] }'
8704 }, 'Parse::RecDescent::Action' )
8705 ],
8706 'line' => undef
8707 }, 'Parse::RecDescent::Production' ),
8708 bless( {
8709 'number' => 1,
8710 'strcount' => 0,
8711 'dircount' => 2,
8712 'uncommit' => 0,
8713 'error' => 1,
8714 'patcount' => 0,
8715 'actcount' => 0,
8716 'items' => [
8717 bless( {
8718 'msg' => '',
8719 'hashname' => '__DIRECTIVE1__',
8720 'commitonly' => '?',
8721 'lookahead' => 0,
8722 'line' => 76
8723 }, 'Parse::RecDescent::Error' ),
8724 bless( {
8725 'hashname' => '__DIRECTIVE2__',
8726 'name' => '<reject>',
8727 'lookahead' => 0,
8728 'line' => 76
8729 }, 'Parse::RecDescent::UncondReject' )
8730 ],
8731 'line' => 76
8732 }, 'Parse::RecDescent::Production' )
8733 ],
8734 'name' => 'rows_definition',
8735 'vars' => '',
8736 'line' => 74
8737 }, 'Parse::RecDescent::Rule' ),
8738 'range' => bless( {
8739 'impcount' => 0,
8740 'calls' => [
8741 'number',
8742 'date',
8743 'time',
8744 'datetime'
8745 ],
8746 'changed' => 0,
8747 'opcount' => 0,
8748 'prods' => [
8749 bless( {
8750 'number' => 0,
8751 'strcount' => 1,
8752 'dircount' => 1,
8753 'uncommit' => undef,
8754 'error' => undef,
8755 'patcount' => 0,
8756 'actcount' => 1,
8757 'items' => [
8758 bless( {
8759 'subrule' => 'number',
8760 'matchrule' => 0,
8761 'implicit' => undef,
8762 'argcode' => undef,
8763 'lookahead' => 0,
8764 'line' => 92
8765 }, 'Parse::RecDescent::Subrule' ),
8766 bless( {
8767 'pattern' => '..',
8768 'hashname' => '__STRING1__',
8769 'description' => '\'..\'',
8770 'lookahead' => 0,
8771 'line' => 92
8772 }, 'Parse::RecDescent::Literal' ),
8773 bless( {
8774 'hashname' => '__DIRECTIVE1__',
8775 'name' => '<commit>',
8776 'lookahead' => 0,
8777 'line' => 92,
8778 'code' => '$commit = 1'
8779 }, 'Parse::RecDescent::Directive' ),
8780 bless( {
8781 'subrule' => 'number',
8782 'matchrule' => 0,
8783 'implicit' => undef,
8784 'argcode' => undef,
8785 'lookahead' => 0,
8786 'line' => 92
8787 }, 'Parse::RecDescent::Subrule' ),
8788 bless( {
8789 'hashname' => '__ACTION1__',
8790 'lookahead' => 0,
8791 'line' => 93,
8792 'code' => '{ [\'nrange\', $item[1], $item[4]] }'
8793 }, 'Parse::RecDescent::Action' )
8794 ],
8795 'line' => undef
8796 }, 'Parse::RecDescent::Production' ),
8797 bless( {
8798 'number' => 1,
8799 'strcount' => 1,
8800 'dircount' => 1,
8801 'uncommit' => undef,
8802 'error' => undef,
8803 'patcount' => 0,
8804 'actcount' => 1,
8805 'items' => [
8806 bless( {
8807 'subrule' => 'date',
8808 'matchrule' => 0,
8809 'implicit' => undef,
8810 'argcode' => undef,
8811 'lookahead' => 0,
8812 'line' => 94
8813 }, 'Parse::RecDescent::Subrule' ),
8814 bless( {
8815 'pattern' => '..',
8816 'hashname' => '__STRING1__',
8817 'description' => '\'..\'',
8818 'lookahead' => 0,
8819 'line' => 94
8820 }, 'Parse::RecDescent::Literal' ),
8821 bless( {
8822 'hashname' => '__DIRECTIVE1__',
8823 'name' => '<commit>',
8824 'lookahead' => 0,
8825 'line' => 94,
8826 'code' => '$commit = 1'
8827 }, 'Parse::RecDescent::Directive' ),
8828 bless( {
8829 'subrule' => 'date',
8830 'matchrule' => 0,
8831 'implicit' => undef,
8832 'argcode' => undef,
8833 'lookahead' => 0,
8834 'line' => 94
8835 }, 'Parse::RecDescent::Subrule' ),
8836 bless( {
8837 'hashname' => '__ACTION1__',
8838 'lookahead' => 0,
8839 'line' => 95,
8840 'code' => '{ [\'drange\', $item[1], $item[4]] }'
8841 }, 'Parse::RecDescent::Action' )
8842 ],
8843 'line' => 94
8844 }, 'Parse::RecDescent::Production' ),
8845 bless( {
8846 'number' => 2,
8847 'strcount' => 1,
8848 'dircount' => 1,
8849 'uncommit' => undef,
8850 'error' => undef,
8851 'patcount' => 0,
8852 'actcount' => 1,
8853 'items' => [
8854 bless( {
8855 'subrule' => 'time',
8856 'matchrule' => 0,
8857 'implicit' => undef,
8858 'argcode' => undef,
8859 'lookahead' => 0,
8860 'line' => 96
8861 }, 'Parse::RecDescent::Subrule' ),
8862 bless( {
8863 'pattern' => '..',
8864 'hashname' => '__STRING1__',
8865 'description' => '\'..\'',
8866 'lookahead' => 0,
8867 'line' => 96
8868 }, 'Parse::RecDescent::Literal' ),
8869 bless( {
8870 'hashname' => '__DIRECTIVE1__',
8871 'name' => '<commit>',
8872 'lookahead' => 0,
8873 'line' => 96,
8874 'code' => '$commit = 1'
8875 }, 'Parse::RecDescent::Directive' ),
8876 bless( {
8877 'subrule' => 'time',
8878 'matchrule' => 0,
8879 'implicit' => undef,
8880 'argcode' => undef,
8881 'lookahead' => 0,
8882 'line' => 96
8883 }, 'Parse::RecDescent::Subrule' ),
8884 bless( {
8885 'hashname' => '__ACTION1__',
8886 'lookahead' => 0,
8887 'line' => 97,
8888 'code' => '{ [\'trange\', $item[1], $item[4]] }'
8889 }, 'Parse::RecDescent::Action' )
8890 ],
8891 'line' => 96
8892 }, 'Parse::RecDescent::Production' ),
8893 bless( {
8894 'number' => 3,
8895 'strcount' => 1,
8896 'dircount' => 1,
8897 'uncommit' => undef,
8898 'error' => undef,
8899 'patcount' => 0,
8900 'actcount' => 1,
8901 'items' => [
8902 bless( {
8903 'subrule' => 'datetime',
8904 'matchrule' => 0,
8905 'implicit' => undef,
8906 'argcode' => undef,
8907 'lookahead' => 0,
8908 'line' => 98
8909 }, 'Parse::RecDescent::Subrule' ),
8910 bless( {
8911 'pattern' => '..',
8912 'hashname' => '__STRING1__',
8913 'description' => '\'..\'',
8914 'lookahead' => 0,
8915 'line' => 98
8916 }, 'Parse::RecDescent::Literal' ),
8917 bless( {
8918 'hashname' => '__DIRECTIVE1__',
8919 'name' => '<commit>',
8920 'lookahead' => 0,
8921 'line' => 98,
8922 'code' => '$commit = 1'
8923 }, 'Parse::RecDescent::Directive' ),
8924 bless( {
8925 'subrule' => 'datetime',
8926 'matchrule' => 0,
8927 'implicit' => undef,
8928 'argcode' => undef,
8929 'lookahead' => 0,
8930 'line' => 98
8931 }, 'Parse::RecDescent::Subrule' ),
8932 bless( {
8933 'hashname' => '__ACTION1__',
8934 'lookahead' => 0,
8935 'line' => 99,
8936 'code' => '{ [\'dtrange\', $item[1], $item[4]] }'
8937 }, 'Parse::RecDescent::Action' )
8938 ],
8939 'line' => 98
8940 }, 'Parse::RecDescent::Production' ),
8941 bless( {
8942 'number' => 4,
8943 'strcount' => 0,
8944 'dircount' => 2,
8945 'uncommit' => 0,
8946 'error' => 1,
8947 'patcount' => 0,
8948 'actcount' => 0,
8949 'items' => [
8950 bless( {
8951 'msg' => '',
8952 'hashname' => '__DIRECTIVE1__',
8953 'commitonly' => '?',
8954 'lookahead' => 0,
8955 'line' => 100
8956 }, 'Parse::RecDescent::Error' ),
8957 bless( {
8958 'hashname' => '__DIRECTIVE2__',
8959 'name' => '<reject>',
8960 'lookahead' => 0,
8961 'line' => 100
8962 }, 'Parse::RecDescent::UncondReject' )
8963 ],
8964 'line' => 100
8965 }, 'Parse::RecDescent::Production' )
8966 ],
8967 'name' => 'range',
8968 'vars' => '',
8969 'line' => 92
8970 }, 'Parse::RecDescent::Rule' ),
8971 'type_definition' => bless( {
8972 'impcount' => 0,
8973 'calls' => [
8974 'type',
8975 'domain',
8976 'attribute'
8977 ],
8978 'changed' => 0,
8979 'opcount' => 0,
8980 'prods' => [
8981 bless( {
8982 'number' => 0,
8983 'strcount' => 2,
8984 'dircount' => 1,
8985 'uncommit' => undef,
8986 'error' => undef,
8987 'patcount' => 0,
8988 'actcount' => 1,
8989 'items' => [
8990 bless( {
8991 'pattern' => 'type',
8992 'hashname' => '__STRING1__',
8993 'description' => '\'type\'',
8994 'lookahead' => 0,
8995 'line' => 78
8996 }, 'Parse::RecDescent::Literal' ),
8997 bless( {
8998 'hashname' => '__DIRECTIVE1__',
8999 'name' => '<commit>',
9000 'lookahead' => 0,
9001 'line' => 78,
9002 'code' => '$commit = 1'
9003 }, 'Parse::RecDescent::Directive' ),
9004 bless( {
9005 'subrule' => 'type',
9006 'matchrule' => 0,
9007 'implicit' => undef,
9008 'argcode' => undef,
9009 'lookahead' => 0,
9010 'line' => 78
9011 }, 'Parse::RecDescent::Subrule' ),
9012 bless( {
9013 'pattern' => '=',
9014 'hashname' => '__STRING2__',
9015 'description' => '\'=\'',
9016 'lookahead' => 0,
9017 'line' => 78
9018 }, 'Parse::RecDescent::Literal' ),
9019 bless( {
9020 'subrule' => 'type',
9021 'matchrule' => 0,
9022 'implicit' => undef,
9023 'argcode' => undef,
9024 'lookahead' => 0,
9025 'line' => 78
9026 }, 'Parse::RecDescent::Subrule' ),
9027 bless( {
9028 'subrule' => 'domain',
9029 'expected' => undef,
9030 'min' => 0,
9031 'argcode' => undef,
9032 'max' => 1,
9033 'matchrule' => 0,
9034 'repspec' => '?',
9035 'lookahead' => 0,
9036 'line' => 78
9037 }, 'Parse::RecDescent::Repetition' ),
9038 bless( {
9039 'subrule' => 'attribute',
9040 'expected' => undef,
9041 'min' => 0,
9042 'argcode' => undef,
9043 'max' => 100000000,
9044 'matchrule' => 0,
9045 'repspec' => 's?',
9046 'lookahead' => 0,
9047 'line' => 78
9048 }, 'Parse::RecDescent::Repetition' ),
9049 bless( {
9050 'hashname' => '__ACTION1__',
9051 'lookahead' => 0,
9052 'line' => 79,
9053 'code' => '{
9054 [\'type\', $item[3], $item[4], $item[5], $item[6]] }'
9055 }, 'Parse::RecDescent::Action' )
9056 ],
9057 'line' => undef
9058 }, 'Parse::RecDescent::Production' ),
9059 bless( {
9060 'number' => 1,
9061 'strcount' => 0,
9062 'dircount' => 2,
9063 'uncommit' => 0,
9064 'error' => 1,
9065 'patcount' => 0,
9066 'actcount' => 0,
9067 'items' => [
9068 bless( {
9069 'msg' => '',
9070 'hashname' => '__DIRECTIVE1__',
9071 'commitonly' => '?',
9072 'lookahead' => 0,
9073 'line' => 81
9074 }, 'Parse::RecDescent::Error' ),
9075 bless( {
9076 'hashname' => '__DIRECTIVE2__',
9077 'name' => '<reject>',
9078 'lookahead' => 0,
9079 'line' => 81
9080 }, 'Parse::RecDescent::UncondReject' )
9081 ],
9082 'line' => 81
9083 }, 'Parse::RecDescent::Production' )
9084 ],
9085 'name' => 'type_definition',
9086 'vars' => '',
9087 'line' => 78
9088 }, 'Parse::RecDescent::Rule' ),
9089 'string' => bless( {
9090 'impcount' => 0,
9091 'calls' => [],
9092 'changed' => 0,
9093 'opcount' => 0,
9094 'prods' => [
9095 bless( {
9096 'number' => 0,
9097 'strcount' => 2,
9098 'dircount' => 1,
9099 'uncommit' => undef,
9100 'error' => undef,
9101 'patcount' => 1,
9102 'actcount' => 1,
9103 'items' => [
9104 bless( {
9105 'pattern' => '\'',
9106 'hashname' => '__STRING1__',
9107 'description' => '\'\'\'',
9108 'lookahead' => 0,
9109 'line' => 65
9110 }, 'Parse::RecDescent::InterpLit' ),
9111 bless( {
9112 'hashname' => '__DIRECTIVE1__',
9113 'name' => '<commit>',
9114 'lookahead' => 0,
9115 'line' => 65,
9116 'code' => '$commit = 1'
9117 }, 'Parse::RecDescent::Directive' ),
9118 bless( {
9119 'pattern' => '(?:[^\']|\\\\.)*',
9120 'hashname' => '__PATTERN1__',
9121 'description' => '/(?:[^\']|\\\\\\\\.)*/',
9122 'lookahead' => 0,
9123 'rdelim' => '/',
9124 'line' => 65,
9125 'mod' => '',
9126 'ldelim' => '/'
9127 }, 'Parse::RecDescent::Token' ),
9128 bless( {
9129 'pattern' => '\'',
9130 'hashname' => '__STRING2__',
9131 'description' => '\'\'\'',
9132 'lookahead' => 0,
9133 'line' => 65
9134 }, 'Parse::RecDescent::InterpLit' ),
9135 bless( {
9136 'hashname' => '__ACTION1__',
9137 'lookahead' => 0,
9138 'line' => 66,
9139 'code' => '{ eval "\'$item[3]\'" }'
9140 }, 'Parse::RecDescent::Action' )
9141 ],
9142 'line' => undef
9143 }, 'Parse::RecDescent::Production' ),
9144 bless( {
9145 'number' => 1,
9146 'strcount' => 2,
9147 'dircount' => 1,
9148 'uncommit' => undef,
9149 'error' => undef,
9150 'patcount' => 1,
9151 'actcount' => 1,
9152 'items' => [
9153 bless( {
9154 'pattern' => '"',
9155 'hashname' => '__STRING1__',
9156 'description' => '\'"\'',
9157 'lookahead' => 0,
9158 'line' => 67
9159 }, 'Parse::RecDescent::Literal' ),
9160 bless( {
9161 'hashname' => '__DIRECTIVE1__',
9162 'name' => '<commit>',
9163 'lookahead' => 0,
9164 'line' => 67,
9165 'code' => '$commit = 1'
9166 }, 'Parse::RecDescent::Directive' ),
9167 bless( {
9168 'pattern' => '(?:[^"]|\\\\.)*',
9169 'hashname' => '__PATTERN1__',
9170 'description' => '/(?:[^"]|\\\\\\\\.)*/',
9171 'lookahead' => 0,
9172 'rdelim' => '/',
9173 'line' => 67,
9174 'mod' => '',
9175 'ldelim' => '/'
9176 }, 'Parse::RecDescent::Token' ),
9177 bless( {
9178 'pattern' => '"',
9179 'hashname' => '__STRING2__',
9180 'description' => '\'"\'',
9181 'lookahead' => 0,
9182 'line' => 67
9183 }, 'Parse::RecDescent::Literal' ),
9184 bless( {
9185 'hashname' => '__ACTION1__',
9186 'lookahead' => 0,
9187 'line' => 68,
9188 'code' => '{ eval qq{"$item[3]"} }'
9189 }, 'Parse::RecDescent::Action' )
9190 ],
9191 'line' => 67
9192 }, 'Parse::RecDescent::Production' )
9193 ],
9194 'name' => 'string',
9195 'vars' => '',
9196 'line' => 65
9197 }, 'Parse::RecDescent::Rule' ),
9198 'datetime' => bless( {
9199 'impcount' => 0,
9200 'calls' => [
9201 'date',
9202 'time'
9203 ],
9204 'changed' => 0,
9205 'opcount' => 0,
9206 'prods' => [
9207 bless( {
9208 'number' => 0,
9209 'strcount' => 0,
9210 'dircount' => 0,
9211 'uncommit' => undef,
9212 'error' => undef,
9213 'patcount' => 0,
9214 'actcount' => 1,
9215 'items' => [
9216 bless( {
9217 'subrule' => 'date',
9218 'matchrule' => 0,
9219 'implicit' => undef,
9220 'argcode' => undef,
9221 'lookahead' => 0,
9222 'line' => 107
9223 }, 'Parse::RecDescent::Subrule' ),
9224 bless( {
9225 'subrule' => 'time',
9226 'matchrule' => 0,
9227 'implicit' => undef,
9228 'argcode' => undef,
9229 'lookahead' => 0,
9230 'line' => 107
9231 }, 'Parse::RecDescent::Subrule' ),
9232 bless( {
9233 'hashname' => '__ACTION1__',
9234 'lookahead' => 0,
9235 'line' => 107,
9236 'code' => '{ "$item[1] $item[2]" }'
9237 }, 'Parse::RecDescent::Action' )
9238 ],
9239 'line' => undef
9240 }, 'Parse::RecDescent::Production' )
9241 ],
9242 'name' => 'datetime',
9243 'vars' => '',
9244 'line' => 107
9245 }, 'Parse::RecDescent::Rule' ),
9246 'attribute' => bless( {
9247 'impcount' => 0,
9248 'calls' => [
9249 'string'
9250 ],
9251 'changed' => 0,
9252 'opcount' => 0,
9253 'prods' => [
9254 bless( {
9255 'number' => 0,
9256 'strcount' => 1,
9257 'dircount' => 0,
9258 'uncommit' => undef,
9259 'error' => undef,
9260 'patcount' => 0,
9261 'actcount' => 0,
9262 'items' => [
9263 bless( {
9264 'pattern' => 'unique',
9265 'hashname' => '__STRING1__',
9266 'description' => '\'unique\'',
9267 'lookahead' => 0,
9268 'line' => 47
9269 }, 'Parse::RecDescent::Literal' )
9270 ],
9271 'line' => undef
9272 }, 'Parse::RecDescent::Production' ),
9273 bless( {
9274 'number' => 1,
9275 'strcount' => 1,
9276 'dircount' => 0,
9277 'uncommit' => undef,
9278 'error' => undef,
9279 'patcount' => 0,
9280 'actcount' => 0,
9281 'items' => [
9282 bless( {
9283 'pattern' => 'unsigned',
9284 'hashname' => '__STRING1__',
9285 'description' => '\'unsigned\'',
9286 'lookahead' => 0,
9287 'line' => 47
9288 }, 'Parse::RecDescent::Literal' )
9289 ],
9290 'line' => 47
9291 }, 'Parse::RecDescent::Production' ),
9292 bless( {
9293 'number' => 2,
9294 'strcount' => 1,
9295 'dircount' => 0,
9296 'uncommit' => undef,
9297 'error' => undef,
9298 'patcount' => 0,
9299 'actcount' => 0,
9300 'items' => [
9301 bless( {
9302 'pattern' => 'asc',
9303 'hashname' => '__STRING1__',
9304 'description' => '\'asc\'',
9305 'lookahead' => 0,
9306 'line' => 47
9307 }, 'Parse::RecDescent::Literal' )
9308 ],
9309 'line' => 47
9310 }, 'Parse::RecDescent::Production' ),
9311 bless( {
9312 'number' => 3,
9313 'strcount' => 1,
9314 'dircount' => 0,
9315 'uncommit' => undef,
9316 'error' => undef,
9317 'patcount' => 0,
9318 'actcount' => 0,
9319 'items' => [
9320 bless( {
9321 'pattern' => 'desc',
9322 'hashname' => '__STRING1__',
9323 'description' => '\'desc\'',
9324 'lookahead' => 0,
9325 'line' => 47
9326 }, 'Parse::RecDescent::Literal' )
9327 ],
9328 'line' => 47
9329 }, 'Parse::RecDescent::Production' ),
9330 bless( {
9331 'number' => 4,
9332 'strcount' => 2,
9333 'dircount' => 1,
9334 'uncommit' => undef,
9335 'error' => undef,
9336 'patcount' => 0,
9337 'actcount' => 1,
9338 'items' => [
9339 bless( {
9340 'pattern' => 'not',
9341 'hashname' => '__STRING1__',
9342 'description' => '\'not\'',
9343 'lookahead' => 0,
9344 'line' => 48
9345 }, 'Parse::RecDescent::Literal' ),
9346 bless( {
9347 'hashname' => '__DIRECTIVE1__',
9348 'name' => '<commit>',
9349 'lookahead' => 0,
9350 'line' => 48,
9351 'code' => '$commit = 1'
9352 }, 'Parse::RecDescent::Directive' ),
9353 bless( {
9354 'pattern' => 'null',
9355 'hashname' => '__STRING2__',
9356 'description' => '\'null\'',
9357 'lookahead' => 0,
9358 'line' => 48
9359 }, 'Parse::RecDescent::Literal' ),
9360 bless( {
9361 'hashname' => '__ACTION1__',
9362 'lookahead' => 0,
9363 'line' => 48,
9364 'code' => '{ "$item[1] $item[3]" }'
9365 }, 'Parse::RecDescent::Action' )
9366 ],
9367 'line' => 48
9368 }, 'Parse::RecDescent::Production' ),
9369 bless( {
9370 'number' => 5,
9371 'strcount' => 1,
9372 'dircount' => 0,
9373 'uncommit' => undef,
9374 'error' => undef,
9375 'patcount' => 0,
9376 'actcount' => 1,
9377 'items' => [
9378 bless( {
9379 'pattern' => 'for',
9380 'hashname' => '__STRING1__',
9381 'description' => '\'for\'',
9382 'lookahead' => 0,
9383 'line' => 49
9384 }, 'Parse::RecDescent::Literal' ),
9385 bless( {
9386 'subrule' => 'string',
9387 'matchrule' => 0,
9388 'implicit' => undef,
9389 'argcode' => undef,
9390 'lookahead' => 0,
9391 'line' => 49
9392 }, 'Parse::RecDescent::Subrule' ),
9393 bless( {
9394 'hashname' => '__ACTION1__',
9395 'lookahead' => 0,
9396 'line' => 49,
9397 'code' => '{ [\'for\', $item{string}] }'
9398 }, 'Parse::RecDescent::Action' )
9399 ],
9400 'line' => 49
9401 }, 'Parse::RecDescent::Production' ),
9402 bless( {
9403 'number' => 6,
9404 'strcount' => 0,
9405 'dircount' => 2,
9406 'uncommit' => 0,
9407 'error' => 1,
9408 'patcount' => 0,
9409 'actcount' => 0,
9410 'items' => [
9411 bless( {
9412 'msg' => '',
9413 'hashname' => '__DIRECTIVE1__',
9414 'commitonly' => '?',
9415 'lookahead' => 0,
9416 'line' => 50
9417 }, 'Parse::RecDescent::Error' ),
9418 bless( {
9419 'hashname' => '__DIRECTIVE2__',
9420 'name' => '<reject>',
9421 'lookahead' => 0,
9422 'line' => 50
9423 }, 'Parse::RecDescent::UncondReject' )
9424 ],
9425 'line' => 50
9426 }, 'Parse::RecDescent::Production' )
9427 ],
9428 'name' => 'attribute',
9429 'vars' => '',
9430 'line' => 47
9431 }, 'Parse::RecDescent::Rule' ),
9432 'identifier' => bless( {
9433 'impcount' => 0,
9434 'calls' => [],
9435 'changed' => 0,
9436 'opcount' => 0,
9437 'prods' => [
9438 bless( {
9439 'number' => 0,
9440 'strcount' => 0,
9441 'dircount' => 0,
9442 'uncommit' => undef,
9443 'error' => undef,
9444 'patcount' => 1,
9445 'actcount' => 0,
9446 'items' => [
9447 bless( {
9448 'pattern' => '[A-Za-z]\\w*',
9449 'hashname' => '__PATTERN1__',
9450 'description' => '/[A-Za-z]\\\\w*/',
9451 'lookahead' => 0,
9452 'rdelim' => '/',
9453 'line' => 116,
9454 'mod' => '',
9455 'ldelim' => '/'
9456 }, 'Parse::RecDescent::Token' )
9457 ],
9458 'line' => undef
9459 }, 'Parse::RecDescent::Production' )
9460 ],
9461 'name' => 'identifier',
9462 'vars' => '',
9463 'line' => 116
9464 }, 'Parse::RecDescent::Rule' ),
9465 'domain' => bless( {
9466 'impcount' => 0,
9467 'calls' => [
9468 'enum',
9469 'atom'
9470 ],
9471 'changed' => 0,
9472 'opcount' => 0,
9473 'prods' => [
9474 bless( {
9475 'number' => 0,
9476 'strcount' => 0,
9477 'dircount' => 0,
9478 'uncommit' => undef,
9479 'error' => undef,
9480 'patcount' => 0,
9481 'actcount' => 0,
9482 'items' => [
9483 bless( {
9484 'subrule' => 'enum',
9485 'matchrule' => 0,
9486 'implicit' => undef,
9487 'argcode' => undef,
9488 'lookahead' => 0,
9489 'line' => 52
9490 }, 'Parse::RecDescent::Subrule' )
9491 ],
9492 'line' => undef
9493 }, 'Parse::RecDescent::Production' ),
9494 bless( {
9495 'number' => 1,
9496 'strcount' => 0,
9497 'dircount' => 0,
9498 'uncommit' => undef,
9499 'error' => undef,
9500 'patcount' => 0,
9501 'actcount' => 1,
9502 'items' => [
9503 bless( {
9504 'subrule' => 'atom',
9505 'matchrule' => 0,
9506 'implicit' => undef,
9507 'argcode' => undef,
9508 'lookahead' => 0,
9509 'line' => 53
9510 }, 'Parse::RecDescent::Subrule' ),
9511 bless( {
9512 'hashname' => '__ACTION1__',
9513 'lookahead' => 0,
9514 'line' => 53,
9515 'code' => '{ [ $item[1] ] }'
9516 }, 'Parse::RecDescent::Action' )
9517 ],
9518 'line' => 53
9519 }, 'Parse::RecDescent::Production' )
9520 ],
9521 'name' => 'domain',
9522 'vars' => '',
9523 'line' => 52
9524 }, 'Parse::RecDescent::Rule' ),
9525 'table_definition' => bless( {
9526 'impcount' => 0,
9527 'calls' => [
9528 'table_name',
9529 'column_definition'
9530 ],
9531 'changed' => 0,
9532 'opcount' => 0,
9533 'prods' => [
9534 bless( {
9535 'number' => 0,
9536 'strcount' => 3,
9537 'dircount' => 1,
9538 'uncommit' => undef,
9539 'error' => undef,
9540 'patcount' => 0,
9541 'actcount' => 1,
9542 'items' => [
9543 bless( {
9544 'pattern' => 'table',
9545 'hashname' => '__STRING1__',
9546 'description' => '\'table\'',
9547 'lookahead' => 0,
9548 'line' => 29
9549 }, 'Parse::RecDescent::Literal' ),
9550 bless( {
9551 'hashname' => '__DIRECTIVE1__',
9552 'name' => '<commit>',
9553 'lookahead' => 0,
9554 'line' => 29,
9555 'code' => '$commit = 1'
9556 }, 'Parse::RecDescent::Directive' ),
9557 bless( {
9558 'subrule' => 'table_name',
9559 'matchrule' => 0,
9560 'implicit' => undef,
9561 'argcode' => undef,
9562 'lookahead' => 0,
9563 'line' => 29
9564 }, 'Parse::RecDescent::Subrule' ),
9565 bless( {
9566 'pattern' => '(',
9567 'hashname' => '__STRING2__',
9568 'description' => '\'(\'',
9569 'lookahead' => 0,
9570 'line' => 29
9571 }, 'Parse::RecDescent::Literal' ),
9572 bless( {
9573 'subrule' => 'column_definition',
9574 'expected' => undef,
9575 'min' => 1,
9576 'argcode' => undef,
9577 'max' => 100000000,
9578 'matchrule' => 0,
9579 'repspec' => 's',
9580 'lookahead' => 0,
9581 'line' => 30
9582 }, 'Parse::RecDescent::Repetition' ),
9583 bless( {
9584 'pattern' => ')',
9585 'hashname' => '__STRING3__',
9586 'description' => '\')\'',
9587 'lookahead' => 0,
9588 'line' => 31
9589 }, 'Parse::RecDescent::Literal' ),
9590 bless( {
9591 'hashname' => '__ACTION1__',
9592 'lookahead' => 0,
9593 'line' => 32,
9594 'code' => '{ [\'table\', $item[3], $item[5]] }'
9595 }, 'Parse::RecDescent::Action' )
9596 ],
9597 'line' => undef
9598 }, 'Parse::RecDescent::Production' ),
9599 bless( {
9600 'number' => 1,
9601 'strcount' => 0,
9602 'dircount' => 2,
9603 'uncommit' => 0,
9604 'error' => 1,
9605 'patcount' => 0,
9606 'actcount' => 0,
9607 'items' => [
9608 bless( {
9609 'msg' => '',
9610 'hashname' => '__DIRECTIVE1__',
9611 'commitonly' => '?',
9612 'lookahead' => 0,
9613 'line' => 33
9614 }, 'Parse::RecDescent::Error' ),
9615 bless( {
9616 'hashname' => '__DIRECTIVE2__',
9617 'name' => '<reject>',
9618 'lookahead' => 0,
9619 'line' => 33
9620 }, 'Parse::RecDescent::UncondReject' )
9621 ],
9622 'line' => 33
9623 }, 'Parse::RecDescent::Production' )
9624 ],
9625 'name' => 'table_definition',
9626 'vars' => '',
9627 'line' => 29
9628 }, 'Parse::RecDescent::Rule' ),
9629 'column_name' => bless( {
9630 'impcount' => 0,
9631 'calls' => [
9632 'identifier'
9633 ],
9634 'changed' => 0,
9635 'opcount' => 0,
9636 'prods' => [
9637 bless( {
9638 'number' => 0,
9639 'strcount' => 0,
9640 'dircount' => 0,
9641 'uncommit' => undef,
9642 'error' => undef,
9643 'patcount' => 0,
9644 'actcount' => 0,
9645 'items' => [
9646 bless( {
9647 'subrule' => 'identifier',
9648 'matchrule' => 0,
9649 'implicit' => undef,
9650 'argcode' => undef,
9651 'lookahead' => 0,
9652 'line' => 43
9653 }, 'Parse::RecDescent::Subrule' )
9654 ],
9655 'line' => undef
9656 }, 'Parse::RecDescent::Production' )
9657 ],
9658 'name' => 'column_name',
9659 'vars' => '',
9660 'line' => 43
9661 }, 'Parse::RecDescent::Rule' ),
9662 'statement' => bless( {
9663 'impcount' => 0,
9664 'calls' => [
9665 'table_definition',
9666 'rows_definition',
9667 'type_definition',
9668 'include_statement',
9669 'table_assignment'
9670 ],
9671 'changed' => 0,
9672 'opcount' => 0,
9673 'prods' => [
9674 bless( {
9675 'number' => 0,
9676 'strcount' => 0,
9677 'dircount' => 0,
9678 'uncommit' => undef,
9679 'error' => undef,
9680 'patcount' => 1,
9681 'actcount' => 1,
9682 'items' => [
9683 bless( {
9684 'subrule' => 'table_definition',
9685 'matchrule' => 0,
9686 'implicit' => undef,
9687 'argcode' => undef,
9688 'lookahead' => 0,
9689 'line' => 10
9690 }, 'Parse::RecDescent::Subrule' ),
9691 bless( {
9692 'pattern' => ';?',
9693 'hashname' => '__PATTERN1__',
9694 'description' => '/;?/',
9695 'lookahead' => 0,
9696 'rdelim' => '/',
9697 'line' => 10,
9698 'mod' => '',
9699 'ldelim' => '/'
9700 }, 'Parse::RecDescent::Token' ),
9701 bless( {
9702 'hashname' => '__ACTION1__',
9703 'lookahead' => 0,
9704 'line' => 10,
9705 'code' => '{ $item[1] }'
9706 }, 'Parse::RecDescent::Action' )
9707 ],
9708 'line' => undef
9709 }, 'Parse::RecDescent::Production' ),
9710 bless( {
9711 'number' => 1,
9712 'strcount' => 1,
9713 'dircount' => 0,
9714 'uncommit' => undef,
9715 'error' => undef,
9716 'patcount' => 0,
9717 'actcount' => 1,
9718 'items' => [
9719 bless( {
9720 'subrule' => 'rows_definition',
9721 'matchrule' => 0,
9722 'implicit' => undef,
9723 'argcode' => undef,
9724 'lookahead' => 0,
9725 'line' => 11
9726 }, 'Parse::RecDescent::Subrule' ),
9727 bless( {
9728 'pattern' => ';',
9729 'hashname' => '__STRING1__',
9730 'description' => '\';\'',
9731 'lookahead' => 0,
9732 'line' => 11
9733 }, 'Parse::RecDescent::Literal' ),
9734 bless( {
9735 'hashname' => '__ACTION1__',
9736 'lookahead' => 0,
9737 'line' => 11,
9738 'code' => '{ $item[1] }'
9739 }, 'Parse::RecDescent::Action' )
9740 ],
9741 'line' => 11
9742 }, 'Parse::RecDescent::Production' ),
9743 bless( {
9744 'number' => 2,
9745 'strcount' => 1,
9746 'dircount' => 0,
9747 'uncommit' => undef,
9748 'error' => undef,
9749 'patcount' => 0,
9750 'actcount' => 1,
9751 'items' => [
9752 bless( {
9753 'subrule' => 'type_definition',
9754 'matchrule' => 0,
9755 'implicit' => undef,
9756 'argcode' => undef,
9757 'lookahead' => 0,
9758 'line' => 12
9759 }, 'Parse::RecDescent::Subrule' ),
9760 bless( {
9761 'pattern' => ';',
9762 'hashname' => '__STRING1__',
9763 'description' => '\';\'',
9764 'lookahead' => 0,
9765 'line' => 12
9766 }, 'Parse::RecDescent::Literal' ),
9767 bless( {
9768 'hashname' => '__ACTION1__',
9769 'lookahead' => 0,
9770 'line' => 12,
9771 'code' => '{ $item[1] }'
9772 }, 'Parse::RecDescent::Action' )
9773 ],
9774 'line' => 12
9775 }, 'Parse::RecDescent::Production' ),
9776 bless( {
9777 'number' => 3,
9778 'strcount' => 1,
9779 'dircount' => 0,
9780 'uncommit' => undef,
9781 'error' => undef,
9782 'patcount' => 0,
9783 'actcount' => 1,
9784 'items' => [
9785 bless( {
9786 'subrule' => 'include_statement',
9787 'matchrule' => 0,
9788 'implicit' => undef,
9789 'argcode' => undef,
9790 'lookahead' => 0,
9791 'line' => 13
9792 }, 'Parse::RecDescent::Subrule' ),
9793 bless( {
9794 'pattern' => ';',
9795 'hashname' => '__STRING1__',
9796 'description' => '\';\'',
9797 'lookahead' => 0,
9798 'line' => 13
9799 }, 'Parse::RecDescent::Literal' ),
9800 bless( {
9801 'hashname' => '__ACTION1__',
9802 'lookahead' => 0,
9803 'line' => 13,
9804 'code' => '{ $item[1] }'
9805 }, 'Parse::RecDescent::Action' )
9806 ],
9807 'line' => 13
9808 }, 'Parse::RecDescent::Production' ),
9809 bless( {
9810 'number' => 4,
9811 'strcount' => 1,
9812 'dircount' => 0,
9813 'uncommit' => undef,
9814 'error' => undef,
9815 'patcount' => 0,
9816 'actcount' => 1,
9817 'items' => [
9818 bless( {
9819 'subrule' => 'table_assignment',
9820 'matchrule' => 0,
9821 'implicit' => undef,
9822 'argcode' => undef,
9823 'lookahead' => 0,
9824 'line' => 14
9825 }, 'Parse::RecDescent::Subrule' ),
9826 bless( {
9827 'pattern' => ';',
9828 'hashname' => '__STRING1__',
9829 'description' => '\';\'',
9830 'lookahead' => 0,
9831 'line' => 14
9832 }, 'Parse::RecDescent::Literal' ),
9833 bless( {
9834 'hashname' => '__ACTION1__',
9835 'lookahead' => 0,
9836 'line' => 14,
9837 'code' => '{ $item[1] }'
9838 }, 'Parse::RecDescent::Action' )
9839 ],
9840 'line' => 14
9841 }, 'Parse::RecDescent::Production' ),
9842 bless( {
9843 'number' => 5,
9844 'strcount' => 0,
9845 'dircount' => 1,
9846 'uncommit' => 0,
9847 'error' => 1,
9848 'patcount' => 0,
9849 'actcount' => 0,
9850 'items' => [
9851 bless( {
9852 'msg' => '',
9853 'hashname' => '__DIRECTIVE1__',
9854 'commitonly' => '',
9855 'lookahead' => 0,
9856 'line' => 15
9857 }, 'Parse::RecDescent::Error' )
9858 ],
9859 'line' => 15
9860 }, 'Parse::RecDescent::Production' )
9861 ],
9862 'name' => 'statement',
9863 'vars' => '',
9864 'line' => 10
9865 }, 'Parse::RecDescent::Rule' ),
9866 'file_name' => bless( {
9867 'impcount' => 0,
9868 'calls' => [
9869 'string'
9870 ],
9871 'changed' => 0,
9872 'opcount' => 0,
9873 'prods' => [
9874 bless( {
9875 'number' => 0,
9876 'strcount' => 0,
9877 'dircount' => 0,
9878 'uncommit' => undef,
9879 'error' => undef,
9880 'patcount' => 0,
9881 'actcount' => 0,
9882 'items' => [
9883 bless( {
9884 'subrule' => 'string',
9885 'matchrule' => 0,
9886 'implicit' => undef,
9887 'argcode' => undef,
9888 'lookahead' => 0,
9889 'line' => 25
9890 }, 'Parse::RecDescent::Subrule' )
9891 ],
9892 'line' => undef
9893 }, 'Parse::RecDescent::Production' )
9894 ],
9895 'name' => 'file_name',
9896 'vars' => '',
9897 'line' => 25
9898 }, 'Parse::RecDescent::Rule' ),
9899 'atom' => bless( {
9900 'impcount' => 0,
9901 'calls' => [
9902 'range',
9903 'number',
9904 'regex',
9905 'string',
9906 'int'
9907 ],
9908 'changed' => 0,
9909 'opcount' => 0,
9910 'prods' => [
9911 bless( {
9912 'number' => 0,
9913 'strcount' => 0,
9914 'dircount' => 0,
9915 'uncommit' => undef,
9916 'error' => undef,
9917 'patcount' => 0,
9918 'actcount' => 0,
9919 'items' => [
9920 bless( {
9921 'subrule' => 'range',
9922 'matchrule' => 0,
9923 'implicit' => undef,
9924 'argcode' => undef,
9925 'lookahead' => 0,
9926 'line' => 59
9927 }, 'Parse::RecDescent::Subrule' )
9928 ],
9929 'line' => undef
9930 }, 'Parse::RecDescent::Production' ),
9931 bless( {
9932 'number' => 1,
9933 'strcount' => 0,
9934 'dircount' => 0,
9935 'uncommit' => undef,
9936 'error' => undef,
9937 'patcount' => 0,
9938 'actcount' => 0,
9939 'items' => [
9940 bless( {
9941 'subrule' => 'number',
9942 'matchrule' => 0,
9943 'implicit' => undef,
9944 'argcode' => undef,
9945 'lookahead' => 0,
9946 'line' => 60
9947 }, 'Parse::RecDescent::Subrule' )
9948 ],
9949 'line' => 60
9950 }, 'Parse::RecDescent::Production' ),
9951 bless( {
9952 'number' => 2,
9953 'strcount' => 0,
9954 'dircount' => 0,
9955 'uncommit' => undef,
9956 'error' => undef,
9957 'patcount' => 0,
9958 'actcount' => 0,
9959 'items' => [
9960 bless( {
9961 'subrule' => 'regex',
9962 'matchrule' => 0,
9963 'implicit' => undef,
9964 'argcode' => undef,
9965 'lookahead' => 0,
9966 'line' => 61
9967 }, 'Parse::RecDescent::Subrule' )
9968 ],
9969 'line' => 61
9970 }, 'Parse::RecDescent::Production' ),
9971 bless( {
9972 'number' => 3,
9973 'strcount' => 0,
9974 'dircount' => 0,
9975 'uncommit' => undef,
9976 'error' => undef,
9977 'patcount' => 0,
9978 'actcount' => 0,
9979 'items' => [
9980 bless( {
9981 'subrule' => 'string',
9982 'matchrule' => 0,
9983 'implicit' => undef,
9984 'argcode' => undef,
9985 'lookahead' => 0,
9986 'line' => 62
9987 }, 'Parse::RecDescent::Subrule' )
9988 ],
9989 'line' => 62
9990 }, 'Parse::RecDescent::Production' ),
9991 bless( {
9992 'number' => 4,
9993 'strcount' => 0,
9994 'dircount' => 0,
9995 'uncommit' => undef,
9996 'error' => undef,
9997 'patcount' => 0,
9998 'actcount' => 0,
9999 'items' => [
10000 bless( {
10001 'subrule' => 'int',
10002 'matchrule' => 0,
10003 'implicit' => undef,
10004 'argcode' => undef,
10005 'lookahead' => 0,
10006 'line' => 63
10007 }, 'Parse::RecDescent::Subrule' )
10008 ],
10009 'line' => 63
10010 }, 'Parse::RecDescent::Production' )
10011 ],
10012 'name' => 'atom',
10013 'vars' => '',
10014 'line' => 59
10015 }, 'Parse::RecDescent::Rule' ),
10016 'enum' => bless( {
10017 'impcount' => 0,
10018 'calls' => [
10019 'atom'
10020 ],
10021 'changed' => 0,
10022 'opcount' => 0,
10023 'prods' => [
10024 bless( {
10025 'number' => 0,
10026 'strcount' => 2,
10027 'dircount' => 2,
10028 'uncommit' => undef,
10029 'error' => undef,
10030 'patcount' => 1,
10031 'actcount' => 1,
10032 'op' => [],
10033 'items' => [
10034 bless( {
10035 'pattern' => '{',
10036 'hashname' => '__STRING1__',
10037 'description' => '\'\\{\'',
10038 'lookahead' => 0,
10039 'line' => 55
10040 }, 'Parse::RecDescent::Literal' ),
10041 bless( {
10042 'hashname' => '__DIRECTIVE1__',
10043 'name' => '<commit>',
10044 'lookahead' => 0,
10045 'line' => 55,
10046 'code' => '$commit = 1'
10047 }, 'Parse::RecDescent::Directive' ),
10048 bless( {
10049 'expected' => '<leftop: atom /,/ atom>',
10050 'min' => 0,
10051 'name' => '\'atom(s?)\'',
10052 'max' => 100000000,
10053 'leftarg' => bless( {
10054 'subrule' => 'atom',
10055 'matchrule' => 0,
10056 'implicit' => undef,
10057 'argcode' => undef,
10058 'lookahead' => 0,
10059 'line' => 55
10060 }, 'Parse::RecDescent::Subrule' ),
10061 'rightarg' => bless( {
10062 'subrule' => 'atom',
10063 'matchrule' => 0,
10064 'implicit' => undef,
10065 'argcode' => undef,
10066 'lookahead' => 0,
10067 'line' => 55
10068 }, 'Parse::RecDescent::Subrule' ),
10069 'hashname' => '__DIRECTIVE2__',
10070 'type' => 'leftop',
10071 'op' => bless( {
10072 'pattern' => ',',
10073 'hashname' => '__PATTERN1__',
10074 'description' => '/,/',
10075 'lookahead' => 0,
10076 'rdelim' => '/',
10077 'line' => 55,
10078 'mod' => '',
10079 'ldelim' => '/'
10080 }, 'Parse::RecDescent::Token' )
10081 }, 'Parse::RecDescent::Operator' ),
10082 bless( {
10083 'pattern' => '}',
10084 'hashname' => '__STRING2__',
10085 'description' => '\'\\}\'',
10086 'lookahead' => 0,
10087 'line' => 55
10088 }, 'Parse::RecDescent::Literal' ),
10089 bless( {
10090 'hashname' => '__ACTION1__',
10091 'lookahead' => 0,
10092 'line' => 56,
10093 'code' => '{ $item[3] }'
10094 }, 'Parse::RecDescent::Action' )
10095 ],
10096 'line' => undef
10097 }, 'Parse::RecDescent::Production' ),
10098 bless( {
10099 'number' => 1,
10100 'strcount' => 0,
10101 'dircount' => 2,
10102 'uncommit' => 0,
10103 'error' => 1,
10104 'patcount' => 0,
10105 'actcount' => 0,
10106 'items' => [
10107 bless( {
10108 'msg' => '',
10109 'hashname' => '__DIRECTIVE1__',
10110 'commitonly' => '?',
10111 'lookahead' => 0,
10112 'line' => 57
10113 }, 'Parse::RecDescent::Error' ),
10114 bless( {
10115 'hashname' => '__DIRECTIVE2__',
10116 'name' => '<reject>',
10117 'lookahead' => 0,
10118 'line' => 57
10119 }, 'Parse::RecDescent::UncondReject' )
10120 ],
10121 'line' => 57
10122 }, 'Parse::RecDescent::Production' )
10123 ],
10124 'name' => 'enum',
10125 'vars' => '',
10126 'line' => 55
10127 }, 'Parse::RecDescent::Rule' ),
10128 'column_definition' => bless( {
10129 'impcount' => 0,
10130 'calls' => [
10131 'column_name',
10132 'qualified_column',
10133 'attribute',
10134 'type',
10135 'domain'
10136 ],
10137 'changed' => 0,
10138 'opcount' => 0,
10139 'prods' => [
10140 bless( {
10141 'number' => 0,
10142 'strcount' => 2,
10143 'dircount' => 1,
10144 'uncommit' => undef,
10145 'error' => undef,
10146 'patcount' => 0,
10147 'actcount' => 1,
10148 'items' => [
10149 bless( {
10150 'subrule' => 'column_name',
10151 'matchrule' => 0,
10152 'implicit' => undef,
10153 'argcode' => undef,
10154 'lookahead' => 0,
10155 'line' => 36
10156 }, 'Parse::RecDescent::Subrule' ),
10157 bless( {
10158 'pattern' => 'references',
10159 'hashname' => '__STRING1__',
10160 'description' => '\'references\'',
10161 'lookahead' => 0,
10162 'line' => 36
10163 }, 'Parse::RecDescent::Literal' ),
10164 bless( {
10165 'hashname' => '__DIRECTIVE1__',
10166 'name' => '<commit>',
10167 'lookahead' => 0,
10168 'line' => 36,
10169 'code' => '$commit = 1'
10170 }, 'Parse::RecDescent::Directive' ),
10171 bless( {
10172 'subrule' => 'qualified_column',
10173 'matchrule' => 0,
10174 'implicit' => undef,
10175 'argcode' => undef,
10176 'lookahead' => 0,
10177 'line' => 36
10178 }, 'Parse::RecDescent::Subrule' ),
10179 bless( {
10180 'subrule' => 'attribute',
10181 'expected' => undef,
10182 'min' => 0,
10183 'argcode' => undef,
10184 'max' => 100000000,
10185 'matchrule' => 0,
10186 'repspec' => 's?',
10187 'lookahead' => 0,
10188 'line' => 36
10189 }, 'Parse::RecDescent::Repetition' ),
10190 bless( {
10191 'pattern' => ';',
10192 'hashname' => '__STRING2__',
10193 'description' => '\';\'',
10194 'lookahead' => 0,
10195 'line' => 36
10196 }, 'Parse::RecDescent::Literal' ),
10197 bless( {
10198 'hashname' => '__ACTION1__',
10199 'lookahead' => 0,
10200 'line' => 37,
10201 'code' => '{ [ $item[1], \'refs\', $item[4], $item[5] ] }'
10202 }, 'Parse::RecDescent::Action' )
10203 ],
10204 'line' => undef
10205 }, 'Parse::RecDescent::Production' ),
10206 bless( {
10207 'number' => 1,
10208 'strcount' => 1,
10209 'dircount' => 0,
10210 'uncommit' => undef,
10211 'error' => undef,
10212 'patcount' => 0,
10213 'actcount' => 1,
10214 'items' => [
10215 bless( {
10216 'subrule' => 'column_name',
10217 'matchrule' => 0,
10218 'implicit' => undef,
10219 'argcode' => undef,
10220 'lookahead' => 0,
10221 'line' => 38
10222 }, 'Parse::RecDescent::Subrule' ),
10223 bless( {
10224 'subrule' => 'type',
10225 'matchrule' => 0,
10226 'implicit' => undef,
10227 'argcode' => undef,
10228 'lookahead' => 0,
10229 'line' => 38
10230 }, 'Parse::RecDescent::Subrule' ),
10231 bless( {
10232 'subrule' => 'domain',
10233 'expected' => undef,
10234 'min' => 0,
10235 'argcode' => undef,
10236 'max' => 1,
10237 'matchrule' => 0,
10238 'repspec' => '?',
10239 'lookahead' => 0,
10240 'line' => 38
10241 }, 'Parse::RecDescent::Repetition' ),
10242 bless( {
10243 'subrule' => 'attribute',
10244 'expected' => undef,
10245 'min' => 0,
10246 'argcode' => undef,
10247 'max' => 100000000,
10248 'matchrule' => 0,
10249 'repspec' => 's?',
10250 'lookahead' => 0,
10251 'line' => 38
10252 }, 'Parse::RecDescent::Repetition' ),
10253 bless( {
10254 'pattern' => ';',
10255 'hashname' => '__STRING1__',
10256 'description' => '\';\'',
10257 'lookahead' => 0,
10258 'line' => 38
10259 }, 'Parse::RecDescent::Literal' ),
10260 bless( {
10261 'hashname' => '__ACTION1__',
10262 'lookahead' => 0,
10263 'line' => 39,
10264 'code' => '{ [$item[1], $item[2], $item[3], $item[4] ] }'
10265 }, 'Parse::RecDescent::Action' )
10266 ],
10267 'line' => 38
10268 }, 'Parse::RecDescent::Production' ),
10269 bless( {
10270 'number' => 2,
10271 'strcount' => 2,
10272 'dircount' => 0,
10273 'uncommit' => undef,
10274 'error' => undef,
10275 'patcount' => 0,
10276 'actcount' => 1,
10277 'items' => [
10278 bless( {
10279 'subrule' => 'column_name',
10280 'matchrule' => 0,
10281 'implicit' => undef,
10282 'argcode' => undef,
10283 'lookahead' => 0,
10284 'line' => 40
10285 }, 'Parse::RecDescent::Subrule' ),
10286 bless( {
10287 'pattern' => '=',
10288 'hashname' => '__STRING1__',
10289 'description' => '\'=\'',
10290 'lookahead' => 0,
10291 'line' => 40
10292 }, 'Parse::RecDescent::Literal' ),
10293 bless( {
10294 'subrule' => 'column_name',
10295 'matchrule' => 0,
10296 'implicit' => undef,
10297 'argcode' => undef,
10298 'lookahead' => 0,
10299 'line' => 40
10300 }, 'Parse::RecDescent::Subrule' ),
10301 bless( {
10302 'pattern' => ';',
10303 'hashname' => '__STRING2__',
10304 'description' => '\';\'',
10305 'lookahead' => 0,
10306 'line' => 40
10307 }, 'Parse::RecDescent::Literal' ),
10308 bless( {
10309 'hashname' => '__ACTION1__',
10310 'lookahead' => 0,
10311 'line' => 40,
10312 'code' => '{ [$item[1], \'=\', $item[3]] }'
10313 }, 'Parse::RecDescent::Action' )
10314 ],
10315 'line' => 40
10316 }, 'Parse::RecDescent::Production' ),
10317 bless( {
10318 'number' => 3,
10319 'strcount' => 0,
10320 'dircount' => 2,
10321 'uncommit' => 0,
10322 'error' => 1,
10323 'patcount' => 0,
10324 'actcount' => 0,
10325 'items' => [
10326 bless( {
10327 'msg' => '',
10328 'hashname' => '__DIRECTIVE1__',
10329 'commitonly' => '?',
10330 'lookahead' => 0,
10331 'line' => 41
10332 }, 'Parse::RecDescent::Error' ),
10333 bless( {
10334 'hashname' => '__DIRECTIVE2__',
10335 'name' => '<reject>',
10336 'lookahead' => 0,
10337 'line' => 41
10338 }, 'Parse::RecDescent::UncondReject' )
10339 ],
10340 'line' => 41
10341 }, 'Parse::RecDescent::Production' )
10342 ],
10343 'name' => 'column_definition',
10344 'vars' => '',
10345 'line' => 35
10346 }, 'Parse::RecDescent::Rule' ),
10347 'real' => bless( {
10348 'impcount' => 0,
10349 'calls' => [],
10350 'changed' => 0,
10351 'opcount' => 0,
10352 'prods' => [
10353 bless( {
10354 'number' => 0,
10355 'strcount' => 0,
10356 'dircount' => 0,
10357 'uncommit' => undef,
10358 'error' => undef,
10359 'patcount' => 1,
10360 'actcount' => 0,
10361 'items' => [
10362 bless( {
10363 'pattern' => '-?\\d+\\.\\d+\\b',
10364 'hashname' => '__PATTERN1__',
10365 'description' => '/-?\\\\d+\\\\.\\\\d+\\\\b/',
10366 'lookahead' => 0,
10367 'rdelim' => '/',
10368 'line' => 112,
10369 'mod' => '',
10370 'ldelim' => '/'
10371 }, 'Parse::RecDescent::Token' )
10372 ],
10373 'line' => undef
10374 }, 'Parse::RecDescent::Production' )
10375 ],
10376 'name' => 'real',
10377 'vars' => '',
10378 'line' => 112
10379 }, 'Parse::RecDescent::Rule' ),
10380 'spec' => bless( {
10381 'impcount' => 0,
10382 'calls' => [
10383 'statement',
10384 'eof'
10385 ],
10386 'changed' => 0,
10387 'opcount' => 0,
10388 'prods' => [
10389 bless( {
10390 'number' => 0,
10391 'strcount' => 0,
10392 'dircount' => 0,
10393 'uncommit' => undef,
10394 'error' => undef,
10395 'patcount' => 0,
10396 'actcount' => 1,
10397 'items' => [
10398 bless( {
10399 'subrule' => 'statement',
10400 'expected' => undef,
10401 'min' => 1,
10402 'argcode' => undef,
10403 'max' => 100000000,
10404 'matchrule' => 0,
10405 'repspec' => 's',
10406 'lookahead' => 0,
10407 'line' => 5
10408 }, 'Parse::RecDescent::Repetition' ),
10409 bless( {
10410 'subrule' => 'eof',
10411 'matchrule' => 0,
10412 'implicit' => undef,
10413 'argcode' => undef,
10414 'lookahead' => 0,
10415 'line' => 5
10416 }, 'Parse::RecDescent::Subrule' ),
10417 bless( {
10418 'hashname' => '__ACTION1__',
10419 'lookahead' => 0,
10420 'line' => 6,
10421 'code' => '{ $item[1] }'
10422 }, 'Parse::RecDescent::Action' )
10423 ],
10424 'line' => undef
10425 }, 'Parse::RecDescent::Production' )
10426 ],
10427 'name' => 'spec',
10428 'vars' => '',
10429 'line' => 5
10430 }, 'Parse::RecDescent::Rule' ),
10431 'table_assignment' => bless( {
10432 'impcount' => 0,
10433 'calls' => [
10434 'table_name'
10435 ],
10436 'changed' => 0,
10437 'opcount' => 0,
10438 'prods' => [
10439 bless( {
10440 'number' => 0,
10441 'strcount' => 1,
10442 'dircount' => 1,
10443 'uncommit' => undef,
10444 'error' => undef,
10445 'patcount' => 0,
10446 'actcount' => 1,
10447 'items' => [
10448 bless( {
10449 'subrule' => 'table_name',
10450 'matchrule' => 0,
10451 'implicit' => undef,
10452 'argcode' => undef,
10453 'lookahead' => 0,
10454 'line' => 17
10455 }, 'Parse::RecDescent::Subrule' ),
10456 bless( {
10457 'pattern' => '=',
10458 'hashname' => '__STRING1__',
10459 'description' => '\'=\'',
10460 'lookahead' => 0,
10461 'line' => 17
10462 }, 'Parse::RecDescent::Literal' ),
10463 bless( {
10464 'hashname' => '__DIRECTIVE1__',
10465 'name' => '<commit>',
10466 'lookahead' => 0,
10467 'line' => 17,
10468 'code' => '$commit = 1'
10469 }, 'Parse::RecDescent::Directive' ),
10470 bless( {
10471 'subrule' => 'table_name',
10472 'matchrule' => 0,
10473 'implicit' => undef,
10474 'argcode' => undef,
10475 'lookahead' => 0,
10476 'line' => 17
10477 }, 'Parse::RecDescent::Subrule' ),
10478 bless( {
10479 'hashname' => '__ACTION1__',
10480 'lookahead' => 0,
10481 'line' => 18,
10482 'code' => '{ [ \'table_assign\', $item[1], $item[4] ] }'
10483 }, 'Parse::RecDescent::Action' )
10484 ],
10485 'line' => undef
10486 }, 'Parse::RecDescent::Production' ),
10487 bless( {
10488 'number' => 1,
10489 'strcount' => 0,
10490 'dircount' => 2,
10491 'uncommit' => 0,
10492 'error' => 1,
10493 'patcount' => 0,
10494 'actcount' => 0,
10495 'items' => [
10496 bless( {
10497 'msg' => '',
10498 'hashname' => '__DIRECTIVE1__',
10499 'commitonly' => '?',
10500 'lookahead' => 0,
10501 'line' => 19
10502 }, 'Parse::RecDescent::Error' ),
10503 bless( {
10504 'hashname' => '__DIRECTIVE2__',
10505 'name' => '<reject>',
10506 'lookahead' => 0,
10507 'line' => 19
10508 }, 'Parse::RecDescent::UncondReject' )
10509 ],
10510 'line' => 19
10511 }, 'Parse::RecDescent::Production' )
10512 ],
10513 'name' => 'table_assignment',
10514 'vars' => '',
10515 'line' => 17
10516 }, 'Parse::RecDescent::Rule' ),
10517 'include_statement' => bless( {
10518 'impcount' => 0,
10519 'calls' => [
10520 'file_name'
10521 ],
10522 'changed' => 0,
10523 'opcount' => 0,
10524 'prods' => [
10525 bless( {
10526 'number' => 0,
10527 'strcount' => 1,
10528 'dircount' => 1,
10529 'uncommit' => undef,
10530 'error' => undef,
10531 'patcount' => 0,
10532 'actcount' => 1,
10533 'items' => [
10534 bless( {
10535 'pattern' => 'include',
10536 'hashname' => '__STRING1__',
10537 'description' => '\'include\'',
10538 'lookahead' => 0,
10539 'line' => 21
10540 }, 'Parse::RecDescent::Literal' ),
10541 bless( {
10542 'hashname' => '__DIRECTIVE1__',
10543 'name' => '<commit>',
10544 'lookahead' => 0,
10545 'line' => 21,
10546 'code' => '$commit = 1'
10547 }, 'Parse::RecDescent::Directive' ),
10548 bless( {
10549 'subrule' => 'file_name',
10550 'matchrule' => 0,
10551 'implicit' => undef,
10552 'argcode' => undef,
10553 'lookahead' => 0,
10554 'line' => 21
10555 }, 'Parse::RecDescent::Subrule' ),
10556 bless( {
10557 'hashname' => '__ACTION1__',
10558 'lookahead' => 0,
10559 'line' => 22,
10560 'code' => '{ [\'include\', parse_included_file($item[3], $thisline)] }'
10561 }, 'Parse::RecDescent::Action' )
10562 ],
10563 'line' => undef
10564 }, 'Parse::RecDescent::Production' ),
10565 bless( {
10566 'number' => 1,
10567 'strcount' => 0,
10568 'dircount' => 2,
10569 'uncommit' => 0,
10570 'error' => 1,
10571 'patcount' => 0,
10572 'actcount' => 0,
10573 'items' => [
10574 bless( {
10575 'msg' => '',
10576 'hashname' => '__DIRECTIVE1__',
10577 'commitonly' => '?',
10578 'lookahead' => 0,
10579 'line' => 23
10580 }, 'Parse::RecDescent::Error' ),
10581 bless( {
10582 'hashname' => '__DIRECTIVE2__',
10583 'name' => '<reject>',
10584 'lookahead' => 0,
10585 'line' => 23
10586 }, 'Parse::RecDescent::UncondReject' )
10587 ],
10588 'line' => 23
10589 }, 'Parse::RecDescent::Production' )
10590 ],
10591 'name' => 'include_statement',
10592 'vars' => '',
10593 'line' => 21
10594 }, 'Parse::RecDescent::Rule' ),
10595 'regex' => bless( {
10596 'impcount' => 0,
10597 'calls' => [],
10598 'changed' => 0,
10599 'opcount' => 0,
10600 'prods' => [
10601 bless( {
10602 'number' => 0,
10603 'strcount' => 0,
10604 'dircount' => 0,
10605 'uncommit' => undef,
10606 'error' => undef,
10607 'patcount' => 1,
10608 'actcount' => 1,
10609 'items' => [
10610 bless( {
10611 'pattern' => '\\/(?:[^\\\\\\/]|\\\\.)*\\/',
10612 'hashname' => '__PATTERN1__',
10613 'description' => '/\\\\/(?:[^\\\\\\\\\\\\/]|\\\\\\\\.)*\\\\//',
10614 'lookahead' => 0,
10615 'rdelim' => '/',
10616 'line' => 83,
10617 'mod' => '',
10618 'ldelim' => '/'
10619 }, 'Parse::RecDescent::Token' ),
10620 bless( {
10621 'hashname' => '__ACTION1__',
10622 'lookahead' => 0,
10623 'line' => 84,
10624 'code' => '{ my $regex = \'qr\' . $item[1];
10625 my $re = eval $regex;
10626 if ($@) {
10627 die "Bad regex on line $prevline: $regex: $@";
10628 }
10629 $re
10630 }'
10631 }, 'Parse::RecDescent::Action' )
10632 ],
10633 'line' => undef
10634 }, 'Parse::RecDescent::Production' )
10635 ],
10636 'name' => 'regex',
10637 'vars' => '',
10638 'line' => 83
10639 }, 'Parse::RecDescent::Rule' ),
10640 'eof' => bless( {
10641 'impcount' => 0,
10642 'calls' => [],
10643 'changed' => 0,
10644 'opcount' => 0,
10645 'prods' => [
10646 bless( {
10647 'number' => 0,
10648 'strcount' => 0,
10649 'dircount' => 0,
10650 'uncommit' => undef,
10651 'error' => undef,
10652 'patcount' => 1,
10653 'actcount' => 0,
10654 'items' => [
10655 bless( {
10656 'pattern' => '^\\Z',
10657 'hashname' => '__PATTERN1__',
10658 'description' => '/^\\\\Z/',
10659 'lookahead' => 0,
10660 'rdelim' => '/',
10661 'line' => 8,
10662 'mod' => '',
10663 'ldelim' => '/'
10664 }, 'Parse::RecDescent::Token' )
10665 ],
10666 'line' => undef
10667 }, 'Parse::RecDescent::Production' )
10668 ],
10669 'name' => 'eof',
10670 'vars' => '',
10671 'line' => 8
10672 }, 'Parse::RecDescent::Rule' ),
10673 'table_name' => bless( {
10674 'impcount' => 0,
10675 'calls' => [
10676 'identifier'
10677 ],
10678 'changed' => 0,
10679 'opcount' => 0,
10680 'prods' => [
10681 bless( {
10682 'number' => 0,
10683 'strcount' => 0,
10684 'dircount' => 0,
10685 'uncommit' => undef,
10686 'error' => undef,
10687 'patcount' => 0,
10688 'actcount' => 0,
10689 'items' => [
10690 bless( {
10691 'subrule' => 'identifier',
10692 'matchrule' => 0,
10693 'implicit' => undef,
10694 'argcode' => undef,
10695 'lookahead' => 0,
10696 'line' => 27
10697 }, 'Parse::RecDescent::Subrule' )
10698 ],
10699 'line' => undef
10700 }, 'Parse::RecDescent::Production' )
10701 ],
10702 'name' => 'table_name',
10703 'vars' => '',
10704 'line' => 27
10705 }, 'Parse::RecDescent::Rule' ),
10706 'type' => bless( {
10707 'impcount' => 0,
10708 'calls' => [
10709 'identifier'
10710 ],
10711 'changed' => 0,
10712 'opcount' => 0,
10713 'prods' => [
10714 bless( {
10715 'number' => 0,
10716 'strcount' => 0,
10717 'dircount' => 0,
10718 'uncommit' => undef,
10719 'error' => undef,
10720 'patcount' => 0,
10721 'actcount' => 0,
10722 'items' => [
10723 bless( {
10724 'subrule' => 'identifier',
10725 'matchrule' => 0,
10726 'implicit' => undef,
10727 'argcode' => undef,
10728 'lookahead' => 0,
10729 'line' => 45
10730 }, 'Parse::RecDescent::Subrule' )
10731 ],
10732 'line' => undef
10733 }, 'Parse::RecDescent::Production' )
10734 ],
10735 'name' => 'type',
10736 'vars' => '',
10737 'line' => 45
10738 }, 'Parse::RecDescent::Rule' )
10739 },
10740 '_AUTOTREE' => undef,
10741 '_check' => {
10742 'thisoffset' => '',
10743 'itempos' => '',
10744 'prevoffset' => '',
10745 'prevline' => 1,
10746 'prevcolumn' => '',
10747 'thiscolumn' => ''
10748 },
10749 '_AUTOACTION' => undef
10750 }, 'Parse::RecDescent' );
10751 }
↑ Summary Cheater/Eval.pm »