| 1 | package Lingua::Phonology::RuleParser; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | 1 | ▶ | use Parse::RecDescent; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3 | |||||||||||||||||||||||||||||||||||||||||||
| 4 | 1 | { my $ERRORS; | |||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||||||
| 7 | package Parse::RecDescent::Lingua::Phonology::RuleParser; | ||||||||||||||||||||||||||||||||||||||||||
| 8 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 9 | 1 | ▶ | use vars qw($skip $AUTOLOAD ); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 10 | 1 | $skip = '\s*'; | |||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||
| 12 | 1 | our %trans = ( '+' => 1, '-' => 0, '*' => '__FALSE' ); | |||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||
| 14 | 24 | ▶ | sub hash_merge { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
hash_merge: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||||||||||||||||
| 15 | 24 | my %r = (); | |||||||||||||||||||||||||||||||||||||||||
| 16 | 24 | for my $href (@_) { | |||||||||||||||||||||||||||||||||||||||||
| 17 | 27 | for (keys %$href) { | |||||||||||||||||||||||||||||||||||||||||
| 18 | 27 | $r{$_} = $href->{$_}; | |||||||||||||||||||||||||||||||||||||||||
| 19 | } | ||||||||||||||||||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||||||||||||||||
| 21 | 24 | return \%r; | |||||||||||||||||||||||||||||||||||||||||
| 22 | } | ||||||||||||||||||||||||||||||||||||||||||
| 23 | ; | ||||||||||||||||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||||||
| 26 | { | ||||||||||||||||||||||||||||||||||||||||||
| 27 | 0 | ▶ | local $SIG{__WARN__} = sub {0}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=0.4
| |||||||||||||||||||||||||||||||||||||||||||
| 28 | # PRETEND TO BE IN Parse::RecDescent NAMESPACE | ||||||||||||||||||||||||||||||||||||||||||
| 29 | *Parse::RecDescent::Lingua::Phonology::RuleParser::AUTOLOAD = sub | ||||||||||||||||||||||||||||||||||||||||||
| 30 | 0 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||||||||||||||||||||||||||||||||||
| 31 | 1 | ▶ | no strict 'refs'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 32 | 0 | $AUTOLOAD =~ s/^Parse::RecDescent::Lingua::Phonology::RuleParser/Parse::RecDescent/; | |||||||||||||||||||||||||||||||||||||||||
| 33 | 0 | goto &{$AUTOLOAD}; | |||||||||||||||||||||||||||||||||||||||||
| 34 | } | ||||||||||||||||||||||||||||||||||||||||||
| 35 | 1 | } | |||||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||||||
| 37 | 1 | push @Parse::RecDescent::Lingua::Phonology::RuleParser::ISA, 'Parse::RecDescent'; | |||||||||||||||||||||||||||||||||||||||||
| 38 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 39 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_2_of_production_1_of_rule_Condition | ||||||||||||||||||||||||||||||||||||||||||
| 40 | 21 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_alternation_2_of_production_1_of_rule_Condition: called CC=32 SCAR=40.4
| |||||||||||||||||||||||||||||||||||||||||||
| 41 | 21 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 42 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 43 | 21 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 44 | 21 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 45 | 21 | my $thisrule = $thisparser->{"rules"}{"_alternation_2_of_production_1_of_rule_Condition"}; | |||||||||||||||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||||||||||||||||
| 47 | 21 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [_alternation_2_of_production_1_of_rule_Condition]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 48 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 49 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 50 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 51 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 52 | |||||||||||||||||||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||||||||||||||||
| 54 | 21 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 55 | |||||||||||||||||||||||||||||||||||||||||||
| 56 | 21 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 57 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 58 | 21 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 59 | 21 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 60 | 21 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 61 | 21 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 62 | 21 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 63 | 21 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 64 | 21 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 65 | 21 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 66 | 0 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 67 | 21 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 68 | 21 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 69 | 21 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 70 | 21 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 71 | 21 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 72 | |||||||||||||||||||||||||||||||||||||||||||
| 73 | 21 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 74 | 21 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 75 | |||||||||||||||||||||||||||||||||||||||||||
| 76 | |||||||||||||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||||||||||||
| 78 | 21 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 79 | { | ||||||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||||||
| 81 | 21 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 82 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 83 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 84 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 85 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 86 | 21 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 87 | 21 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 88 | 21 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 89 | 21 | @item = (q{_alternation_2_of_production_1_of_rule_Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 90 | 21 | %item = (__RULE__ => q{_alternation_2_of_production_1_of_rule_Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 91 | 21 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||||||||||||||||
| 93 | |||||||||||||||||||||||||||||||||||||||||||
| 94 | 21 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 95 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 96 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 97 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 98 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 99 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 100 | 21 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 101 | 21 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Segment($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 102 | { | ||||||||||||||||||||||||||||||||||||||||||
| 103 | |||||||||||||||||||||||||||||||||||||||||||
| 104 | 14 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Segment]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 105 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 106 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 107 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 108 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 109 | 14 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 110 | 14 | last; | |||||||||||||||||||||||||||||||||||||||||
| 111 | } | ||||||||||||||||||||||||||||||||||||||||||
| 112 | 7 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Segment]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 113 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 114 | |||||||||||||||||||||||||||||||||||||||||||
| 115 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 116 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 117 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 118 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 119 | 7 | $item{q{Segment}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 120 | 7 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 121 | |||||||||||||||||||||||||||||||||||||||||||
| 122 | } | ||||||||||||||||||||||||||||||||||||||||||
| 123 | |||||||||||||||||||||||||||||||||||||||||||
| 124 | |||||||||||||||||||||||||||||||||||||||||||
| 125 | 7 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Segment]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 126 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 127 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 128 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 129 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 130 | 7 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 131 | 7 | last; | |||||||||||||||||||||||||||||||||||||||||
| 132 | } | ||||||||||||||||||||||||||||||||||||||||||
| 133 | |||||||||||||||||||||||||||||||||||||||||||
| 134 | |||||||||||||||||||||||||||||||||||||||||||
| 135 | 21 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 136 | { | ||||||||||||||||||||||||||||||||||||||||||
| 137 | |||||||||||||||||||||||||||||||||||||||||||
| 138 | 14 | ▶ | Parse::RecDescent::_trace(q{Trying production: [SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 139 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 140 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 141 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 142 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 143 | 14 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 144 | 14 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 145 | 14 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 146 | 14 | @item = (q{_alternation_2_of_production_1_of_rule_Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 147 | 14 | %item = (__RULE__ => q{_alternation_2_of_production_1_of_rule_Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 148 | 14 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 149 | |||||||||||||||||||||||||||||||||||||||||||
| 150 | |||||||||||||||||||||||||||||||||||||||||||
| 151 | 14 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 152 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 153 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 154 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 155 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 156 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 157 | 14 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 158 | 14 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::SegmentSet($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 159 | { | ||||||||||||||||||||||||||||||||||||||||||
| 160 | |||||||||||||||||||||||||||||||||||||||||||
| 161 | 14 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [SegmentSet]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 162 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 163 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 164 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 165 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 166 | 14 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 167 | 14 | last; | |||||||||||||||||||||||||||||||||||||||||
| 168 | } | ||||||||||||||||||||||||||||||||||||||||||
| 169 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [SegmentSet]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 170 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 171 | |||||||||||||||||||||||||||||||||||||||||||
| 172 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 173 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 174 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 175 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 176 | 0 | $item{q{SegmentSet}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 177 | 0 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 178 | |||||||||||||||||||||||||||||||||||||||||||
| 179 | } | ||||||||||||||||||||||||||||||||||||||||||
| 180 | |||||||||||||||||||||||||||||||||||||||||||
| 181 | |||||||||||||||||||||||||||||||||||||||||||
| 182 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [SegmentSet]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 183 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 184 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 185 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 186 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 187 | 0 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 188 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 189 | } | ||||||||||||||||||||||||||||||||||||||||||
| 190 | |||||||||||||||||||||||||||||||||||||||||||
| 191 | |||||||||||||||||||||||||||||||||||||||||||
| 192 | 21 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 193 | { | ||||||||||||||||||||||||||||||||||||||||||
| 194 | |||||||||||||||||||||||||||||||||||||||||||
| 195 | |||||||||||||||||||||||||||||||||||||||||||
| 196 | 14 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 197 | 14 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 198 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 199 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 200 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 201 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 202 | 14 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 203 | } | ||||||||||||||||||||||||||||||||||||||||||
| 204 | 7 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 205 | { | ||||||||||||||||||||||||||||||||||||||||||
| 206 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 207 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 208 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 209 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 210 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 211 | } | ||||||||||||||||||||||||||||||||||||||||||
| 212 | 7 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 213 | 7 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 214 | 7 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 215 | { | ||||||||||||||||||||||||||||||||||||||||||
| 216 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 217 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 218 | q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 219 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 220 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 221 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 222 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 223 | , q{_alternation_2_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 224 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 225 | } | ||||||||||||||||||||||||||||||||||||||||||
| 226 | 7 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 227 | 7 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 228 | } | ||||||||||||||||||||||||||||||||||||||||||
| 229 | |||||||||||||||||||||||||||||||||||||||||||
| 230 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 231 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Condition | ||||||||||||||||||||||||||||||||||||||||||
| 232 | 15 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Condition: called CC=57 SCAR=51.9
| |||||||||||||||||||||||||||||||||||||||||||
| 233 | 15 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 234 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 235 | 15 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 236 | 15 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 237 | 15 | my $thisrule = $thisparser->{"rules"}{"Condition"}; | |||||||||||||||||||||||||||||||||||||||||
| 238 | |||||||||||||||||||||||||||||||||||||||||||
| 239 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Condition]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 240 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 241 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 242 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 243 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 244 | |||||||||||||||||||||||||||||||||||||||||||
| 245 | |||||||||||||||||||||||||||||||||||||||||||
| 246 | 15 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 247 | |||||||||||||||||||||||||||||||||||||||||||
| 248 | 15 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 249 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 250 | 15 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 251 | 15 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 252 | 15 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 253 | 15 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 254 | 15 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 255 | 15 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 256 | 15 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 257 | 15 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 258 | 15 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 259 | 15 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 260 | 15 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 261 | 15 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 262 | 15 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 263 | 15 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 264 | |||||||||||||||||||||||||||||||||||||||||||
| 265 | 15 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 266 | 15 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 267 | |||||||||||||||||||||||||||||||||||||||||||
| 268 | |||||||||||||||||||||||||||||||||||||||||||
| 269 | |||||||||||||||||||||||||||||||||||||||||||
| 270 | 15 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 271 | { | ||||||||||||||||||||||||||||||||||||||||||
| 272 | |||||||||||||||||||||||||||||||||||||||||||
| 273 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Boundary Segment, or SegmentSet '_' Segment, or SegmentSet Boundary]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 274 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 275 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 276 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 277 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 278 | 15 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 279 | 15 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 280 | 15 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 281 | 15 | @item = (q{Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 282 | 15 | %item = (__RULE__ => q{Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 283 | 15 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 284 | |||||||||||||||||||||||||||||||||||||||||||
| 285 | |||||||||||||||||||||||||||||||||||||||||||
| 286 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying repeated subrule: [Boundary]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 287 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 288 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 289 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 290 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 291 | 15 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 292 | |||||||||||||||||||||||||||||||||||||||||||
| 293 | 15 | ▶ | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Lingua::Phonology::RuleParser::Boundary, 0, 1, $_noactions,$expectation,undef))) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 294 | { | ||||||||||||||||||||||||||||||||||||||||||
| 295 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [Boundary]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 296 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 297 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 298 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 299 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 300 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 301 | } | ||||||||||||||||||||||||||||||||||||||||||
| 302 | 15 | ▶ | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [Boundary]<< (} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 303 | . @$_tok . q{ times)}, | ||||||||||||||||||||||||||||||||||||||||||
| 304 | |||||||||||||||||||||||||||||||||||||||||||
| 305 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 306 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 307 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 308 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 309 | 15 | $item{q{Boundary(?)}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 310 | 15 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 311 | |||||||||||||||||||||||||||||||||||||||||||
| 312 | |||||||||||||||||||||||||||||||||||||||||||
| 313 | |||||||||||||||||||||||||||||||||||||||||||
| 314 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying repeated subrule: [Segment, or SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 315 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 316 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 317 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 318 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 319 | 15 | $expectation->is(q{Segment, or SegmentSet})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 320 | |||||||||||||||||||||||||||||||||||||||||||
| 321 | 15 | ▶ | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_1_of_rule_Condition, 0, 100000000, $_noactions,$expectation,undef))) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 322 | { | ||||||||||||||||||||||||||||||||||||||||||
| 323 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [Segment, or SegmentSet]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 324 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 325 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 326 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 327 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 328 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 329 | } | ||||||||||||||||||||||||||||||||||||||||||
| 330 | 15 | ▶ | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [_alternation_1_of_production_1_of_rule_Condition]<< (} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 331 | . @$_tok . q{ times)}, | ||||||||||||||||||||||||||||||||||||||||||
| 332 | |||||||||||||||||||||||||||||||||||||||||||
| 333 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 334 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 335 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 336 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 337 | 15 | $item{q{_alternation_1_of_production_1_of_rule_Condition(s?)}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 338 | 15 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 339 | |||||||||||||||||||||||||||||||||||||||||||
| 340 | |||||||||||||||||||||||||||||||||||||||||||
| 341 | |||||||||||||||||||||||||||||||||||||||||||
| 342 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 343 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 344 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 345 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 346 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 347 | |||||||||||||||||||||||||||||||||||||||||||
| 348 | |||||||||||||||||||||||||||||||||||||||||||
| 349 | 15 | ▶ | $_tok = ($_noactions) ? 0 : do { push @{$item[-2]}, @{$item[-1]}; }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 350 | 15 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 351 | { | ||||||||||||||||||||||||||||||||||||||||||
| 352 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 353 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 354 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 355 | } | ||||||||||||||||||||||||||||||||||||||||||
| 356 | 15 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 357 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 358 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 359 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 360 | 15 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 361 | 15 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 362 | |||||||||||||||||||||||||||||||||||||||||||
| 363 | |||||||||||||||||||||||||||||||||||||||||||
| 364 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['_']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 365 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 366 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 367 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 368 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 369 | 15 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 370 | 15 | $expectation->is(q{'_'})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 371 | |||||||||||||||||||||||||||||||||||||||||||
| 372 | |||||||||||||||||||||||||||||||||||||||||||
| 373 | 15 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A_//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A_//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A_//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A_//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A_//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 374 | { | ||||||||||||||||||||||||||||||||||||||||||
| 375 | |||||||||||||||||||||||||||||||||||||||||||
| 376 | 1 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 377 | 1 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 378 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 379 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 380 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 381 | } | ||||||||||||||||||||||||||||||||||||||||||
| 382 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 383 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 384 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 385 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 386 | 14 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 387 | |||||||||||||||||||||||||||||||||||||||||||
| 388 | |||||||||||||||||||||||||||||||||||||||||||
| 389 | 14 | ▶ | Parse::RecDescent::_trace(q{Trying repeated subrule: [Segment, or SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 390 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 391 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 392 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 393 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 394 | 14 | $expectation->is(q{Segment, or SegmentSet})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 395 | |||||||||||||||||||||||||||||||||||||||||||
| 396 | 14 | ▶ | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_2_of_production_1_of_rule_Condition, 0, 100000000, $_noactions,$expectation,undef))) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 397 | { | ||||||||||||||||||||||||||||||||||||||||||
| 398 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [Segment, or SegmentSet]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 399 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 400 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 401 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 402 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 403 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 404 | } | ||||||||||||||||||||||||||||||||||||||||||
| 405 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [_alternation_2_of_production_1_of_rule_Condition]<< (} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 406 | . @$_tok . q{ times)}, | ||||||||||||||||||||||||||||||||||||||||||
| 407 | |||||||||||||||||||||||||||||||||||||||||||
| 408 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 409 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 410 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 411 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 412 | 14 | $item{q{_alternation_2_of_production_1_of_rule_Condition(s?)}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 413 | 14 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 414 | |||||||||||||||||||||||||||||||||||||||||||
| 415 | |||||||||||||||||||||||||||||||||||||||||||
| 416 | |||||||||||||||||||||||||||||||||||||||||||
| 417 | 14 | ▶ | Parse::RecDescent::_trace(q{Trying repeated subrule: [Boundary]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 418 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 419 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 420 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 421 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 422 | 14 | $expectation->is(q{Boundary})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 423 | |||||||||||||||||||||||||||||||||||||||||||
| 424 | 14 | ▶ | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Lingua::Phonology::RuleParser::Boundary, 0, 1, $_noactions,$expectation,undef))) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 425 | { | ||||||||||||||||||||||||||||||||||||||||||
| 426 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [Boundary]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 427 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 428 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 429 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 430 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 431 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 432 | } | ||||||||||||||||||||||||||||||||||||||||||
| 433 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [Boundary]<< (} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 434 | . @$_tok . q{ times)}, | ||||||||||||||||||||||||||||||||||||||||||
| 435 | |||||||||||||||||||||||||||||||||||||||||||
| 436 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 437 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 438 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 439 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 440 | 14 | $item{q{Boundary(?)}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 441 | 14 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 442 | |||||||||||||||||||||||||||||||||||||||||||
| 443 | |||||||||||||||||||||||||||||||||||||||||||
| 444 | |||||||||||||||||||||||||||||||||||||||||||
| 445 | 14 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 446 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 447 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 448 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 449 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 450 | |||||||||||||||||||||||||||||||||||||||||||
| 451 | |||||||||||||||||||||||||||||||||||||||||||
| 452 | 14 | ▶ | $_tok = ($_noactions) ? 0 : do { push @{$item[-2]}, @{$item[-1]}; }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 453 | 14 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 454 | { | ||||||||||||||||||||||||||||||||||||||||||
| 455 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 456 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 457 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 458 | } | ||||||||||||||||||||||||||||||||||||||||||
| 459 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 460 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 461 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 462 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 463 | 14 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 464 | 14 | $item{__ACTION2__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 465 | |||||||||||||||||||||||||||||||||||||||||||
| 466 | |||||||||||||||||||||||||||||||||||||||||||
| 467 | 14 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 468 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 469 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 470 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 471 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 472 | |||||||||||||||||||||||||||||||||||||||||||
| 473 | |||||||||||||||||||||||||||||||||||||||||||
| 474 | 14 | ▶ | $_tok = ($_noactions) ? 0 : do { $return = [ @item[1,5] ] }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 475 | 14 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 476 | { | ||||||||||||||||||||||||||||||||||||||||||
| 477 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 478 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 479 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 480 | } | ||||||||||||||||||||||||||||||||||||||||||
| 481 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 482 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 483 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 484 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 485 | 14 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 486 | 14 | $item{__ACTION3__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 487 | |||||||||||||||||||||||||||||||||||||||||||
| 488 | |||||||||||||||||||||||||||||||||||||||||||
| 489 | |||||||||||||||||||||||||||||||||||||||||||
| 490 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Boundary Segment, or SegmentSet '_' Segment, or SegmentSet Boundary]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 491 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 492 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 493 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 494 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 495 | 14 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 496 | 14 | last; | |||||||||||||||||||||||||||||||||||||||||
| 497 | } | ||||||||||||||||||||||||||||||||||||||||||
| 498 | |||||||||||||||||||||||||||||||||||||||||||
| 499 | |||||||||||||||||||||||||||||||||||||||||||
| 500 | 15 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 501 | { | ||||||||||||||||||||||||||||||||||||||||||
| 502 | |||||||||||||||||||||||||||||||||||||||||||
| 503 | |||||||||||||||||||||||||||||||||||||||||||
| 504 | 1 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 505 | 1 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 506 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 507 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 508 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 509 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 510 | 1 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 511 | } | ||||||||||||||||||||||||||||||||||||||||||
| 512 | 14 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 513 | { | ||||||||||||||||||||||||||||||||||||||||||
| 514 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 515 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 516 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 517 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 518 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 519 | } | ||||||||||||||||||||||||||||||||||||||||||
| 520 | 14 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 521 | 14 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 522 | 14 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 523 | { | ||||||||||||||||||||||||||||||||||||||||||
| 524 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 525 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 526 | q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 527 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 528 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 529 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 530 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 531 | , q{Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 532 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 533 | } | ||||||||||||||||||||||||||||||||||||||||||
| 534 | 14 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 535 | 14 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 536 | } | ||||||||||||||||||||||||||||||||||||||||||
| 537 | |||||||||||||||||||||||||||||||||||||||||||
| 538 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 539 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Text | ||||||||||||||||||||||||||||||||||||||||||
| 540 | 143 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Text: called CC=42 SCAR=42.3
| |||||||||||||||||||||||||||||||||||||||||||
| 541 | 143 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 542 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 543 | 143 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 544 | 143 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 545 | 143 | my $thisrule = $thisparser->{"rules"}{"Text"}; | |||||||||||||||||||||||||||||||||||||||||
| 546 | |||||||||||||||||||||||||||||||||||||||||||
| 547 | 143 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 548 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 549 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 550 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 551 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 552 | |||||||||||||||||||||||||||||||||||||||||||
| 553 | |||||||||||||||||||||||||||||||||||||||||||
| 554 | 143 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 555 | |||||||||||||||||||||||||||||||||||||||||||
| 556 | 143 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 557 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 558 | 143 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 559 | 143 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 560 | 143 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 561 | 143 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 562 | 143 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 563 | 143 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 564 | 143 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 565 | 143 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 566 | 143 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 567 | 143 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 568 | 143 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 569 | 143 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 570 | 143 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 571 | 143 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 572 | |||||||||||||||||||||||||||||||||||||||||||
| 573 | 143 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 574 | 143 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 575 | |||||||||||||||||||||||||||||||||||||||||||
| 576 | |||||||||||||||||||||||||||||||||||||||||||
| 577 | |||||||||||||||||||||||||||||||||||||||||||
| 578 | 143 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 579 | { | ||||||||||||||||||||||||||||||||||||||||||
| 580 | |||||||||||||||||||||||||||||||||||||||||||
| 581 | 143 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/\\w+/]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 582 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 583 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 584 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 585 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 586 | 143 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 587 | 143 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 588 | 143 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 589 | 143 | @item = (q{Text}); | |||||||||||||||||||||||||||||||||||||||||
| 590 | 143 | %item = (__RULE__ => q{Text}); | |||||||||||||||||||||||||||||||||||||||||
| 591 | 143 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 592 | |||||||||||||||||||||||||||||||||||||||||||
| 593 | |||||||||||||||||||||||||||||||||||||||||||
| 594 | 143 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/\\w+/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 595 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 596 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 597 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 598 | 143 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 599 | 143 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 600 | |||||||||||||||||||||||||||||||||||||||||||
| 601 | |||||||||||||||||||||||||||||||||||||||||||
| 602 | 143 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:\w+)//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A(?:\w+)//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A(?:\w+)//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A(?:\w+)//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A(?:\w+)//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 603 | { | ||||||||||||||||||||||||||||||||||||||||||
| 604 | |||||||||||||||||||||||||||||||||||||||||||
| 605 | 67 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 606 | 67 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 607 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 608 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 609 | |||||||||||||||||||||||||||||||||||||||||||
| 610 | 67 | last; | |||||||||||||||||||||||||||||||||||||||||
| 611 | } | ||||||||||||||||||||||||||||||||||||||||||
| 612 | 76 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 613 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 614 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 615 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 616 | 76 | push @item, $item{__PATTERN1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 617 | |||||||||||||||||||||||||||||||||||||||||||
| 618 | |||||||||||||||||||||||||||||||||||||||||||
| 619 | |||||||||||||||||||||||||||||||||||||||||||
| 620 | 76 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/\\w+/]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 621 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 622 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 623 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 624 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 625 | 76 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 626 | 76 | last; | |||||||||||||||||||||||||||||||||||||||||
| 627 | } | ||||||||||||||||||||||||||||||||||||||||||
| 628 | |||||||||||||||||||||||||||||||||||||||||||
| 629 | |||||||||||||||||||||||||||||||||||||||||||
| 630 | 143 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 631 | { | ||||||||||||||||||||||||||||||||||||||||||
| 632 | 67 | ▶ | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 633 | 67 | ▶ | Parse::RecDescent::_trace(q{Trying production: [<perl_quotelike>]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 634 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 635 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 636 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 637 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 638 | 67 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 639 | 67 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 640 | 67 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 641 | 67 | @item = (q{Text}); | |||||||||||||||||||||||||||||||||||||||||
| 642 | 67 | %item = (__RULE__ => q{Text}); | |||||||||||||||||||||||||||||||||||||||||
| 643 | 67 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 644 | |||||||||||||||||||||||||||||||||||||||||||
| 645 | |||||||||||||||||||||||||||||||||||||||||||
| 646 | |||||||||||||||||||||||||||||||||||||||||||
| 647 | |||||||||||||||||||||||||||||||||||||||||||
| 648 | 67 | ▶ | Parse::RecDescent::_trace(q{Trying directive: [<perl_quotelike>]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 649 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 650 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 651 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 652 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 653 | 67 | $_tok = do { my ($match,@res); | |||||||||||||||||||||||||||||||||||||||||
| 654 | 67 | ($match,$text,undef,@res) = | |||||||||||||||||||||||||||||||||||||||||
| 655 | Text::Balanced::extract_quotelike($text,$skip); | ||||||||||||||||||||||||||||||||||||||||||
| 656 | 67 | ▶ | $match ? \@res : undef; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 657 | }; | ||||||||||||||||||||||||||||||||||||||||||
| 658 | 67 | ▶ | if (defined($_tok)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 659 | { | ||||||||||||||||||||||||||||||||||||||||||
| 660 | 5 | ▶ | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 661 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 662 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 663 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 664 | } | ||||||||||||||||||||||||||||||||||||||||||
| 665 | else | ||||||||||||||||||||||||||||||||||||||||||
| 666 | { | ||||||||||||||||||||||||||||||||||||||||||
| 667 | 62 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 668 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 669 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 670 | } | ||||||||||||||||||||||||||||||||||||||||||
| 671 | |||||||||||||||||||||||||||||||||||||||||||
| 672 | 67 | ▶ | last unless defined $_tok; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 673 | 5 | push @item, $item{__DIRECTIVE1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 674 | |||||||||||||||||||||||||||||||||||||||||||
| 675 | |||||||||||||||||||||||||||||||||||||||||||
| 676 | 5 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 677 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 678 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 679 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 680 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 681 | |||||||||||||||||||||||||||||||||||||||||||
| 682 | |||||||||||||||||||||||||||||||||||||||||||
| 683 | 5 | ▶ | $_tok = ($_noactions) ? 0 : do { $item[1]->[2] }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 684 | 5 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 685 | { | ||||||||||||||||||||||||||||||||||||||||||
| 686 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 687 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 688 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 689 | } | ||||||||||||||||||||||||||||||||||||||||||
| 690 | 5 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 691 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 692 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 693 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 694 | 5 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 695 | 5 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 696 | |||||||||||||||||||||||||||||||||||||||||||
| 697 | |||||||||||||||||||||||||||||||||||||||||||
| 698 | |||||||||||||||||||||||||||||||||||||||||||
| 699 | 5 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [<perl_quotelike>]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 700 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 701 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 702 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 703 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 704 | 5 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 705 | 5 | last; | |||||||||||||||||||||||||||||||||||||||||
| 706 | } | ||||||||||||||||||||||||||||||||||||||||||
| 707 | |||||||||||||||||||||||||||||||||||||||||||
| 708 | |||||||||||||||||||||||||||||||||||||||||||
| 709 | 143 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 710 | { | ||||||||||||||||||||||||||||||||||||||||||
| 711 | |||||||||||||||||||||||||||||||||||||||||||
| 712 | |||||||||||||||||||||||||||||||||||||||||||
| 713 | 62 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 714 | 62 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 715 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 716 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 717 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 718 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 719 | 62 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 720 | } | ||||||||||||||||||||||||||||||||||||||||||
| 721 | 81 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 722 | { | ||||||||||||||||||||||||||||||||||||||||||
| 723 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 724 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 725 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 726 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 727 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 728 | } | ||||||||||||||||||||||||||||||||||||||||||
| 729 | 81 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 730 | 81 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 731 | 81 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 732 | { | ||||||||||||||||||||||||||||||||||||||||||
| 733 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 734 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 735 | q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 736 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 737 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 738 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 739 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 740 | , q{Text}, | ||||||||||||||||||||||||||||||||||||||||||
| 741 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 742 | } | ||||||||||||||||||||||||||||||||||||||||||
| 743 | 81 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 744 | 81 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 745 | } | ||||||||||||||||||||||||||||||||||||||||||
| 746 | |||||||||||||||||||||||||||||||||||||||||||
| 747 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 748 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::When | ||||||||||||||||||||||||||||||||||||||||||
| 749 | 16 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
When: called CC=33 SCAR=41.0
| |||||||||||||||||||||||||||||||||||||||||||
| 750 | 16 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 751 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 752 | 16 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 753 | 16 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 754 | 16 | my $thisrule = $thisparser->{"rules"}{"When"}; | |||||||||||||||||||||||||||||||||||||||||
| 755 | |||||||||||||||||||||||||||||||||||||||||||
| 756 | 16 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [When]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 757 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 758 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 759 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 760 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 761 | |||||||||||||||||||||||||||||||||||||||||||
| 762 | |||||||||||||||||||||||||||||||||||||||||||
| 763 | 16 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 764 | |||||||||||||||||||||||||||||||||||||||||||
| 765 | 16 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 766 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 767 | 16 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 768 | 16 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 769 | 16 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 770 | 16 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 771 | 16 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 772 | 16 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 773 | 16 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 774 | 16 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 775 | 0 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 776 | 16 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 777 | 16 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 778 | 16 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 779 | 16 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 780 | 16 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 781 | |||||||||||||||||||||||||||||||||||||||||||
| 782 | 16 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 783 | 16 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 784 | |||||||||||||||||||||||||||||||||||||||||||
| 785 | |||||||||||||||||||||||||||||||||||||||||||
| 786 | |||||||||||||||||||||||||||||||||||||||||||
| 787 | 16 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 788 | { | ||||||||||||||||||||||||||||||||||||||||||
| 789 | |||||||||||||||||||||||||||||||||||||||||||
| 790 | 16 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['/', or ':' <commit> Condition_or_Set]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 791 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 792 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 793 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 794 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 795 | 16 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 796 | 16 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 797 | 16 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 798 | 16 | @item = (q{When}); | |||||||||||||||||||||||||||||||||||||||||
| 799 | 16 | %item = (__RULE__ => q{When}); | |||||||||||||||||||||||||||||||||||||||||
| 800 | 16 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 801 | |||||||||||||||||||||||||||||||||||||||||||
| 802 | |||||||||||||||||||||||||||||||||||||||||||
| 803 | 16 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_When]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 804 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 805 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 806 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 807 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 808 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 809 | 16 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 810 | 16 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_1_of_rule_When($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 811 | { | ||||||||||||||||||||||||||||||||||||||||||
| 812 | |||||||||||||||||||||||||||||||||||||||||||
| 813 | 3 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [_alternation_1_of_production_1_of_rule_When]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 814 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 815 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 816 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 817 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 818 | 3 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 819 | 3 | last; | |||||||||||||||||||||||||||||||||||||||||
| 820 | } | ||||||||||||||||||||||||||||||||||||||||||
| 821 | 13 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_When]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 822 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 823 | |||||||||||||||||||||||||||||||||||||||||||
| 824 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 825 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 826 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 827 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 828 | 13 | $item{q{_alternation_1_of_production_1_of_rule_When}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 829 | 13 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 830 | |||||||||||||||||||||||||||||||||||||||||||
| 831 | } | ||||||||||||||||||||||||||||||||||||||||||
| 832 | |||||||||||||||||||||||||||||||||||||||||||
| 833 | |||||||||||||||||||||||||||||||||||||||||||
| 834 | |||||||||||||||||||||||||||||||||||||||||||
| 835 | 13 | ▶ | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 836 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 837 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 838 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 839 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 840 | 13 | $_tok = do { $commit = 1 }; | |||||||||||||||||||||||||||||||||||||||||
| 841 | 13 | ▶ | if (defined($_tok)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 842 | { | ||||||||||||||||||||||||||||||||||||||||||
| 843 | 13 | ▶ | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 844 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 845 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 846 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 847 | } | ||||||||||||||||||||||||||||||||||||||||||
| 848 | else | ||||||||||||||||||||||||||||||||||||||||||
| 849 | { | ||||||||||||||||||||||||||||||||||||||||||
| 850 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 851 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 852 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 853 | } | ||||||||||||||||||||||||||||||||||||||||||
| 854 | |||||||||||||||||||||||||||||||||||||||||||
| 855 | 13 | ▶ | last unless defined $_tok; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 856 | 13 | push @item, $item{__DIRECTIVE1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 857 | |||||||||||||||||||||||||||||||||||||||||||
| 858 | |||||||||||||||||||||||||||||||||||||||||||
| 859 | 13 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Condition_or_Set]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 860 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 861 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 862 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 863 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 864 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 865 | 13 | $expectation->is(q{Condition_or_Set})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 866 | 13 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Condition_or_Set($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 867 | { | ||||||||||||||||||||||||||||||||||||||||||
| 868 | |||||||||||||||||||||||||||||||||||||||||||
| 869 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Condition_or_Set]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 870 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 871 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 872 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 873 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 874 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 875 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 876 | } | ||||||||||||||||||||||||||||||||||||||||||
| 877 | 13 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Condition_or_Set]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 878 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 879 | |||||||||||||||||||||||||||||||||||||||||||
| 880 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 881 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 882 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 883 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 884 | 13 | $item{q{Condition_or_Set}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 885 | 13 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 886 | |||||||||||||||||||||||||||||||||||||||||||
| 887 | } | ||||||||||||||||||||||||||||||||||||||||||
| 888 | |||||||||||||||||||||||||||||||||||||||||||
| 889 | |||||||||||||||||||||||||||||||||||||||||||
| 890 | 13 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['/', or ':' <commit> Condition_or_Set]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 891 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 892 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 893 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 894 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 895 | 13 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 896 | 13 | last; | |||||||||||||||||||||||||||||||||||||||||
| 897 | } | ||||||||||||||||||||||||||||||||||||||||||
| 898 | |||||||||||||||||||||||||||||||||||||||||||
| 899 | |||||||||||||||||||||||||||||||||||||||||||
| 900 | 16 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 901 | { | ||||||||||||||||||||||||||||||||||||||||||
| 902 | |||||||||||||||||||||||||||||||||||||||||||
| 903 | |||||||||||||||||||||||||||||||||||||||||||
| 904 | 3 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 905 | 3 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 906 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 907 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 908 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 909 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 910 | 3 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 911 | } | ||||||||||||||||||||||||||||||||||||||||||
| 912 | 13 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 913 | { | ||||||||||||||||||||||||||||||||||||||||||
| 914 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 915 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 916 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 917 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 918 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 919 | } | ||||||||||||||||||||||||||||||||||||||||||
| 920 | 13 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 921 | 13 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 922 | 13 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 923 | { | ||||||||||||||||||||||||||||||||||||||||||
| 924 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 925 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 926 | q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 927 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 928 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 929 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 930 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 931 | , q{When}, | ||||||||||||||||||||||||||||||||||||||||||
| 932 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 933 | } | ||||||||||||||||||||||||||||||||||||||||||
| 934 | 13 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 935 | 13 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 936 | } | ||||||||||||||||||||||||||||||||||||||||||
| 937 | |||||||||||||||||||||||||||||||||||||||||||
| 938 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 939 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_1_of_rule_When | ||||||||||||||||||||||||||||||||||||||||||
| 940 | 16 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_alternation_1_of_production_1_of_rule_When: called CC=36 SCAR=40.0
| |||||||||||||||||||||||||||||||||||||||||||
| 941 | 16 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 942 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 943 | 16 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 944 | 16 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 945 | 16 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_When"}; | |||||||||||||||||||||||||||||||||||||||||
| 946 | |||||||||||||||||||||||||||||||||||||||||||
| 947 | 16 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_When]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 948 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 949 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 950 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 951 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 952 | |||||||||||||||||||||||||||||||||||||||||||
| 953 | |||||||||||||||||||||||||||||||||||||||||||
| 954 | 16 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 955 | |||||||||||||||||||||||||||||||||||||||||||
| 956 | 16 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 957 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 958 | 16 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 959 | 16 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 960 | 16 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 961 | 16 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 962 | 16 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 963 | 16 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 964 | 16 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 965 | 16 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 966 | 16 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 967 | 16 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 968 | 16 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 969 | 16 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 970 | 16 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 971 | 16 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 972 | |||||||||||||||||||||||||||||||||||||||||||
| 973 | 16 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 974 | 16 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 975 | |||||||||||||||||||||||||||||||||||||||||||
| 976 | |||||||||||||||||||||||||||||||||||||||||||
| 977 | |||||||||||||||||||||||||||||||||||||||||||
| 978 | 16 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 979 | { | ||||||||||||||||||||||||||||||||||||||||||
| 980 | |||||||||||||||||||||||||||||||||||||||||||
| 981 | 16 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['/']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 982 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 983 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 984 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 985 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 986 | 16 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 987 | 16 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 988 | 16 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 989 | 16 | @item = (q{_alternation_1_of_production_1_of_rule_When}); | |||||||||||||||||||||||||||||||||||||||||
| 990 | 16 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_When}); | |||||||||||||||||||||||||||||||||||||||||
| 991 | 16 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 992 | |||||||||||||||||||||||||||||||||||||||||||
| 993 | |||||||||||||||||||||||||||||||||||||||||||
| 994 | 16 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['/']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 995 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 996 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 997 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 998 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 999 | 16 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 1000 | 16 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1001 | |||||||||||||||||||||||||||||||||||||||||||
| 1002 | |||||||||||||||||||||||||||||||||||||||||||
| 1003 | 16 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\///) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s[\A/][]
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s[\A/][]
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s[\A/][]
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s[\A/][]
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 1004 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1005 | |||||||||||||||||||||||||||||||||||||||||||
| 1006 | 15 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1007 | 15 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1008 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1009 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1010 | 15 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1011 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1012 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1013 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1014 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1015 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1016 | 1 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 1017 | |||||||||||||||||||||||||||||||||||||||||||
| 1018 | |||||||||||||||||||||||||||||||||||||||||||
| 1019 | |||||||||||||||||||||||||||||||||||||||||||
| 1020 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['/']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1021 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1022 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 1023 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1024 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1025 | 1 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 1026 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1027 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1028 | |||||||||||||||||||||||||||||||||||||||||||
| 1029 | |||||||||||||||||||||||||||||||||||||||||||
| 1030 | 16 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 1031 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1032 | |||||||||||||||||||||||||||||||||||||||||||
| 1033 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying production: [':']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1034 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1035 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 1036 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1037 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1038 | 15 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1039 | 15 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1040 | 15 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 1041 | 15 | @item = (q{_alternation_1_of_production_1_of_rule_When}); | |||||||||||||||||||||||||||||||||||||||||
| 1042 | 15 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_When}); | |||||||||||||||||||||||||||||||||||||||||
| 1043 | 15 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1044 | |||||||||||||||||||||||||||||||||||||||||||
| 1045 | |||||||||||||||||||||||||||||||||||||||||||
| 1046 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [':']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1047 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1048 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 1049 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1050 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1051 | 15 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 1052 | 15 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1053 | |||||||||||||||||||||||||||||||||||||||||||
| 1054 | |||||||||||||||||||||||||||||||||||||||||||
| 1055 | 15 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\://) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\://
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\://
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\://
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\://
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 1056 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1057 | |||||||||||||||||||||||||||||||||||||||||||
| 1058 | 3 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1059 | 3 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1060 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1061 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1062 | 3 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1063 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1064 | 12 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1065 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1066 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1067 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1068 | 12 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 1069 | |||||||||||||||||||||||||||||||||||||||||||
| 1070 | |||||||||||||||||||||||||||||||||||||||||||
| 1071 | |||||||||||||||||||||||||||||||||||||||||||
| 1072 | 12 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [':']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1073 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1074 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 1075 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1076 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1077 | 12 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 1078 | 12 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1079 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1080 | |||||||||||||||||||||||||||||||||||||||||||
| 1081 | |||||||||||||||||||||||||||||||||||||||||||
| 1082 | 16 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 1083 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1084 | |||||||||||||||||||||||||||||||||||||||||||
| 1085 | |||||||||||||||||||||||||||||||||||||||||||
| 1086 | 3 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 1087 | 3 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1088 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1089 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 1090 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1091 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1092 | 3 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 1093 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1094 | 13 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 1095 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1096 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1097 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 1098 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1099 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1100 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 1101 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1102 | 13 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 1103 | 13 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1104 | 13 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1105 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1106 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 1107 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 1108 | q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 1109 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 1110 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 1111 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1112 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1113 | , q{_alternation_1_of_production_1_of_rule_When}, | ||||||||||||||||||||||||||||||||||||||||||
| 1114 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1115 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1116 | 13 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 1117 | 13 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 1118 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1119 | |||||||||||||||||||||||||||||||||||||||||||
| 1120 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 1121 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::ConditionSet | ||||||||||||||||||||||||||||||||||||||||||
| 1122 | 1 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
ConditionSet: called CC=60 SCAR=54.8
| |||||||||||||||||||||||||||||||||||||||||||
| 1123 | 1 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 1124 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1125 | 1 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 1126 | 1 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1127 | 1 | my $thisrule = $thisparser->{"rules"}{"ConditionSet"}; | |||||||||||||||||||||||||||||||||||||||||
| 1128 | |||||||||||||||||||||||||||||||||||||||||||
| 1129 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [ConditionSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1130 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1131 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1132 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1133 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1134 | |||||||||||||||||||||||||||||||||||||||||||
| 1135 | |||||||||||||||||||||||||||||||||||||||||||
| 1136 | 1 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 1137 | |||||||||||||||||||||||||||||||||||||||||||
| 1138 | 1 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 1139 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 1140 | 1 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1141 | 1 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 1142 | 1 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 1143 | 1 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 1144 | 1 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 1145 | 1 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 1146 | 1 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 1147 | 1 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 1148 | 1 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1149 | 1 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1150 | 1 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 1151 | 1 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 1152 | 1 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 1153 | 1 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 1154 | |||||||||||||||||||||||||||||||||||||||||||
| 1155 | 1 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 1156 | 1 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 1157 | |||||||||||||||||||||||||||||||||||||||||||
| 1158 | |||||||||||||||||||||||||||||||||||||||||||
| 1159 | |||||||||||||||||||||||||||||||||||||||||||
| 1160 | 1 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 1161 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1162 | |||||||||||||||||||||||||||||||||||||||||||
| 1163 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['(' <leftop: Condition '|' Condition> ')']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1164 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1165 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1166 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1167 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1168 | 1 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 1169 | 1 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1170 | 1 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 1171 | 1 | @item = (q{ConditionSet}); | |||||||||||||||||||||||||||||||||||||||||
| 1172 | 1 | %item = (__RULE__ => q{ConditionSet}); | |||||||||||||||||||||||||||||||||||||||||
| 1173 | 1 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1174 | |||||||||||||||||||||||||||||||||||||||||||
| 1175 | |||||||||||||||||||||||||||||||||||||||||||
| 1176 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1177 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1178 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1179 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1180 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1181 | 1 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 1182 | 1 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1183 | |||||||||||||||||||||||||||||||||||||||||||
| 1184 | |||||||||||||||||||||||||||||||||||||||||||
| 1185 | 1 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\(//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\(//
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\(//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\(//
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\(//
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 1186 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1187 | |||||||||||||||||||||||||||||||||||||||||||
| 1188 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1189 | 0 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1190 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1191 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1192 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1193 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1194 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1195 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1196 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1197 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1198 | 1 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 1199 | |||||||||||||||||||||||||||||||||||||||||||
| 1200 | |||||||||||||||||||||||||||||||||||||||||||
| 1201 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying operator: [<leftop: Condition '|' Condition>]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1202 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1203 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1204 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1205 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1206 | 1 | $expectation->is(q{<leftop: Condition '|' Condition>})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1207 | |||||||||||||||||||||||||||||||||||||||||||
| 1208 | 1 | $_tok = undef; | |||||||||||||||||||||||||||||||||||||||||
| 1209 | 1 | OPLOOP: while (1) | |||||||||||||||||||||||||||||||||||||||||
| 1210 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1211 | 1 | $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1212 | 1 | my @item; | |||||||||||||||||||||||||||||||||||||||||
| 1213 | |||||||||||||||||||||||||||||||||||||||||||
| 1214 | # MATCH LEFTARG | ||||||||||||||||||||||||||||||||||||||||||
| 1215 | |||||||||||||||||||||||||||||||||||||||||||
| 1216 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Condition]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1217 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1218 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1219 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1220 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1221 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1222 | 1 | $expectation->is(q{Condition})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1223 | 1 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Condition($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1224 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1225 | |||||||||||||||||||||||||||||||||||||||||||
| 1226 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Condition]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1227 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1228 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1229 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1230 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1231 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1232 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1233 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1234 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Condition]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1235 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 1236 | |||||||||||||||||||||||||||||||||||||||||||
| 1237 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1238 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1239 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1240 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1241 | 1 | $item{q{Condition}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1242 | 1 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1243 | |||||||||||||||||||||||||||||||||||||||||||
| 1244 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1245 | |||||||||||||||||||||||||||||||||||||||||||
| 1246 | |||||||||||||||||||||||||||||||||||||||||||
| 1247 | 1 | $repcount++; | |||||||||||||||||||||||||||||||||||||||||
| 1248 | |||||||||||||||||||||||||||||||||||||||||||
| 1249 | 1 | my $savetext = $text; | |||||||||||||||||||||||||||||||||||||||||
| 1250 | 1 | my $backtrack; | |||||||||||||||||||||||||||||||||||||||||
| 1251 | |||||||||||||||||||||||||||||||||||||||||||
| 1252 | # MATCH (OP RIGHTARG)(s) | ||||||||||||||||||||||||||||||||||||||||||
| 1253 | 1 | ▶ | while ($repcount < 100000000) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1254 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1255 | 2 | $backtrack = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1256 | |||||||||||||||||||||||||||||||||||||||||||
| 1257 | 2 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['|']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1258 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1259 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1260 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1261 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1262 | 2 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 1263 | 2 | $expectation->is(q{'|'})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1264 | |||||||||||||||||||||||||||||||||||||||||||
| 1265 | |||||||||||||||||||||||||||||||||||||||||||
| 1266 | 2 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\|//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\|//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\|//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\|//
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\|//
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 1267 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1268 | |||||||||||||||||||||||||||||||||||||||||||
| 1269 | 1 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1270 | 1 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1271 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1272 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1273 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1274 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1275 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1276 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1277 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1278 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1279 | 1 | push @item, $item{__STRING2__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 1280 | |||||||||||||||||||||||||||||||||||||||||||
| 1281 | |||||||||||||||||||||||||||||||||||||||||||
| 1282 | 1 | pop @item; | |||||||||||||||||||||||||||||||||||||||||
| 1283 | |||||||||||||||||||||||||||||||||||||||||||
| 1284 | |||||||||||||||||||||||||||||||||||||||||||
| 1285 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Condition]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1286 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1287 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1288 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1289 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1290 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1291 | 1 | $expectation->is(q{Condition})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1292 | 1 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Condition($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1293 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1294 | |||||||||||||||||||||||||||||||||||||||||||
| 1295 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Condition]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1296 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1297 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1298 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1299 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1300 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1301 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1302 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1303 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Condition]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1304 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 1305 | |||||||||||||||||||||||||||||||||||||||||||
| 1306 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1307 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1308 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1309 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1310 | 1 | $item{q{Condition}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1311 | 1 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1312 | |||||||||||||||||||||||||||||||||||||||||||
| 1313 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1314 | |||||||||||||||||||||||||||||||||||||||||||
| 1315 | 1 | $savetext = $text; | |||||||||||||||||||||||||||||||||||||||||
| 1316 | 1 | $repcount++; | |||||||||||||||||||||||||||||||||||||||||
| 1317 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1318 | 1 | $text = $savetext; | |||||||||||||||||||||||||||||||||||||||||
| 1319 | 1 | ▶ | pop @item if $backtrack; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1320 | |||||||||||||||||||||||||||||||||||||||||||
| 1321 | 0 | ▶ | unless (@item) { undef $_tok; last } | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1322 | 1 | $_tok = [ @item ]; | |||||||||||||||||||||||||||||||||||||||||
| 1323 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1324 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1325 | |||||||||||||||||||||||||||||||||||||||||||
| 1326 | 1 | ▶ | unless ($repcount>=1) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1327 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1328 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match operator: [<leftop: Condition '|' Condition>]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1329 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1330 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1331 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1332 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1333 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1334 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1335 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1336 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched operator: [<leftop: Condition '|' Condition>]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1337 | 0 | ▶ | . qq{@{$_tok||[]}} . q{]}, | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table0%0/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||||||
| 1338 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1339 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1340 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1341 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1342 | |||||||||||||||||||||||||||||||||||||||||||
| 1343 | 1 | ▶ | push @item, $item{__DIRECTIVE1__}=$_tok||[]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table50%1/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||||||
| 1344 | |||||||||||||||||||||||||||||||||||||||||||
| 1345 | |||||||||||||||||||||||||||||||||||||||||||
| 1346 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1347 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1348 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1349 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1350 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1351 | 1 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 1352 | 1 | $expectation->is(q{')'})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1353 | |||||||||||||||||||||||||||||||||||||||||||
| 1354 | |||||||||||||||||||||||||||||||||||||||||||
| 1355 | 1 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\)//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\)//
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\)//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\)//
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\)//
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 1356 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1357 | |||||||||||||||||||||||||||||||||||||||||||
| 1358 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1359 | 0 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1360 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1361 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1362 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1363 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1364 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1365 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1366 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1367 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1368 | 1 | push @item, $item{__STRING3__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 1369 | |||||||||||||||||||||||||||||||||||||||||||
| 1370 | |||||||||||||||||||||||||||||||||||||||||||
| 1371 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1372 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1373 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1374 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1375 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1376 | |||||||||||||||||||||||||||||||||||||||||||
| 1377 | |||||||||||||||||||||||||||||||||||||||||||
| 1378 | 1 | ▶ | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1379 | 1 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1380 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1381 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1382 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1383 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1384 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1385 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1386 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1387 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1388 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1389 | 1 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1390 | 1 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1391 | |||||||||||||||||||||||||||||||||||||||||||
| 1392 | |||||||||||||||||||||||||||||||||||||||||||
| 1393 | |||||||||||||||||||||||||||||||||||||||||||
| 1394 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['(' <leftop: Condition '|' Condition> ')']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1395 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1396 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1397 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1398 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1399 | 1 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 1400 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1401 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1402 | |||||||||||||||||||||||||||||||||||||||||||
| 1403 | |||||||||||||||||||||||||||||||||||||||||||
| 1404 | 1 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC0%0/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table25%1/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 1405 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1406 | |||||||||||||||||||||||||||||||||||||||||||
| 1407 | |||||||||||||||||||||||||||||||||||||||||||
| 1408 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 1409 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1410 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1411 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1412 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1413 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1414 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 1415 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1416 | 1 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 1417 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1418 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1419 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1420 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1421 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1422 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 1423 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1424 | 1 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 1425 | 1 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1426 | 1 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1427 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1428 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 1429 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 1430 | q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1431 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 1432 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 1433 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1434 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1435 | , q{ConditionSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 1436 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1437 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1438 | 1 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 1439 | 1 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 1440 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1441 | |||||||||||||||||||||||||||||||||||||||||||
| 1442 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 1443 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Condition_or_Set | ||||||||||||||||||||||||||||||||||||||||||
| 1444 | 13 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Condition_or_Set: called CC=37 SCAR=42.9
| |||||||||||||||||||||||||||||||||||||||||||
| 1445 | 13 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 1446 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1447 | 13 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 1448 | 13 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1449 | 13 | my $thisrule = $thisparser->{"rules"}{"Condition_or_Set"}; | |||||||||||||||||||||||||||||||||||||||||
| 1450 | |||||||||||||||||||||||||||||||||||||||||||
| 1451 | 13 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Condition_or_Set]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1452 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1453 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1454 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1455 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1456 | |||||||||||||||||||||||||||||||||||||||||||
| 1457 | |||||||||||||||||||||||||||||||||||||||||||
| 1458 | 13 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 1459 | |||||||||||||||||||||||||||||||||||||||||||
| 1460 | 13 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 1461 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 1462 | 13 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1463 | 13 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 1464 | 13 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 1465 | 13 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 1466 | 13 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 1467 | 13 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 1468 | 13 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 1469 | 13 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 1470 | 13 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1471 | 13 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1472 | 13 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 1473 | 13 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 1474 | 13 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 1475 | 13 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 1476 | |||||||||||||||||||||||||||||||||||||||||||
| 1477 | 13 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 1478 | 13 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 1479 | |||||||||||||||||||||||||||||||||||||||||||
| 1480 | |||||||||||||||||||||||||||||||||||||||||||
| 1481 | |||||||||||||||||||||||||||||||||||||||||||
| 1482 | 13 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 1483 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1484 | |||||||||||||||||||||||||||||||||||||||||||
| 1485 | 13 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Condition]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1486 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1487 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1488 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1489 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1490 | 13 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 1491 | 13 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1492 | 13 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 1493 | 13 | @item = (q{Condition_or_Set}); | |||||||||||||||||||||||||||||||||||||||||
| 1494 | 13 | %item = (__RULE__ => q{Condition_or_Set}); | |||||||||||||||||||||||||||||||||||||||||
| 1495 | 13 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1496 | |||||||||||||||||||||||||||||||||||||||||||
| 1497 | |||||||||||||||||||||||||||||||||||||||||||
| 1498 | 13 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Condition]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1499 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1500 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1501 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1502 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1503 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1504 | 13 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1505 | 13 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Condition($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1506 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1507 | |||||||||||||||||||||||||||||||||||||||||||
| 1508 | 1 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Condition]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1509 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1510 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1511 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1512 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1513 | 1 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1514 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1515 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1516 | 12 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Condition]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1517 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 1518 | |||||||||||||||||||||||||||||||||||||||||||
| 1519 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1520 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1521 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1522 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1523 | 12 | $item{q{Condition}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1524 | 12 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1525 | |||||||||||||||||||||||||||||||||||||||||||
| 1526 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1527 | |||||||||||||||||||||||||||||||||||||||||||
| 1528 | 12 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1529 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1530 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1531 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1532 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1533 | |||||||||||||||||||||||||||||||||||||||||||
| 1534 | |||||||||||||||||||||||||||||||||||||||||||
| 1535 | 12 | ▶ | $_tok = ($_noactions) ? 0 : do { $return = [ $item[1] ] }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1536 | 12 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1537 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1538 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1539 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1540 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1541 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1542 | 12 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1543 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1544 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1545 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1546 | 12 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1547 | 12 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1548 | |||||||||||||||||||||||||||||||||||||||||||
| 1549 | |||||||||||||||||||||||||||||||||||||||||||
| 1550 | |||||||||||||||||||||||||||||||||||||||||||
| 1551 | 12 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Condition]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1552 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1553 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1554 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1555 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1556 | 12 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 1557 | 12 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1558 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1559 | |||||||||||||||||||||||||||||||||||||||||||
| 1560 | |||||||||||||||||||||||||||||||||||||||||||
| 1561 | 13 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 1562 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1563 | |||||||||||||||||||||||||||||||||||||||||||
| 1564 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying production: [ConditionSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1565 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1566 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1567 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1568 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1569 | 1 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1570 | 1 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1571 | 1 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 1572 | 1 | @item = (q{Condition_or_Set}); | |||||||||||||||||||||||||||||||||||||||||
| 1573 | 1 | %item = (__RULE__ => q{Condition_or_Set}); | |||||||||||||||||||||||||||||||||||||||||
| 1574 | 1 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1575 | |||||||||||||||||||||||||||||||||||||||||||
| 1576 | |||||||||||||||||||||||||||||||||||||||||||
| 1577 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [ConditionSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1578 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1579 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1580 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1581 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1582 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1583 | 1 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1584 | 1 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::ConditionSet($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1585 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1586 | |||||||||||||||||||||||||||||||||||||||||||
| 1587 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [ConditionSet]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1588 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1589 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1590 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1591 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1592 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1593 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1594 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1595 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [ConditionSet]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1596 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 1597 | |||||||||||||||||||||||||||||||||||||||||||
| 1598 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1599 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1600 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1601 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1602 | 1 | $item{q{ConditionSet}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1603 | 1 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1604 | |||||||||||||||||||||||||||||||||||||||||||
| 1605 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1606 | |||||||||||||||||||||||||||||||||||||||||||
| 1607 | |||||||||||||||||||||||||||||||||||||||||||
| 1608 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [ConditionSet]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1609 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1610 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1611 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1612 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1613 | 1 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 1614 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1615 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1616 | |||||||||||||||||||||||||||||||||||||||||||
| 1617 | |||||||||||||||||||||||||||||||||||||||||||
| 1618 | 13 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC0%0/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table25%1/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 1619 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1620 | |||||||||||||||||||||||||||||||||||||||||||
| 1621 | |||||||||||||||||||||||||||||||||||||||||||
| 1622 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 1623 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1624 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1625 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1626 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1627 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1628 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 1629 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1630 | 13 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
not defined $return and defined $score
MC/DC0%0/2
not defined $return and defined $score
not defined $return
defined $score
Truth table66%2/3
not(A) and B
A= not defined $returnB= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 1631 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1632 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1633 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1634 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1635 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1636 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 1637 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1638 | 13 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 1639 | 13 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1640 | 13 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1641 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1642 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 1643 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 1644 | q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1645 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 1646 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 1647 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1648 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1649 | , q{Condition_or_Set}, | ||||||||||||||||||||||||||||||||||||||||||
| 1650 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1651 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1652 | 13 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 1653 | 13 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 1654 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1655 | |||||||||||||||||||||||||||||||||||||||||||
| 1656 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 1657 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Feature | ||||||||||||||||||||||||||||||||||||||||||
| 1658 | 53 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Feature: called CC=71 SCAR=51.4
| |||||||||||||||||||||||||||||||||||||||||||
| 1659 | 53 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 1660 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1661 | 53 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 1662 | 53 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1663 | 53 | my $thisrule = $thisparser->{"rules"}{"Feature"}; | |||||||||||||||||||||||||||||||||||||||||
| 1664 | |||||||||||||||||||||||||||||||||||||||||||
| 1665 | 53 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Feature]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1666 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1667 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1668 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1669 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1670 | |||||||||||||||||||||||||||||||||||||||||||
| 1671 | |||||||||||||||||||||||||||||||||||||||||||
| 1672 | 53 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 1673 | |||||||||||||||||||||||||||||||||||||||||||
| 1674 | 53 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 1675 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 1676 | 53 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1677 | 53 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 1678 | 53 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 1679 | 53 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 1680 | 53 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 1681 | 53 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 1682 | 53 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 1683 | 53 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 1684 | 0 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1685 | 53 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1686 | 53 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 1687 | 53 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 1688 | 53 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 1689 | 53 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 1690 | |||||||||||||||||||||||||||||||||||||||||||
| 1691 | 53 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 1692 | 53 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 1693 | |||||||||||||||||||||||||||||||||||||||||||
| 1694 | |||||||||||||||||||||||||||||||||||||||||||
| 1695 | |||||||||||||||||||||||||||||||||||||||||||
| 1696 | 53 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 1697 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1698 | |||||||||||||||||||||||||||||||||||||||||||
| 1699 | 53 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Text '=' Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1700 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1701 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1702 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1703 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1704 | 53 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 1705 | 53 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1706 | 53 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 1707 | 53 | @item = (q{Feature}); | |||||||||||||||||||||||||||||||||||||||||
| 1708 | 53 | %item = (__RULE__ => q{Feature}); | |||||||||||||||||||||||||||||||||||||||||
| 1709 | 53 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1710 | |||||||||||||||||||||||||||||||||||||||||||
| 1711 | |||||||||||||||||||||||||||||||||||||||||||
| 1712 | 53 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1713 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1714 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1715 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1716 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1717 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1718 | 53 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1719 | 53 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Text($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1720 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1721 | |||||||||||||||||||||||||||||||||||||||||||
| 1722 | 35 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Text]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1723 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1724 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1725 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1726 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1727 | 35 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1728 | 35 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1729 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1730 | 18 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Text]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1731 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 1732 | |||||||||||||||||||||||||||||||||||||||||||
| 1733 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1734 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1735 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1736 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1737 | 18 | $item{q{Text}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1738 | 18 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1739 | |||||||||||||||||||||||||||||||||||||||||||
| 1740 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1741 | |||||||||||||||||||||||||||||||||||||||||||
| 1742 | 18 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['=']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1743 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1744 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1745 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1746 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1747 | 18 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 1748 | 18 | $expectation->is(q{'='})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1749 | |||||||||||||||||||||||||||||||||||||||||||
| 1750 | |||||||||||||||||||||||||||||||||||||||||||
| 1751 | 18 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\=//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\=//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\=//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\=//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\=//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 1752 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1753 | |||||||||||||||||||||||||||||||||||||||||||
| 1754 | 14 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1755 | 14 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1756 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1757 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1758 | 14 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1759 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1760 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1761 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1762 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1763 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1764 | 4 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 1765 | |||||||||||||||||||||||||||||||||||||||||||
| 1766 | |||||||||||||||||||||||||||||||||||||||||||
| 1767 | 4 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1768 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1769 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1770 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1771 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1772 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1773 | 4 | $expectation->is(q{Text})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1774 | 4 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Text($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1775 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1776 | |||||||||||||||||||||||||||||||||||||||||||
| 1777 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Text]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1778 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1779 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1780 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1781 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1782 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1783 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1784 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1785 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Text]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1786 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 1787 | |||||||||||||||||||||||||||||||||||||||||||
| 1788 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1789 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1790 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1791 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1792 | 4 | $item{q{Text}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1793 | 4 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1794 | |||||||||||||||||||||||||||||||||||||||||||
| 1795 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1796 | |||||||||||||||||||||||||||||||||||||||||||
| 1797 | 4 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1798 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1799 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1800 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1801 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1802 | |||||||||||||||||||||||||||||||||||||||||||
| 1803 | |||||||||||||||||||||||||||||||||||||||||||
| 1804 | 4 | ▶ | $_tok = ($_noactions) ? 0 : do { $return = { $item[1] => $item[3] }; }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1805 | 4 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1806 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1807 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1808 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1809 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1810 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1811 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1812 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1813 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1814 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1815 | 4 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1816 | 4 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1817 | |||||||||||||||||||||||||||||||||||||||||||
| 1818 | |||||||||||||||||||||||||||||||||||||||||||
| 1819 | |||||||||||||||||||||||||||||||||||||||||||
| 1820 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Text '=' Text]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1821 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1822 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1823 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1824 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1825 | 4 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 1826 | 4 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1827 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1828 | |||||||||||||||||||||||||||||||||||||||||||
| 1829 | |||||||||||||||||||||||||||||||||||||||||||
| 1830 | 53 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 1831 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1832 | |||||||||||||||||||||||||||||||||||||||||||
| 1833 | 49 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/[*+-]/ Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1834 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1835 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1836 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1837 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1838 | 49 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1839 | 49 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1840 | 49 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 1841 | 49 | @item = (q{Feature}); | |||||||||||||||||||||||||||||||||||||||||
| 1842 | 49 | %item = (__RULE__ => q{Feature}); | |||||||||||||||||||||||||||||||||||||||||
| 1843 | 49 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1844 | |||||||||||||||||||||||||||||||||||||||||||
| 1845 | |||||||||||||||||||||||||||||||||||||||||||
| 1846 | 49 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/[*+-]/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1847 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1848 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1849 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1850 | 49 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 1851 | 49 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1852 | |||||||||||||||||||||||||||||||||||||||||||
| 1853 | |||||||||||||||||||||||||||||||||||||||||||
| 1854 | 49 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:[*+-])//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A(?:[*+-])//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A(?:[*+-])//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A(?:[*+-])//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A(?:[*+-])//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 1855 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1856 | |||||||||||||||||||||||||||||||||||||||||||
| 1857 | 39 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1858 | 39 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1859 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1860 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1861 | |||||||||||||||||||||||||||||||||||||||||||
| 1862 | 39 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1863 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1864 | 10 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1865 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1866 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1867 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1868 | 10 | push @item, $item{__PATTERN1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 1869 | |||||||||||||||||||||||||||||||||||||||||||
| 1870 | |||||||||||||||||||||||||||||||||||||||||||
| 1871 | 10 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1872 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1873 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1874 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1875 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1876 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1877 | 10 | $expectation->is(q{Text})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1878 | 10 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Text($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1879 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1880 | |||||||||||||||||||||||||||||||||||||||||||
| 1881 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Text]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1882 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1883 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1884 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1885 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1886 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1887 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1888 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1889 | 10 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Text]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1890 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 1891 | |||||||||||||||||||||||||||||||||||||||||||
| 1892 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1893 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1894 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1895 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1896 | 10 | $item{q{Text}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1897 | 10 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1898 | |||||||||||||||||||||||||||||||||||||||||||
| 1899 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1900 | |||||||||||||||||||||||||||||||||||||||||||
| 1901 | 10 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1902 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1903 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1904 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1905 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1906 | |||||||||||||||||||||||||||||||||||||||||||
| 1907 | |||||||||||||||||||||||||||||||||||||||||||
| 1908 | 10 | ▶ | $_tok = ($_noactions) ? 0 : do { $return = { $item[2] => $trans{$item[1]} }; }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1909 | 10 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1910 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1911 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1912 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1913 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1914 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1915 | 10 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1916 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1917 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1918 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1919 | 10 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1920 | 10 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1921 | |||||||||||||||||||||||||||||||||||||||||||
| 1922 | |||||||||||||||||||||||||||||||||||||||||||
| 1923 | |||||||||||||||||||||||||||||||||||||||||||
| 1924 | 10 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/[*+-]/ Text]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1925 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1926 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1927 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1928 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1929 | 10 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 1930 | 10 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1931 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1932 | |||||||||||||||||||||||||||||||||||||||||||
| 1933 | |||||||||||||||||||||||||||||||||||||||||||
| 1934 | 53 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 1935 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1936 | |||||||||||||||||||||||||||||||||||||||||||
| 1937 | 39 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1938 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 1939 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1940 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1941 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1942 | 39 | my $thisprod = $thisrule->{"prods"}[2]; | |||||||||||||||||||||||||||||||||||||||||
| 1943 | 39 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 1944 | 39 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 1945 | 39 | @item = (q{Feature}); | |||||||||||||||||||||||||||||||||||||||||
| 1946 | 39 | %item = (__RULE__ => q{Feature}); | |||||||||||||||||||||||||||||||||||||||||
| 1947 | 39 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 1948 | |||||||||||||||||||||||||||||||||||||||||||
| 1949 | |||||||||||||||||||||||||||||||||||||||||||
| 1950 | 39 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1951 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1952 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1953 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1954 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1955 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 1956 | 39 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 1957 | 39 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Text($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1958 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1959 | |||||||||||||||||||||||||||||||||||||||||||
| 1960 | 25 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Text]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1961 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1962 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1963 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1964 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1965 | 25 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 1966 | 25 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1967 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1968 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Text]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1969 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 1970 | |||||||||||||||||||||||||||||||||||||||||||
| 1971 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1972 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1973 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1974 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1975 | 14 | $item{q{Text}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1976 | 14 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1977 | |||||||||||||||||||||||||||||||||||||||||||
| 1978 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1979 | |||||||||||||||||||||||||||||||||||||||||||
| 1980 | 14 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1981 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 1982 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 1983 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 1984 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1985 | |||||||||||||||||||||||||||||||||||||||||||
| 1986 | |||||||||||||||||||||||||||||||||||||||||||
| 1987 | 14 | ▶ | $_tok = ($_noactions) ? 0 : do { $return = { $item[1] => '__TRUE' }; }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1988 | 14 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1989 | { | ||||||||||||||||||||||||||||||||||||||||||
| 1990 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1991 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1992 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 1993 | } | ||||||||||||||||||||||||||||||||||||||||||
| 1994 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 1995 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 1996 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 1997 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 1998 | 14 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 1999 | 14 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2000 | |||||||||||||||||||||||||||||||||||||||||||
| 2001 | |||||||||||||||||||||||||||||||||||||||||||
| 2002 | |||||||||||||||||||||||||||||||||||||||||||
| 2003 | 14 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Text]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2004 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2005 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 2006 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2007 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2008 | 14 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 2009 | 14 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2010 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2011 | |||||||||||||||||||||||||||||||||||||||||||
| 2012 | |||||||||||||||||||||||||||||||||||||||||||
| 2013 | 53 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 2014 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2015 | |||||||||||||||||||||||||||||||||||||||||||
| 2016 | |||||||||||||||||||||||||||||||||||||||||||
| 2017 | 25 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 2018 | 25 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2019 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2020 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 2021 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2022 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2023 | 25 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 2024 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2025 | 28 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 2026 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2027 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2028 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 2029 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2030 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2031 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 2032 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2033 | 28 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 2034 | 28 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2035 | 28 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2036 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2037 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 2038 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 2039 | q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 2040 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 2041 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 2042 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2043 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2044 | , q{Feature}, | ||||||||||||||||||||||||||||||||||||||||||
| 2045 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2046 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2047 | 28 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 2048 | 28 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 2049 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2050 | |||||||||||||||||||||||||||||||||||||||||||
| 2051 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 2052 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_2_of_rule_Segment | ||||||||||||||||||||||||||||||||||||||||||
| 2053 | 37 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_alternation_1_of_production_2_of_rule_Segment: called CC=34 SCAR=42.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2054 | 37 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 2055 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2056 | 37 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 2057 | 37 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2058 | 37 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_2_of_rule_Segment"}; | |||||||||||||||||||||||||||||||||||||||||
| 2059 | |||||||||||||||||||||||||||||||||||||||||||
| 2060 | 37 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_2_of_rule_Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2061 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2062 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2063 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2064 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2065 | |||||||||||||||||||||||||||||||||||||||||||
| 2066 | |||||||||||||||||||||||||||||||||||||||||||
| 2067 | 37 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 2068 | |||||||||||||||||||||||||||||||||||||||||||
| 2069 | 37 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 2070 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 2071 | 37 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2072 | 37 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 2073 | 37 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 2074 | 37 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 2075 | 37 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 2076 | 37 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 2077 | 37 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 2078 | 37 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 2079 | 37 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2080 | 37 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2081 | 37 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 2082 | 37 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 2083 | 37 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 2084 | 37 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 2085 | |||||||||||||||||||||||||||||||||||||||||||
| 2086 | 37 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 2087 | 37 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 2088 | |||||||||||||||||||||||||||||||||||||||||||
| 2089 | |||||||||||||||||||||||||||||||||||||||||||
| 2090 | |||||||||||||||||||||||||||||||||||||||||||
| 2091 | 37 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 2092 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2093 | |||||||||||||||||||||||||||||||||||||||||||
| 2094 | 37 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2095 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2096 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2097 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2098 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2099 | 37 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 2100 | 37 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 2101 | 37 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 2102 | 37 | @item = (q{_alternation_1_of_production_2_of_rule_Segment}); | |||||||||||||||||||||||||||||||||||||||||
| 2103 | 37 | %item = (__RULE__ => q{_alternation_1_of_production_2_of_rule_Segment}); | |||||||||||||||||||||||||||||||||||||||||
| 2104 | 37 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2105 | |||||||||||||||||||||||||||||||||||||||||||
| 2106 | |||||||||||||||||||||||||||||||||||||||||||
| 2107 | 37 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Text]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2108 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2109 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2110 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2111 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2112 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2113 | 37 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2114 | 37 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Text($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2115 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2116 | |||||||||||||||||||||||||||||||||||||||||||
| 2117 | 2 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Text]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2118 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2119 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2120 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2121 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2122 | 2 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2123 | 2 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2124 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2125 | 35 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Text]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2126 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 2127 | |||||||||||||||||||||||||||||||||||||||||||
| 2128 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2129 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2130 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2131 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2132 | 35 | $item{q{Text}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2133 | 35 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2134 | |||||||||||||||||||||||||||||||||||||||||||
| 2135 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2136 | |||||||||||||||||||||||||||||||||||||||||||
| 2137 | |||||||||||||||||||||||||||||||||||||||||||
| 2138 | 35 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Text]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2139 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2140 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2141 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2142 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2143 | 35 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 2144 | 35 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2145 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2146 | |||||||||||||||||||||||||||||||||||||||||||
| 2147 | |||||||||||||||||||||||||||||||||||||||||||
| 2148 | 37 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 2149 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2150 | |||||||||||||||||||||||||||||||||||||||||||
| 2151 | 2 | ▶ | Parse::RecDescent::_trace(q{Trying production: [/[^\\/]+/]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2152 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2153 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2154 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2155 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2156 | 2 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 2157 | 2 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 2158 | 2 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 2159 | 2 | @item = (q{_alternation_1_of_production_2_of_rule_Segment}); | |||||||||||||||||||||||||||||||||||||||||
| 2160 | 2 | %item = (__RULE__ => q{_alternation_1_of_production_2_of_rule_Segment}); | |||||||||||||||||||||||||||||||||||||||||
| 2161 | 2 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2162 | |||||||||||||||||||||||||||||||||||||||||||
| 2163 | |||||||||||||||||||||||||||||||||||||||||||
| 2164 | 2 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [/[^\\/]+/]}, Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2165 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2166 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2167 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2168 | 2 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2169 | 2 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2170 | |||||||||||||||||||||||||||||||||||||||||||
| 2171 | |||||||||||||||||||||||||||||||||||||||||||
| 2172 | 2 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:[^\/]+)//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s[\A(?:[^/]+)][]
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s[\A(?:[^/]+)][]
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s[\A(?:[^/]+)][]
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s[\A(?:[^/]+)][]
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2173 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2174 | |||||||||||||||||||||||||||||||||||||||||||
| 2175 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2176 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2177 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2178 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2179 | |||||||||||||||||||||||||||||||||||||||||||
| 2180 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2181 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2182 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2183 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2184 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2185 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2186 | 2 | push @item, $item{__PATTERN1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2187 | |||||||||||||||||||||||||||||||||||||||||||
| 2188 | |||||||||||||||||||||||||||||||||||||||||||
| 2189 | |||||||||||||||||||||||||||||||||||||||||||
| 2190 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [/[^\\/]+/]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2191 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2192 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2193 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2194 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2195 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 2196 | 2 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2197 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2198 | |||||||||||||||||||||||||||||||||||||||||||
| 2199 | |||||||||||||||||||||||||||||||||||||||||||
| 2200 | 37 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC0%0/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table25%1/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 2201 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2202 | |||||||||||||||||||||||||||||||||||||||||||
| 2203 | |||||||||||||||||||||||||||||||||||||||||||
| 2204 | 0 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 2205 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2206 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2207 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2208 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2209 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2210 | 0 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 2211 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2212 | 37 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 2213 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2214 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2215 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2216 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2217 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2218 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 2219 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2220 | 37 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 2221 | 37 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2222 | 37 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2223 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2224 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 2225 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 2226 | q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2227 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 2228 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 2229 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2230 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2231 | , q{_alternation_1_of_production_2_of_rule_Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2232 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2233 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2234 | 37 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 2235 | 37 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 2236 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2237 | |||||||||||||||||||||||||||||||||||||||||||
| 2238 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 2239 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Segment | ||||||||||||||||||||||||||||||||||||||||||
| 2240 | 141 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Segment: called CC=66 SCAR=50.5
| |||||||||||||||||||||||||||||||||||||||||||
| 2241 | 141 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 2242 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2243 | 141 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 2244 | 141 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2245 | 141 | my $thisrule = $thisparser->{"rules"}{"Segment"}; | |||||||||||||||||||||||||||||||||||||||||
| 2246 | |||||||||||||||||||||||||||||||||||||||||||
| 2247 | 141 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2248 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2249 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2250 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2251 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2252 | |||||||||||||||||||||||||||||||||||||||||||
| 2253 | |||||||||||||||||||||||||||||||||||||||||||
| 2254 | 141 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 2255 | |||||||||||||||||||||||||||||||||||||||||||
| 2256 | 141 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 2257 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 2258 | 141 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2259 | 141 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 2260 | 141 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 2261 | 141 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 2262 | 141 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 2263 | 141 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 2264 | 141 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 2265 | 141 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 2266 | 141 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2267 | 141 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2268 | 141 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 2269 | 141 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 2270 | 141 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 2271 | 141 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 2272 | |||||||||||||||||||||||||||||||||||||||||||
| 2273 | 141 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 2274 | 141 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 2275 | |||||||||||||||||||||||||||||||||||||||||||
| 2276 | |||||||||||||||||||||||||||||||||||||||||||
| 2277 | |||||||||||||||||||||||||||||||||||||||||||
| 2278 | 141 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 2279 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2280 | |||||||||||||||||||||||||||||||||||||||||||
| 2281 | 141 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['[' Feature ']']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2282 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2283 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2284 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2285 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2286 | 141 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 2287 | 141 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 2288 | 141 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 2289 | 141 | @item = (q{Segment}); | |||||||||||||||||||||||||||||||||||||||||
| 2290 | 141 | %item = (__RULE__ => q{Segment}); | |||||||||||||||||||||||||||||||||||||||||
| 2291 | 141 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2292 | |||||||||||||||||||||||||||||||||||||||||||
| 2293 | |||||||||||||||||||||||||||||||||||||||||||
| 2294 | 141 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['[']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2295 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2296 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2297 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2298 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2299 | 141 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2300 | 141 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2301 | |||||||||||||||||||||||||||||||||||||||||||
| 2302 | |||||||||||||||||||||||||||||||||||||||||||
| 2303 | 141 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\[//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\[//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\[//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\[//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\[//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2304 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2305 | |||||||||||||||||||||||||||||||||||||||||||
| 2306 | 116 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2307 | 116 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2308 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2309 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2310 | 116 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2311 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2312 | 25 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2313 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2314 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2315 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2316 | 25 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2317 | |||||||||||||||||||||||||||||||||||||||||||
| 2318 | |||||||||||||||||||||||||||||||||||||||||||
| 2319 | 25 | ▶ | Parse::RecDescent::_trace(q{Trying repeated subrule: [Feature]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2320 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2321 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2322 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2323 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2324 | 25 | $expectation->is(q{Feature})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2325 | |||||||||||||||||||||||||||||||||||||||||||
| 2326 | 25 | ▶ | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Lingua::Phonology::RuleParser::Feature, 0, 100000000, $_noactions,$expectation,undef))) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2327 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2328 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [Feature]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2329 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2330 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2331 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2332 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2333 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2334 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2335 | 25 | ▶ | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [Feature]<< (} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2336 | . @$_tok . q{ times)}, | ||||||||||||||||||||||||||||||||||||||||||
| 2337 | |||||||||||||||||||||||||||||||||||||||||||
| 2338 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2339 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2340 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2341 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2342 | 25 | $item{q{Feature(s?)}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2343 | 25 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2344 | |||||||||||||||||||||||||||||||||||||||||||
| 2345 | |||||||||||||||||||||||||||||||||||||||||||
| 2346 | |||||||||||||||||||||||||||||||||||||||||||
| 2347 | 25 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [']']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2348 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2349 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2350 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2351 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2352 | 25 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2353 | 25 | $expectation->is(q{']'})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2354 | |||||||||||||||||||||||||||||||||||||||||||
| 2355 | |||||||||||||||||||||||||||||||||||||||||||
| 2356 | 25 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\]//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\]//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\]//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\]//
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\]//
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2357 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2358 | |||||||||||||||||||||||||||||||||||||||||||
| 2359 | 1 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2360 | 1 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2361 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2362 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2363 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2364 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2365 | 24 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2366 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2367 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2368 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2369 | 24 | push @item, $item{__STRING2__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2370 | |||||||||||||||||||||||||||||||||||||||||||
| 2371 | |||||||||||||||||||||||||||||||||||||||||||
| 2372 | 24 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2373 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2374 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2375 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2376 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2377 | |||||||||||||||||||||||||||||||||||||||||||
| 2378 | |||||||||||||||||||||||||||||||||||||||||||
| 2379 | 24 | ▶ | $_tok = ($_noactions) ? 0 : do { hash_merge(@{$item[2]}) }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2380 | 24 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2381 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2382 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2383 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2384 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2385 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2386 | 24 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2387 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2388 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2389 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2390 | 24 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2391 | 24 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2392 | |||||||||||||||||||||||||||||||||||||||||||
| 2393 | |||||||||||||||||||||||||||||||||||||||||||
| 2394 | |||||||||||||||||||||||||||||||||||||||||||
| 2395 | 24 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['[' Feature ']']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2396 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2397 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2398 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2399 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2400 | 24 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 2401 | 24 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2402 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2403 | |||||||||||||||||||||||||||||||||||||||||||
| 2404 | |||||||||||||||||||||||||||||||||||||||||||
| 2405 | 141 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 2406 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2407 | |||||||||||||||||||||||||||||||||||||||||||
| 2408 | 117 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['/' Text, or /[^\\/]+/ '/']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2409 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2410 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2411 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2412 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2413 | 117 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 2414 | 117 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 2415 | 117 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 2416 | 117 | @item = (q{Segment}); | |||||||||||||||||||||||||||||||||||||||||
| 2417 | 117 | %item = (__RULE__ => q{Segment}); | |||||||||||||||||||||||||||||||||||||||||
| 2418 | 117 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2419 | |||||||||||||||||||||||||||||||||||||||||||
| 2420 | |||||||||||||||||||||||||||||||||||||||||||
| 2421 | 117 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['/']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2422 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2423 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2424 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2425 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2426 | 117 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2427 | 117 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2428 | |||||||||||||||||||||||||||||||||||||||||||
| 2429 | |||||||||||||||||||||||||||||||||||||||||||
| 2430 | 117 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\///) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s[\A/][]
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s[\A/][]
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s[\A/][]
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s[\A/][]
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2431 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2432 | |||||||||||||||||||||||||||||||||||||||||||
| 2433 | 80 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2434 | 80 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2435 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2436 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2437 | 80 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2438 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2439 | 37 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2440 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2441 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2442 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2443 | 37 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2444 | |||||||||||||||||||||||||||||||||||||||||||
| 2445 | |||||||||||||||||||||||||||||||||||||||||||
| 2446 | 37 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_2_of_rule_Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2447 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2448 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2449 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2450 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2451 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2452 | 37 | $expectation->is(q{Text, or /[^\\/]+/})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2453 | 37 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_2_of_rule_Segment($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2454 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2455 | |||||||||||||||||||||||||||||||||||||||||||
| 2456 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [_alternation_1_of_production_2_of_rule_Segment]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2457 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2458 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2459 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2460 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2461 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2462 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2463 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2464 | 37 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_2_of_rule_Segment]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2465 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 2466 | |||||||||||||||||||||||||||||||||||||||||||
| 2467 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2468 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2469 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2470 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2471 | 37 | $item{q{_alternation_1_of_production_2_of_rule_Segment}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2472 | 37 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2473 | |||||||||||||||||||||||||||||||||||||||||||
| 2474 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2475 | |||||||||||||||||||||||||||||||||||||||||||
| 2476 | 37 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['/']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2477 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2478 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2479 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2480 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2481 | 37 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2482 | 37 | $expectation->is(q{'/'})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2483 | |||||||||||||||||||||||||||||||||||||||||||
| 2484 | |||||||||||||||||||||||||||||||||||||||||||
| 2485 | 37 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\///) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s[\A/][]
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s[\A/][]
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s[\A/][]
MC/DC0%0/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s[\A/][]
Truth table50%1/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2486 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2487 | |||||||||||||||||||||||||||||||||||||||||||
| 2488 | 2 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2489 | 2 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2490 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2491 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2492 | 2 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2493 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2494 | 35 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2495 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2496 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2497 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2498 | 35 | push @item, $item{__STRING2__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2499 | |||||||||||||||||||||||||||||||||||||||||||
| 2500 | |||||||||||||||||||||||||||||||||||||||||||
| 2501 | 35 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2502 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2503 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2504 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2505 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2506 | |||||||||||||||||||||||||||||||||||||||||||
| 2507 | |||||||||||||||||||||||||||||||||||||||||||
| 2508 | 35 | ▶ | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2509 | 35 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2510 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2511 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2512 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2513 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2514 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2515 | 35 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2516 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2517 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2518 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2519 | 35 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2520 | 35 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2521 | |||||||||||||||||||||||||||||||||||||||||||
| 2522 | |||||||||||||||||||||||||||||||||||||||||||
| 2523 | |||||||||||||||||||||||||||||||||||||||||||
| 2524 | 35 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['/' Text, or /[^\\/]+/ '/']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2525 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2526 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2527 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2528 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2529 | 35 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 2530 | 35 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2531 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2532 | |||||||||||||||||||||||||||||||||||||||||||
| 2533 | |||||||||||||||||||||||||||||||||||||||||||
| 2534 | 141 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 2535 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2536 | |||||||||||||||||||||||||||||||||||||||||||
| 2537 | |||||||||||||||||||||||||||||||||||||||||||
| 2538 | 82 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 2539 | 82 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2540 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2541 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2542 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2543 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2544 | 82 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 2545 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2546 | 59 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 2547 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2548 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2549 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2550 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2551 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2552 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 2553 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2554 | 59 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 2555 | 59 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2556 | 59 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2557 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2558 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 2559 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 2560 | q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2561 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 2562 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 2563 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2564 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2565 | , q{Segment}, | ||||||||||||||||||||||||||||||||||||||||||
| 2566 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2567 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2568 | 59 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 2569 | 59 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 2570 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2571 | |||||||||||||||||||||||||||||||||||||||||||
| 2572 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 2573 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Boundary | ||||||||||||||||||||||||||||||||||||||||||
| 2574 | 29 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Boundary: called CC=31 SCAR=40.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2575 | 29 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 2576 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2577 | 29 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 2578 | 29 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2579 | 29 | my $thisrule = $thisparser->{"rules"}{"Boundary"}; | |||||||||||||||||||||||||||||||||||||||||
| 2580 | |||||||||||||||||||||||||||||||||||||||||||
| 2581 | 29 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Boundary]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2582 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2583 | q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2584 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2585 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2586 | |||||||||||||||||||||||||||||||||||||||||||
| 2587 | |||||||||||||||||||||||||||||||||||||||||||
| 2588 | 29 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 2589 | |||||||||||||||||||||||||||||||||||||||||||
| 2590 | 29 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 2591 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 2592 | 29 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2593 | 29 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 2594 | 29 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 2595 | 29 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 2596 | 29 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 2597 | 29 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 2598 | 29 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 2599 | 29 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 2600 | 0 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2601 | 29 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2602 | 29 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 2603 | 29 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 2604 | 29 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 2605 | 29 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 2606 | |||||||||||||||||||||||||||||||||||||||||||
| 2607 | 29 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 2608 | 29 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 2609 | |||||||||||||||||||||||||||||||||||||||||||
| 2610 | |||||||||||||||||||||||||||||||||||||||||||
| 2611 | |||||||||||||||||||||||||||||||||||||||||||
| 2612 | 29 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 2613 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2614 | |||||||||||||||||||||||||||||||||||||||||||
| 2615 | 29 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['$']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2616 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2617 | q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2618 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2619 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2620 | 29 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 2621 | 29 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 2622 | 29 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 2623 | 29 | @item = (q{Boundary}); | |||||||||||||||||||||||||||||||||||||||||
| 2624 | 29 | %item = (__RULE__ => q{Boundary}); | |||||||||||||||||||||||||||||||||||||||||
| 2625 | 29 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2626 | |||||||||||||||||||||||||||||||||||||||||||
| 2627 | |||||||||||||||||||||||||||||||||||||||||||
| 2628 | 29 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['$']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2629 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2630 | q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2631 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2632 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2633 | 29 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2634 | 29 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2635 | |||||||||||||||||||||||||||||||||||||||||||
| 2636 | |||||||||||||||||||||||||||||||||||||||||||
| 2637 | 29 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\$//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\$//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\$//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\$//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2638 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2639 | |||||||||||||||||||||||||||||||||||||||||||
| 2640 | 23 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2641 | 23 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2642 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2643 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2644 | 23 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2645 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2646 | 6 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2647 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2648 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2649 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2650 | 6 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2651 | |||||||||||||||||||||||||||||||||||||||||||
| 2652 | |||||||||||||||||||||||||||||||||||||||||||
| 2653 | 6 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2654 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2655 | q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2656 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2657 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2658 | |||||||||||||||||||||||||||||||||||||||||||
| 2659 | |||||||||||||||||||||||||||||||||||||||||||
| 2660 | 6 | ▶ | $_tok = ($_noactions) ? 0 : do { $return = '__BOUNDARY' }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2661 | 6 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2662 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2663 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2664 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2665 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2666 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2667 | 6 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2668 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2669 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2670 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2671 | 6 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2672 | 6 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2673 | |||||||||||||||||||||||||||||||||||||||||||
| 2674 | |||||||||||||||||||||||||||||||||||||||||||
| 2675 | |||||||||||||||||||||||||||||||||||||||||||
| 2676 | 6 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['$']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2677 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2678 | q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2679 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2680 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2681 | 6 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 2682 | 6 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2683 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2684 | |||||||||||||||||||||||||||||||||||||||||||
| 2685 | |||||||||||||||||||||||||||||||||||||||||||
| 2686 | 29 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 2687 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2688 | |||||||||||||||||||||||||||||||||||||||||||
| 2689 | |||||||||||||||||||||||||||||||||||||||||||
| 2690 | 23 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 2691 | 23 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2692 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2693 | q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2694 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2695 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2696 | 23 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 2697 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2698 | 6 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 2699 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2700 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2701 | q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2702 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2703 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2704 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 2705 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2706 | 6 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 2707 | 6 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2708 | 6 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2709 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2710 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 2711 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 2712 | q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2713 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 2714 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 2715 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2716 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2717 | , q{Boundary}, | ||||||||||||||||||||||||||||||||||||||||||
| 2718 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2719 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2720 | 6 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 2721 | 6 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 2722 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2723 | |||||||||||||||||||||||||||||||||||||||||||
| 2724 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 2725 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::SegmentSet | ||||||||||||||||||||||||||||||||||||||||||
| 2726 | 60 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
SegmentSet: called CC=60 SCAR=48.8
| |||||||||||||||||||||||||||||||||||||||||||
| 2727 | 60 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 2728 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2729 | 60 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 2730 | 60 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2731 | 60 | my $thisrule = $thisparser->{"rules"}{"SegmentSet"}; | |||||||||||||||||||||||||||||||||||||||||
| 2732 | |||||||||||||||||||||||||||||||||||||||||||
| 2733 | 60 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2734 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2735 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2736 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2737 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2738 | |||||||||||||||||||||||||||||||||||||||||||
| 2739 | |||||||||||||||||||||||||||||||||||||||||||
| 2740 | 60 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 2741 | |||||||||||||||||||||||||||||||||||||||||||
| 2742 | 60 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 2743 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 2744 | 60 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2745 | 60 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 2746 | 60 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 2747 | 60 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 2748 | 60 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 2749 | 60 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 2750 | 60 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 2751 | 60 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 2752 | 60 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2753 | 60 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2754 | 60 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 2755 | 60 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 2756 | 60 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 2757 | 60 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 2758 | |||||||||||||||||||||||||||||||||||||||||||
| 2759 | 60 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 2760 | 60 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 2761 | |||||||||||||||||||||||||||||||||||||||||||
| 2762 | |||||||||||||||||||||||||||||||||||||||||||
| 2763 | |||||||||||||||||||||||||||||||||||||||||||
| 2764 | 60 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 2765 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2766 | |||||||||||||||||||||||||||||||||||||||||||
| 2767 | 60 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['(' <leftop: Segment '|' Segment> ')']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2768 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 2769 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2770 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2771 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2772 | 60 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 2773 | 60 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 2774 | 60 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 2775 | 60 | @item = (q{SegmentSet}); | |||||||||||||||||||||||||||||||||||||||||
| 2776 | 60 | %item = (__RULE__ => q{SegmentSet}); | |||||||||||||||||||||||||||||||||||||||||
| 2777 | 60 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2778 | |||||||||||||||||||||||||||||||||||||||||||
| 2779 | |||||||||||||||||||||||||||||||||||||||||||
| 2780 | 60 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2781 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2782 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2783 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2784 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2785 | 60 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2786 | 60 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2787 | |||||||||||||||||||||||||||||||||||||||||||
| 2788 | |||||||||||||||||||||||||||||||||||||||||||
| 2789 | 60 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\(//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\(//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\(//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\(//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\(//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2790 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2791 | |||||||||||||||||||||||||||||||||||||||||||
| 2792 | 56 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2793 | 56 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2794 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2795 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2796 | 56 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2797 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2798 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2799 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2800 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2801 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2802 | 4 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2803 | |||||||||||||||||||||||||||||||||||||||||||
| 2804 | |||||||||||||||||||||||||||||||||||||||||||
| 2805 | 4 | ▶ | Parse::RecDescent::_trace(q{Trying operator: [<leftop: Segment '|' Segment>]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2806 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2807 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2808 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2809 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2810 | 4 | $expectation->is(q{<leftop: Segment '|' Segment>})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2811 | |||||||||||||||||||||||||||||||||||||||||||
| 2812 | 4 | $_tok = undef; | |||||||||||||||||||||||||||||||||||||||||
| 2813 | 4 | OPLOOP: while (1) | |||||||||||||||||||||||||||||||||||||||||
| 2814 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2815 | 4 | $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2816 | 4 | my @item; | |||||||||||||||||||||||||||||||||||||||||
| 2817 | |||||||||||||||||||||||||||||||||||||||||||
| 2818 | # MATCH LEFTARG | ||||||||||||||||||||||||||||||||||||||||||
| 2819 | |||||||||||||||||||||||||||||||||||||||||||
| 2820 | 4 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2821 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2822 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2823 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2824 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2825 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2826 | 4 | $expectation->is(q{Segment})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2827 | 4 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Segment($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2828 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2829 | |||||||||||||||||||||||||||||||||||||||||||
| 2830 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Segment]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2831 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2832 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2833 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2834 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2835 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2836 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2837 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2838 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Segment]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2839 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 2840 | |||||||||||||||||||||||||||||||||||||||||||
| 2841 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2842 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2843 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2844 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2845 | 4 | $item{q{Segment}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2846 | 4 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2847 | |||||||||||||||||||||||||||||||||||||||||||
| 2848 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2849 | |||||||||||||||||||||||||||||||||||||||||||
| 2850 | |||||||||||||||||||||||||||||||||||||||||||
| 2851 | 4 | $repcount++; | |||||||||||||||||||||||||||||||||||||||||
| 2852 | |||||||||||||||||||||||||||||||||||||||||||
| 2853 | 4 | my $savetext = $text; | |||||||||||||||||||||||||||||||||||||||||
| 2854 | 4 | my $backtrack; | |||||||||||||||||||||||||||||||||||||||||
| 2855 | |||||||||||||||||||||||||||||||||||||||||||
| 2856 | # MATCH (OP RIGHTARG)(s) | ||||||||||||||||||||||||||||||||||||||||||
| 2857 | 4 | ▶ | while ($repcount < 100000000) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2858 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2859 | 8 | $backtrack = 0; | |||||||||||||||||||||||||||||||||||||||||
| 2860 | |||||||||||||||||||||||||||||||||||||||||||
| 2861 | 8 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['|']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2862 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2863 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2864 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2865 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2866 | 8 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2867 | 8 | $expectation->is(q{'|'})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2868 | |||||||||||||||||||||||||||||||||||||||||||
| 2869 | |||||||||||||||||||||||||||||||||||||||||||
| 2870 | 8 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\|//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\|//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\|//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\|//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\|//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2871 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2872 | |||||||||||||||||||||||||||||||||||||||||||
| 2873 | 3 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2874 | 3 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2875 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2876 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2877 | 3 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2878 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2879 | 5 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2880 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2881 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2882 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2883 | 5 | push @item, $item{__STRING2__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2884 | |||||||||||||||||||||||||||||||||||||||||||
| 2885 | |||||||||||||||||||||||||||||||||||||||||||
| 2886 | 5 | pop @item; | |||||||||||||||||||||||||||||||||||||||||
| 2887 | |||||||||||||||||||||||||||||||||||||||||||
| 2888 | |||||||||||||||||||||||||||||||||||||||||||
| 2889 | 5 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2890 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2891 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2892 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2893 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2894 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 2895 | 5 | $expectation->is(q{Segment})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2896 | 5 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Segment($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2897 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2898 | |||||||||||||||||||||||||||||||||||||||||||
| 2899 | 1 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Segment]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2900 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2901 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2902 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2903 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2904 | 1 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2905 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2906 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2907 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Segment]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2908 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 2909 | |||||||||||||||||||||||||||||||||||||||||||
| 2910 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2911 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2912 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2913 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2914 | 4 | $item{q{Segment}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2915 | 4 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2916 | |||||||||||||||||||||||||||||||||||||||||||
| 2917 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2918 | |||||||||||||||||||||||||||||||||||||||||||
| 2919 | 4 | $savetext = $text; | |||||||||||||||||||||||||||||||||||||||||
| 2920 | 4 | $repcount++; | |||||||||||||||||||||||||||||||||||||||||
| 2921 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2922 | 4 | $text = $savetext; | |||||||||||||||||||||||||||||||||||||||||
| 2923 | 4 | ▶ | pop @item if $backtrack; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2924 | |||||||||||||||||||||||||||||||||||||||||||
| 2925 | 0 | ▶ | unless (@item) { undef $_tok; last } | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2926 | 4 | $_tok = [ @item ]; | |||||||||||||||||||||||||||||||||||||||||
| 2927 | 4 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2928 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2929 | |||||||||||||||||||||||||||||||||||||||||||
| 2930 | 4 | ▶ | unless ($repcount>=1) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2931 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2932 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match operator: [<leftop: Segment '|' Segment>]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2933 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2934 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2935 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2936 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2937 | 0 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2938 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2939 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2940 | 4 | ▶ | Parse::RecDescent::_trace(q{>>Matched operator: [<leftop: Segment '|' Segment>]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2941 | 0 | ▶ | . qq{@{$_tok||[]}} . q{]}, | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table0%0/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||||||
| 2942 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2943 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2944 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2945 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2946 | |||||||||||||||||||||||||||||||||||||||||||
| 2947 | 4 | ▶ | push @item, $item{__DIRECTIVE1__}=$_tok||[]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$_tok || []
MC/DC0%0/1
$_tok || []
$_tok
Truth table50%1/2
A
A= $_tok
| |||||||||||||||||||||||||||||||||||||||||||
| 2948 | |||||||||||||||||||||||||||||||||||||||||||
| 2949 | |||||||||||||||||||||||||||||||||||||||||||
| 2950 | 4 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2951 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2952 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2953 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2954 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2955 | 4 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 2956 | 4 | $expectation->is(q{')'})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 2957 | |||||||||||||||||||||||||||||||||||||||||||
| 2958 | |||||||||||||||||||||||||||||||||||||||||||
| 2959 | 4 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\)//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\)//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\)//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\)//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\)//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 2960 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2961 | |||||||||||||||||||||||||||||||||||||||||||
| 2962 | 3 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 2963 | 3 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2964 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2965 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2966 | 3 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2967 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2968 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2969 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2970 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2971 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2972 | 1 | push @item, $item{__STRING3__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 2973 | |||||||||||||||||||||||||||||||||||||||||||
| 2974 | |||||||||||||||||||||||||||||||||||||||||||
| 2975 | 1 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2976 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 2977 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 2978 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 2979 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2980 | |||||||||||||||||||||||||||||||||||||||||||
| 2981 | |||||||||||||||||||||||||||||||||||||||||||
| 2982 | 1 | ▶ | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2983 | 1 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2984 | { | ||||||||||||||||||||||||||||||||||||||||||
| 2985 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2986 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2987 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 2988 | } | ||||||||||||||||||||||||||||||||||||||||||
| 2989 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2990 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 2991 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 2992 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 2993 | 1 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2994 | 1 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 2995 | |||||||||||||||||||||||||||||||||||||||||||
| 2996 | |||||||||||||||||||||||||||||||||||||||||||
| 2997 | |||||||||||||||||||||||||||||||||||||||||||
| 2998 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['(' <leftop: Segment '|' Segment> ')']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 2999 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3000 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 3001 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3002 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3003 | 1 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3004 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3005 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3006 | |||||||||||||||||||||||||||||||||||||||||||
| 3007 | |||||||||||||||||||||||||||||||||||||||||||
| 3008 | 60 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 3009 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3010 | |||||||||||||||||||||||||||||||||||||||||||
| 3011 | |||||||||||||||||||||||||||||||||||||||||||
| 3012 | 59 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 3013 | 59 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3014 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3015 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 3016 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3017 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3018 | 59 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 3019 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3020 | 1 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 3021 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3022 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3023 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 3024 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3025 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3026 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 3027 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3028 | 1 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 3029 | 1 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3030 | 1 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3031 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3032 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3033 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 3034 | q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 3035 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 3036 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3037 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3038 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3039 | , q{SegmentSet}, | ||||||||||||||||||||||||||||||||||||||||||
| 3040 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3041 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3042 | 1 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 3043 | 1 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 3044 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3045 | |||||||||||||||||||||||||||||||||||||||||||
| 3046 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 3047 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Arrow | ||||||||||||||||||||||||||||||||||||||||||
| 3048 | 22 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Arrow: called CC=46 SCAR=47.6
| |||||||||||||||||||||||||||||||||||||||||||
| 3049 | 22 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3050 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3051 | 22 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 3052 | 22 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3053 | 22 | my $thisrule = $thisparser->{"rules"}{"Arrow"}; | |||||||||||||||||||||||||||||||||||||||||
| 3054 | |||||||||||||||||||||||||||||||||||||||||||
| 3055 | 22 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Arrow]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3056 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3057 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3058 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3059 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3060 | |||||||||||||||||||||||||||||||||||||||||||
| 3061 | |||||||||||||||||||||||||||||||||||||||||||
| 3062 | 22 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 3063 | |||||||||||||||||||||||||||||||||||||||||||
| 3064 | 22 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 3065 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 3066 | 22 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3067 | 22 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 3068 | 22 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 3069 | 22 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 3070 | 22 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3071 | 22 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3072 | 22 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 3073 | 22 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 3074 | 22 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3075 | 22 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3076 | 22 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 3077 | 22 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 3078 | 22 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 3079 | 22 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 3080 | |||||||||||||||||||||||||||||||||||||||||||
| 3081 | 22 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 3082 | 22 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 3083 | |||||||||||||||||||||||||||||||||||||||||||
| 3084 | |||||||||||||||||||||||||||||||||||||||||||
| 3085 | |||||||||||||||||||||||||||||||||||||||||||
| 3086 | 22 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3087 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3088 | |||||||||||||||||||||||||||||||||||||||||||
| 3089 | 22 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['>']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3090 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3091 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3092 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3093 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3094 | 22 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3095 | 22 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3096 | 22 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3097 | 22 | @item = (q{Arrow}); | |||||||||||||||||||||||||||||||||||||||||
| 3098 | 22 | %item = (__RULE__ => q{Arrow}); | |||||||||||||||||||||||||||||||||||||||||
| 3099 | 22 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3100 | |||||||||||||||||||||||||||||||||||||||||||
| 3101 | |||||||||||||||||||||||||||||||||||||||||||
| 3102 | 22 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['>']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3103 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3104 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3105 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3106 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3107 | 22 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 3108 | 22 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3109 | |||||||||||||||||||||||||||||||||||||||||||
| 3110 | |||||||||||||||||||||||||||||||||||||||||||
| 3111 | 22 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\>//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\>//
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\>//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\>//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\>//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 3112 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3113 | |||||||||||||||||||||||||||||||||||||||||||
| 3114 | 22 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3115 | 22 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3116 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3117 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3118 | 22 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3119 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3120 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3121 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3122 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3123 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3124 | 0 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 3125 | |||||||||||||||||||||||||||||||||||||||||||
| 3126 | |||||||||||||||||||||||||||||||||||||||||||
| 3127 | |||||||||||||||||||||||||||||||||||||||||||
| 3128 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['>']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3129 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3130 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3131 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3132 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3133 | 0 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3134 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3135 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3136 | |||||||||||||||||||||||||||||||||||||||||||
| 3137 | |||||||||||||||||||||||||||||||||||||||||||
| 3138 | 22 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3139 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3140 | |||||||||||||||||||||||||||||||||||||||||||
| 3141 | 22 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['->']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3142 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3143 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3144 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3145 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3146 | 22 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3147 | 22 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3148 | 22 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3149 | 22 | @item = (q{Arrow}); | |||||||||||||||||||||||||||||||||||||||||
| 3150 | 22 | %item = (__RULE__ => q{Arrow}); | |||||||||||||||||||||||||||||||||||||||||
| 3151 | 22 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3152 | |||||||||||||||||||||||||||||||||||||||||||
| 3153 | |||||||||||||||||||||||||||||||||||||||||||
| 3154 | 22 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['->']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3155 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3156 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3157 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3158 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3159 | 22 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 3160 | 22 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3161 | |||||||||||||||||||||||||||||||||||||||||||
| 3162 | |||||||||||||||||||||||||||||||||||||||||||
| 3163 | 22 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\-\>//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition60%3/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\-\>//
($lastsep = $1) && ''
MC/DC0%0/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\-\>//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\-\>//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table33%1/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\-\>//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 3164 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3165 | |||||||||||||||||||||||||||||||||||||||||||
| 3166 | 22 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3167 | 22 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3168 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3169 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3170 | 22 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3171 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3172 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3173 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3174 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3175 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3176 | 0 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 3177 | |||||||||||||||||||||||||||||||||||||||||||
| 3178 | |||||||||||||||||||||||||||||||||||||||||||
| 3179 | |||||||||||||||||||||||||||||||||||||||||||
| 3180 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['->']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3181 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3182 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3183 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3184 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3185 | 0 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3186 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3187 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3188 | |||||||||||||||||||||||||||||||||||||||||||
| 3189 | |||||||||||||||||||||||||||||||||||||||||||
| 3190 | 22 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3191 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3192 | |||||||||||||||||||||||||||||||||||||||||||
| 3193 | 22 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['=>']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3194 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3195 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3196 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3197 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3198 | 22 | my $thisprod = $thisrule->{"prods"}[2]; | |||||||||||||||||||||||||||||||||||||||||
| 3199 | 22 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3200 | 22 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3201 | 22 | @item = (q{Arrow}); | |||||||||||||||||||||||||||||||||||||||||
| 3202 | 22 | %item = (__RULE__ => q{Arrow}); | |||||||||||||||||||||||||||||||||||||||||
| 3203 | 22 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3204 | |||||||||||||||||||||||||||||||||||||||||||
| 3205 | |||||||||||||||||||||||||||||||||||||||||||
| 3206 | 22 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['=>']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3207 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3208 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3209 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3210 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3211 | 22 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 3212 | 22 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3213 | |||||||||||||||||||||||||||||||||||||||||||
| 3214 | |||||||||||||||||||||||||||||||||||||||||||
| 3215 | 22 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\=\>//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\=\>//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A\=\>//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A\=\>//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A\=\>//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 3216 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3217 | |||||||||||||||||||||||||||||||||||||||||||
| 3218 | 3 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3219 | 3 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3220 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3221 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3222 | 3 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3223 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3224 | 19 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3225 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3226 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3227 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3228 | 19 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 3229 | |||||||||||||||||||||||||||||||||||||||||||
| 3230 | |||||||||||||||||||||||||||||||||||||||||||
| 3231 | |||||||||||||||||||||||||||||||||||||||||||
| 3232 | 19 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['=>']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3233 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3234 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3235 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3236 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3237 | 19 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3238 | 19 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3239 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3240 | |||||||||||||||||||||||||||||||||||||||||||
| 3241 | |||||||||||||||||||||||||||||||||||||||||||
| 3242 | 22 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 3243 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3244 | |||||||||||||||||||||||||||||||||||||||||||
| 3245 | |||||||||||||||||||||||||||||||||||||||||||
| 3246 | 3 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 3247 | 3 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3248 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3249 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3250 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3251 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3252 | 3 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 3253 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3254 | 19 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 3255 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3256 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3257 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3258 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3259 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3260 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 3261 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3262 | 19 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 3263 | 19 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3264 | 19 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3265 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3266 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3267 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 3268 | q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3269 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 3270 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3271 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3272 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3273 | , q{Arrow}, | ||||||||||||||||||||||||||||||||||||||||||
| 3274 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3275 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3276 | 19 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 3277 | 19 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 3278 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3279 | |||||||||||||||||||||||||||||||||||||||||||
| 3280 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 3281 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Null | ||||||||||||||||||||||||||||||||||||||||||
| 3282 | 51 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Null: called CC=31 SCAR=39.4
| |||||||||||||||||||||||||||||||||||||||||||
| 3283 | 51 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3284 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3285 | 51 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 3286 | 51 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3287 | 51 | my $thisrule = $thisparser->{"rules"}{"Null"}; | |||||||||||||||||||||||||||||||||||||||||
| 3288 | |||||||||||||||||||||||||||||||||||||||||||
| 3289 | 51 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3290 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3291 | q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3292 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3293 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3294 | |||||||||||||||||||||||||||||||||||||||||||
| 3295 | |||||||||||||||||||||||||||||||||||||||||||
| 3296 | 51 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 3297 | |||||||||||||||||||||||||||||||||||||||||||
| 3298 | 51 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 3299 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 3300 | 51 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3301 | 51 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 3302 | 51 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 3303 | 51 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 3304 | 51 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3305 | 51 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3306 | 51 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 3307 | 51 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 3308 | 51 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3309 | 51 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3310 | 51 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 3311 | 51 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 3312 | 51 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 3313 | 51 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 3314 | |||||||||||||||||||||||||||||||||||||||||||
| 3315 | 51 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 3316 | 51 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 3317 | |||||||||||||||||||||||||||||||||||||||||||
| 3318 | |||||||||||||||||||||||||||||||||||||||||||
| 3319 | |||||||||||||||||||||||||||||||||||||||||||
| 3320 | 51 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3321 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3322 | |||||||||||||||||||||||||||||||||||||||||||
| 3323 | 51 | ▶ | Parse::RecDescent::_trace(q{Trying production: ['0']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3324 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3325 | q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3326 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3327 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3328 | 51 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3329 | 51 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3330 | 51 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3331 | 51 | @item = (q{Null}); | |||||||||||||||||||||||||||||||||||||||||
| 3332 | 51 | %item = (__RULE__ => q{Null}); | |||||||||||||||||||||||||||||||||||||||||
| 3333 | 51 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3334 | |||||||||||||||||||||||||||||||||||||||||||
| 3335 | |||||||||||||||||||||||||||||||||||||||||||
| 3336 | 51 | ▶ | Parse::RecDescent::_trace(q{Trying terminal: ['0']}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3337 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3338 | q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3339 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3340 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3341 | 51 | $lastsep = ""; | |||||||||||||||||||||||||||||||||||||||||
| 3342 | 51 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3343 | |||||||||||||||||||||||||||||||||||||||||||
| 3344 | |||||||||||||||||||||||||||||||||||||||||||
| 3345 | 51 | ▶ | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A0//) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition80%4/5
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A0//
($lastsep = $1) && ''
MC/DC50%1/2
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e and $text =~ s/\A0//
$text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/e
$text =~ s/\A0//
MC/DC100%1/1
($lastsep = $1) && ''
($lastsep = $1)
Truth table66%2/3
A and B
A= $text =~ s/\A($Parse::RecDescent::Lingua::Phonology::RuleParser::skip)/$lastsep = $1 and "";/eB= $text =~ s/\A0//
Truth table100%2/2
A
A= ($lastsep = $1)
| |||||||||||||||||||||||||||||||||||||||||||
| 3346 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3347 | |||||||||||||||||||||||||||||||||||||||||||
| 3348 | 43 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3349 | 43 | ▶ | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3350 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3351 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3352 | 43 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3353 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3354 | 8 | ▶ | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3355 | . $& . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3356 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3357 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3358 | 8 | push @item, $item{__STRING1__}=$&; | |||||||||||||||||||||||||||||||||||||||||
| 3359 | |||||||||||||||||||||||||||||||||||||||||||
| 3360 | |||||||||||||||||||||||||||||||||||||||||||
| 3361 | 8 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3362 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3363 | q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3364 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3365 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3366 | |||||||||||||||||||||||||||||||||||||||||||
| 3367 | |||||||||||||||||||||||||||||||||||||||||||
| 3368 | 8 | ▶ | $_tok = ($_noactions) ? 0 : do { $return = '__NULL' }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3369 | 8 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3370 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3371 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3372 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3373 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3374 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3375 | 8 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3376 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3377 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 3378 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3379 | 8 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3380 | 8 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3381 | |||||||||||||||||||||||||||||||||||||||||||
| 3382 | |||||||||||||||||||||||||||||||||||||||||||
| 3383 | |||||||||||||||||||||||||||||||||||||||||||
| 3384 | 8 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: ['0']<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3385 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3386 | q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3387 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3388 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3389 | 8 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3390 | 8 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3391 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3392 | |||||||||||||||||||||||||||||||||||||||||||
| 3393 | |||||||||||||||||||||||||||||||||||||||||||
| 3394 | 51 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 3395 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3396 | |||||||||||||||||||||||||||||||||||||||||||
| 3397 | |||||||||||||||||||||||||||||||||||||||||||
| 3398 | 43 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 3399 | 43 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3400 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3401 | q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3402 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3403 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3404 | 43 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 3405 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3406 | 8 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 3407 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3408 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3409 | q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3410 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3411 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3412 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 3413 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3414 | 8 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 3415 | 8 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3416 | 8 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3417 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3418 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3419 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 3420 | q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3421 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 3422 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3423 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3424 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3425 | , q{Null}, | ||||||||||||||||||||||||||||||||||||||||||
| 3426 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3427 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3428 | 8 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 3429 | 8 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 3430 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3431 | |||||||||||||||||||||||||||||||||||||||||||
| 3432 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 3433 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::To | ||||||||||||||||||||||||||||||||||||||||||
| 3434 | 19 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
To: called CC=24 SCAR=35.3
| |||||||||||||||||||||||||||||||||||||||||||
| 3435 | 19 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3436 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3437 | 19 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 3438 | 19 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3439 | 19 | my $thisrule = $thisparser->{"rules"}{"To"}; | |||||||||||||||||||||||||||||||||||||||||
| 3440 | |||||||||||||||||||||||||||||||||||||||||||
| 3441 | 19 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [To]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3442 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3443 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3444 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3445 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3446 | |||||||||||||||||||||||||||||||||||||||||||
| 3447 | |||||||||||||||||||||||||||||||||||||||||||
| 3448 | 19 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 3449 | |||||||||||||||||||||||||||||||||||||||||||
| 3450 | 19 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 3451 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 3452 | 19 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3453 | 19 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 3454 | 19 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 3455 | 19 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 3456 | 19 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3457 | 19 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3458 | 19 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 3459 | 19 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 3460 | 19 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3461 | 19 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3462 | 19 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 3463 | 19 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 3464 | 19 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 3465 | 19 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 3466 | |||||||||||||||||||||||||||||||||||||||||||
| 3467 | 19 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 3468 | 19 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 3469 | |||||||||||||||||||||||||||||||||||||||||||
| 3470 | |||||||||||||||||||||||||||||||||||||||||||
| 3471 | |||||||||||||||||||||||||||||||||||||||||||
| 3472 | 19 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3473 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3474 | |||||||||||||||||||||||||||||||||||||||||||
| 3475 | 19 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Segment, or Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3476 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3477 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3478 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3479 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3480 | 19 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3481 | 19 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3482 | 19 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3483 | 19 | @item = (q{To}); | |||||||||||||||||||||||||||||||||||||||||
| 3484 | 19 | %item = (__RULE__ => q{To}); | |||||||||||||||||||||||||||||||||||||||||
| 3485 | 19 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3486 | |||||||||||||||||||||||||||||||||||||||||||
| 3487 | |||||||||||||||||||||||||||||||||||||||||||
| 3488 | 19 | ▶ | Parse::RecDescent::_trace(q{Trying repeated subrule: [Segment, or Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3489 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3490 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3491 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3492 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3493 | 19 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3494 | |||||||||||||||||||||||||||||||||||||||||||
| 3495 | 19 | ▶ | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_1_of_rule_To, 1, 100000000, $_noactions,$expectation,undef))) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3496 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3497 | 3 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [Segment, or Null]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3498 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3499 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3500 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3501 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3502 | 3 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3503 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3504 | 16 | ▶ | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [_alternation_1_of_production_1_of_rule_To]<< (} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3505 | . @$_tok . q{ times)}, | ||||||||||||||||||||||||||||||||||||||||||
| 3506 | |||||||||||||||||||||||||||||||||||||||||||
| 3507 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3508 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3509 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3510 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3511 | 16 | $item{q{_alternation_1_of_production_1_of_rule_To(s)}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3512 | 16 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3513 | |||||||||||||||||||||||||||||||||||||||||||
| 3514 | |||||||||||||||||||||||||||||||||||||||||||
| 3515 | |||||||||||||||||||||||||||||||||||||||||||
| 3516 | |||||||||||||||||||||||||||||||||||||||||||
| 3517 | 16 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Segment, or Null]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3518 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3519 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3520 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3521 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3522 | 16 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3523 | 16 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3524 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3525 | |||||||||||||||||||||||||||||||||||||||||||
| 3526 | |||||||||||||||||||||||||||||||||||||||||||
| 3527 | 19 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 3528 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3529 | |||||||||||||||||||||||||||||||||||||||||||
| 3530 | |||||||||||||||||||||||||||||||||||||||||||
| 3531 | 3 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 3532 | 3 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3533 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3534 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3535 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3536 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3537 | 3 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 3538 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3539 | 16 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 3540 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3541 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3542 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3543 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3544 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3545 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 3546 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3547 | 16 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 3548 | 16 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3549 | 16 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3550 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3551 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3552 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 3553 | q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3554 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 3555 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3556 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3557 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3558 | , q{To}, | ||||||||||||||||||||||||||||||||||||||||||
| 3559 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3560 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3561 | 16 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 3562 | 16 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 3563 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3564 | |||||||||||||||||||||||||||||||||||||||||||
| 3565 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 3566 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_1_of_rule_From | ||||||||||||||||||||||||||||||||||||||||||
| 3567 | 51 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_alternation_1_of_production_1_of_rule_From: called CC=40 SCAR=40.2
| |||||||||||||||||||||||||||||||||||||||||||
| 3568 | 51 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3569 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3570 | 51 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 3571 | 51 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3572 | 51 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_From"}; | |||||||||||||||||||||||||||||||||||||||||
| 3573 | |||||||||||||||||||||||||||||||||||||||||||
| 3574 | 51 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_From]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3575 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3576 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3577 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3578 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3579 | |||||||||||||||||||||||||||||||||||||||||||
| 3580 | |||||||||||||||||||||||||||||||||||||||||||
| 3581 | 51 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 3582 | |||||||||||||||||||||||||||||||||||||||||||
| 3583 | 51 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 3584 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 3585 | 51 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3586 | 51 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 3587 | 51 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 3588 | 51 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 3589 | 51 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3590 | 51 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3591 | 51 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 3592 | 51 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 3593 | 0 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3594 | 51 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3595 | 51 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 3596 | 51 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 3597 | 51 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 3598 | 51 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 3599 | |||||||||||||||||||||||||||||||||||||||||||
| 3600 | 51 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 3601 | 51 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 3602 | |||||||||||||||||||||||||||||||||||||||||||
| 3603 | |||||||||||||||||||||||||||||||||||||||||||
| 3604 | |||||||||||||||||||||||||||||||||||||||||||
| 3605 | 51 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3606 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3607 | |||||||||||||||||||||||||||||||||||||||||||
| 3608 | 51 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3609 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3610 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3611 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3612 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3613 | 51 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3614 | 51 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3615 | 51 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3616 | 51 | @item = (q{_alternation_1_of_production_1_of_rule_From}); | |||||||||||||||||||||||||||||||||||||||||
| 3617 | 51 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_From}); | |||||||||||||||||||||||||||||||||||||||||
| 3618 | 51 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3619 | |||||||||||||||||||||||||||||||||||||||||||
| 3620 | |||||||||||||||||||||||||||||||||||||||||||
| 3621 | 51 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3622 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3623 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3624 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3625 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3626 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3627 | 51 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3628 | 51 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Segment($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3629 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3630 | |||||||||||||||||||||||||||||||||||||||||||
| 3631 | 31 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Segment]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3632 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3633 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3634 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3635 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3636 | 31 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3637 | 31 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3638 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3639 | 20 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Segment]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3640 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 3641 | |||||||||||||||||||||||||||||||||||||||||||
| 3642 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3643 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3644 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3645 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3646 | 20 | $item{q{Segment}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3647 | 20 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3648 | |||||||||||||||||||||||||||||||||||||||||||
| 3649 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3650 | |||||||||||||||||||||||||||||||||||||||||||
| 3651 | |||||||||||||||||||||||||||||||||||||||||||
| 3652 | 20 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Segment]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3653 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3654 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3655 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3656 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3657 | 20 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3658 | 20 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3659 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3660 | |||||||||||||||||||||||||||||||||||||||||||
| 3661 | |||||||||||||||||||||||||||||||||||||||||||
| 3662 | 51 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3663 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3664 | |||||||||||||||||||||||||||||||||||||||||||
| 3665 | 31 | ▶ | Parse::RecDescent::_trace(q{Trying production: [SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3666 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3667 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3668 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3669 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3670 | 31 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3671 | 31 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3672 | 31 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3673 | 31 | @item = (q{_alternation_1_of_production_1_of_rule_From}); | |||||||||||||||||||||||||||||||||||||||||
| 3674 | 31 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_From}); | |||||||||||||||||||||||||||||||||||||||||
| 3675 | 31 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3676 | |||||||||||||||||||||||||||||||||||||||||||
| 3677 | |||||||||||||||||||||||||||||||||||||||||||
| 3678 | 31 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3679 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3680 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3681 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3682 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3683 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3684 | 31 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3685 | 31 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::SegmentSet($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3686 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3687 | |||||||||||||||||||||||||||||||||||||||||||
| 3688 | 30 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [SegmentSet]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3689 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3690 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3691 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3692 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3693 | 30 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3694 | 30 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3695 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3696 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [SegmentSet]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3697 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 3698 | |||||||||||||||||||||||||||||||||||||||||||
| 3699 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3700 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3701 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3702 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3703 | 1 | $item{q{SegmentSet}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3704 | 1 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3705 | |||||||||||||||||||||||||||||||||||||||||||
| 3706 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3707 | |||||||||||||||||||||||||||||||||||||||||||
| 3708 | |||||||||||||||||||||||||||||||||||||||||||
| 3709 | 1 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [SegmentSet]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3710 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3711 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3712 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3713 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3714 | 1 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3715 | 1 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3716 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3717 | |||||||||||||||||||||||||||||||||||||||||||
| 3718 | |||||||||||||||||||||||||||||||||||||||||||
| 3719 | 51 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3720 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3721 | |||||||||||||||||||||||||||||||||||||||||||
| 3722 | 30 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3723 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3724 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3725 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3726 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3727 | 30 | my $thisprod = $thisrule->{"prods"}[2]; | |||||||||||||||||||||||||||||||||||||||||
| 3728 | 30 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3729 | 30 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3730 | 30 | @item = (q{_alternation_1_of_production_1_of_rule_From}); | |||||||||||||||||||||||||||||||||||||||||
| 3731 | 30 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_From}); | |||||||||||||||||||||||||||||||||||||||||
| 3732 | 30 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3733 | |||||||||||||||||||||||||||||||||||||||||||
| 3734 | |||||||||||||||||||||||||||||||||||||||||||
| 3735 | 30 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3736 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3737 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3738 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3739 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3740 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3741 | 30 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3742 | 30 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Null($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3743 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3744 | |||||||||||||||||||||||||||||||||||||||||||
| 3745 | 24 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Null]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3746 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3747 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3748 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3749 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3750 | 24 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3751 | 24 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3752 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3753 | 6 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Null]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3754 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 3755 | |||||||||||||||||||||||||||||||||||||||||||
| 3756 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3757 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3758 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3759 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3760 | 6 | $item{q{Null}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3761 | 6 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3762 | |||||||||||||||||||||||||||||||||||||||||||
| 3763 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3764 | |||||||||||||||||||||||||||||||||||||||||||
| 3765 | |||||||||||||||||||||||||||||||||||||||||||
| 3766 | 6 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Null]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3767 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3768 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3769 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3770 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3771 | 6 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3772 | 6 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3773 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3774 | |||||||||||||||||||||||||||||||||||||||||||
| 3775 | |||||||||||||||||||||||||||||||||||||||||||
| 3776 | 51 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 3777 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3778 | |||||||||||||||||||||||||||||||||||||||||||
| 3779 | |||||||||||||||||||||||||||||||||||||||||||
| 3780 | 24 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 3781 | 24 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3782 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3783 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3784 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3785 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3786 | 24 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 3787 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3788 | 27 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 3789 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3790 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3791 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3792 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3793 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3794 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 3795 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3796 | 27 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 3797 | 27 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3798 | 27 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3799 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3800 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3801 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 3802 | q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3803 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 3804 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3805 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3806 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3807 | , q{_alternation_1_of_production_1_of_rule_From}, | ||||||||||||||||||||||||||||||||||||||||||
| 3808 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3809 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3810 | 27 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 3811 | 27 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 3812 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3813 | |||||||||||||||||||||||||||||||||||||||||||
| 3814 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 3815 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_1_of_rule_Condition | ||||||||||||||||||||||||||||||||||||||||||
| 3816 | 20 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_alternation_1_of_production_1_of_rule_Condition: called CC=32 SCAR=40.4
| |||||||||||||||||||||||||||||||||||||||||||
| 3817 | 20 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3818 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3819 | 20 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 3820 | 20 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3821 | 20 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_Condition"}; | |||||||||||||||||||||||||||||||||||||||||
| 3822 | |||||||||||||||||||||||||||||||||||||||||||
| 3823 | 20 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_Condition]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3824 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3825 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3826 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3827 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3828 | |||||||||||||||||||||||||||||||||||||||||||
| 3829 | |||||||||||||||||||||||||||||||||||||||||||
| 3830 | 20 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 3831 | |||||||||||||||||||||||||||||||||||||||||||
| 3832 | 20 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 3833 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 3834 | 20 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3835 | 20 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 3836 | 20 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 3837 | 20 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 3838 | 20 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3839 | 20 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 3840 | 20 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 3841 | 20 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 3842 | 0 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3843 | 20 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3844 | 20 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 3845 | 20 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 3846 | 20 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 3847 | 20 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 3848 | |||||||||||||||||||||||||||||||||||||||||||
| 3849 | 20 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 3850 | 20 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 3851 | |||||||||||||||||||||||||||||||||||||||||||
| 3852 | |||||||||||||||||||||||||||||||||||||||||||
| 3853 | |||||||||||||||||||||||||||||||||||||||||||
| 3854 | 20 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3855 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3856 | |||||||||||||||||||||||||||||||||||||||||||
| 3857 | 20 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3858 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3859 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3860 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3861 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3862 | 20 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 3863 | 20 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3864 | 20 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3865 | 20 | @item = (q{_alternation_1_of_production_1_of_rule_Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 3866 | 20 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 3867 | 20 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3868 | |||||||||||||||||||||||||||||||||||||||||||
| 3869 | |||||||||||||||||||||||||||||||||||||||||||
| 3870 | 20 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3871 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3872 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3873 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3874 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3875 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3876 | 20 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3877 | 20 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Segment($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3878 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3879 | |||||||||||||||||||||||||||||||||||||||||||
| 3880 | 15 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Segment]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3881 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3882 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3883 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3884 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3885 | 15 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3886 | 15 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3887 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3888 | 5 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Segment]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3889 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 3890 | |||||||||||||||||||||||||||||||||||||||||||
| 3891 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3892 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3893 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3894 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3895 | 5 | $item{q{Segment}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3896 | 5 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3897 | |||||||||||||||||||||||||||||||||||||||||||
| 3898 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3899 | |||||||||||||||||||||||||||||||||||||||||||
| 3900 | |||||||||||||||||||||||||||||||||||||||||||
| 3901 | 5 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Segment]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3902 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3903 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3904 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3905 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3906 | 5 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3907 | 5 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3908 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3909 | |||||||||||||||||||||||||||||||||||||||||||
| 3910 | |||||||||||||||||||||||||||||||||||||||||||
| 3911 | 20 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 3912 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3913 | |||||||||||||||||||||||||||||||||||||||||||
| 3914 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying production: [SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3915 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3916 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3917 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3918 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3919 | 15 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3920 | 15 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 3921 | 15 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 3922 | 15 | @item = (q{_alternation_1_of_production_1_of_rule_Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 3923 | 15 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_Condition}); | |||||||||||||||||||||||||||||||||||||||||
| 3924 | 15 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 3925 | |||||||||||||||||||||||||||||||||||||||||||
| 3926 | |||||||||||||||||||||||||||||||||||||||||||
| 3927 | 15 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [SegmentSet]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3928 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3929 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3930 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3931 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3932 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 3933 | 15 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 3934 | 15 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::SegmentSet($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.2
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3935 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3936 | |||||||||||||||||||||||||||||||||||||||||||
| 3937 | 15 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [SegmentSet]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3938 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3939 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3940 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3941 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3942 | 15 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 3943 | 15 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3944 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3945 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [SegmentSet]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3946 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 3947 | |||||||||||||||||||||||||||||||||||||||||||
| 3948 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3949 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3950 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3951 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3952 | 0 | $item{q{SegmentSet}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3953 | 0 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 3954 | |||||||||||||||||||||||||||||||||||||||||||
| 3955 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3956 | |||||||||||||||||||||||||||||||||||||||||||
| 3957 | |||||||||||||||||||||||||||||||||||||||||||
| 3958 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [SegmentSet]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3959 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3960 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3961 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3962 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3963 | 0 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 3964 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 3965 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3966 | |||||||||||||||||||||||||||||||||||||||||||
| 3967 | |||||||||||||||||||||||||||||||||||||||||||
| 3968 | 20 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 3969 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3970 | |||||||||||||||||||||||||||||||||||||||||||
| 3971 | |||||||||||||||||||||||||||||||||||||||||||
| 3972 | 15 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 3973 | 15 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3974 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 3975 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3976 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3977 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3978 | 15 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 3979 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3980 | 5 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 3981 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3982 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3983 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3984 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 3985 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 3986 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 3987 | } | ||||||||||||||||||||||||||||||||||||||||||
| 3988 | 5 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 3989 | 5 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3990 | 5 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 3991 | { | ||||||||||||||||||||||||||||||||||||||||||
| 3992 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3993 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 3994 | q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 3995 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 3996 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 3997 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 3998 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 3999 | , q{_alternation_1_of_production_1_of_rule_Condition}, | ||||||||||||||||||||||||||||||||||||||||||
| 4000 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4001 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4002 | 5 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 4003 | 5 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 4004 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4005 | |||||||||||||||||||||||||||||||||||||||||||
| 4006 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 4007 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_1_of_rule_To | ||||||||||||||||||||||||||||||||||||||||||
| 4008 | 40 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_alternation_1_of_production_1_of_rule_To: called CC=32 SCAR=38.1
| |||||||||||||||||||||||||||||||||||||||||||
| 4009 | 40 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 4010 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4011 | 40 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 4012 | 40 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 4013 | 40 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_To"}; | |||||||||||||||||||||||||||||||||||||||||
| 4014 | |||||||||||||||||||||||||||||||||||||||||||
| 4015 | 40 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_To]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4016 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4017 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4018 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4019 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4020 | |||||||||||||||||||||||||||||||||||||||||||
| 4021 | |||||||||||||||||||||||||||||||||||||||||||
| 4022 | 40 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 4023 | |||||||||||||||||||||||||||||||||||||||||||
| 4024 | 40 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 4025 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 4026 | 40 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4027 | 40 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 4028 | 40 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 4029 | 40 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 4030 | 40 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 4031 | 40 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 4032 | 40 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 4033 | 40 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 4034 | 0 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4035 | 40 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4036 | 40 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 4037 | 40 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 4038 | 40 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 4039 | 40 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 4040 | |||||||||||||||||||||||||||||||||||||||||||
| 4041 | 40 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 4042 | 40 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 4043 | |||||||||||||||||||||||||||||||||||||||||||
| 4044 | |||||||||||||||||||||||||||||||||||||||||||
| 4045 | |||||||||||||||||||||||||||||||||||||||||||
| 4046 | 40 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 4047 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4048 | |||||||||||||||||||||||||||||||||||||||||||
| 4049 | 40 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4050 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4051 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4052 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4053 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4054 | 40 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 4055 | 40 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 4056 | 40 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 4057 | 40 | @item = (q{_alternation_1_of_production_1_of_rule_To}); | |||||||||||||||||||||||||||||||||||||||||
| 4058 | 40 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_To}); | |||||||||||||||||||||||||||||||||||||||||
| 4059 | 40 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 4060 | |||||||||||||||||||||||||||||||||||||||||||
| 4061 | |||||||||||||||||||||||||||||||||||||||||||
| 4062 | 40 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Segment]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4063 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4064 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4065 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4066 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4067 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4068 | 40 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 4069 | 40 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Segment($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4070 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4071 | |||||||||||||||||||||||||||||||||||||||||||
| 4072 | 21 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Segment]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4073 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4074 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4075 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4076 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4077 | 21 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 4078 | 21 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4079 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4080 | 19 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Segment]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4081 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 4082 | |||||||||||||||||||||||||||||||||||||||||||
| 4083 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4084 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4085 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4086 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4087 | 19 | $item{q{Segment}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4088 | 19 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4089 | |||||||||||||||||||||||||||||||||||||||||||
| 4090 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4091 | |||||||||||||||||||||||||||||||||||||||||||
| 4092 | |||||||||||||||||||||||||||||||||||||||||||
| 4093 | 19 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Segment]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4094 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4095 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4096 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4097 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4098 | 19 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 4099 | 19 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4100 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4101 | |||||||||||||||||||||||||||||||||||||||||||
| 4102 | |||||||||||||||||||||||||||||||||||||||||||
| 4103 | 40 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$_matched or $commit
MC/DC50%1/2
$_matched or $commit
$_matched
$commit
Truth table66%2/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 4104 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4105 | |||||||||||||||||||||||||||||||||||||||||||
| 4106 | 21 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4107 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4108 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4109 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4110 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4111 | 21 | my $thisprod = $thisrule->{"prods"}[1]; | |||||||||||||||||||||||||||||||||||||||||
| 4112 | 21 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 4113 | 21 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 4114 | 21 | @item = (q{_alternation_1_of_production_1_of_rule_To}); | |||||||||||||||||||||||||||||||||||||||||
| 4115 | 21 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_To}); | |||||||||||||||||||||||||||||||||||||||||
| 4116 | 21 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 4117 | |||||||||||||||||||||||||||||||||||||||||||
| 4118 | |||||||||||||||||||||||||||||||||||||||||||
| 4119 | 21 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4120 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4121 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4122 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4123 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4124 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4125 | 21 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 4126 | 21 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Null($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4127 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4128 | |||||||||||||||||||||||||||||||||||||||||||
| 4129 | 19 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Null]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4130 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4131 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4132 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4133 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4134 | 19 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 4135 | 19 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4136 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4137 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Null]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4138 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 4139 | |||||||||||||||||||||||||||||||||||||||||||
| 4140 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4141 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4142 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4143 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4144 | 2 | $item{q{Null}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4145 | 2 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4146 | |||||||||||||||||||||||||||||||||||||||||||
| 4147 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4148 | |||||||||||||||||||||||||||||||||||||||||||
| 4149 | |||||||||||||||||||||||||||||||||||||||||||
| 4150 | 2 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Null]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4151 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4152 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4153 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4154 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4155 | 2 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 4156 | 2 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4157 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4158 | |||||||||||||||||||||||||||||||||||||||||||
| 4159 | |||||||||||||||||||||||||||||||||||||||||||
| 4160 | 40 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 4161 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4162 | |||||||||||||||||||||||||||||||||||||||||||
| 4163 | |||||||||||||||||||||||||||||||||||||||||||
| 4164 | 19 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 4165 | 19 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4166 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4167 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4168 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4169 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4170 | 19 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 4171 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4172 | 21 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 4173 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4174 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4175 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4176 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4177 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4178 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 4179 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4180 | 21 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 4181 | 21 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4182 | 21 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4183 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4184 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 4185 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 4186 | q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4187 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 4188 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 4189 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 4190 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4191 | , q{_alternation_1_of_production_1_of_rule_To}, | ||||||||||||||||||||||||||||||||||||||||||
| 4192 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4193 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4194 | 21 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 4195 | 21 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 4196 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4197 | |||||||||||||||||||||||||||||||||||||||||||
| 4198 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 4199 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::Rule | ||||||||||||||||||||||||||||||||||||||||||
| 4200 | 24 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
Rule: called CC=41 SCAR=42.3
| |||||||||||||||||||||||||||||||||||||||||||
| 4201 | 24 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 4202 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4203 | 24 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 4204 | 24 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 4205 | 24 | my $thisrule = $thisparser->{"rules"}{"Rule"}; | |||||||||||||||||||||||||||||||||||||||||
| 4206 | |||||||||||||||||||||||||||||||||||||||||||
| 4207 | 24 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [Rule]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4208 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4209 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4210 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4211 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4212 | |||||||||||||||||||||||||||||||||||||||||||
| 4213 | |||||||||||||||||||||||||||||||||||||||||||
| 4214 | 24 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 4215 | |||||||||||||||||||||||||||||||||||||||||||
| 4216 | 24 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 4217 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 4218 | 24 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4219 | 24 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 4220 | 24 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 4221 | 24 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 4222 | 24 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 4223 | 24 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 4224 | 24 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 4225 | 24 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 4226 | 24 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4227 | 24 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4228 | 24 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 4229 | 24 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 4230 | 24 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 4231 | 24 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 4232 | |||||||||||||||||||||||||||||||||||||||||||
| 4233 | 24 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 4234 | 24 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 4235 | |||||||||||||||||||||||||||||||||||||||||||
| 4236 | |||||||||||||||||||||||||||||||||||||||||||
| 4237 | |||||||||||||||||||||||||||||||||||||||||||
| 4238 | 24 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 4239 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4240 | |||||||||||||||||||||||||||||||||||||||||||
| 4241 | 24 | ▶ | Parse::RecDescent::_trace(q{Trying production: [From Arrow To When]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4242 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4243 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4244 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4245 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4246 | 24 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 4247 | 24 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 4248 | 24 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 4249 | 24 | @item = (q{Rule}); | |||||||||||||||||||||||||||||||||||||||||
| 4250 | 24 | %item = (__RULE__ => q{Rule}); | |||||||||||||||||||||||||||||||||||||||||
| 4251 | 24 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 4252 | |||||||||||||||||||||||||||||||||||||||||||
| 4253 | |||||||||||||||||||||||||||||||||||||||||||
| 4254 | 24 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [From]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4255 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4256 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4257 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4258 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4259 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4260 | 24 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 4261 | 24 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::From($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4262 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4263 | |||||||||||||||||||||||||||||||||||||||||||
| 4264 | 2 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [From]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4265 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4266 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4267 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4268 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4269 | 2 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 4270 | 2 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4271 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4272 | 22 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [From]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4273 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 4274 | |||||||||||||||||||||||||||||||||||||||||||
| 4275 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4276 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4277 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4278 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4279 | 22 | $item{q{From}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4280 | 22 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4281 | |||||||||||||||||||||||||||||||||||||||||||
| 4282 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4283 | |||||||||||||||||||||||||||||||||||||||||||
| 4284 | 22 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [Arrow]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4285 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4286 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4287 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4288 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4289 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4290 | 22 | $expectation->is(q{Arrow})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 4291 | 22 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::Arrow($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4292 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4293 | |||||||||||||||||||||||||||||||||||||||||||
| 4294 | 3 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [Arrow]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4295 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4296 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4297 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4298 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4299 | 3 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 4300 | 3 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4301 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4302 | 19 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [Arrow]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4303 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 4304 | |||||||||||||||||||||||||||||||||||||||||||
| 4305 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4306 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4307 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4308 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4309 | 19 | $item{q{Arrow}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4310 | 19 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4311 | |||||||||||||||||||||||||||||||||||||||||||
| 4312 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4313 | |||||||||||||||||||||||||||||||||||||||||||
| 4314 | 19 | ▶ | Parse::RecDescent::_trace(q{Trying subrule: [To]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4315 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4316 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4317 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4318 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4319 | 1 | ▶ | if (1) { no strict qw{refs}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4320 | 19 | $expectation->is(q{To})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 4321 | 19 | ▶ | unless (defined ($_tok = Parse::RecDescent::Lingua::Phonology::RuleParser::To($thisparser,$text,$repeating,$_noactions,sub { \@arg }))) | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4322 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4323 | |||||||||||||||||||||||||||||||||||||||||||
| 4324 | 3 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match subrule: [To]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4325 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4326 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4327 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4328 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4329 | 3 | $expectation->failed(); | |||||||||||||||||||||||||||||||||||||||||
| 4330 | 3 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4331 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4332 | 16 | ▶ | Parse::RecDescent::_trace(q{>>Matched subrule: [To]<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4333 | . $_tok . q{]}, | ||||||||||||||||||||||||||||||||||||||||||
| 4334 | |||||||||||||||||||||||||||||||||||||||||||
| 4335 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4336 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4337 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4338 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4339 | 16 | $item{q{To}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4340 | 16 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4341 | |||||||||||||||||||||||||||||||||||||||||||
| 4342 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4343 | |||||||||||||||||||||||||||||||||||||||||||
| 4344 | 16 | ▶ | Parse::RecDescent::_trace(q{Trying repeated subrule: [When]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4345 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4346 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4347 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4348 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4349 | 16 | $expectation->is(q{When})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 4350 | |||||||||||||||||||||||||||||||||||||||||||
| 4351 | 16 | ▶ | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Lingua::Phonology::RuleParser::When, 0, 1, $_noactions,$expectation,undef))) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4352 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4353 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [When]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4354 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4355 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4356 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4357 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4358 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4359 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4360 | 16 | ▶ | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [When]<< (} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4361 | . @$_tok . q{ times)}, | ||||||||||||||||||||||||||||||||||||||||||
| 4362 | |||||||||||||||||||||||||||||||||||||||||||
| 4363 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4364 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4365 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4366 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4367 | 16 | $item{q{When(?)}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4368 | 16 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4369 | |||||||||||||||||||||||||||||||||||||||||||
| 4370 | |||||||||||||||||||||||||||||||||||||||||||
| 4371 | |||||||||||||||||||||||||||||||||||||||||||
| 4372 | 16 | ▶ | Parse::RecDescent::_trace(q{Trying action}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4373 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4374 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4375 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4376 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4377 | |||||||||||||||||||||||||||||||||||||||||||
| 4378 | |||||||||||||||||||||||||||||||||||||||||||
| 4379 | 16 | ▶ | $_tok = ($_noactions) ? 0 : do { $return = { from => $item[1], to => $item[3], when => $item[4]->[0] }; }; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4380 | 16 | ▶ | unless (defined $_tok) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4381 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4382 | 0 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4383 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4384 | 0 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4385 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4386 | 16 | ▶ | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4387 | . $_tok . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 4388 | Parse::RecDescent::_tracefirst($text)) | ||||||||||||||||||||||||||||||||||||||||||
| 4389 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4390 | 16 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4391 | 16 | $item{__ACTION1__}=$_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4392 | |||||||||||||||||||||||||||||||||||||||||||
| 4393 | |||||||||||||||||||||||||||||||||||||||||||
| 4394 | |||||||||||||||||||||||||||||||||||||||||||
| 4395 | 16 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [From Arrow To When]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4396 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4397 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4398 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4399 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4400 | 16 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 4401 | 16 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4402 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4403 | |||||||||||||||||||||||||||||||||||||||||||
| 4404 | |||||||||||||||||||||||||||||||||||||||||||
| 4405 | 24 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 4406 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4407 | |||||||||||||||||||||||||||||||||||||||||||
| 4408 | |||||||||||||||||||||||||||||||||||||||||||
| 4409 | 8 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 4410 | 8 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4411 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4412 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4413 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4414 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4415 | 8 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 4416 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4417 | 16 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 4418 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4419 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4420 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4421 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4422 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4423 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 4424 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4425 | 16 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 4426 | 16 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4427 | 16 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4428 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4429 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 4430 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 4431 | q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4432 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 4433 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 4434 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 4435 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4436 | , q{Rule}, | ||||||||||||||||||||||||||||||||||||||||||
| 4437 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4438 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4439 | 16 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 4440 | 16 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 4441 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4442 | |||||||||||||||||||||||||||||||||||||||||||
| 4443 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||||||||||||||||||||||||||||||||||||||||||
| 4444 | sub Parse::RecDescent::Lingua::Phonology::RuleParser::From | ||||||||||||||||||||||||||||||||||||||||||
| 4445 | 24 | ▶ | { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
From: called CC=24 SCAR=35.3
| |||||||||||||||||||||||||||||||||||||||||||
| 4446 | 24 | my $thisparser = $_[0]; | |||||||||||||||||||||||||||||||||||||||||
| 4447 | 1 | ▶ | use vars q{$tracelevel}; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4448 | 24 | ▶ | local $tracelevel = ($tracelevel||0)+1; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
MC/DC0%0/1
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel || 0
$Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
Truth table50%1/2
A
A= $Parse::RecDescent::Lingua::Phonology::RuleParser::tracelevel
| |||||||||||||||||||||||||||||||||||||||||||
| 4449 | 24 | $ERRORS = 0; | |||||||||||||||||||||||||||||||||||||||||
| 4450 | 24 | my $thisrule = $thisparser->{"rules"}{"From"}; | |||||||||||||||||||||||||||||||||||||||||
| 4451 | |||||||||||||||||||||||||||||||||||||||||||
| 4452 | 24 | ▶ | Parse::RecDescent::_trace(q{Trying rule: [From]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4453 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4454 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4455 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4456 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4457 | |||||||||||||||||||||||||||||||||||||||||||
| 4458 | |||||||||||||||||||||||||||||||||||||||||||
| 4459 | 24 | my $err_at = @{$thisparser->{errors}}; | |||||||||||||||||||||||||||||||||||||||||
| 4460 | |||||||||||||||||||||||||||||||||||||||||||
| 4461 | 24 | my $score; | |||||||||||||||||||||||||||||||||||||||||
| 4462 | my $score_return; | ||||||||||||||||||||||||||||||||||||||||||
| 4463 | 24 | my $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4464 | 24 | my $return = undef; | |||||||||||||||||||||||||||||||||||||||||
| 4465 | 24 | my $_matched=0; | |||||||||||||||||||||||||||||||||||||||||
| 4466 | 24 | my $commit=0; | |||||||||||||||||||||||||||||||||||||||||
| 4467 | 24 | my @item = (); | |||||||||||||||||||||||||||||||||||||||||
| 4468 | 24 | my %item = (); | |||||||||||||||||||||||||||||||||||||||||
| 4469 | 24 | ▶ | my $repeating = defined($_[2]) && $_[2]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[2] && $_[2]
MC/DC0%0/2
defined $_[2] && $_[2]
defined $_[2]
$_[2]
Truth table33%1/3
A && B
A= defined $_[2]B= $_[2]
| |||||||||||||||||||||||||||||||||||||||||||
| 4470 | 24 | ▶ | my $_noactions = defined($_[3]) && $_[3]; | ||||||||||||||||||||||||||||||||||||||||
|
Condition33%1/3
defined $_[3] && $_[3]
MC/DC0%0/2
defined $_[3] && $_[3]
defined $_[3]
$_[3]
Truth table33%1/3
A && B
A= defined $_[3]B= $_[3]
| |||||||||||||||||||||||||||||||||||||||||||
| 4471 | 24 | ▶ | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4472 | 24 | ▶ | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4473 | 24 | my $text; | |||||||||||||||||||||||||||||||||||||||||
| 4474 | 24 | my $lastsep=""; | |||||||||||||||||||||||||||||||||||||||||
| 4475 | 24 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | |||||||||||||||||||||||||||||||||||||||||
| 4476 | 24 | $expectation->at($_[1]); | |||||||||||||||||||||||||||||||||||||||||
| 4477 | |||||||||||||||||||||||||||||||||||||||||||
| 4478 | 24 | my $thisline; | |||||||||||||||||||||||||||||||||||||||||
| 4479 | 24 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | |||||||||||||||||||||||||||||||||||||||||
| 4480 | |||||||||||||||||||||||||||||||||||||||||||
| 4481 | |||||||||||||||||||||||||||||||||||||||||||
| 4482 | |||||||||||||||||||||||||||||||||||||||||||
| 4483 | 24 | ▶ | while (!$_matched && !$commit) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$_matched or $commit
MC/DC0%0/2
$_matched or $commit
$_matched
$commit
Truth table33%1/3
A or B
A= $_matchedB= $commit
| |||||||||||||||||||||||||||||||||||||||||||
| 4484 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4485 | |||||||||||||||||||||||||||||||||||||||||||
| 4486 | 24 | ▶ | Parse::RecDescent::_trace(q{Trying production: [Segment, or SegmentSet, or Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4487 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4488 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4489 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4490 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4491 | 24 | my $thisprod = $thisrule->{"prods"}[0]; | |||||||||||||||||||||||||||||||||||||||||
| 4492 | 24 | $text = $_[1]; | |||||||||||||||||||||||||||||||||||||||||
| 4493 | 24 | my $_savetext; | |||||||||||||||||||||||||||||||||||||||||
| 4494 | 24 | @item = (q{From}); | |||||||||||||||||||||||||||||||||||||||||
| 4495 | 24 | %item = (__RULE__ => q{From}); | |||||||||||||||||||||||||||||||||||||||||
| 4496 | 24 | my $repcount = 0; | |||||||||||||||||||||||||||||||||||||||||
| 4497 | |||||||||||||||||||||||||||||||||||||||||||
| 4498 | |||||||||||||||||||||||||||||||||||||||||||
| 4499 | 24 | ▶ | Parse::RecDescent::_trace(q{Trying repeated subrule: [Segment, or SegmentSet, or Null]}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4500 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4501 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4502 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4503 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4504 | 24 | $expectation->is(q{})->at($text); | |||||||||||||||||||||||||||||||||||||||||
| 4505 | |||||||||||||||||||||||||||||||||||||||||||
| 4506 | 24 | ▶ | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::Lingua::Phonology::RuleParser::_alternation_1_of_production_1_of_rule_From, 1, 100000000, $_noactions,$expectation,undef))) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4507 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4508 | 2 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [Segment, or SegmentSet, or Null]>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4509 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4510 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4511 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4512 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4513 | 2 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4514 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4515 | 22 | ▶ | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [_alternation_1_of_production_1_of_rule_From]<< (} | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4516 | . @$_tok . q{ times)}, | ||||||||||||||||||||||||||||||||||||||||||
| 4517 | |||||||||||||||||||||||||||||||||||||||||||
| 4518 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4519 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4520 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4521 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4522 | 22 | $item{q{_alternation_1_of_production_1_of_rule_From(s)}} = $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4523 | 22 | push @item, $_tok; | |||||||||||||||||||||||||||||||||||||||||
| 4524 | |||||||||||||||||||||||||||||||||||||||||||
| 4525 | |||||||||||||||||||||||||||||||||||||||||||
| 4526 | |||||||||||||||||||||||||||||||||||||||||||
| 4527 | |||||||||||||||||||||||||||||||||||||||||||
| 4528 | 22 | ▶ | Parse::RecDescent::_trace(q{>>Matched production: [Segment, or SegmentSet, or Null]<<}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4529 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4530 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4531 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4532 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4533 | 22 | $_matched = 1; | |||||||||||||||||||||||||||||||||||||||||
| 4534 | 22 | last; | |||||||||||||||||||||||||||||||||||||||||
| 4535 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4536 | |||||||||||||||||||||||||||||||||||||||||||
| 4537 | |||||||||||||||||||||||||||||||||||||||||||
| 4538 | 24 | ▶ | unless ( $_matched || defined($return) || defined($score) ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%4/6
$_matched or defined $return or defined $score
$_matched or defined $return
MC/DC33%1/3
$_matched or defined $return or defined $score
$_matched
defined $return
defined $score
Truth table50%2/4
A or B or C
A= $_matchedB= defined $returnC= defined $score
| |||||||||||||||||||||||||||||||||||||||||||
| 4539 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4540 | |||||||||||||||||||||||||||||||||||||||||||
| 4541 | |||||||||||||||||||||||||||||||||||||||||||
| 4542 | 2 | $_[1] = $text; # NOT SURE THIS IS NEEDED | |||||||||||||||||||||||||||||||||||||||||
| 4543 | 2 | ▶ | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4544 | Parse::RecDescent::_tracefirst($_[1]), | ||||||||||||||||||||||||||||||||||||||||||
| 4545 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4546 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4547 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4548 | 2 | return undef; | |||||||||||||||||||||||||||||||||||||||||
| 4549 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4550 | 22 | ▶ | if (!defined($return) && defined($score)) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
not defined $return and defined $score
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
| |||||||||||||||||||||||||||||||||||||||||||
| 4551 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4552 | 0 | ▶ | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4553 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4554 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4555 | if defined $::RD_TRACE; | ||||||||||||||||||||||||||||||||||||||||||
| 4556 | 0 | $return = $score_return; | |||||||||||||||||||||||||||||||||||||||||
| 4557 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4558 | 22 | splice @{$thisparser->{errors}}, $err_at; | |||||||||||||||||||||||||||||||||||||||||
| 4559 | 22 | ▶ | $return = $item[$#item] unless defined $return; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4560 | 22 | ▶ | if (defined $::RD_TRACE) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 4561 | { | ||||||||||||||||||||||||||||||||||||||||||
| 4562 | 0 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | |||||||||||||||||||||||||||||||||||||||||
| 4563 | $return . q{])}, "", | ||||||||||||||||||||||||||||||||||||||||||
| 4564 | q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4565 | $tracelevel); | ||||||||||||||||||||||||||||||||||||||||||
| 4566 | 0 | Parse::RecDescent::_trace(q{(consumed: [} . | |||||||||||||||||||||||||||||||||||||||||
| 4567 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||||||||||||||||||||||||||||||||||||||||||
| 4568 | Parse::RecDescent::_tracefirst($text), | ||||||||||||||||||||||||||||||||||||||||||
| 4569 | , q{From}, | ||||||||||||||||||||||||||||||||||||||||||
| 4570 | $tracelevel) | ||||||||||||||||||||||||||||||||||||||||||
| 4571 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4572 | 22 | $_[1] = $text; | |||||||||||||||||||||||||||||||||||||||||
| 4573 | 22 | return $return; | |||||||||||||||||||||||||||||||||||||||||
| 4574 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4575 | } | ||||||||||||||||||||||||||||||||||||||||||
| 4576 | 1 | ▶ | package Lingua::Phonology::RuleParser; sub new { my $self = bless( { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 4577 | '_AUTOTREE' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4578 | 'localvars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4579 | 'startcode' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4580 | '_check' => { | ||||||||||||||||||||||||||||||||||||||||||
| 4581 | 'thisoffset' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4582 | 'itempos' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4583 | 'prevoffset' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4584 | 'prevline' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4585 | 'prevcolumn' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4586 | 'thiscolumn' => '' | ||||||||||||||||||||||||||||||||||||||||||
| 4587 | }, | ||||||||||||||||||||||||||||||||||||||||||
| 4588 | 'namespace' => 'Parse::RecDescent::Lingua::Phonology::RuleParser', | ||||||||||||||||||||||||||||||||||||||||||
| 4589 | '_AUTOACTION' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4590 | 'rules' => { | ||||||||||||||||||||||||||||||||||||||||||
| 4591 | '_alternation_2_of_production_1_of_rule_Condition' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4592 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4593 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4594 | 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 4595 | 'SegmentSet' | ||||||||||||||||||||||||||||||||||||||||||
| 4596 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4597 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4598 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4599 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4600 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 4601 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4602 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4603 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4604 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4605 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4606 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4607 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4608 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4609 | 'subrule' => 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 4610 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4611 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4612 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4613 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4614 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 4615 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4616 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4617 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 4618 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4619 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4620 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 4621 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4622 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4623 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4624 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4625 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4626 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4627 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4628 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4629 | 'subrule' => 'SegmentSet', | ||||||||||||||||||||||||||||||||||||||||||
| 4630 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4631 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4632 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4633 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4634 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 4635 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4636 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4637 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 4638 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4639 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4640 | 'name' => '_alternation_2_of_production_1_of_rule_Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4641 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4642 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4643 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 4644 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4645 | 'Condition' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4646 | 'impcount' => 2, | ||||||||||||||||||||||||||||||||||||||||||
| 4647 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4648 | 'Boundary', | ||||||||||||||||||||||||||||||||||||||||||
| 4649 | '_alternation_1_of_production_1_of_rule_Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4650 | '_alternation_2_of_production_1_of_rule_Condition' | ||||||||||||||||||||||||||||||||||||||||||
| 4651 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4652 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4653 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4654 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4655 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 4656 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4657 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4658 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4659 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4660 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4661 | 'actcount' => 3, | ||||||||||||||||||||||||||||||||||||||||||
| 4662 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4663 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4664 | 'subrule' => 'Boundary', | ||||||||||||||||||||||||||||||||||||||||||
| 4665 | 'expected' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4666 | 'min' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4667 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4668 | 'max' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4669 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4670 | 'repspec' => '?', | ||||||||||||||||||||||||||||||||||||||||||
| 4671 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4672 | 'line' => 34 | ||||||||||||||||||||||||||||||||||||||||||
| 4673 | }, 'Parse::RecDescent::Repetition' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4674 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4675 | 'subrule' => '_alternation_1_of_production_1_of_rule_Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4676 | 'expected' => 'Segment, or SegmentSet', | ||||||||||||||||||||||||||||||||||||||||||
| 4677 | 'min' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4678 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4679 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||||||
| 4680 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4681 | 'repspec' => 's?', | ||||||||||||||||||||||||||||||||||||||||||
| 4682 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4683 | 'line' => 35 | ||||||||||||||||||||||||||||||||||||||||||
| 4684 | }, 'Parse::RecDescent::Repetition' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4685 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4686 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4687 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4688 | 'line' => 36, | ||||||||||||||||||||||||||||||||||||||||||
| 4689 | 'code' => '{ push @{$item[-2]}, @{$item[-1]}; }' | ||||||||||||||||||||||||||||||||||||||||||
| 4690 | }, 'Parse::RecDescent::Action' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4691 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4692 | 'pattern' => '_', | ||||||||||||||||||||||||||||||||||||||||||
| 4693 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4694 | 'description' => '\'_\'', | ||||||||||||||||||||||||||||||||||||||||||
| 4695 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4696 | 'line' => 37 | ||||||||||||||||||||||||||||||||||||||||||
| 4697 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4698 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4699 | 'subrule' => '_alternation_2_of_production_1_of_rule_Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4700 | 'expected' => 'Segment, or SegmentSet', | ||||||||||||||||||||||||||||||||||||||||||
| 4701 | 'min' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4702 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4703 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||||||
| 4704 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4705 | 'repspec' => 's?', | ||||||||||||||||||||||||||||||||||||||||||
| 4706 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4707 | 'line' => 38 | ||||||||||||||||||||||||||||||||||||||||||
| 4708 | }, 'Parse::RecDescent::Repetition' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4709 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4710 | 'subrule' => 'Boundary', | ||||||||||||||||||||||||||||||||||||||||||
| 4711 | 'expected' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4712 | 'min' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4713 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4714 | 'max' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4715 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4716 | 'repspec' => '?', | ||||||||||||||||||||||||||||||||||||||||||
| 4717 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4718 | 'line' => 39 | ||||||||||||||||||||||||||||||||||||||||||
| 4719 | }, 'Parse::RecDescent::Repetition' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4720 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4721 | 'hashname' => '__ACTION2__', | ||||||||||||||||||||||||||||||||||||||||||
| 4722 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4723 | 'line' => 40, | ||||||||||||||||||||||||||||||||||||||||||
| 4724 | 'code' => '{ push @{$item[-2]}, @{$item[-1]}; }' | ||||||||||||||||||||||||||||||||||||||||||
| 4725 | }, 'Parse::RecDescent::Action' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4726 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4727 | 'hashname' => '__ACTION3__', | ||||||||||||||||||||||||||||||||||||||||||
| 4728 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4729 | 'line' => 41, | ||||||||||||||||||||||||||||||||||||||||||
| 4730 | 'code' => '{ $return = [ @item[1,5] ] }' | ||||||||||||||||||||||||||||||||||||||||||
| 4731 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4732 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4733 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 4734 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4735 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4736 | 'name' => 'Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4737 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4738 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4739 | 'line' => 33 | ||||||||||||||||||||||||||||||||||||||||||
| 4740 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4741 | 'Text' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4742 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4743 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||||||
| 4744 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4745 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4746 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4747 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 4748 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4749 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4750 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4751 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4752 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4753 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4754 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4755 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4756 | 'description' => '/\\\\w+/', | ||||||||||||||||||||||||||||||||||||||||||
| 4757 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 4758 | 'pattern' => '\\w+', | ||||||||||||||||||||||||||||||||||||||||||
| 4759 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4760 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4761 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 4762 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4763 | 'line' => 63 | ||||||||||||||||||||||||||||||||||||||||||
| 4764 | }, 'Parse::RecDescent::Token' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4765 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4766 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 4767 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4768 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4769 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 4770 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4771 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4772 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4773 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4774 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4775 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4776 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4777 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4778 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4779 | 'name' => '<perl_quotelike>', | ||||||||||||||||||||||||||||||||||||||||||
| 4780 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4781 | 'line' => 64, | ||||||||||||||||||||||||||||||||||||||||||
| 4782 | 'code' => 'my ($match,@res); | ||||||||||||||||||||||||||||||||||||||||||
| 4783 | ($match,$text,undef,@res) = | ||||||||||||||||||||||||||||||||||||||||||
| 4784 | Text::Balanced::extract_quotelike($text,$skip); | ||||||||||||||||||||||||||||||||||||||||||
| 4785 | $match ? \\@res : undef; | ||||||||||||||||||||||||||||||||||||||||||
| 4786 | ' | ||||||||||||||||||||||||||||||||||||||||||
| 4787 | }, 'Parse::RecDescent::Directive' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4788 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4789 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4790 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4791 | 'line' => 64, | ||||||||||||||||||||||||||||||||||||||||||
| 4792 | 'code' => '{ $item[1]->[2] }' | ||||||||||||||||||||||||||||||||||||||||||
| 4793 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4794 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4795 | 'line' => 64 | ||||||||||||||||||||||||||||||||||||||||||
| 4796 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4797 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4798 | 'name' => 'Text', | ||||||||||||||||||||||||||||||||||||||||||
| 4799 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4800 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4801 | 'line' => 62 | ||||||||||||||||||||||||||||||||||||||||||
| 4802 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4803 | 'When' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4804 | 'impcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4805 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4806 | '_alternation_1_of_production_1_of_rule_When', | ||||||||||||||||||||||||||||||||||||||||||
| 4807 | 'Condition_or_Set' | ||||||||||||||||||||||||||||||||||||||||||
| 4808 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4809 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4810 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4811 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4812 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 4813 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4814 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4815 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4816 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4817 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4818 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4819 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4820 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4821 | 'subrule' => '_alternation_1_of_production_1_of_rule_When', | ||||||||||||||||||||||||||||||||||||||||||
| 4822 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4823 | 'implicit' => '\'/\', or \':\'', | ||||||||||||||||||||||||||||||||||||||||||
| 4824 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4825 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4826 | 'line' => 25 | ||||||||||||||||||||||||||||||||||||||||||
| 4827 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4828 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4829 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4830 | 'name' => '<commit>', | ||||||||||||||||||||||||||||||||||||||||||
| 4831 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4832 | 'line' => 25, | ||||||||||||||||||||||||||||||||||||||||||
| 4833 | 'code' => '$commit = 1' | ||||||||||||||||||||||||||||||||||||||||||
| 4834 | }, 'Parse::RecDescent::Directive' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4835 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4836 | 'subrule' => 'Condition_or_Set', | ||||||||||||||||||||||||||||||||||||||||||
| 4837 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4838 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4839 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4840 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4841 | 'line' => 25 | ||||||||||||||||||||||||||||||||||||||||||
| 4842 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4843 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4844 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 4845 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4846 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4847 | 'name' => 'When', | ||||||||||||||||||||||||||||||||||||||||||
| 4848 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4849 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4850 | 'line' => 25 | ||||||||||||||||||||||||||||||||||||||||||
| 4851 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4852 | '_alternation_1_of_production_1_of_rule_When' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4853 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4854 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||||||
| 4855 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4856 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4857 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4858 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 4859 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4860 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4861 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4862 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4863 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4864 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4865 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4866 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4867 | 'pattern' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 4868 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4869 | 'description' => '\'/\'', | ||||||||||||||||||||||||||||||||||||||||||
| 4870 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4871 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 4872 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4873 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4874 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 4875 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4876 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4877 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 4878 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4879 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4880 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4881 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4882 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4883 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4884 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4885 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4886 | 'pattern' => ':', | ||||||||||||||||||||||||||||||||||||||||||
| 4887 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4888 | 'description' => '\':\'', | ||||||||||||||||||||||||||||||||||||||||||
| 4889 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4890 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 4891 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4892 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4893 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 4894 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4895 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4896 | 'name' => '_alternation_1_of_production_1_of_rule_When', | ||||||||||||||||||||||||||||||||||||||||||
| 4897 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4898 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4899 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 4900 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4901 | 'ConditionSet' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4902 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4903 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4904 | 'Condition' | ||||||||||||||||||||||||||||||||||||||||||
| 4905 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4906 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4907 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4908 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4909 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 4910 | 'strcount' => 3, | ||||||||||||||||||||||||||||||||||||||||||
| 4911 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4912 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4913 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4914 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4915 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4916 | 'op' => [], | ||||||||||||||||||||||||||||||||||||||||||
| 4917 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4918 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4919 | 'pattern' => '(', | ||||||||||||||||||||||||||||||||||||||||||
| 4920 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4921 | 'description' => '\'(\'', | ||||||||||||||||||||||||||||||||||||||||||
| 4922 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4923 | 'line' => 30 | ||||||||||||||||||||||||||||||||||||||||||
| 4924 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4925 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4926 | 'expected' => '<leftop: Condition \'|\' Condition>', | ||||||||||||||||||||||||||||||||||||||||||
| 4927 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4928 | 'name' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4929 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||||||
| 4930 | 'leftarg' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4931 | 'subrule' => 'Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4932 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4933 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4934 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4935 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4936 | 'line' => 30 | ||||||||||||||||||||||||||||||||||||||||||
| 4937 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4938 | 'rightarg' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4939 | 'subrule' => 'Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4940 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4941 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4942 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4943 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4944 | 'line' => 30 | ||||||||||||||||||||||||||||||||||||||||||
| 4945 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4946 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4947 | 'type' => 'leftop', | ||||||||||||||||||||||||||||||||||||||||||
| 4948 | 'op' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4949 | 'pattern' => '|', | ||||||||||||||||||||||||||||||||||||||||||
| 4950 | 'hashname' => '__STRING2__', | ||||||||||||||||||||||||||||||||||||||||||
| 4951 | 'description' => '\'|\'', | ||||||||||||||||||||||||||||||||||||||||||
| 4952 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4953 | 'line' => 30 | ||||||||||||||||||||||||||||||||||||||||||
| 4954 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4955 | }, 'Parse::RecDescent::Operator' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4956 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4957 | 'pattern' => ')', | ||||||||||||||||||||||||||||||||||||||||||
| 4958 | 'hashname' => '__STRING3__', | ||||||||||||||||||||||||||||||||||||||||||
| 4959 | 'description' => '\')\'', | ||||||||||||||||||||||||||||||||||||||||||
| 4960 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4961 | 'line' => 30 | ||||||||||||||||||||||||||||||||||||||||||
| 4962 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4963 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4964 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 4965 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4966 | 'line' => 31, | ||||||||||||||||||||||||||||||||||||||||||
| 4967 | 'code' => '{ $item[2] }' | ||||||||||||||||||||||||||||||||||||||||||
| 4968 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4969 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4970 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 4971 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 4972 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4973 | 'name' => 'ConditionSet', | ||||||||||||||||||||||||||||||||||||||||||
| 4974 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 4975 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4976 | 'line' => 29 | ||||||||||||||||||||||||||||||||||||||||||
| 4977 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 4978 | 'Condition_or_Set' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4979 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4980 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4981 | 'Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4982 | 'ConditionSet' | ||||||||||||||||||||||||||||||||||||||||||
| 4983 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 4984 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4985 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4986 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4987 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 4988 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4989 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4990 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4991 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4992 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4993 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 4994 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 4995 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 4996 | 'subrule' => 'Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 4997 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 4998 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 4999 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5000 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5001 | 'line' => 27 | ||||||||||||||||||||||||||||||||||||||||||
| 5002 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5003 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5004 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5005 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5006 | 'line' => 27, | ||||||||||||||||||||||||||||||||||||||||||
| 5007 | 'code' => '{ $return = [ $item[1] ] }' | ||||||||||||||||||||||||||||||||||||||||||
| 5008 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5009 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5010 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5011 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5012 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5013 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 5014 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5015 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5016 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5017 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5018 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5019 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5020 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5021 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5022 | 'subrule' => 'ConditionSet', | ||||||||||||||||||||||||||||||||||||||||||
| 5023 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5024 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5025 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5026 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5027 | 'line' => 27 | ||||||||||||||||||||||||||||||||||||||||||
| 5028 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5029 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5030 | 'line' => 27 | ||||||||||||||||||||||||||||||||||||||||||
| 5031 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5032 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5033 | 'name' => 'Condition_or_Set', | ||||||||||||||||||||||||||||||||||||||||||
| 5034 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5035 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5036 | 'line' => 27 | ||||||||||||||||||||||||||||||||||||||||||
| 5037 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5038 | 'Feature' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5039 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5040 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5041 | 'Text' | ||||||||||||||||||||||||||||||||||||||||||
| 5042 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5043 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5044 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5045 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5046 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5047 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5048 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5049 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5050 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5051 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5052 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5053 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5054 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5055 | 'subrule' => 'Text', | ||||||||||||||||||||||||||||||||||||||||||
| 5056 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5057 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5058 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5059 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5060 | 'line' => 58 | ||||||||||||||||||||||||||||||||||||||||||
| 5061 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5062 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5063 | 'pattern' => '=', | ||||||||||||||||||||||||||||||||||||||||||
| 5064 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5065 | 'description' => '\'=\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5066 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5067 | 'line' => 58 | ||||||||||||||||||||||||||||||||||||||||||
| 5068 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5069 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5070 | 'subrule' => 'Text', | ||||||||||||||||||||||||||||||||||||||||||
| 5071 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5072 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5073 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5074 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5075 | 'line' => 58 | ||||||||||||||||||||||||||||||||||||||||||
| 5076 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5077 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5078 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5079 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5080 | 'line' => 58, | ||||||||||||||||||||||||||||||||||||||||||
| 5081 | 'code' => '{ $return = { $item[1] => $item[3] }; }' | ||||||||||||||||||||||||||||||||||||||||||
| 5082 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5083 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5084 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5085 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5086 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5087 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 5088 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5089 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5090 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5091 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5092 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5093 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5094 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5095 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5096 | 'description' => '/[*+-]/', | ||||||||||||||||||||||||||||||||||||||||||
| 5097 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 5098 | 'pattern' => '[*+-]', | ||||||||||||||||||||||||||||||||||||||||||
| 5099 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5100 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5101 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 5102 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5103 | 'line' => 59 | ||||||||||||||||||||||||||||||||||||||||||
| 5104 | }, 'Parse::RecDescent::Token' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5105 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5106 | 'subrule' => 'Text', | ||||||||||||||||||||||||||||||||||||||||||
| 5107 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5108 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5109 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5110 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5111 | 'line' => 59 | ||||||||||||||||||||||||||||||||||||||||||
| 5112 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5113 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5114 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5115 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5116 | 'line' => 59, | ||||||||||||||||||||||||||||||||||||||||||
| 5117 | 'code' => '{ $return = { $item[2] => $trans{$item[1]} }; }' | ||||||||||||||||||||||||||||||||||||||||||
| 5118 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5119 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5120 | 'line' => 59 | ||||||||||||||||||||||||||||||||||||||||||
| 5121 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5122 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5123 | 'number' => '2', | ||||||||||||||||||||||||||||||||||||||||||
| 5124 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5125 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5126 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5127 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5128 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5129 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5130 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5131 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5132 | 'subrule' => 'Text', | ||||||||||||||||||||||||||||||||||||||||||
| 5133 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5134 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5135 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5136 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5137 | 'line' => 60 | ||||||||||||||||||||||||||||||||||||||||||
| 5138 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5139 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5140 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5141 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5142 | 'line' => 60, | ||||||||||||||||||||||||||||||||||||||||||
| 5143 | 'code' => '{ $return = { $item[1] => \'__TRUE\' }; }' | ||||||||||||||||||||||||||||||||||||||||||
| 5144 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5145 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5146 | 'line' => 60 | ||||||||||||||||||||||||||||||||||||||||||
| 5147 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5148 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5149 | 'name' => 'Feature', | ||||||||||||||||||||||||||||||||||||||||||
| 5150 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5151 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5152 | 'line' => 57 | ||||||||||||||||||||||||||||||||||||||||||
| 5153 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5154 | '_alternation_1_of_production_2_of_rule_Segment' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5155 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5156 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5157 | 'Text' | ||||||||||||||||||||||||||||||||||||||||||
| 5158 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5159 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5160 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5161 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5162 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5163 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5164 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5165 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5166 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5167 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5168 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5169 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5170 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5171 | 'subrule' => 'Text', | ||||||||||||||||||||||||||||||||||||||||||
| 5172 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5173 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5174 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5175 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5176 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5177 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5178 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5179 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5180 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5181 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5182 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 5183 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5184 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5185 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5186 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5187 | 'patcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5188 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5189 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5190 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5191 | 'description' => '/[^\\\\/]+/', | ||||||||||||||||||||||||||||||||||||||||||
| 5192 | 'rdelim' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 5193 | 'pattern' => '[^\\/]+', | ||||||||||||||||||||||||||||||||||||||||||
| 5194 | 'hashname' => '__PATTERN1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5195 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5196 | 'ldelim' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 5197 | 'mod' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5198 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5199 | }, 'Parse::RecDescent::Token' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5200 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5201 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5202 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5203 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5204 | 'name' => '_alternation_1_of_production_2_of_rule_Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5205 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5206 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5207 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5208 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5209 | 'Segment' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5210 | 'impcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5211 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5212 | 'Feature', | ||||||||||||||||||||||||||||||||||||||||||
| 5213 | '_alternation_1_of_production_2_of_rule_Segment' | ||||||||||||||||||||||||||||||||||||||||||
| 5214 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5215 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5216 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5217 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5218 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5219 | 'strcount' => 2, | ||||||||||||||||||||||||||||||||||||||||||
| 5220 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5221 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5222 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5223 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5224 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5225 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5226 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5227 | 'pattern' => '[', | ||||||||||||||||||||||||||||||||||||||||||
| 5228 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5229 | 'description' => '\'[\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5230 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5231 | 'line' => 51 | ||||||||||||||||||||||||||||||||||||||||||
| 5232 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5233 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5234 | 'subrule' => 'Feature', | ||||||||||||||||||||||||||||||||||||||||||
| 5235 | 'expected' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5236 | 'min' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5237 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5238 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||||||
| 5239 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5240 | 'repspec' => 's?', | ||||||||||||||||||||||||||||||||||||||||||
| 5241 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5242 | 'line' => 51 | ||||||||||||||||||||||||||||||||||||||||||
| 5243 | }, 'Parse::RecDescent::Repetition' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5244 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5245 | 'pattern' => ']', | ||||||||||||||||||||||||||||||||||||||||||
| 5246 | 'hashname' => '__STRING2__', | ||||||||||||||||||||||||||||||||||||||||||
| 5247 | 'description' => '\']\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5248 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5249 | 'line' => 51 | ||||||||||||||||||||||||||||||||||||||||||
| 5250 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5251 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5252 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5253 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5254 | 'line' => 51, | ||||||||||||||||||||||||||||||||||||||||||
| 5255 | 'code' => '{ hash_merge(@{$item[2]}) }' | ||||||||||||||||||||||||||||||||||||||||||
| 5256 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5257 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5258 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5259 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5260 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5261 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 5262 | 'strcount' => 2, | ||||||||||||||||||||||||||||||||||||||||||
| 5263 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5264 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5265 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5266 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5267 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5268 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5269 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5270 | 'pattern' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 5271 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5272 | 'description' => '\'/\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5273 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5274 | 'line' => 52 | ||||||||||||||||||||||||||||||||||||||||||
| 5275 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5276 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5277 | 'subrule' => '_alternation_1_of_production_2_of_rule_Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5278 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5279 | 'implicit' => 'Text, or /[^\\\\/]+/', | ||||||||||||||||||||||||||||||||||||||||||
| 5280 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5281 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5282 | 'line' => 52 | ||||||||||||||||||||||||||||||||||||||||||
| 5283 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5284 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5285 | 'pattern' => '/', | ||||||||||||||||||||||||||||||||||||||||||
| 5286 | 'hashname' => '__STRING2__', | ||||||||||||||||||||||||||||||||||||||||||
| 5287 | 'description' => '\'/\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5288 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5289 | 'line' => 52 | ||||||||||||||||||||||||||||||||||||||||||
| 5290 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5291 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5292 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5293 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5294 | 'line' => 52, | ||||||||||||||||||||||||||||||||||||||||||
| 5295 | 'code' => '{ $item[2] }' | ||||||||||||||||||||||||||||||||||||||||||
| 5296 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5297 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5298 | 'line' => 52 | ||||||||||||||||||||||||||||||||||||||||||
| 5299 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5300 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5301 | 'name' => 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5302 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5303 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5304 | 'line' => 50 | ||||||||||||||||||||||||||||||||||||||||||
| 5305 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5306 | 'Boundary' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5307 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5308 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||||||
| 5309 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5310 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5311 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5312 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5313 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5314 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5315 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5316 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5317 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5318 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5319 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5320 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5321 | 'pattern' => '$', | ||||||||||||||||||||||||||||||||||||||||||
| 5322 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5323 | 'description' => '\'$\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5324 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5325 | 'line' => 44 | ||||||||||||||||||||||||||||||||||||||||||
| 5326 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5327 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5328 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5329 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5330 | 'line' => 44, | ||||||||||||||||||||||||||||||||||||||||||
| 5331 | 'code' => '{ $return = \'__BOUNDARY\' }' | ||||||||||||||||||||||||||||||||||||||||||
| 5332 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5333 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5334 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5335 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5336 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5337 | 'name' => 'Boundary', | ||||||||||||||||||||||||||||||||||||||||||
| 5338 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5339 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5340 | 'line' => 43 | ||||||||||||||||||||||||||||||||||||||||||
| 5341 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5342 | 'SegmentSet' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5343 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5344 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5345 | 'Segment' | ||||||||||||||||||||||||||||||||||||||||||
| 5346 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5347 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5348 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5349 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5350 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5351 | 'strcount' => 3, | ||||||||||||||||||||||||||||||||||||||||||
| 5352 | 'dircount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5353 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5354 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5355 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5356 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5357 | 'op' => [], | ||||||||||||||||||||||||||||||||||||||||||
| 5358 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5359 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5360 | 'pattern' => '(', | ||||||||||||||||||||||||||||||||||||||||||
| 5361 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5362 | 'description' => '\'(\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5363 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5364 | 'line' => 47 | ||||||||||||||||||||||||||||||||||||||||||
| 5365 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5366 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5367 | 'expected' => '<leftop: Segment \'|\' Segment>', | ||||||||||||||||||||||||||||||||||||||||||
| 5368 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5369 | 'name' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5370 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||||||
| 5371 | 'leftarg' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5372 | 'subrule' => 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5373 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5374 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5375 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5376 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5377 | 'line' => 47 | ||||||||||||||||||||||||||||||||||||||||||
| 5378 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5379 | 'rightarg' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5380 | 'subrule' => 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5381 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5382 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5383 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5384 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5385 | 'line' => 47 | ||||||||||||||||||||||||||||||||||||||||||
| 5386 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5387 | 'hashname' => '__DIRECTIVE1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5388 | 'type' => 'leftop', | ||||||||||||||||||||||||||||||||||||||||||
| 5389 | 'op' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5390 | 'pattern' => '|', | ||||||||||||||||||||||||||||||||||||||||||
| 5391 | 'hashname' => '__STRING2__', | ||||||||||||||||||||||||||||||||||||||||||
| 5392 | 'description' => '\'|\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5393 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5394 | 'line' => 47 | ||||||||||||||||||||||||||||||||||||||||||
| 5395 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5396 | }, 'Parse::RecDescent::Operator' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5397 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5398 | 'pattern' => ')', | ||||||||||||||||||||||||||||||||||||||||||
| 5399 | 'hashname' => '__STRING3__', | ||||||||||||||||||||||||||||||||||||||||||
| 5400 | 'description' => '\')\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5401 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5402 | 'line' => 47 | ||||||||||||||||||||||||||||||||||||||||||
| 5403 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5404 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5405 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5406 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5407 | 'line' => 48, | ||||||||||||||||||||||||||||||||||||||||||
| 5408 | 'code' => '{ $item[2] }' | ||||||||||||||||||||||||||||||||||||||||||
| 5409 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5410 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5411 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5412 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5413 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5414 | 'name' => 'SegmentSet', | ||||||||||||||||||||||||||||||||||||||||||
| 5415 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5416 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5417 | 'line' => 46 | ||||||||||||||||||||||||||||||||||||||||||
| 5418 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5419 | 'Arrow' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5420 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5421 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||||||
| 5422 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5423 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5424 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5425 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5426 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5427 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5428 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5429 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5430 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5431 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5432 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5433 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5434 | 'pattern' => '>', | ||||||||||||||||||||||||||||||||||||||||||
| 5435 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5436 | 'description' => '\'>\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5437 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5438 | 'line' => 21 | ||||||||||||||||||||||||||||||||||||||||||
| 5439 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5440 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5441 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5442 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5443 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5444 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 5445 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5446 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5447 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5448 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5449 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5450 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5451 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5452 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5453 | 'pattern' => '->', | ||||||||||||||||||||||||||||||||||||||||||
| 5454 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5455 | 'description' => '\'->\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5456 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5457 | 'line' => 21 | ||||||||||||||||||||||||||||||||||||||||||
| 5458 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5459 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5460 | 'line' => 21 | ||||||||||||||||||||||||||||||||||||||||||
| 5461 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5462 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5463 | 'number' => '2', | ||||||||||||||||||||||||||||||||||||||||||
| 5464 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5465 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5466 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5467 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5468 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5469 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5470 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5471 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5472 | 'pattern' => '=>', | ||||||||||||||||||||||||||||||||||||||||||
| 5473 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5474 | 'description' => '\'=>\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5475 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5476 | 'line' => 21 | ||||||||||||||||||||||||||||||||||||||||||
| 5477 | }, 'Parse::RecDescent::Literal' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5478 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5479 | 'line' => 21 | ||||||||||||||||||||||||||||||||||||||||||
| 5480 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5481 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5482 | 'name' => 'Arrow', | ||||||||||||||||||||||||||||||||||||||||||
| 5483 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5484 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5485 | 'line' => 21 | ||||||||||||||||||||||||||||||||||||||||||
| 5486 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5487 | 'Null' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5488 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5489 | 'calls' => [], | ||||||||||||||||||||||||||||||||||||||||||
| 5490 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5491 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5492 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5493 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5494 | 'strcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5495 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5496 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5497 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5498 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5499 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5500 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5501 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5502 | 'pattern' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5503 | 'hashname' => '__STRING1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5504 | 'description' => '\'0\'', | ||||||||||||||||||||||||||||||||||||||||||
| 5505 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5506 | 'line' => 55 | ||||||||||||||||||||||||||||||||||||||||||
| 5507 | }, 'Parse::RecDescent::Literal' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5508 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5509 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5510 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5511 | 'line' => 55, | ||||||||||||||||||||||||||||||||||||||||||
| 5512 | 'code' => '{ $return = \'__NULL\' }' | ||||||||||||||||||||||||||||||||||||||||||
| 5513 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5514 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5515 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5516 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5517 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5518 | 'name' => 'Null', | ||||||||||||||||||||||||||||||||||||||||||
| 5519 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5520 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5521 | 'line' => 54 | ||||||||||||||||||||||||||||||||||||||||||
| 5522 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5523 | 'To' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5524 | 'impcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5525 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5526 | '_alternation_1_of_production_1_of_rule_To' | ||||||||||||||||||||||||||||||||||||||||||
| 5527 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5528 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5529 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5530 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5531 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5532 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5533 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5534 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5535 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5536 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5537 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5538 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5539 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5540 | 'subrule' => '_alternation_1_of_production_1_of_rule_To', | ||||||||||||||||||||||||||||||||||||||||||
| 5541 | 'expected' => 'Segment, or Null', | ||||||||||||||||||||||||||||||||||||||||||
| 5542 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5543 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5544 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||||||
| 5545 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5546 | 'repspec' => 's', | ||||||||||||||||||||||||||||||||||||||||||
| 5547 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5548 | 'line' => 23 | ||||||||||||||||||||||||||||||||||||||||||
| 5549 | }, 'Parse::RecDescent::Repetition' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5550 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5551 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5552 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5553 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5554 | 'name' => 'To', | ||||||||||||||||||||||||||||||||||||||||||
| 5555 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5556 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5557 | 'line' => 23 | ||||||||||||||||||||||||||||||||||||||||||
| 5558 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5559 | '_alternation_1_of_production_1_of_rule_From' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5560 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5561 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5562 | 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5563 | 'SegmentSet', | ||||||||||||||||||||||||||||||||||||||||||
| 5564 | 'Null' | ||||||||||||||||||||||||||||||||||||||||||
| 5565 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5566 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5567 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5568 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5569 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5570 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5571 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5572 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5573 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5574 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5575 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5576 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5577 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5578 | 'subrule' => 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5579 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5580 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5581 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5582 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5583 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5584 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5585 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5586 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5587 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5588 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5589 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 5590 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5591 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5592 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5593 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5594 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5595 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5596 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5597 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5598 | 'subrule' => 'SegmentSet', | ||||||||||||||||||||||||||||||||||||||||||
| 5599 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5600 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5601 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5602 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5603 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5604 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5605 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5606 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5607 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5608 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5609 | 'number' => '2', | ||||||||||||||||||||||||||||||||||||||||||
| 5610 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5611 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5612 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5613 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5614 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5615 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5616 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5617 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5618 | 'subrule' => 'Null', | ||||||||||||||||||||||||||||||||||||||||||
| 5619 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5620 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5621 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5622 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5623 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5624 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5625 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5626 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5627 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5628 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5629 | 'name' => '_alternation_1_of_production_1_of_rule_From', | ||||||||||||||||||||||||||||||||||||||||||
| 5630 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5631 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5632 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5633 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5634 | '_alternation_1_of_production_1_of_rule_Condition' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5635 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5636 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5637 | 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5638 | 'SegmentSet' | ||||||||||||||||||||||||||||||||||||||||||
| 5639 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5640 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5641 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5642 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5643 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5644 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5645 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5646 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5647 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5648 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5649 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5650 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5651 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5652 | 'subrule' => 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5653 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5654 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5655 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5656 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5657 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5658 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5659 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5660 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5661 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5662 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5663 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 5664 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5665 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5666 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5667 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5668 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5669 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5670 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5671 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5672 | 'subrule' => 'SegmentSet', | ||||||||||||||||||||||||||||||||||||||||||
| 5673 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5674 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5675 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5676 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5677 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5678 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5679 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5680 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5681 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5682 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5683 | 'name' => '_alternation_1_of_production_1_of_rule_Condition', | ||||||||||||||||||||||||||||||||||||||||||
| 5684 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5685 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5686 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5687 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5688 | '_alternation_1_of_production_1_of_rule_To' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5689 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5690 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5691 | 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5692 | 'Null' | ||||||||||||||||||||||||||||||||||||||||||
| 5693 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5694 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5695 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5696 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5697 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5698 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5699 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5700 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5701 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5702 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5703 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5704 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5705 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5706 | 'subrule' => 'Segment', | ||||||||||||||||||||||||||||||||||||||||||
| 5707 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5708 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5709 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5710 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5711 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5712 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5713 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5714 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5715 | }, 'Parse::RecDescent::Production' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5716 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5717 | 'number' => '1', | ||||||||||||||||||||||||||||||||||||||||||
| 5718 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5719 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5720 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5721 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5722 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5723 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5724 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5725 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5726 | 'subrule' => 'Null', | ||||||||||||||||||||||||||||||||||||||||||
| 5727 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5728 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5729 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5730 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5731 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5732 | }, 'Parse::RecDescent::Subrule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5733 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5734 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5735 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5736 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5737 | 'name' => '_alternation_1_of_production_1_of_rule_To', | ||||||||||||||||||||||||||||||||||||||||||
| 5738 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5739 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5740 | 'line' => 65 | ||||||||||||||||||||||||||||||||||||||||||
| 5741 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5742 | 'Rule' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5743 | 'impcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5744 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5745 | 'From', | ||||||||||||||||||||||||||||||||||||||||||
| 5746 | 'Arrow', | ||||||||||||||||||||||||||||||||||||||||||
| 5747 | 'To', | ||||||||||||||||||||||||||||||||||||||||||
| 5748 | 'When' | ||||||||||||||||||||||||||||||||||||||||||
| 5749 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5750 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5751 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5752 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5753 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5754 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5755 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5756 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5757 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5758 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5759 | 'actcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5760 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5761 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5762 | 'subrule' => 'From', | ||||||||||||||||||||||||||||||||||||||||||
| 5763 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5764 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5765 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5766 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5767 | 'line' => 16 | ||||||||||||||||||||||||||||||||||||||||||
| 5768 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5769 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5770 | 'subrule' => 'Arrow', | ||||||||||||||||||||||||||||||||||||||||||
| 5771 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5772 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5773 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5774 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5775 | 'line' => 16 | ||||||||||||||||||||||||||||||||||||||||||
| 5776 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5777 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5778 | 'subrule' => 'To', | ||||||||||||||||||||||||||||||||||||||||||
| 5779 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5780 | 'implicit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5781 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5782 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5783 | 'line' => 16 | ||||||||||||||||||||||||||||||||||||||||||
| 5784 | }, 'Parse::RecDescent::Subrule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5785 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5786 | 'subrule' => 'When', | ||||||||||||||||||||||||||||||||||||||||||
| 5787 | 'expected' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5788 | 'min' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5789 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5790 | 'max' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5791 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5792 | 'repspec' => '?', | ||||||||||||||||||||||||||||||||||||||||||
| 5793 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5794 | 'line' => 16 | ||||||||||||||||||||||||||||||||||||||||||
| 5795 | }, 'Parse::RecDescent::Repetition' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5796 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5797 | 'hashname' => '__ACTION1__', | ||||||||||||||||||||||||||||||||||||||||||
| 5798 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5799 | 'line' => 17, | ||||||||||||||||||||||||||||||||||||||||||
| 5800 | 'code' => '{ $return = { from => $item[1], to => $item[3], when => $item[4]->[0] }; }' | ||||||||||||||||||||||||||||||||||||||||||
| 5801 | }, 'Parse::RecDescent::Action' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5802 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5803 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5804 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5805 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5806 | 'name' => 'Rule', | ||||||||||||||||||||||||||||||||||||||||||
| 5807 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5808 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5809 | 'line' => 15 | ||||||||||||||||||||||||||||||||||||||||||
| 5810 | }, 'Parse::RecDescent::Rule' ), | ||||||||||||||||||||||||||||||||||||||||||
| 5811 | 'From' => bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5812 | 'impcount' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5813 | 'calls' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5814 | '_alternation_1_of_production_1_of_rule_From' | ||||||||||||||||||||||||||||||||||||||||||
| 5815 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5816 | 'opcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5817 | 'prods' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5818 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5819 | 'number' => '0', | ||||||||||||||||||||||||||||||||||||||||||
| 5820 | 'strcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5821 | 'dircount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5822 | 'uncommit' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5823 | 'error' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5824 | 'patcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5825 | 'actcount' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5826 | 'items' => [ | ||||||||||||||||||||||||||||||||||||||||||
| 5827 | bless( { | ||||||||||||||||||||||||||||||||||||||||||
| 5828 | 'subrule' => '_alternation_1_of_production_1_of_rule_From', | ||||||||||||||||||||||||||||||||||||||||||
| 5829 | 'expected' => 'Segment, or SegmentSet, or Null', | ||||||||||||||||||||||||||||||||||||||||||
| 5830 | 'min' => 1, | ||||||||||||||||||||||||||||||||||||||||||
| 5831 | 'argcode' => undef, | ||||||||||||||||||||||||||||||||||||||||||
| 5832 | 'max' => 100000000, | ||||||||||||||||||||||||||||||||||||||||||
| 5833 | 'matchrule' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5834 | 'repspec' => 's', | ||||||||||||||||||||||||||||||||||||||||||
| 5835 | 'lookahead' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5836 | 'line' => 19 | ||||||||||||||||||||||||||||||||||||||||||
| 5837 | }, 'Parse::RecDescent::Repetition' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5838 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5839 | 'line' => undef | ||||||||||||||||||||||||||||||||||||||||||
| 5840 | }, 'Parse::RecDescent::Production' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5841 | ], | ||||||||||||||||||||||||||||||||||||||||||
| 5842 | 'name' => 'From', | ||||||||||||||||||||||||||||||||||||||||||
| 5843 | 'vars' => '', | ||||||||||||||||||||||||||||||||||||||||||
| 5844 | 'changed' => 0, | ||||||||||||||||||||||||||||||||||||||||||
| 5845 | 'line' => 19 | ||||||||||||||||||||||||||||||||||||||||||
| 5846 | }, 'Parse::RecDescent::Rule' ) | ||||||||||||||||||||||||||||||||||||||||||
| 5847 | } | ||||||||||||||||||||||||||||||||||||||||||
| 5848 | }, 'Parse::RecDescent' ); | ||||||||||||||||||||||||||||||||||||||||||
| 5849 | } | ||||||||||||||||||||||||||||||||||||||||||