| 1 | # | ||
| 2 | # This parser was generated with | ||
| 3 | # Parse::RecDescent version 1.967015 | ||
| 4 | # | ||
| 5 | |||
| 6 | package XML::XSH2::Parser; | ||
| 7 | use Parse::RecDescent; | ||
| 8 | { my $ERRORS; | ||
| 9 | |||
| 10 | |||
| 11 | package Parse::RecDescent::XML::XSH2::Parser; | ||
| 12 | use strict; | ||
| 13 | use vars qw($skip $AUTOLOAD ); | ||
| 14 | @Parse::RecDescent::XML::XSH2::Parser::ISA = (); | ||
| 15 | $skip = '(\\s|\\n|#[^\\n]*)*'; | ||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | { | ||
| 20 | local $SIG{__WARN__} = sub {0}; | ||
| 21 | # PRETEND TO BE IN Parse::RecDescent NAMESPACE | ||
| 22 | *Parse::RecDescent::XML::XSH2::Parser::AUTOLOAD = sub | ||
| 23 | { | ||
| 24 | no strict 'refs'; | ||
| 25 | |||
| 26 | ${"AUTOLOAD"} =~ s/^Parse::RecDescent::XML::XSH2::Parser/Parse::RecDescent/; | ||
| 27 | goto &{${"AUTOLOAD"}}; | ||
| 28 | } | ||
| 29 | } | ||
| 30 | |||
| 31 | push @Parse::RecDescent::XML::XSH2::Parser::ISA, 'Parse::RecDescent'; | ||
| 32 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 33 | sub Parse::RecDescent::XML::XSH2::Parser::ID | ||
| 34 | { | ||
| 35 | my $thisparser = $_[0]; | ||
| 36 | use vars q{$tracelevel}; | ||
| 37 | local $tracelevel = ($tracelevel||0)+1; | ||
| 38 | $ERRORS = 0; | ||
| 39 | my $thisrule = $thisparser->{"rules"}{"ID"}; | ||
| 40 | |||
| 41 | Parse::RecDescent::_trace(q{Trying rule: [ID]}, | ||
| 42 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 43 | q{ID}, | ||
| 44 | $tracelevel) | ||
| 45 | if defined $::RD_TRACE; | ||
| 46 | |||
| 47 | |||
| 48 | my $err_at = @{$thisparser->{errors}}; | ||
| 49 | |||
| 50 | my $score; | ||
| 51 | my $score_return; | ||
| 52 | my $_tok; | ||
| 53 | my $return = undef; | ||
| 54 | my $_matched=0; | ||
| 55 | my $commit=0; | ||
| 56 | my @item = (); | ||
| 57 | my %item = (); | ||
| 58 | my $repeating = $_[2]; | ||
| 59 | my $_noactions = $_[3]; | ||
| 60 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 61 | my $_itempos = $_[5]; | ||
| 62 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 63 | my $text; | ||
| 64 | my $lastsep; | ||
| 65 | my $current_match; | ||
| 66 | my $expectation = new Parse::RecDescent::Expectation(q{/[a-zA-Z_][a-zA-Z0-9_]*/}); | ||
| 67 | $expectation->at($_[1]); | ||
| 68 | |||
| 69 | my $thisoffset; | ||
| 70 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 71 | |||
| 72 | my $thiscolumn; | ||
| 73 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 74 | |||
| 75 | my $thisline; | ||
| 76 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | while (!$_matched && !$commit) | ||
| 81 | { | ||
| 82 | |||
| 83 | Parse::RecDescent::_trace(q{Trying production: [/[a-zA-Z_][a-zA-Z0-9_]*/]}, | ||
| 84 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 85 | q{ID}, | ||
| 86 | $tracelevel) | ||
| 87 | if defined $::RD_TRACE; | ||
| 88 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 89 | $text = $_[1]; | ||
| 90 | my $_savetext; | ||
| 91 | @item = (q{ID}); | ||
| 92 | %item = (__RULE__ => q{ID}); | ||
| 93 | my $repcount = 0; | ||
| 94 | |||
| 95 | |||
| 96 | Parse::RecDescent::_trace(q{Trying terminal: [/[a-zA-Z_][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 97 | q{ID}, | ||
| 98 | $tracelevel) | ||
| 99 | if defined $::RD_TRACE; | ||
| 100 | undef $lastsep; | ||
| 101 | $expectation->is(q{})->at($text); | ||
| 102 | |||
| 103 | |||
| 104 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[a-zA-Z_][a-zA-Z0-9_]*)/) | ||
| 105 | { | ||
| 106 | $text = $lastsep . $text if defined $lastsep; | ||
| 107 | $expectation->failed(); | ||
| 108 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 109 | Parse::RecDescent::_tracefirst($text)) | ||
| 110 | if defined $::RD_TRACE; | ||
| 111 | |||
| 112 | last; | ||
| 113 | } | ||
| 114 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 115 | substr($text,0,length($current_match),q{}); | ||
| 116 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 117 | . $current_match . q{])}, | ||
| 118 | Parse::RecDescent::_tracefirst($text)) | ||
| 119 | if defined $::RD_TRACE; | ||
| 120 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 121 | |||
| 122 | |||
| 123 | Parse::RecDescent::_trace(q{>>Matched production: [/[a-zA-Z_][a-zA-Z0-9_]*/]<<}, | ||
| 124 | Parse::RecDescent::_tracefirst($text), | ||
| 125 | q{ID}, | ||
| 126 | $tracelevel) | ||
| 127 | if defined $::RD_TRACE; | ||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | $_matched = 1; | ||
| 132 | last; | ||
| 133 | } | ||
| 134 | |||
| 135 | |||
| 136 | unless ( $_matched || defined($score) ) | ||
| 137 | { | ||
| 138 | |||
| 139 | |||
| 140 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 141 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 142 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 143 | q{ID}, | ||
| 144 | $tracelevel) | ||
| 145 | if defined $::RD_TRACE; | ||
| 146 | return undef; | ||
| 147 | } | ||
| 148 | if (!defined($return) && defined($score)) | ||
| 149 | { | ||
| 150 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 151 | q{ID}, | ||
| 152 | $tracelevel) | ||
| 153 | if defined $::RD_TRACE; | ||
| 154 | $return = $score_return; | ||
| 155 | } | ||
| 156 | splice @{$thisparser->{errors}}, $err_at; | ||
| 157 | $return = $item[$#item] unless defined $return; | ||
| 158 | if (defined $::RD_TRACE) | ||
| 159 | { | ||
| 160 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 161 | $return . q{])}, "", | ||
| 162 | q{ID}, | ||
| 163 | $tracelevel); | ||
| 164 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 165 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 166 | Parse::RecDescent::_tracefirst($text), | ||
| 167 | , q{ID}, | ||
| 168 | $tracelevel) | ||
| 169 | } | ||
| 170 | $_[1] = $text; | ||
| 171 | return $return; | ||
| 172 | } | ||
| 173 | |||
| 174 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 175 | sub Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_10_of_rule_command | ||
| 176 | { | ||
| 177 | my $thisparser = $_[0]; | ||
| 178 | use vars q{$tracelevel}; | ||
| 179 | local $tracelevel = ($tracelevel||0)+1; | ||
| 180 | $ERRORS = 0; | ||
| 181 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_10_of_rule_command"}; | ||
| 182 | |||
| 183 | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_10_of_rule_command]}, | ||
| 184 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 185 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 186 | $tracelevel) | ||
| 187 | if defined $::RD_TRACE; | ||
| 188 | |||
| 189 | |||
| 190 | my $err_at = @{$thisparser->{errors}}; | ||
| 191 | |||
| 192 | my $score; | ||
| 193 | my $score_return; | ||
| 194 | my $_tok; | ||
| 195 | my $return = undef; | ||
| 196 | my $_matched=0; | ||
| 197 | my $commit=0; | ||
| 198 | my @item = (); | ||
| 199 | my %item = (); | ||
| 200 | my $repeating = $_[2]; | ||
| 201 | my $_noactions = $_[3]; | ||
| 202 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 203 | my $_itempos = $_[5]; | ||
| 204 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 205 | my $text; | ||
| 206 | my $lastsep; | ||
| 207 | my $current_match; | ||
| 208 | my $expectation = new Parse::RecDescent::Expectation(q{/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/}); | ||
| 209 | $expectation->at($_[1]); | ||
| 210 | |||
| 211 | my $thisoffset; | ||
| 212 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 213 | |||
| 214 | my $thiscolumn; | ||
| 215 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 216 | |||
| 217 | my $thisline; | ||
| 218 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 219 | |||
| 220 | |||
| 221 | |||
| 222 | while (!$_matched && !$commit) | ||
| 223 | { | ||
| 224 | |||
| 225 | Parse::RecDescent::_trace(q{Trying production: [/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/]}, | ||
| 226 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 227 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 228 | $tracelevel) | ||
| 229 | if defined $::RD_TRACE; | ||
| 230 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 231 | $text = $_[1]; | ||
| 232 | my $_savetext; | ||
| 233 | @item = (q{_alternation_1_of_production_10_of_rule_command}); | ||
| 234 | %item = (__RULE__ => q{_alternation_1_of_production_10_of_rule_command}); | ||
| 235 | my $repcount = 0; | ||
| 236 | |||
| 237 | |||
| 238 | Parse::RecDescent::_trace(q{Trying repeated subrule: [/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/]}, | ||
| 239 | Parse::RecDescent::_tracefirst($text), | ||
| 240 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 241 | $tracelevel) | ||
| 242 | if defined $::RD_TRACE; | ||
| 243 | $expectation->is(q{})->at($text); | ||
| 244 | |||
| 245 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command, 0, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 246 | { | ||
| 247 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/]>>}, | ||
| 248 | Parse::RecDescent::_tracefirst($text), | ||
| 249 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 250 | $tracelevel) | ||
| 251 | if defined $::RD_TRACE; | ||
| 252 | last; | ||
| 253 | } | ||
| 254 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command]<< (} | ||
| 255 | . @$_tok . q{ times)}, | ||
| 256 | |||
| 257 | Parse::RecDescent::_tracefirst($text), | ||
| 258 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 259 | $tracelevel) | ||
| 260 | if defined $::RD_TRACE; | ||
| 261 | $item{q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command(s?)}} = $_tok; | ||
| 262 | push @item, $_tok; | ||
| 263 | |||
| 264 | |||
| 265 | |||
| 266 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 267 | Parse::RecDescent::_tracefirst($text), | ||
| 268 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 269 | $tracelevel) | ||
| 270 | if defined $::RD_TRACE; | ||
| 271 | |||
| 272 | |||
| 273 | $_tok = ($_noactions) ? 0 : do { [ map { @$_ } @{$item[1]} ] }; | ||
| 274 | unless (defined $_tok) | ||
| 275 | { | ||
| 276 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 277 | if defined $::RD_TRACE; | ||
| 278 | last; | ||
| 279 | } | ||
| 280 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 281 | . $_tok . q{])}, | ||
| 282 | Parse::RecDescent::_tracefirst($text)) | ||
| 283 | if defined $::RD_TRACE; | ||
| 284 | push @item, $_tok; | ||
| 285 | $item{__ACTION1__}=$_tok; | ||
| 286 | |||
| 287 | |||
| 288 | Parse::RecDescent::_trace(q{>>Matched production: [/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/]<<}, | ||
| 289 | Parse::RecDescent::_tracefirst($text), | ||
| 290 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 291 | $tracelevel) | ||
| 292 | if defined $::RD_TRACE; | ||
| 293 | |||
| 294 | |||
| 295 | |||
| 296 | $_matched = 1; | ||
| 297 | last; | ||
| 298 | } | ||
| 299 | |||
| 300 | |||
| 301 | unless ( $_matched || defined($score) ) | ||
| 302 | { | ||
| 303 | |||
| 304 | |||
| 305 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 306 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 307 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 308 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 309 | $tracelevel) | ||
| 310 | if defined $::RD_TRACE; | ||
| 311 | return undef; | ||
| 312 | } | ||
| 313 | if (!defined($return) && defined($score)) | ||
| 314 | { | ||
| 315 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 316 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 317 | $tracelevel) | ||
| 318 | if defined $::RD_TRACE; | ||
| 319 | $return = $score_return; | ||
| 320 | } | ||
| 321 | splice @{$thisparser->{errors}}, $err_at; | ||
| 322 | $return = $item[$#item] unless defined $return; | ||
| 323 | if (defined $::RD_TRACE) | ||
| 324 | { | ||
| 325 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 326 | $return . q{])}, "", | ||
| 327 | q{_alternation_1_of_production_10_of_rule_command}, | ||
| 328 | $tracelevel); | ||
| 329 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 330 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 331 | Parse::RecDescent::_tracefirst($text), | ||
| 332 | , q{_alternation_1_of_production_10_of_rule_command}, | ||
| 333 | $tracelevel) | ||
| 334 | } | ||
| 335 | $_[1] = $text; | ||
| 336 | return $return; | ||
| 337 | } | ||
| 338 | |||
| 339 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 340 | sub Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command | ||
| 341 | { | ||
| 342 | my $thisparser = $_[0]; | ||
| 343 | use vars q{$tracelevel}; | ||
| 344 | local $tracelevel = ($tracelevel||0)+1; | ||
| 345 | $ERRORS = 0; | ||
| 346 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command"}; | ||
| 347 | |||
| 348 | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command]}, | ||
| 349 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 350 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 351 | $tracelevel) | ||
| 352 | if defined $::RD_TRACE; | ||
| 353 | |||
| 354 | |||
| 355 | my $err_at = @{$thisparser->{errors}}; | ||
| 356 | |||
| 357 | my $score; | ||
| 358 | my $score_return; | ||
| 359 | my $_tok; | ||
| 360 | my $return = undef; | ||
| 361 | my $_matched=0; | ||
| 362 | my $commit=0; | ||
| 363 | my @item = (); | ||
| 364 | my %item = (); | ||
| 365 | my $repeating = $_[2]; | ||
| 366 | my $_noactions = $_[3]; | ||
| 367 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 368 | my $_itempos = $_[5]; | ||
| 369 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 370 | my $text; | ||
| 371 | my $lastsep; | ||
| 372 | my $current_match; | ||
| 373 | my $expectation = new Parse::RecDescent::Expectation(q{/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/}); | ||
| 374 | $expectation->at($_[1]); | ||
| 375 | |||
| 376 | my $thisoffset; | ||
| 377 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 378 | |||
| 379 | my $thiscolumn; | ||
| 380 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 381 | |||
| 382 | my $thisline; | ||
| 383 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 384 | |||
| 385 | |||
| 386 | |||
| 387 | while (!$_matched && !$commit) | ||
| 388 | { | ||
| 389 | |||
| 390 | Parse::RecDescent::_trace(q{Trying production: [/--input-file|:f/ filename]}, | ||
| 391 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 392 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 393 | $tracelevel) | ||
| 394 | if defined $::RD_TRACE; | ||
| 395 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 396 | $text = $_[1]; | ||
| 397 | my $_savetext; | ||
| 398 | @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 399 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 400 | my $repcount = 0; | ||
| 401 | |||
| 402 | |||
| 403 | Parse::RecDescent::_trace(q{Trying terminal: [/--input-file|:f/]}, Parse::RecDescent::_tracefirst($text), | ||
| 404 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 405 | $tracelevel) | ||
| 406 | if defined $::RD_TRACE; | ||
| 407 | undef $lastsep; | ||
| 408 | $expectation->is(q{})->at($text); | ||
| 409 | |||
| 410 | |||
| 411 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:--input-file|:f)/) | ||
| 412 | { | ||
| 413 | $text = $lastsep . $text if defined $lastsep; | ||
| 414 | $expectation->failed(); | ||
| 415 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 416 | Parse::RecDescent::_tracefirst($text)) | ||
| 417 | if defined $::RD_TRACE; | ||
| 418 | |||
| 419 | last; | ||
| 420 | } | ||
| 421 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 422 | substr($text,0,length($current_match),q{}); | ||
| 423 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 424 | . $current_match . q{])}, | ||
| 425 | Parse::RecDescent::_tracefirst($text)) | ||
| 426 | if defined $::RD_TRACE; | ||
| 427 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 428 | |||
| 429 | |||
| 430 | Parse::RecDescent::_trace(q{Trying subrule: [filename]}, | ||
| 431 | Parse::RecDescent::_tracefirst($text), | ||
| 432 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 433 | $tracelevel) | ||
| 434 | if defined $::RD_TRACE; | ||
| 435 | if (1) { no strict qw{refs}; | ||
| 436 | $expectation->is(q{filename})->at($text); | ||
| 437 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::filename($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 438 | { | ||
| 439 | |||
| 440 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [filename]>>}, | ||
| 441 | Parse::RecDescent::_tracefirst($text), | ||
| 442 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 443 | $tracelevel) | ||
| 444 | if defined $::RD_TRACE; | ||
| 445 | $expectation->failed(); | ||
| 446 | last; | ||
| 447 | } | ||
| 448 | Parse::RecDescent::_trace(q{>>Matched subrule: [filename]<< (return value: [} | ||
| 449 | . $_tok . q{]}, | ||
| 450 | |||
| 451 | Parse::RecDescent::_tracefirst($text), | ||
| 452 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 453 | $tracelevel) | ||
| 454 | if defined $::RD_TRACE; | ||
| 455 | $item{q{filename}} = $_tok; | ||
| 456 | push @item, $_tok; | ||
| 457 | |||
| 458 | } | ||
| 459 | |||
| 460 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 461 | Parse::RecDescent::_tracefirst($text), | ||
| 462 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 463 | $tracelevel) | ||
| 464 | if defined $::RD_TRACE; | ||
| 465 | |||
| 466 | |||
| 467 | $_tok = ($_noactions) ? 0 : do { [ 'string/input-file' => $item[2] ] }; | ||
| 468 | unless (defined $_tok) | ||
| 469 | { | ||
| 470 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 471 | if defined $::RD_TRACE; | ||
| 472 | last; | ||
| 473 | } | ||
| 474 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 475 | . $_tok . q{])}, | ||
| 476 | Parse::RecDescent::_tracefirst($text)) | ||
| 477 | if defined $::RD_TRACE; | ||
| 478 | push @item, $_tok; | ||
| 479 | $item{__ACTION1__}=$_tok; | ||
| 480 | |||
| 481 | |||
| 482 | Parse::RecDescent::_trace(q{>>Matched production: [/--input-file|:f/ filename]<<}, | ||
| 483 | Parse::RecDescent::_tracefirst($text), | ||
| 484 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 485 | $tracelevel) | ||
| 486 | if defined $::RD_TRACE; | ||
| 487 | |||
| 488 | |||
| 489 | |||
| 490 | $_matched = 1; | ||
| 491 | last; | ||
| 492 | } | ||
| 493 | |||
| 494 | |||
| 495 | while (!$_matched && !$commit) | ||
| 496 | { | ||
| 497 | |||
| 498 | Parse::RecDescent::_trace(q{Trying production: [/--input-pipe|:p/ filename]}, | ||
| 499 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 500 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 501 | $tracelevel) | ||
| 502 | if defined $::RD_TRACE; | ||
| 503 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 504 | $text = $_[1]; | ||
| 505 | my $_savetext; | ||
| 506 | @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 507 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 508 | my $repcount = 0; | ||
| 509 | |||
| 510 | |||
| 511 | Parse::RecDescent::_trace(q{Trying terminal: [/--input-pipe|:p/]}, Parse::RecDescent::_tracefirst($text), | ||
| 512 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 513 | $tracelevel) | ||
| 514 | if defined $::RD_TRACE; | ||
| 515 | undef $lastsep; | ||
| 516 | $expectation->is(q{})->at($text); | ||
| 517 | |||
| 518 | |||
| 519 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:--input-pipe|:p)/) | ||
| 520 | { | ||
| 521 | $text = $lastsep . $text if defined $lastsep; | ||
| 522 | $expectation->failed(); | ||
| 523 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 524 | Parse::RecDescent::_tracefirst($text)) | ||
| 525 | if defined $::RD_TRACE; | ||
| 526 | |||
| 527 | last; | ||
| 528 | } | ||
| 529 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 530 | substr($text,0,length($current_match),q{}); | ||
| 531 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 532 | . $current_match . q{])}, | ||
| 533 | Parse::RecDescent::_tracefirst($text)) | ||
| 534 | if defined $::RD_TRACE; | ||
| 535 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 536 | |||
| 537 | |||
| 538 | Parse::RecDescent::_trace(q{Trying subrule: [filename]}, | ||
| 539 | Parse::RecDescent::_tracefirst($text), | ||
| 540 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 541 | $tracelevel) | ||
| 542 | if defined $::RD_TRACE; | ||
| 543 | if (1) { no strict qw{refs}; | ||
| 544 | $expectation->is(q{filename})->at($text); | ||
| 545 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::filename($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 546 | { | ||
| 547 | |||
| 548 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [filename]>>}, | ||
| 549 | Parse::RecDescent::_tracefirst($text), | ||
| 550 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 551 | $tracelevel) | ||
| 552 | if defined $::RD_TRACE; | ||
| 553 | $expectation->failed(); | ||
| 554 | last; | ||
| 555 | } | ||
| 556 | Parse::RecDescent::_trace(q{>>Matched subrule: [filename]<< (return value: [} | ||
| 557 | . $_tok . q{]}, | ||
| 558 | |||
| 559 | Parse::RecDescent::_tracefirst($text), | ||
| 560 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 561 | $tracelevel) | ||
| 562 | if defined $::RD_TRACE; | ||
| 563 | $item{q{filename}} = $_tok; | ||
| 564 | push @item, $_tok; | ||
| 565 | |||
| 566 | } | ||
| 567 | |||
| 568 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 569 | Parse::RecDescent::_tracefirst($text), | ||
| 570 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 571 | $tracelevel) | ||
| 572 | if defined $::RD_TRACE; | ||
| 573 | |||
| 574 | |||
| 575 | $_tok = ($_noactions) ? 0 : do { [ 'string/input-pipe' => $item[2] ] }; | ||
| 576 | unless (defined $_tok) | ||
| 577 | { | ||
| 578 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 579 | if defined $::RD_TRACE; | ||
| 580 | last; | ||
| 581 | } | ||
| 582 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 583 | . $_tok . q{])}, | ||
| 584 | Parse::RecDescent::_tracefirst($text)) | ||
| 585 | if defined $::RD_TRACE; | ||
| 586 | push @item, $_tok; | ||
| 587 | $item{__ACTION1__}=$_tok; | ||
| 588 | |||
| 589 | |||
| 590 | Parse::RecDescent::_trace(q{>>Matched production: [/--input-pipe|:p/ filename]<<}, | ||
| 591 | Parse::RecDescent::_tracefirst($text), | ||
| 592 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 593 | $tracelevel) | ||
| 594 | if defined $::RD_TRACE; | ||
| 595 | |||
| 596 | |||
| 597 | |||
| 598 | $_matched = 1; | ||
| 599 | last; | ||
| 600 | } | ||
| 601 | |||
| 602 | |||
| 603 | while (!$_matched && !$commit) | ||
| 604 | { | ||
| 605 | |||
| 606 | Parse::RecDescent::_trace(q{Trying production: [/--input-string|:s/ exp]}, | ||
| 607 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 608 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 609 | $tracelevel) | ||
| 610 | if defined $::RD_TRACE; | ||
| 611 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 612 | $text = $_[1]; | ||
| 613 | my $_savetext; | ||
| 614 | @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 615 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 616 | my $repcount = 0; | ||
| 617 | |||
| 618 | |||
| 619 | Parse::RecDescent::_trace(q{Trying terminal: [/--input-string|:s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 620 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 621 | $tracelevel) | ||
| 622 | if defined $::RD_TRACE; | ||
| 623 | undef $lastsep; | ||
| 624 | $expectation->is(q{})->at($text); | ||
| 625 | |||
| 626 | |||
| 627 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:--input-string|:s)/) | ||
| 628 | { | ||
| 629 | $text = $lastsep . $text if defined $lastsep; | ||
| 630 | $expectation->failed(); | ||
| 631 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 632 | Parse::RecDescent::_tracefirst($text)) | ||
| 633 | if defined $::RD_TRACE; | ||
| 634 | |||
| 635 | last; | ||
| 636 | } | ||
| 637 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 638 | substr($text,0,length($current_match),q{}); | ||
| 639 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 640 | . $current_match . q{])}, | ||
| 641 | Parse::RecDescent::_tracefirst($text)) | ||
| 642 | if defined $::RD_TRACE; | ||
| 643 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 644 | |||
| 645 | |||
| 646 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 647 | Parse::RecDescent::_tracefirst($text), | ||
| 648 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 649 | $tracelevel) | ||
| 650 | if defined $::RD_TRACE; | ||
| 651 | if (1) { no strict qw{refs}; | ||
| 652 | $expectation->is(q{exp})->at($text); | ||
| 653 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 654 | { | ||
| 655 | |||
| 656 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 657 | Parse::RecDescent::_tracefirst($text), | ||
| 658 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 659 | $tracelevel) | ||
| 660 | if defined $::RD_TRACE; | ||
| 661 | $expectation->failed(); | ||
| 662 | last; | ||
| 663 | } | ||
| 664 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 665 | . $_tok . q{]}, | ||
| 666 | |||
| 667 | Parse::RecDescent::_tracefirst($text), | ||
| 668 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 669 | $tracelevel) | ||
| 670 | if defined $::RD_TRACE; | ||
| 671 | $item{q{exp}} = $_tok; | ||
| 672 | push @item, $_tok; | ||
| 673 | |||
| 674 | } | ||
| 675 | |||
| 676 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 677 | Parse::RecDescent::_tracefirst($text), | ||
| 678 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 679 | $tracelevel) | ||
| 680 | if defined $::RD_TRACE; | ||
| 681 | |||
| 682 | |||
| 683 | $_tok = ($_noactions) ? 0 : do { [ 'exp/input-string' => $item[2] ] }; | ||
| 684 | unless (defined $_tok) | ||
| 685 | { | ||
| 686 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 687 | if defined $::RD_TRACE; | ||
| 688 | last; | ||
| 689 | } | ||
| 690 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 691 | . $_tok . q{])}, | ||
| 692 | Parse::RecDescent::_tracefirst($text)) | ||
| 693 | if defined $::RD_TRACE; | ||
| 694 | push @item, $_tok; | ||
| 695 | $item{__ACTION1__}=$_tok; | ||
| 696 | |||
| 697 | |||
| 698 | Parse::RecDescent::_trace(q{>>Matched production: [/--input-string|:s/ exp]<<}, | ||
| 699 | Parse::RecDescent::_tracefirst($text), | ||
| 700 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 701 | $tracelevel) | ||
| 702 | if defined $::RD_TRACE; | ||
| 703 | |||
| 704 | |||
| 705 | |||
| 706 | $_matched = 1; | ||
| 707 | last; | ||
| 708 | } | ||
| 709 | |||
| 710 | |||
| 711 | while (!$_matched && !$commit) | ||
| 712 | { | ||
| 713 | |||
| 714 | Parse::RecDescent::_trace(q{Trying production: [/--output-file|:F/ filename]}, | ||
| 715 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 716 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 717 | $tracelevel) | ||
| 718 | if defined $::RD_TRACE; | ||
| 719 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 720 | $text = $_[1]; | ||
| 721 | my $_savetext; | ||
| 722 | @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 723 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 724 | my $repcount = 0; | ||
| 725 | |||
| 726 | |||
| 727 | Parse::RecDescent::_trace(q{Trying terminal: [/--output-file|:F/]}, Parse::RecDescent::_tracefirst($text), | ||
| 728 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 729 | $tracelevel) | ||
| 730 | if defined $::RD_TRACE; | ||
| 731 | undef $lastsep; | ||
| 732 | $expectation->is(q{})->at($text); | ||
| 733 | |||
| 734 | |||
| 735 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:--output-file|:F)/) | ||
| 736 | { | ||
| 737 | $text = $lastsep . $text if defined $lastsep; | ||
| 738 | $expectation->failed(); | ||
| 739 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 740 | Parse::RecDescent::_tracefirst($text)) | ||
| 741 | if defined $::RD_TRACE; | ||
| 742 | |||
| 743 | last; | ||
| 744 | } | ||
| 745 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 746 | substr($text,0,length($current_match),q{}); | ||
| 747 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 748 | . $current_match . q{])}, | ||
| 749 | Parse::RecDescent::_tracefirst($text)) | ||
| 750 | if defined $::RD_TRACE; | ||
| 751 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 752 | |||
| 753 | |||
| 754 | Parse::RecDescent::_trace(q{Trying subrule: [filename]}, | ||
| 755 | Parse::RecDescent::_tracefirst($text), | ||
| 756 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 757 | $tracelevel) | ||
| 758 | if defined $::RD_TRACE; | ||
| 759 | if (1) { no strict qw{refs}; | ||
| 760 | $expectation->is(q{filename})->at($text); | ||
| 761 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::filename($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 762 | { | ||
| 763 | |||
| 764 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [filename]>>}, | ||
| 765 | Parse::RecDescent::_tracefirst($text), | ||
| 766 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 767 | $tracelevel) | ||
| 768 | if defined $::RD_TRACE; | ||
| 769 | $expectation->failed(); | ||
| 770 | last; | ||
| 771 | } | ||
| 772 | Parse::RecDescent::_trace(q{>>Matched subrule: [filename]<< (return value: [} | ||
| 773 | . $_tok . q{]}, | ||
| 774 | |||
| 775 | Parse::RecDescent::_tracefirst($text), | ||
| 776 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 777 | $tracelevel) | ||
| 778 | if defined $::RD_TRACE; | ||
| 779 | $item{q{filename}} = $_tok; | ||
| 780 | push @item, $_tok; | ||
| 781 | |||
| 782 | } | ||
| 783 | |||
| 784 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 785 | Parse::RecDescent::_tracefirst($text), | ||
| 786 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 787 | $tracelevel) | ||
| 788 | if defined $::RD_TRACE; | ||
| 789 | |||
| 790 | |||
| 791 | $_tok = ($_noactions) ? 0 : do { [ 'string/output-file' => $item[2] ] }; | ||
| 792 | unless (defined $_tok) | ||
| 793 | { | ||
| 794 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 795 | if defined $::RD_TRACE; | ||
| 796 | last; | ||
| 797 | } | ||
| 798 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 799 | . $_tok . q{])}, | ||
| 800 | Parse::RecDescent::_tracefirst($text)) | ||
| 801 | if defined $::RD_TRACE; | ||
| 802 | push @item, $_tok; | ||
| 803 | $item{__ACTION1__}=$_tok; | ||
| 804 | |||
| 805 | |||
| 806 | Parse::RecDescent::_trace(q{>>Matched production: [/--output-file|:F/ filename]<<}, | ||
| 807 | Parse::RecDescent::_tracefirst($text), | ||
| 808 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 809 | $tracelevel) | ||
| 810 | if defined $::RD_TRACE; | ||
| 811 | |||
| 812 | |||
| 813 | |||
| 814 | $_matched = 1; | ||
| 815 | last; | ||
| 816 | } | ||
| 817 | |||
| 818 | |||
| 819 | while (!$_matched && !$commit) | ||
| 820 | { | ||
| 821 | |||
| 822 | Parse::RecDescent::_trace(q{Trying production: [/--output-encoding|:E/ enc_string]}, | ||
| 823 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 824 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 825 | $tracelevel) | ||
| 826 | if defined $::RD_TRACE; | ||
| 827 | my $thisprod = $thisrule->{"prods"}[4]; | ||
| 828 | $text = $_[1]; | ||
| 829 | my $_savetext; | ||
| 830 | @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 831 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 832 | my $repcount = 0; | ||
| 833 | |||
| 834 | |||
| 835 | Parse::RecDescent::_trace(q{Trying terminal: [/--output-encoding|:E/]}, Parse::RecDescent::_tracefirst($text), | ||
| 836 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 837 | $tracelevel) | ||
| 838 | if defined $::RD_TRACE; | ||
| 839 | undef $lastsep; | ||
| 840 | $expectation->is(q{})->at($text); | ||
| 841 | |||
| 842 | |||
| 843 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:--output-encoding|:E)/) | ||
| 844 | { | ||
| 845 | $text = $lastsep . $text if defined $lastsep; | ||
| 846 | $expectation->failed(); | ||
| 847 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 848 | Parse::RecDescent::_tracefirst($text)) | ||
| 849 | if defined $::RD_TRACE; | ||
| 850 | |||
| 851 | last; | ||
| 852 | } | ||
| 853 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 854 | substr($text,0,length($current_match),q{}); | ||
| 855 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 856 | . $current_match . q{])}, | ||
| 857 | Parse::RecDescent::_tracefirst($text)) | ||
| 858 | if defined $::RD_TRACE; | ||
| 859 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 860 | |||
| 861 | |||
| 862 | Parse::RecDescent::_trace(q{Trying subrule: [enc_string]}, | ||
| 863 | Parse::RecDescent::_tracefirst($text), | ||
| 864 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 865 | $tracelevel) | ||
| 866 | if defined $::RD_TRACE; | ||
| 867 | if (1) { no strict qw{refs}; | ||
| 868 | $expectation->is(q{enc_string})->at($text); | ||
| 869 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::enc_string($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 870 | { | ||
| 871 | |||
| 872 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [enc_string]>>}, | ||
| 873 | Parse::RecDescent::_tracefirst($text), | ||
| 874 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 875 | $tracelevel) | ||
| 876 | if defined $::RD_TRACE; | ||
| 877 | $expectation->failed(); | ||
| 878 | last; | ||
| 879 | } | ||
| 880 | Parse::RecDescent::_trace(q{>>Matched subrule: [enc_string]<< (return value: [} | ||
| 881 | . $_tok . q{]}, | ||
| 882 | |||
| 883 | Parse::RecDescent::_tracefirst($text), | ||
| 884 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 885 | $tracelevel) | ||
| 886 | if defined $::RD_TRACE; | ||
| 887 | $item{q{enc_string}} = $_tok; | ||
| 888 | push @item, $_tok; | ||
| 889 | |||
| 890 | } | ||
| 891 | |||
| 892 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 893 | Parse::RecDescent::_tracefirst($text), | ||
| 894 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 895 | $tracelevel) | ||
| 896 | if defined $::RD_TRACE; | ||
| 897 | |||
| 898 | |||
| 899 | $_tok = ($_noactions) ? 0 : do { [ 'string/output-encoding' => $item[2] ] }; | ||
| 900 | unless (defined $_tok) | ||
| 901 | { | ||
| 902 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 903 | if defined $::RD_TRACE; | ||
| 904 | last; | ||
| 905 | } | ||
| 906 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 907 | . $_tok . q{])}, | ||
| 908 | Parse::RecDescent::_tracefirst($text)) | ||
| 909 | if defined $::RD_TRACE; | ||
| 910 | push @item, $_tok; | ||
| 911 | $item{__ACTION1__}=$_tok; | ||
| 912 | |||
| 913 | |||
| 914 | Parse::RecDescent::_trace(q{>>Matched production: [/--output-encoding|:E/ enc_string]<<}, | ||
| 915 | Parse::RecDescent::_tracefirst($text), | ||
| 916 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 917 | $tracelevel) | ||
| 918 | if defined $::RD_TRACE; | ||
| 919 | |||
| 920 | |||
| 921 | |||
| 922 | $_matched = 1; | ||
| 923 | last; | ||
| 924 | } | ||
| 925 | |||
| 926 | |||
| 927 | while (!$_matched && !$commit) | ||
| 928 | { | ||
| 929 | |||
| 930 | Parse::RecDescent::_trace(q{Trying production: [/--output-pipe|:P/ filename]}, | ||
| 931 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 932 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 933 | $tracelevel) | ||
| 934 | if defined $::RD_TRACE; | ||
| 935 | my $thisprod = $thisrule->{"prods"}[5]; | ||
| 936 | $text = $_[1]; | ||
| 937 | my $_savetext; | ||
| 938 | @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 939 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 940 | my $repcount = 0; | ||
| 941 | |||
| 942 | |||
| 943 | Parse::RecDescent::_trace(q{Trying terminal: [/--output-pipe|:P/]}, Parse::RecDescent::_tracefirst($text), | ||
| 944 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 945 | $tracelevel) | ||
| 946 | if defined $::RD_TRACE; | ||
| 947 | undef $lastsep; | ||
| 948 | $expectation->is(q{})->at($text); | ||
| 949 | |||
| 950 | |||
| 951 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:--output-pipe|:P)/) | ||
| 952 | { | ||
| 953 | $text = $lastsep . $text if defined $lastsep; | ||
| 954 | $expectation->failed(); | ||
| 955 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 956 | Parse::RecDescent::_tracefirst($text)) | ||
| 957 | if defined $::RD_TRACE; | ||
| 958 | |||
| 959 | last; | ||
| 960 | } | ||
| 961 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 962 | substr($text,0,length($current_match),q{}); | ||
| 963 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 964 | . $current_match . q{])}, | ||
| 965 | Parse::RecDescent::_tracefirst($text)) | ||
| 966 | if defined $::RD_TRACE; | ||
| 967 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 968 | |||
| 969 | |||
| 970 | Parse::RecDescent::_trace(q{Trying subrule: [filename]}, | ||
| 971 | Parse::RecDescent::_tracefirst($text), | ||
| 972 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 973 | $tracelevel) | ||
| 974 | if defined $::RD_TRACE; | ||
| 975 | if (1) { no strict qw{refs}; | ||
| 976 | $expectation->is(q{filename})->at($text); | ||
| 977 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::filename($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 978 | { | ||
| 979 | |||
| 980 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [filename]>>}, | ||
| 981 | Parse::RecDescent::_tracefirst($text), | ||
| 982 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 983 | $tracelevel) | ||
| 984 | if defined $::RD_TRACE; | ||
| 985 | $expectation->failed(); | ||
| 986 | last; | ||
| 987 | } | ||
| 988 | Parse::RecDescent::_trace(q{>>Matched subrule: [filename]<< (return value: [} | ||
| 989 | . $_tok . q{]}, | ||
| 990 | |||
| 991 | Parse::RecDescent::_tracefirst($text), | ||
| 992 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 993 | $tracelevel) | ||
| 994 | if defined $::RD_TRACE; | ||
| 995 | $item{q{filename}} = $_tok; | ||
| 996 | push @item, $_tok; | ||
| 997 | |||
| 998 | } | ||
| 999 | |||
| 1000 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1001 | Parse::RecDescent::_tracefirst($text), | ||
| 1002 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1003 | $tracelevel) | ||
| 1004 | if defined $::RD_TRACE; | ||
| 1005 | |||
| 1006 | |||
| 1007 | $_tok = ($_noactions) ? 0 : do { [ 'string/output-pipe' => $item[2] ] }; | ||
| 1008 | unless (defined $_tok) | ||
| 1009 | { | ||
| 1010 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1011 | if defined $::RD_TRACE; | ||
| 1012 | last; | ||
| 1013 | } | ||
| 1014 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1015 | . $_tok . q{])}, | ||
| 1016 | Parse::RecDescent::_tracefirst($text)) | ||
| 1017 | if defined $::RD_TRACE; | ||
| 1018 | push @item, $_tok; | ||
| 1019 | $item{__ACTION1__}=$_tok; | ||
| 1020 | |||
| 1021 | |||
| 1022 | Parse::RecDescent::_trace(q{>>Matched production: [/--output-pipe|:P/ filename]<<}, | ||
| 1023 | Parse::RecDescent::_tracefirst($text), | ||
| 1024 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1025 | $tracelevel) | ||
| 1026 | if defined $::RD_TRACE; | ||
| 1027 | |||
| 1028 | |||
| 1029 | |||
| 1030 | $_matched = 1; | ||
| 1031 | last; | ||
| 1032 | } | ||
| 1033 | |||
| 1034 | |||
| 1035 | while (!$_matched && !$commit) | ||
| 1036 | { | ||
| 1037 | |||
| 1038 | Parse::RecDescent::_trace(q{Trying production: [/--output-string|:S/]}, | ||
| 1039 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1040 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1041 | $tracelevel) | ||
| 1042 | if defined $::RD_TRACE; | ||
| 1043 | my $thisprod = $thisrule->{"prods"}[6]; | ||
| 1044 | $text = $_[1]; | ||
| 1045 | my $_savetext; | ||
| 1046 | @item = (q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 1047 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}); | ||
| 1048 | my $repcount = 0; | ||
| 1049 | |||
| 1050 | |||
| 1051 | Parse::RecDescent::_trace(q{Trying terminal: [/--output-string|:S/]}, Parse::RecDescent::_tracefirst($text), | ||
| 1052 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1053 | $tracelevel) | ||
| 1054 | if defined $::RD_TRACE; | ||
| 1055 | undef $lastsep; | ||
| 1056 | $expectation->is(q{})->at($text); | ||
| 1057 | |||
| 1058 | |||
| 1059 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:--output-string|:S)/) | ||
| 1060 | { | ||
| 1061 | $text = $lastsep . $text if defined $lastsep; | ||
| 1062 | $expectation->failed(); | ||
| 1063 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 1064 | Parse::RecDescent::_tracefirst($text)) | ||
| 1065 | if defined $::RD_TRACE; | ||
| 1066 | |||
| 1067 | last; | ||
| 1068 | } | ||
| 1069 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 1070 | substr($text,0,length($current_match),q{}); | ||
| 1071 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1072 | . $current_match . q{])}, | ||
| 1073 | Parse::RecDescent::_tracefirst($text)) | ||
| 1074 | if defined $::RD_TRACE; | ||
| 1075 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 1076 | |||
| 1077 | |||
| 1078 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1079 | Parse::RecDescent::_tracefirst($text), | ||
| 1080 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1081 | $tracelevel) | ||
| 1082 | if defined $::RD_TRACE; | ||
| 1083 | |||
| 1084 | |||
| 1085 | $_tok = ($_noactions) ? 0 : do { [ '/output-string' => 1 ] }; | ||
| 1086 | unless (defined $_tok) | ||
| 1087 | { | ||
| 1088 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1089 | if defined $::RD_TRACE; | ||
| 1090 | last; | ||
| 1091 | } | ||
| 1092 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1093 | . $_tok . q{])}, | ||
| 1094 | Parse::RecDescent::_tracefirst($text)) | ||
| 1095 | if defined $::RD_TRACE; | ||
| 1096 | push @item, $_tok; | ||
| 1097 | $item{__ACTION1__}=$_tok; | ||
| 1098 | |||
| 1099 | |||
| 1100 | Parse::RecDescent::_trace(q{>>Matched production: [/--output-string|:S/]<<}, | ||
| 1101 | Parse::RecDescent::_tracefirst($text), | ||
| 1102 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1103 | $tracelevel) | ||
| 1104 | if defined $::RD_TRACE; | ||
| 1105 | |||
| 1106 | |||
| 1107 | |||
| 1108 | $_matched = 1; | ||
| 1109 | last; | ||
| 1110 | } | ||
| 1111 | |||
| 1112 | |||
| 1113 | unless ( $_matched || defined($score) ) | ||
| 1114 | { | ||
| 1115 | |||
| 1116 | |||
| 1117 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 1118 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 1119 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1120 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1121 | $tracelevel) | ||
| 1122 | if defined $::RD_TRACE; | ||
| 1123 | return undef; | ||
| 1124 | } | ||
| 1125 | if (!defined($return) && defined($score)) | ||
| 1126 | { | ||
| 1127 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 1128 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1129 | $tracelevel) | ||
| 1130 | if defined $::RD_TRACE; | ||
| 1131 | $return = $score_return; | ||
| 1132 | } | ||
| 1133 | splice @{$thisparser->{errors}}, $err_at; | ||
| 1134 | $return = $item[$#item] unless defined $return; | ||
| 1135 | if (defined $::RD_TRACE) | ||
| 1136 | { | ||
| 1137 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 1138 | $return . q{])}, "", | ||
| 1139 | q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1140 | $tracelevel); | ||
| 1141 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 1142 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 1143 | Parse::RecDescent::_tracefirst($text), | ||
| 1144 | , q{_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command}, | ||
| 1145 | $tracelevel) | ||
| 1146 | } | ||
| 1147 | $_[1] = $text; | ||
| 1148 | return $return; | ||
| 1149 | } | ||
| 1150 | |||
| 1151 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 1152 | sub Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_1_of_rule_local_var | ||
| 1153 | { | ||
| 1154 | my $thisparser = $_[0]; | ||
| 1155 | use vars q{$tracelevel}; | ||
| 1156 | local $tracelevel = ($tracelevel||0)+1; | ||
| 1157 | $ERRORS = 0; | ||
| 1158 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_local_var"}; | ||
| 1159 | |||
| 1160 | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_local_var]}, | ||
| 1161 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1162 | q{_alternation_1_of_production_1_of_rule_local_var}, | ||
| 1163 | $tracelevel) | ||
| 1164 | if defined $::RD_TRACE; | ||
| 1165 | |||
| 1166 | |||
| 1167 | my $err_at = @{$thisparser->{errors}}; | ||
| 1168 | |||
| 1169 | my $score; | ||
| 1170 | my $score_return; | ||
| 1171 | my $_tok; | ||
| 1172 | my $return = undef; | ||
| 1173 | my $_matched=0; | ||
| 1174 | my $commit=0; | ||
| 1175 | my @item = (); | ||
| 1176 | my %item = (); | ||
| 1177 | my $repeating = $_[2]; | ||
| 1178 | my $_noactions = $_[3]; | ||
| 1179 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 1180 | my $_itempos = $_[5]; | ||
| 1181 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 1182 | my $text; | ||
| 1183 | my $lastsep; | ||
| 1184 | my $current_match; | ||
| 1185 | my $expectation = new Parse::RecDescent::Expectation(q{/(local|my)\\s/}); | ||
| 1186 | $expectation->at($_[1]); | ||
| 1187 | |||
| 1188 | my $thisoffset; | ||
| 1189 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 1190 | |||
| 1191 | my $thiscolumn; | ||
| 1192 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 1193 | |||
| 1194 | my $thisline; | ||
| 1195 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 1196 | |||
| 1197 | |||
| 1198 | |||
| 1199 | while (!$_matched && !$commit) | ||
| 1200 | { | ||
| 1201 | |||
| 1202 | Parse::RecDescent::_trace(q{Trying production: [/(local|my)\\s/]}, | ||
| 1203 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1204 | q{_alternation_1_of_production_1_of_rule_local_var}, | ||
| 1205 | $tracelevel) | ||
| 1206 | if defined $::RD_TRACE; | ||
| 1207 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 1208 | $text = $_[1]; | ||
| 1209 | my $_savetext; | ||
| 1210 | @item = (q{_alternation_1_of_production_1_of_rule_local_var}); | ||
| 1211 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_local_var}); | ||
| 1212 | my $repcount = 0; | ||
| 1213 | |||
| 1214 | |||
| 1215 | Parse::RecDescent::_trace(q{Trying terminal: [/(local|my)\\s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 1216 | q{_alternation_1_of_production_1_of_rule_local_var}, | ||
| 1217 | $tracelevel) | ||
| 1218 | if defined $::RD_TRACE; | ||
| 1219 | undef $lastsep; | ||
| 1220 | $expectation->is(q{})->at($text); | ||
| 1221 | |||
| 1222 | |||
| 1223 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(local|my)\s)/) | ||
| 1224 | { | ||
| 1225 | $text = $lastsep . $text if defined $lastsep; | ||
| 1226 | $expectation->failed(); | ||
| 1227 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 1228 | Parse::RecDescent::_tracefirst($text)) | ||
| 1229 | if defined $::RD_TRACE; | ||
| 1230 | |||
| 1231 | last; | ||
| 1232 | } | ||
| 1233 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 1234 | substr($text,0,length($current_match),q{}); | ||
| 1235 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1236 | . $current_match . q{])}, | ||
| 1237 | Parse::RecDescent::_tracefirst($text)) | ||
| 1238 | if defined $::RD_TRACE; | ||
| 1239 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 1240 | |||
| 1241 | |||
| 1242 | Parse::RecDescent::_trace(q{>>Matched production: [/(local|my)\\s/]<<}, | ||
| 1243 | Parse::RecDescent::_tracefirst($text), | ||
| 1244 | q{_alternation_1_of_production_1_of_rule_local_var}, | ||
| 1245 | $tracelevel) | ||
| 1246 | if defined $::RD_TRACE; | ||
| 1247 | |||
| 1248 | |||
| 1249 | |||
| 1250 | $_matched = 1; | ||
| 1251 | last; | ||
| 1252 | } | ||
| 1253 | |||
| 1254 | |||
| 1255 | unless ( $_matched || defined($score) ) | ||
| 1256 | { | ||
| 1257 | |||
| 1258 | |||
| 1259 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 1260 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 1261 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1262 | q{_alternation_1_of_production_1_of_rule_local_var}, | ||
| 1263 | $tracelevel) | ||
| 1264 | if defined $::RD_TRACE; | ||
| 1265 | return undef; | ||
| 1266 | } | ||
| 1267 | if (!defined($return) && defined($score)) | ||
| 1268 | { | ||
| 1269 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 1270 | q{_alternation_1_of_production_1_of_rule_local_var}, | ||
| 1271 | $tracelevel) | ||
| 1272 | if defined $::RD_TRACE; | ||
| 1273 | $return = $score_return; | ||
| 1274 | } | ||
| 1275 | splice @{$thisparser->{errors}}, $err_at; | ||
| 1276 | $return = $item[$#item] unless defined $return; | ||
| 1277 | if (defined $::RD_TRACE) | ||
| 1278 | { | ||
| 1279 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 1280 | $return . q{])}, "", | ||
| 1281 | q{_alternation_1_of_production_1_of_rule_local_var}, | ||
| 1282 | $tracelevel); | ||
| 1283 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 1284 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 1285 | Parse::RecDescent::_tracefirst($text), | ||
| 1286 | , q{_alternation_1_of_production_1_of_rule_local_var}, | ||
| 1287 | $tracelevel) | ||
| 1288 | } | ||
| 1289 | $_[1] = $text; | ||
| 1290 | return $return; | ||
| 1291 | } | ||
| 1292 | |||
| 1293 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 1294 | sub Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_1_of_rule_xpcont | ||
| 1295 | { | ||
| 1296 | my $thisparser = $_[0]; | ||
| 1297 | use vars q{$tracelevel}; | ||
| 1298 | local $tracelevel = ($tracelevel||0)+1; | ||
| 1299 | $ERRORS = 0; | ||
| 1300 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_xpcont"}; | ||
| 1301 | |||
| 1302 | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_xpcont]}, | ||
| 1303 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1304 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1305 | $tracelevel) | ||
| 1306 | if defined $::RD_TRACE; | ||
| 1307 | |||
| 1308 | |||
| 1309 | my $err_at = @{$thisparser->{errors}}; | ||
| 1310 | |||
| 1311 | my $score; | ||
| 1312 | my $score_return; | ||
| 1313 | my $_tok; | ||
| 1314 | my $return = undef; | ||
| 1315 | my $_matched=0; | ||
| 1316 | my $commit=0; | ||
| 1317 | my @item = (); | ||
| 1318 | my %item = (); | ||
| 1319 | my $repeating = $_[2]; | ||
| 1320 | my $_noactions = $_[3]; | ||
| 1321 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 1322 | my $_itempos = $_[5]; | ||
| 1323 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 1324 | my $text; | ||
| 1325 | my $lastsep; | ||
| 1326 | my $current_match; | ||
| 1327 | my $expectation = new Parse::RecDescent::Expectation(q{xpfilters, or xpbrackets}); | ||
| 1328 | $expectation->at($_[1]); | ||
| 1329 | |||
| 1330 | my $thisoffset; | ||
| 1331 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 1332 | |||
| 1333 | my $thiscolumn; | ||
| 1334 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 1335 | |||
| 1336 | my $thisline; | ||
| 1337 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 1338 | |||
| 1339 | |||
| 1340 | |||
| 1341 | while (!$_matched && !$commit) | ||
| 1342 | { | ||
| 1343 | |||
| 1344 | Parse::RecDescent::_trace(q{Trying production: [xpfilters]}, | ||
| 1345 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1346 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1347 | $tracelevel) | ||
| 1348 | if defined $::RD_TRACE; | ||
| 1349 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 1350 | $text = $_[1]; | ||
| 1351 | my $_savetext; | ||
| 1352 | @item = (q{_alternation_1_of_production_1_of_rule_xpcont}); | ||
| 1353 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_xpcont}); | ||
| 1354 | my $repcount = 0; | ||
| 1355 | |||
| 1356 | |||
| 1357 | Parse::RecDescent::_trace(q{Trying subrule: [xpfilters]}, | ||
| 1358 | Parse::RecDescent::_tracefirst($text), | ||
| 1359 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1360 | $tracelevel) | ||
| 1361 | if defined $::RD_TRACE; | ||
| 1362 | if (1) { no strict qw{refs}; | ||
| 1363 | $expectation->is(q{})->at($text); | ||
| 1364 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpfilters($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 1365 | { | ||
| 1366 | |||
| 1367 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpfilters]>>}, | ||
| 1368 | Parse::RecDescent::_tracefirst($text), | ||
| 1369 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1370 | $tracelevel) | ||
| 1371 | if defined $::RD_TRACE; | ||
| 1372 | $expectation->failed(); | ||
| 1373 | last; | ||
| 1374 | } | ||
| 1375 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpfilters]<< (return value: [} | ||
| 1376 | . $_tok . q{]}, | ||
| 1377 | |||
| 1378 | Parse::RecDescent::_tracefirst($text), | ||
| 1379 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1380 | $tracelevel) | ||
| 1381 | if defined $::RD_TRACE; | ||
| 1382 | $item{q{xpfilters}} = $_tok; | ||
| 1383 | push @item, $_tok; | ||
| 1384 | |||
| 1385 | } | ||
| 1386 | |||
| 1387 | Parse::RecDescent::_trace(q{>>Matched production: [xpfilters]<<}, | ||
| 1388 | Parse::RecDescent::_tracefirst($text), | ||
| 1389 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1390 | $tracelevel) | ||
| 1391 | if defined $::RD_TRACE; | ||
| 1392 | |||
| 1393 | |||
| 1394 | |||
| 1395 | $_matched = 1; | ||
| 1396 | last; | ||
| 1397 | } | ||
| 1398 | |||
| 1399 | |||
| 1400 | while (!$_matched && !$commit) | ||
| 1401 | { | ||
| 1402 | |||
| 1403 | Parse::RecDescent::_trace(q{Trying production: [xpbrackets]}, | ||
| 1404 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1405 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1406 | $tracelevel) | ||
| 1407 | if defined $::RD_TRACE; | ||
| 1408 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 1409 | $text = $_[1]; | ||
| 1410 | my $_savetext; | ||
| 1411 | @item = (q{_alternation_1_of_production_1_of_rule_xpcont}); | ||
| 1412 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_xpcont}); | ||
| 1413 | my $repcount = 0; | ||
| 1414 | |||
| 1415 | |||
| 1416 | Parse::RecDescent::_trace(q{Trying subrule: [xpbrackets]}, | ||
| 1417 | Parse::RecDescent::_tracefirst($text), | ||
| 1418 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1419 | $tracelevel) | ||
| 1420 | if defined $::RD_TRACE; | ||
| 1421 | if (1) { no strict qw{refs}; | ||
| 1422 | $expectation->is(q{})->at($text); | ||
| 1423 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpbrackets($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 1424 | { | ||
| 1425 | |||
| 1426 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpbrackets]>>}, | ||
| 1427 | Parse::RecDescent::_tracefirst($text), | ||
| 1428 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1429 | $tracelevel) | ||
| 1430 | if defined $::RD_TRACE; | ||
| 1431 | $expectation->failed(); | ||
| 1432 | last; | ||
| 1433 | } | ||
| 1434 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpbrackets]<< (return value: [} | ||
| 1435 | . $_tok . q{]}, | ||
| 1436 | |||
| 1437 | Parse::RecDescent::_tracefirst($text), | ||
| 1438 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1439 | $tracelevel) | ||
| 1440 | if defined $::RD_TRACE; | ||
| 1441 | $item{q{xpbrackets}} = $_tok; | ||
| 1442 | push @item, $_tok; | ||
| 1443 | |||
| 1444 | } | ||
| 1445 | |||
| 1446 | Parse::RecDescent::_trace(q{>>Matched production: [xpbrackets]<<}, | ||
| 1447 | Parse::RecDescent::_tracefirst($text), | ||
| 1448 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1449 | $tracelevel) | ||
| 1450 | if defined $::RD_TRACE; | ||
| 1451 | |||
| 1452 | |||
| 1453 | |||
| 1454 | $_matched = 1; | ||
| 1455 | last; | ||
| 1456 | } | ||
| 1457 | |||
| 1458 | |||
| 1459 | unless ( $_matched || defined($score) ) | ||
| 1460 | { | ||
| 1461 | |||
| 1462 | |||
| 1463 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 1464 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 1465 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1466 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1467 | $tracelevel) | ||
| 1468 | if defined $::RD_TRACE; | ||
| 1469 | return undef; | ||
| 1470 | } | ||
| 1471 | if (!defined($return) && defined($score)) | ||
| 1472 | { | ||
| 1473 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 1474 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1475 | $tracelevel) | ||
| 1476 | if defined $::RD_TRACE; | ||
| 1477 | $return = $score_return; | ||
| 1478 | } | ||
| 1479 | splice @{$thisparser->{errors}}, $err_at; | ||
| 1480 | $return = $item[$#item] unless defined $return; | ||
| 1481 | if (defined $::RD_TRACE) | ||
| 1482 | { | ||
| 1483 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 1484 | $return . q{])}, "", | ||
| 1485 | q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1486 | $tracelevel); | ||
| 1487 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 1488 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 1489 | Parse::RecDescent::_tracefirst($text), | ||
| 1490 | , q{_alternation_1_of_production_1_of_rule_xpcont}, | ||
| 1491 | $tracelevel) | ||
| 1492 | } | ||
| 1493 | $_[1] = $text; | ||
| 1494 | return $return; | ||
| 1495 | } | ||
| 1496 | |||
| 1497 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 1498 | sub Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_1_of_rule_xpintercont | ||
| 1499 | { | ||
| 1500 | my $thisparser = $_[0]; | ||
| 1501 | use vars q{$tracelevel}; | ||
| 1502 | local $tracelevel = ($tracelevel||0)+1; | ||
| 1503 | $ERRORS = 0; | ||
| 1504 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_1_of_rule_xpintercont"}; | ||
| 1505 | |||
| 1506 | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_1_of_rule_xpintercont]}, | ||
| 1507 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1508 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1509 | $tracelevel) | ||
| 1510 | if defined $::RD_TRACE; | ||
| 1511 | |||
| 1512 | |||
| 1513 | my $err_at = @{$thisparser->{errors}}; | ||
| 1514 | |||
| 1515 | my $score; | ||
| 1516 | my $score_return; | ||
| 1517 | my $_tok; | ||
| 1518 | my $return = undef; | ||
| 1519 | my $_matched=0; | ||
| 1520 | my $commit=0; | ||
| 1521 | my @item = (); | ||
| 1522 | my %item = (); | ||
| 1523 | my $repeating = $_[2]; | ||
| 1524 | my $_noactions = $_[3]; | ||
| 1525 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 1526 | my $_itempos = $_[5]; | ||
| 1527 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 1528 | my $text; | ||
| 1529 | my $lastsep; | ||
| 1530 | my $current_match; | ||
| 1531 | my $expectation = new Parse::RecDescent::Expectation(q{xpfilters, or xpbrackets}); | ||
| 1532 | $expectation->at($_[1]); | ||
| 1533 | |||
| 1534 | my $thisoffset; | ||
| 1535 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 1536 | |||
| 1537 | my $thiscolumn; | ||
| 1538 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 1539 | |||
| 1540 | my $thisline; | ||
| 1541 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 1542 | |||
| 1543 | |||
| 1544 | |||
| 1545 | while (!$_matched && !$commit) | ||
| 1546 | { | ||
| 1547 | |||
| 1548 | Parse::RecDescent::_trace(q{Trying production: [xpfilters]}, | ||
| 1549 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1550 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1551 | $tracelevel) | ||
| 1552 | if defined $::RD_TRACE; | ||
| 1553 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 1554 | $text = $_[1]; | ||
| 1555 | my $_savetext; | ||
| 1556 | @item = (q{_alternation_1_of_production_1_of_rule_xpintercont}); | ||
| 1557 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_xpintercont}); | ||
| 1558 | my $repcount = 0; | ||
| 1559 | |||
| 1560 | |||
| 1561 | Parse::RecDescent::_trace(q{Trying subrule: [xpfilters]}, | ||
| 1562 | Parse::RecDescent::_tracefirst($text), | ||
| 1563 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1564 | $tracelevel) | ||
| 1565 | if defined $::RD_TRACE; | ||
| 1566 | if (1) { no strict qw{refs}; | ||
| 1567 | $expectation->is(q{})->at($text); | ||
| 1568 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpfilters($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 1569 | { | ||
| 1570 | |||
| 1571 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpfilters]>>}, | ||
| 1572 | Parse::RecDescent::_tracefirst($text), | ||
| 1573 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1574 | $tracelevel) | ||
| 1575 | if defined $::RD_TRACE; | ||
| 1576 | $expectation->failed(); | ||
| 1577 | last; | ||
| 1578 | } | ||
| 1579 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpfilters]<< (return value: [} | ||
| 1580 | . $_tok . q{]}, | ||
| 1581 | |||
| 1582 | Parse::RecDescent::_tracefirst($text), | ||
| 1583 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1584 | $tracelevel) | ||
| 1585 | if defined $::RD_TRACE; | ||
| 1586 | $item{q{xpfilters}} = $_tok; | ||
| 1587 | push @item, $_tok; | ||
| 1588 | |||
| 1589 | } | ||
| 1590 | |||
| 1591 | Parse::RecDescent::_trace(q{>>Matched production: [xpfilters]<<}, | ||
| 1592 | Parse::RecDescent::_tracefirst($text), | ||
| 1593 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1594 | $tracelevel) | ||
| 1595 | if defined $::RD_TRACE; | ||
| 1596 | |||
| 1597 | |||
| 1598 | |||
| 1599 | $_matched = 1; | ||
| 1600 | last; | ||
| 1601 | } | ||
| 1602 | |||
| 1603 | |||
| 1604 | while (!$_matched && !$commit) | ||
| 1605 | { | ||
| 1606 | |||
| 1607 | Parse::RecDescent::_trace(q{Trying production: [xpbrackets]}, | ||
| 1608 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1609 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1610 | $tracelevel) | ||
| 1611 | if defined $::RD_TRACE; | ||
| 1612 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 1613 | $text = $_[1]; | ||
| 1614 | my $_savetext; | ||
| 1615 | @item = (q{_alternation_1_of_production_1_of_rule_xpintercont}); | ||
| 1616 | %item = (__RULE__ => q{_alternation_1_of_production_1_of_rule_xpintercont}); | ||
| 1617 | my $repcount = 0; | ||
| 1618 | |||
| 1619 | |||
| 1620 | Parse::RecDescent::_trace(q{Trying subrule: [xpbrackets]}, | ||
| 1621 | Parse::RecDescent::_tracefirst($text), | ||
| 1622 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1623 | $tracelevel) | ||
| 1624 | if defined $::RD_TRACE; | ||
| 1625 | if (1) { no strict qw{refs}; | ||
| 1626 | $expectation->is(q{})->at($text); | ||
| 1627 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpbrackets($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 1628 | { | ||
| 1629 | |||
| 1630 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpbrackets]>>}, | ||
| 1631 | Parse::RecDescent::_tracefirst($text), | ||
| 1632 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1633 | $tracelevel) | ||
| 1634 | if defined $::RD_TRACE; | ||
| 1635 | $expectation->failed(); | ||
| 1636 | last; | ||
| 1637 | } | ||
| 1638 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpbrackets]<< (return value: [} | ||
| 1639 | . $_tok . q{]}, | ||
| 1640 | |||
| 1641 | Parse::RecDescent::_tracefirst($text), | ||
| 1642 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1643 | $tracelevel) | ||
| 1644 | if defined $::RD_TRACE; | ||
| 1645 | $item{q{xpbrackets}} = $_tok; | ||
| 1646 | push @item, $_tok; | ||
| 1647 | |||
| 1648 | } | ||
| 1649 | |||
| 1650 | Parse::RecDescent::_trace(q{>>Matched production: [xpbrackets]<<}, | ||
| 1651 | Parse::RecDescent::_tracefirst($text), | ||
| 1652 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1653 | $tracelevel) | ||
| 1654 | if defined $::RD_TRACE; | ||
| 1655 | |||
| 1656 | |||
| 1657 | |||
| 1658 | $_matched = 1; | ||
| 1659 | last; | ||
| 1660 | } | ||
| 1661 | |||
| 1662 | |||
| 1663 | unless ( $_matched || defined($score) ) | ||
| 1664 | { | ||
| 1665 | |||
| 1666 | |||
| 1667 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 1668 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 1669 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1670 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1671 | $tracelevel) | ||
| 1672 | if defined $::RD_TRACE; | ||
| 1673 | return undef; | ||
| 1674 | } | ||
| 1675 | if (!defined($return) && defined($score)) | ||
| 1676 | { | ||
| 1677 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 1678 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1679 | $tracelevel) | ||
| 1680 | if defined $::RD_TRACE; | ||
| 1681 | $return = $score_return; | ||
| 1682 | } | ||
| 1683 | splice @{$thisparser->{errors}}, $err_at; | ||
| 1684 | $return = $item[$#item] unless defined $return; | ||
| 1685 | if (defined $::RD_TRACE) | ||
| 1686 | { | ||
| 1687 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 1688 | $return . q{])}, "", | ||
| 1689 | q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1690 | $tracelevel); | ||
| 1691 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 1692 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 1693 | Parse::RecDescent::_tracefirst($text), | ||
| 1694 | , q{_alternation_1_of_production_1_of_rule_xpintercont}, | ||
| 1695 | $tracelevel) | ||
| 1696 | } | ||
| 1697 | $_[1] = $text; | ||
| 1698 | return $return; | ||
| 1699 | } | ||
| 1700 | |||
| 1701 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 1702 | sub Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_2_of_rule_command | ||
| 1703 | { | ||
| 1704 | my $thisparser = $_[0]; | ||
| 1705 | use vars q{$tracelevel}; | ||
| 1706 | local $tracelevel = ($tracelevel||0)+1; | ||
| 1707 | $ERRORS = 0; | ||
| 1708 | my $thisrule = $thisparser->{"rules"}{"_alternation_1_of_production_2_of_rule_command"}; | ||
| 1709 | |||
| 1710 | Parse::RecDescent::_trace(q{Trying rule: [_alternation_1_of_production_2_of_rule_command]}, | ||
| 1711 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1712 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1713 | $tracelevel) | ||
| 1714 | if defined $::RD_TRACE; | ||
| 1715 | |||
| 1716 | |||
| 1717 | my $err_at = @{$thisparser->{errors}}; | ||
| 1718 | |||
| 1719 | my $score; | ||
| 1720 | my $score_return; | ||
| 1721 | my $_tok; | ||
| 1722 | my $return = undef; | ||
| 1723 | my $_matched=0; | ||
| 1724 | my $commit=0; | ||
| 1725 | my @item = (); | ||
| 1726 | my %item = (); | ||
| 1727 | my $repeating = $_[2]; | ||
| 1728 | my $_noactions = $_[3]; | ||
| 1729 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 1730 | my $_itempos = $_[5]; | ||
| 1731 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 1732 | my $text; | ||
| 1733 | my $lastsep; | ||
| 1734 | my $current_match; | ||
| 1735 | my $expectation = new Parse::RecDescent::Expectation(q{/(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?=/, or /\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:=/}); | ||
| 1736 | $expectation->at($_[1]); | ||
| 1737 | |||
| 1738 | my $thisoffset; | ||
| 1739 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 1740 | |||
| 1741 | my $thiscolumn; | ||
| 1742 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 1743 | |||
| 1744 | my $thisline; | ||
| 1745 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 1746 | |||
| 1747 | |||
| 1748 | |||
| 1749 | while (!$_matched && !$commit) | ||
| 1750 | { | ||
| 1751 | |||
| 1752 | Parse::RecDescent::_trace(q{Trying production: [/(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?=/ <commit> loose_exp]}, | ||
| 1753 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1754 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1755 | $tracelevel) | ||
| 1756 | if defined $::RD_TRACE; | ||
| 1757 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 1758 | $text = $_[1]; | ||
| 1759 | my $_savetext; | ||
| 1760 | @item = (q{_alternation_1_of_production_2_of_rule_command}); | ||
| 1761 | %item = (__RULE__ => q{_alternation_1_of_production_2_of_rule_command}); | ||
| 1762 | my $repcount = 0; | ||
| 1763 | |||
| 1764 | |||
| 1765 | Parse::RecDescent::_trace(q{Trying terminal: [/(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?=/]}, Parse::RecDescent::_tracefirst($text), | ||
| 1766 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1767 | $tracelevel) | ||
| 1768 | if defined $::RD_TRACE; | ||
| 1769 | undef $lastsep; | ||
| 1770 | $expectation->is(q{})->at($text); | ||
| 1771 | |||
| 1772 | |||
| 1773 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?:[\-\+\*\/%x.]|\|\||\&\&)?=)/) | ||
| 1774 | { | ||
| 1775 | $text = $lastsep . $text if defined $lastsep; | ||
| 1776 | $expectation->failed(); | ||
| 1777 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 1778 | Parse::RecDescent::_tracefirst($text)) | ||
| 1779 | if defined $::RD_TRACE; | ||
| 1780 | |||
| 1781 | last; | ||
| 1782 | } | ||
| 1783 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 1784 | substr($text,0,length($current_match),q{}); | ||
| 1785 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1786 | . $current_match . q{])}, | ||
| 1787 | Parse::RecDescent::_tracefirst($text)) | ||
| 1788 | if defined $::RD_TRACE; | ||
| 1789 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 1790 | |||
| 1791 | |||
| 1792 | |||
| 1793 | |||
| 1794 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 1795 | Parse::RecDescent::_tracefirst($text), | ||
| 1796 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1797 | $tracelevel) | ||
| 1798 | if defined $::RD_TRACE; | ||
| 1799 | $_tok = do { $commit = 1 }; | ||
| 1800 | if (defined($_tok)) | ||
| 1801 | { | ||
| 1802 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 1803 | . $_tok . q{])}, | ||
| 1804 | Parse::RecDescent::_tracefirst($text)) | ||
| 1805 | if defined $::RD_TRACE; | ||
| 1806 | } | ||
| 1807 | else | ||
| 1808 | { | ||
| 1809 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 1810 | Parse::RecDescent::_tracefirst($text)) | ||
| 1811 | if defined $::RD_TRACE; | ||
| 1812 | } | ||
| 1813 | |||
| 1814 | last unless defined $_tok; | ||
| 1815 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 1816 | |||
| 1817 | |||
| 1818 | Parse::RecDescent::_trace(q{Trying subrule: [loose_exp]}, | ||
| 1819 | Parse::RecDescent::_tracefirst($text), | ||
| 1820 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1821 | $tracelevel) | ||
| 1822 | if defined $::RD_TRACE; | ||
| 1823 | if (1) { no strict qw{refs}; | ||
| 1824 | $expectation->is(q{loose_exp})->at($text); | ||
| 1825 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::loose_exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 1826 | { | ||
| 1827 | |||
| 1828 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [loose_exp]>>}, | ||
| 1829 | Parse::RecDescent::_tracefirst($text), | ||
| 1830 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1831 | $tracelevel) | ||
| 1832 | if defined $::RD_TRACE; | ||
| 1833 | $expectation->failed(); | ||
| 1834 | last; | ||
| 1835 | } | ||
| 1836 | Parse::RecDescent::_trace(q{>>Matched subrule: [loose_exp]<< (return value: [} | ||
| 1837 | . $_tok . q{]}, | ||
| 1838 | |||
| 1839 | Parse::RecDescent::_tracefirst($text), | ||
| 1840 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1841 | $tracelevel) | ||
| 1842 | if defined $::RD_TRACE; | ||
| 1843 | $item{q{loose_exp}} = $_tok; | ||
| 1844 | push @item, $_tok; | ||
| 1845 | |||
| 1846 | } | ||
| 1847 | |||
| 1848 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1849 | Parse::RecDescent::_tracefirst($text), | ||
| 1850 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1851 | $tracelevel) | ||
| 1852 | if defined $::RD_TRACE; | ||
| 1853 | |||
| 1854 | |||
| 1855 | $_tok = ($_noactions) ? 0 : do { ['xpath_assign',$item[3],$item[1]] }; | ||
| 1856 | unless (defined $_tok) | ||
| 1857 | { | ||
| 1858 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1859 | if defined $::RD_TRACE; | ||
| 1860 | last; | ||
| 1861 | } | ||
| 1862 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1863 | . $_tok . q{])}, | ||
| 1864 | Parse::RecDescent::_tracefirst($text)) | ||
| 1865 | if defined $::RD_TRACE; | ||
| 1866 | push @item, $_tok; | ||
| 1867 | $item{__ACTION1__}=$_tok; | ||
| 1868 | |||
| 1869 | |||
| 1870 | Parse::RecDescent::_trace(q{>>Matched production: [/(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?=/ <commit> loose_exp]<<}, | ||
| 1871 | Parse::RecDescent::_tracefirst($text), | ||
| 1872 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1873 | $tracelevel) | ||
| 1874 | if defined $::RD_TRACE; | ||
| 1875 | |||
| 1876 | |||
| 1877 | |||
| 1878 | $_matched = 1; | ||
| 1879 | last; | ||
| 1880 | } | ||
| 1881 | |||
| 1882 | |||
| 1883 | while (!$_matched && !$commit) | ||
| 1884 | { | ||
| 1885 | |||
| 1886 | Parse::RecDescent::_trace(q{Trying production: [/\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:=/ command]}, | ||
| 1887 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1888 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1889 | $tracelevel) | ||
| 1890 | if defined $::RD_TRACE; | ||
| 1891 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 1892 | $text = $_[1]; | ||
| 1893 | my $_savetext; | ||
| 1894 | @item = (q{_alternation_1_of_production_2_of_rule_command}); | ||
| 1895 | %item = (__RULE__ => q{_alternation_1_of_production_2_of_rule_command}); | ||
| 1896 | my $repcount = 0; | ||
| 1897 | |||
| 1898 | |||
| 1899 | Parse::RecDescent::_trace(q{Trying terminal: [/\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:=/]}, Parse::RecDescent::_tracefirst($text), | ||
| 1900 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1901 | $tracelevel) | ||
| 1902 | if defined $::RD_TRACE; | ||
| 1903 | undef $lastsep; | ||
| 1904 | $expectation->is(q{})->at($text); | ||
| 1905 | |||
| 1906 | |||
| 1907 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*(?:[\-\+\*\/%x.]|\|\||\&\&)?:=)/) | ||
| 1908 | { | ||
| 1909 | $text = $lastsep . $text if defined $lastsep; | ||
| 1910 | $expectation->failed(); | ||
| 1911 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 1912 | Parse::RecDescent::_tracefirst($text)) | ||
| 1913 | if defined $::RD_TRACE; | ||
| 1914 | |||
| 1915 | last; | ||
| 1916 | } | ||
| 1917 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 1918 | substr($text,0,length($current_match),q{}); | ||
| 1919 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1920 | . $current_match . q{])}, | ||
| 1921 | Parse::RecDescent::_tracefirst($text)) | ||
| 1922 | if defined $::RD_TRACE; | ||
| 1923 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 1924 | |||
| 1925 | |||
| 1926 | Parse::RecDescent::_trace(q{Trying subrule: [command]}, | ||
| 1927 | Parse::RecDescent::_tracefirst($text), | ||
| 1928 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1929 | $tracelevel) | ||
| 1930 | if defined $::RD_TRACE; | ||
| 1931 | if (1) { no strict qw{refs}; | ||
| 1932 | $expectation->is(q{command})->at($text); | ||
| 1933 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::command($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 1934 | { | ||
| 1935 | |||
| 1936 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [command]>>}, | ||
| 1937 | Parse::RecDescent::_tracefirst($text), | ||
| 1938 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1939 | $tracelevel) | ||
| 1940 | if defined $::RD_TRACE; | ||
| 1941 | $expectation->failed(); | ||
| 1942 | last; | ||
| 1943 | } | ||
| 1944 | Parse::RecDescent::_trace(q{>>Matched subrule: [command]<< (return value: [} | ||
| 1945 | . $_tok . q{]}, | ||
| 1946 | |||
| 1947 | Parse::RecDescent::_tracefirst($text), | ||
| 1948 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1949 | $tracelevel) | ||
| 1950 | if defined $::RD_TRACE; | ||
| 1951 | $item{q{command}} = $_tok; | ||
| 1952 | push @item, $_tok; | ||
| 1953 | |||
| 1954 | } | ||
| 1955 | |||
| 1956 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1957 | Parse::RecDescent::_tracefirst($text), | ||
| 1958 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1959 | $tracelevel) | ||
| 1960 | if defined $::RD_TRACE; | ||
| 1961 | |||
| 1962 | |||
| 1963 | $_tok = ($_noactions) ? 0 : do { ['command_assign',$item[2],$item[1]] }; | ||
| 1964 | unless (defined $_tok) | ||
| 1965 | { | ||
| 1966 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1967 | if defined $::RD_TRACE; | ||
| 1968 | last; | ||
| 1969 | } | ||
| 1970 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1971 | . $_tok . q{])}, | ||
| 1972 | Parse::RecDescent::_tracefirst($text)) | ||
| 1973 | if defined $::RD_TRACE; | ||
| 1974 | push @item, $_tok; | ||
| 1975 | $item{__ACTION1__}=$_tok; | ||
| 1976 | |||
| 1977 | |||
| 1978 | Parse::RecDescent::_trace(q{>>Matched production: [/\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:=/ command]<<}, | ||
| 1979 | Parse::RecDescent::_tracefirst($text), | ||
| 1980 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1981 | $tracelevel) | ||
| 1982 | if defined $::RD_TRACE; | ||
| 1983 | |||
| 1984 | |||
| 1985 | |||
| 1986 | $_matched = 1; | ||
| 1987 | last; | ||
| 1988 | } | ||
| 1989 | |||
| 1990 | |||
| 1991 | unless ( $_matched || defined($score) ) | ||
| 1992 | { | ||
| 1993 | |||
| 1994 | |||
| 1995 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 1996 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 1997 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1998 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 1999 | $tracelevel) | ||
| 2000 | if defined $::RD_TRACE; | ||
| 2001 | return undef; | ||
| 2002 | } | ||
| 2003 | if (!defined($return) && defined($score)) | ||
| 2004 | { | ||
| 2005 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 2006 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 2007 | $tracelevel) | ||
| 2008 | if defined $::RD_TRACE; | ||
| 2009 | $return = $score_return; | ||
| 2010 | } | ||
| 2011 | splice @{$thisparser->{errors}}, $err_at; | ||
| 2012 | $return = $item[$#item] unless defined $return; | ||
| 2013 | if (defined $::RD_TRACE) | ||
| 2014 | { | ||
| 2015 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 2016 | $return . q{])}, "", | ||
| 2017 | q{_alternation_1_of_production_2_of_rule_command}, | ||
| 2018 | $tracelevel); | ||
| 2019 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 2020 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 2021 | Parse::RecDescent::_tracefirst($text), | ||
| 2022 | , q{_alternation_1_of_production_2_of_rule_command}, | ||
| 2023 | $tracelevel) | ||
| 2024 | } | ||
| 2025 | $_[1] = $text; | ||
| 2026 | return $return; | ||
| 2027 | } | ||
| 2028 | |||
| 2029 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 2030 | sub Parse::RecDescent::XML::XSH2::Parser::block | ||
| 2031 | { | ||
| 2032 | my $thisparser = $_[0]; | ||
| 2033 | use vars q{$tracelevel}; | ||
| 2034 | local $tracelevel = ($tracelevel||0)+1; | ||
| 2035 | $ERRORS = 0; | ||
| 2036 | my $thisrule = $thisparser->{"rules"}{"block"}; | ||
| 2037 | |||
| 2038 | Parse::RecDescent::_trace(q{Trying rule: [block]}, | ||
| 2039 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2040 | q{block}, | ||
| 2041 | $tracelevel) | ||
| 2042 | if defined $::RD_TRACE; | ||
| 2043 | |||
| 2044 | |||
| 2045 | my $err_at = @{$thisparser->{errors}}; | ||
| 2046 | |||
| 2047 | my $score; | ||
| 2048 | my $score_return; | ||
| 2049 | my $_tok; | ||
| 2050 | my $return = undef; | ||
| 2051 | my $_matched=0; | ||
| 2052 | my $commit=0; | ||
| 2053 | my @item = (); | ||
| 2054 | my %item = (); | ||
| 2055 | my $repeating = $_[2]; | ||
| 2056 | my $_noactions = $_[3]; | ||
| 2057 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 2058 | my $_itempos = $_[5]; | ||
| 2059 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 2060 | my $text; | ||
| 2061 | my $lastsep; | ||
| 2062 | my $current_match; | ||
| 2063 | my $expectation = new Parse::RecDescent::Expectation(q{'\{'}); | ||
| 2064 | $expectation->at($_[1]); | ||
| 2065 | |||
| 2066 | my $thisoffset; | ||
| 2067 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 2068 | |||
| 2069 | my $thiscolumn; | ||
| 2070 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 2071 | |||
| 2072 | my $thisline; | ||
| 2073 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 2074 | |||
| 2075 | |||
| 2076 | |||
| 2077 | while (!$_matched && !$commit) | ||
| 2078 | { | ||
| 2079 | |||
| 2080 | Parse::RecDescent::_trace(q{Trying production: ['\{' <commit> complex_command '\}']}, | ||
| 2081 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2082 | q{block}, | ||
| 2083 | $tracelevel) | ||
| 2084 | if defined $::RD_TRACE; | ||
| 2085 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 2086 | $text = $_[1]; | ||
| 2087 | my $_savetext; | ||
| 2088 | @item = (q{block}); | ||
| 2089 | %item = (__RULE__ => q{block}); | ||
| 2090 | my $repcount = 0; | ||
| 2091 | |||
| 2092 | |||
| 2093 | Parse::RecDescent::_trace(q{Trying terminal: ['\{']}, | ||
| 2094 | Parse::RecDescent::_tracefirst($text), | ||
| 2095 | q{block}, | ||
| 2096 | $tracelevel) | ||
| 2097 | if defined $::RD_TRACE; | ||
| 2098 | undef $lastsep; | ||
| 2099 | $expectation->is(q{})->at($text); | ||
| 2100 | |||
| 2101 | |||
| 2102 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\{/) | ||
| 2103 | { | ||
| 2104 | $text = $lastsep . $text if defined $lastsep; | ||
| 2105 | |||
| 2106 | $expectation->failed(); | ||
| 2107 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 2108 | Parse::RecDescent::_tracefirst($text)) | ||
| 2109 | if defined $::RD_TRACE; | ||
| 2110 | last; | ||
| 2111 | } | ||
| 2112 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 2113 | substr($text,0,length($current_match),q{}); | ||
| 2114 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2115 | . $current_match . q{])}, | ||
| 2116 | Parse::RecDescent::_tracefirst($text)) | ||
| 2117 | if defined $::RD_TRACE; | ||
| 2118 | push @item, $item{__STRING1__}=$current_match; | ||
| 2119 | |||
| 2120 | |||
| 2121 | |||
| 2122 | |||
| 2123 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 2124 | Parse::RecDescent::_tracefirst($text), | ||
| 2125 | q{block}, | ||
| 2126 | $tracelevel) | ||
| 2127 | if defined $::RD_TRACE; | ||
| 2128 | $_tok = do { $commit = 1 }; | ||
| 2129 | if (defined($_tok)) | ||
| 2130 | { | ||
| 2131 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 2132 | . $_tok . q{])}, | ||
| 2133 | Parse::RecDescent::_tracefirst($text)) | ||
| 2134 | if defined $::RD_TRACE; | ||
| 2135 | } | ||
| 2136 | else | ||
| 2137 | { | ||
| 2138 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 2139 | Parse::RecDescent::_tracefirst($text)) | ||
| 2140 | if defined $::RD_TRACE; | ||
| 2141 | } | ||
| 2142 | |||
| 2143 | last unless defined $_tok; | ||
| 2144 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 2145 | |||
| 2146 | |||
| 2147 | Parse::RecDescent::_trace(q{Trying repeated subrule: [complex_command]}, | ||
| 2148 | Parse::RecDescent::_tracefirst($text), | ||
| 2149 | q{block}, | ||
| 2150 | $tracelevel) | ||
| 2151 | if defined $::RD_TRACE; | ||
| 2152 | $expectation->is(q{complex_command})->at($text); | ||
| 2153 | |||
| 2154 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::complex_command, 1, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 2155 | { | ||
| 2156 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [complex_command]>>}, | ||
| 2157 | Parse::RecDescent::_tracefirst($text), | ||
| 2158 | q{block}, | ||
| 2159 | $tracelevel) | ||
| 2160 | if defined $::RD_TRACE; | ||
| 2161 | last; | ||
| 2162 | } | ||
| 2163 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [complex_command]<< (} | ||
| 2164 | . @$_tok . q{ times)}, | ||
| 2165 | |||
| 2166 | Parse::RecDescent::_tracefirst($text), | ||
| 2167 | q{block}, | ||
| 2168 | $tracelevel) | ||
| 2169 | if defined $::RD_TRACE; | ||
| 2170 | $item{q{complex_command(s)}} = $_tok; | ||
| 2171 | push @item, $_tok; | ||
| 2172 | |||
| 2173 | |||
| 2174 | |||
| 2175 | Parse::RecDescent::_trace(q{Trying terminal: ['\}']}, | ||
| 2176 | Parse::RecDescent::_tracefirst($text), | ||
| 2177 | q{block}, | ||
| 2178 | $tracelevel) | ||
| 2179 | if defined $::RD_TRACE; | ||
| 2180 | undef $lastsep; | ||
| 2181 | $expectation->is(q{'\}'})->at($text); | ||
| 2182 | |||
| 2183 | |||
| 2184 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\}/) | ||
| 2185 | { | ||
| 2186 | $text = $lastsep . $text if defined $lastsep; | ||
| 2187 | |||
| 2188 | $expectation->failed(); | ||
| 2189 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 2190 | Parse::RecDescent::_tracefirst($text)) | ||
| 2191 | if defined $::RD_TRACE; | ||
| 2192 | last; | ||
| 2193 | } | ||
| 2194 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 2195 | substr($text,0,length($current_match),q{}); | ||
| 2196 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2197 | . $current_match . q{])}, | ||
| 2198 | Parse::RecDescent::_tracefirst($text)) | ||
| 2199 | if defined $::RD_TRACE; | ||
| 2200 | push @item, $item{__STRING2__}=$current_match; | ||
| 2201 | |||
| 2202 | |||
| 2203 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2204 | Parse::RecDescent::_tracefirst($text), | ||
| 2205 | q{block}, | ||
| 2206 | $tracelevel) | ||
| 2207 | if defined $::RD_TRACE; | ||
| 2208 | |||
| 2209 | |||
| 2210 | $_tok = ($_noactions) ? 0 : do { [grep ref,@{$item[3]}] }; | ||
| 2211 | unless (defined $_tok) | ||
| 2212 | { | ||
| 2213 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2214 | if defined $::RD_TRACE; | ||
| 2215 | last; | ||
| 2216 | } | ||
| 2217 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2218 | . $_tok . q{])}, | ||
| 2219 | Parse::RecDescent::_tracefirst($text)) | ||
| 2220 | if defined $::RD_TRACE; | ||
| 2221 | push @item, $_tok; | ||
| 2222 | $item{__ACTION1__}=$_tok; | ||
| 2223 | |||
| 2224 | |||
| 2225 | Parse::RecDescent::_trace(q{>>Matched production: ['\{' <commit> complex_command '\}']<<}, | ||
| 2226 | Parse::RecDescent::_tracefirst($text), | ||
| 2227 | q{block}, | ||
| 2228 | $tracelevel) | ||
| 2229 | if defined $::RD_TRACE; | ||
| 2230 | |||
| 2231 | |||
| 2232 | |||
| 2233 | $_matched = 1; | ||
| 2234 | last; | ||
| 2235 | } | ||
| 2236 | |||
| 2237 | |||
| 2238 | unless ( $_matched || defined($score) ) | ||
| 2239 | { | ||
| 2240 | |||
| 2241 | |||
| 2242 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 2243 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 2244 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2245 | q{block}, | ||
| 2246 | $tracelevel) | ||
| 2247 | if defined $::RD_TRACE; | ||
| 2248 | return undef; | ||
| 2249 | } | ||
| 2250 | if (!defined($return) && defined($score)) | ||
| 2251 | { | ||
| 2252 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 2253 | q{block}, | ||
| 2254 | $tracelevel) | ||
| 2255 | if defined $::RD_TRACE; | ||
| 2256 | $return = $score_return; | ||
| 2257 | } | ||
| 2258 | splice @{$thisparser->{errors}}, $err_at; | ||
| 2259 | $return = $item[$#item] unless defined $return; | ||
| 2260 | if (defined $::RD_TRACE) | ||
| 2261 | { | ||
| 2262 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 2263 | $return . q{])}, "", | ||
| 2264 | q{block}, | ||
| 2265 | $tracelevel); | ||
| 2266 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 2267 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 2268 | Parse::RecDescent::_tracefirst($text), | ||
| 2269 | , q{block}, | ||
| 2270 | $tracelevel) | ||
| 2271 | } | ||
| 2272 | $_[1] = $text; | ||
| 2273 | return $return; | ||
| 2274 | } | ||
| 2275 | |||
| 2276 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 2277 | sub Parse::RecDescent::XML::XSH2::Parser::command | ||
| 2278 | { | ||
| 2279 | my $thisparser = $_[0]; | ||
| 2280 | use vars q{$tracelevel}; | ||
| 2281 | local $tracelevel = ($tracelevel||0)+1; | ||
| 2282 | $ERRORS = 0; | ||
| 2283 | my $thisrule = $thisparser->{"rules"}{"command"}; | ||
| 2284 | |||
| 2285 | Parse::RecDescent::_trace(q{Trying rule: [command]}, | ||
| 2286 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2287 | q{command}, | ||
| 2288 | $tracelevel) | ||
| 2289 | if defined $::RD_TRACE; | ||
| 2290 | |||
| 2291 | |||
| 2292 | my $err_at = @{$thisparser->{errors}}; | ||
| 2293 | |||
| 2294 | my $score; | ||
| 2295 | my $score_return; | ||
| 2296 | my $_tok; | ||
| 2297 | my $return = undef; | ||
| 2298 | my $_matched=0; | ||
| 2299 | my $commit=0; | ||
| 2300 | my @item = (); | ||
| 2301 | my %item = (); | ||
| 2302 | my $repeating = $_[2]; | ||
| 2303 | my $_noactions = $_[3]; | ||
| 2304 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 2305 | my $_itempos = $_[5]; | ||
| 2306 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 2307 | my $text; | ||
| 2308 | my $lastsep; | ||
| 2309 | my $current_match; | ||
| 2310 | my $expectation = new Parse::RecDescent::Expectation(q{/(?=\\s*[\}\{;]|\\s*\\Z)/, or /assign\\b|(?:local\\b|my\\b)?(?=\\s*\\$[a-zA-Z_][a-zA-Z0-9_]*\\s*\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:?=)/, or /(my)\\b/, or /(local)\\b/, or /(do)\\b/, or /(if)\\b/, or /(unless)\\b/, or /(while)\\b/, or /(foreach|for)\\b/, or /(stream)\\b/, or /(undef|undefine)\\b/, or /(use)\\b/, or /(test-mode|test_mode)/, or /(run-mode|run_mode)/, or /(?!(?:iterate|try|def|define)\\b)/}); | ||
| 2311 | $expectation->at($_[1]); | ||
| 2312 | |||
| 2313 | my $thisoffset; | ||
| 2314 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 2315 | |||
| 2316 | my $thiscolumn; | ||
| 2317 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 2318 | |||
| 2319 | my $thisline; | ||
| 2320 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 2321 | |||
| 2322 | |||
| 2323 | |||
| 2324 | while (!$_matched && !$commit) | ||
| 2325 | { | ||
| 2326 | |||
| 2327 | Parse::RecDescent::_trace(q{Trying production: [/(?=\\s*[\}\{;]|\\s*\\Z)/ <commit> <reject>]}, | ||
| 2328 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2329 | q{command}, | ||
| 2330 | $tracelevel) | ||
| 2331 | if defined $::RD_TRACE; | ||
| 2332 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 2333 | $text = $_[1]; | ||
| 2334 | my $_savetext; | ||
| 2335 | @item = (q{command}); | ||
| 2336 | %item = (__RULE__ => q{command}); | ||
| 2337 | my $repcount = 0; | ||
| 2338 | |||
| 2339 | |||
| 2340 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=\\s*[\}\{;]|\\s*\\Z)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 2341 | q{command}, | ||
| 2342 | $tracelevel) | ||
| 2343 | if defined $::RD_TRACE; | ||
| 2344 | undef $lastsep; | ||
| 2345 | $expectation->is(q{})->at($text); | ||
| 2346 | |||
| 2347 | |||
| 2348 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=\s*[}{;]|\s*\Z))/) | ||
| 2349 | { | ||
| 2350 | $text = $lastsep . $text if defined $lastsep; | ||
| 2351 | $expectation->failed(); | ||
| 2352 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 2353 | Parse::RecDescent::_tracefirst($text)) | ||
| 2354 | if defined $::RD_TRACE; | ||
| 2355 | |||
| 2356 | last; | ||
| 2357 | } | ||
| 2358 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 2359 | substr($text,0,length($current_match),q{}); | ||
| 2360 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2361 | . $current_match . q{])}, | ||
| 2362 | Parse::RecDescent::_tracefirst($text)) | ||
| 2363 | if defined $::RD_TRACE; | ||
| 2364 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 2365 | |||
| 2366 | |||
| 2367 | |||
| 2368 | |||
| 2369 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 2370 | Parse::RecDescent::_tracefirst($text), | ||
| 2371 | q{command}, | ||
| 2372 | $tracelevel) | ||
| 2373 | if defined $::RD_TRACE; | ||
| 2374 | $_tok = do { $commit = 1 }; | ||
| 2375 | if (defined($_tok)) | ||
| 2376 | { | ||
| 2377 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 2378 | . $_tok . q{])}, | ||
| 2379 | Parse::RecDescent::_tracefirst($text)) | ||
| 2380 | if defined $::RD_TRACE; | ||
| 2381 | } | ||
| 2382 | else | ||
| 2383 | { | ||
| 2384 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 2385 | Parse::RecDescent::_tracefirst($text)) | ||
| 2386 | if defined $::RD_TRACE; | ||
| 2387 | } | ||
| 2388 | |||
| 2389 | last unless defined $_tok; | ||
| 2390 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 2391 | |||
| 2392 | |||
| 2393 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 2394 | Parse::RecDescent::_tracefirst($text), | ||
| 2395 | q{command}, | ||
| 2396 | $tracelevel) | ||
| 2397 | if defined $::RD_TRACE; | ||
| 2398 | undef $return; | ||
| 2399 | |||
| 2400 | |||
| 2401 | $_tok = undef; | ||
| 2402 | |||
| 2403 | last unless defined $_tok; | ||
| 2404 | |||
| 2405 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=\\s*[\}\{;]|\\s*\\Z)/ <commit> <reject>]<<}, | ||
| 2406 | Parse::RecDescent::_tracefirst($text), | ||
| 2407 | q{command}, | ||
| 2408 | $tracelevel) | ||
| 2409 | if defined $::RD_TRACE; | ||
| 2410 | |||
| 2411 | |||
| 2412 | |||
| 2413 | $_matched = 1; | ||
| 2414 | last; | ||
| 2415 | } | ||
| 2416 | |||
| 2417 | |||
| 2418 | while (!$_matched && !$commit) | ||
| 2419 | { | ||
| 2420 | |||
| 2421 | Parse::RecDescent::_trace(q{Trying production: [/assign\\b|(?:local\\b|my\\b)?(?=\\s*\\$[a-zA-Z_][a-zA-Z0-9_]*\\s*\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:?=)/ <commit> variable /(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?=/, or /\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:=/]}, | ||
| 2422 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2423 | q{command}, | ||
| 2424 | $tracelevel) | ||
| 2425 | if defined $::RD_TRACE; | ||
| 2426 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 2427 | $text = $_[1]; | ||
| 2428 | my $_savetext; | ||
| 2429 | @item = (q{command}); | ||
| 2430 | %item = (__RULE__ => q{command}); | ||
| 2431 | my $repcount = 0; | ||
| 2432 | |||
| 2433 | |||
| 2434 | Parse::RecDescent::_trace(q{Trying terminal: [/assign\\b|(?:local\\b|my\\b)?(?=\\s*\\$[a-zA-Z_][a-zA-Z0-9_]*\\s*\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:?=)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 2435 | q{command}, | ||
| 2436 | $tracelevel) | ||
| 2437 | if defined $::RD_TRACE; | ||
| 2438 | undef $lastsep; | ||
| 2439 | $expectation->is(q{})->at($text); | ||
| 2440 | |||
| 2441 | |||
| 2442 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:assign\b|(?:local\b|my\b)?(?=\s*\$[a-zA-Z_][a-zA-Z0-9_]*\s*\s*(?:[\-\+\*\/%x.]|\|\||\&\&)?:?=))/) | ||
| 2443 | { | ||
| 2444 | $text = $lastsep . $text if defined $lastsep; | ||
| 2445 | $expectation->failed(); | ||
| 2446 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 2447 | Parse::RecDescent::_tracefirst($text)) | ||
| 2448 | if defined $::RD_TRACE; | ||
| 2449 | |||
| 2450 | last; | ||
| 2451 | } | ||
| 2452 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 2453 | substr($text,0,length($current_match),q{}); | ||
| 2454 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2455 | . $current_match . q{])}, | ||
| 2456 | Parse::RecDescent::_tracefirst($text)) | ||
| 2457 | if defined $::RD_TRACE; | ||
| 2458 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 2459 | |||
| 2460 | |||
| 2461 | |||
| 2462 | |||
| 2463 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 2464 | Parse::RecDescent::_tracefirst($text), | ||
| 2465 | q{command}, | ||
| 2466 | $tracelevel) | ||
| 2467 | if defined $::RD_TRACE; | ||
| 2468 | $_tok = do { $commit = 1 }; | ||
| 2469 | if (defined($_tok)) | ||
| 2470 | { | ||
| 2471 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 2472 | . $_tok . q{])}, | ||
| 2473 | Parse::RecDescent::_tracefirst($text)) | ||
| 2474 | if defined $::RD_TRACE; | ||
| 2475 | } | ||
| 2476 | else | ||
| 2477 | { | ||
| 2478 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 2479 | Parse::RecDescent::_tracefirst($text)) | ||
| 2480 | if defined $::RD_TRACE; | ||
| 2481 | } | ||
| 2482 | |||
| 2483 | last unless defined $_tok; | ||
| 2484 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 2485 | |||
| 2486 | |||
| 2487 | Parse::RecDescent::_trace(q{Trying subrule: [variable]}, | ||
| 2488 | Parse::RecDescent::_tracefirst($text), | ||
| 2489 | q{command}, | ||
| 2490 | $tracelevel) | ||
| 2491 | if defined $::RD_TRACE; | ||
| 2492 | if (1) { no strict qw{refs}; | ||
| 2493 | $expectation->is(q{variable})->at($text); | ||
| 2494 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::variable($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 2495 | { | ||
| 2496 | |||
| 2497 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [variable]>>}, | ||
| 2498 | Parse::RecDescent::_tracefirst($text), | ||
| 2499 | q{command}, | ||
| 2500 | $tracelevel) | ||
| 2501 | if defined $::RD_TRACE; | ||
| 2502 | $expectation->failed(); | ||
| 2503 | last; | ||
| 2504 | } | ||
| 2505 | Parse::RecDescent::_trace(q{>>Matched subrule: [variable]<< (return value: [} | ||
| 2506 | . $_tok . q{]}, | ||
| 2507 | |||
| 2508 | Parse::RecDescent::_tracefirst($text), | ||
| 2509 | q{command}, | ||
| 2510 | $tracelevel) | ||
| 2511 | if defined $::RD_TRACE; | ||
| 2512 | $item{q{variable}} = $_tok; | ||
| 2513 | push @item, $_tok; | ||
| 2514 | |||
| 2515 | } | ||
| 2516 | |||
| 2517 | Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_2_of_rule_command]}, | ||
| 2518 | Parse::RecDescent::_tracefirst($text), | ||
| 2519 | q{command}, | ||
| 2520 | $tracelevel) | ||
| 2521 | if defined $::RD_TRACE; | ||
| 2522 | if (1) { no strict qw{refs}; | ||
| 2523 | $expectation->is(q{/(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?=/, or /\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:=/})->at($text); | ||
| 2524 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_2_of_rule_command($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 2525 | { | ||
| 2526 | |||
| 2527 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [_alternation_1_of_production_2_of_rule_command]>>}, | ||
| 2528 | Parse::RecDescent::_tracefirst($text), | ||
| 2529 | q{command}, | ||
| 2530 | $tracelevel) | ||
| 2531 | if defined $::RD_TRACE; | ||
| 2532 | $expectation->failed(); | ||
| 2533 | last; | ||
| 2534 | } | ||
| 2535 | Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_2_of_rule_command]<< (return value: [} | ||
| 2536 | . $_tok . q{]}, | ||
| 2537 | |||
| 2538 | Parse::RecDescent::_tracefirst($text), | ||
| 2539 | q{command}, | ||
| 2540 | $tracelevel) | ||
| 2541 | if defined $::RD_TRACE; | ||
| 2542 | $item{q{_alternation_1_of_production_2_of_rule_command}} = $_tok; | ||
| 2543 | push @item, $_tok; | ||
| 2544 | |||
| 2545 | } | ||
| 2546 | |||
| 2547 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2548 | Parse::RecDescent::_tracefirst($text), | ||
| 2549 | q{command}, | ||
| 2550 | $tracelevel) | ||
| 2551 | if defined $::RD_TRACE; | ||
| 2552 | |||
| 2553 | |||
| 2554 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,@{$item[4]},$item[1],$item[3]] }; | ||
| 2555 | unless (defined $_tok) | ||
| 2556 | { | ||
| 2557 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2558 | if defined $::RD_TRACE; | ||
| 2559 | last; | ||
| 2560 | } | ||
| 2561 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2562 | . $_tok . q{])}, | ||
| 2563 | Parse::RecDescent::_tracefirst($text)) | ||
| 2564 | if defined $::RD_TRACE; | ||
| 2565 | push @item, $_tok; | ||
| 2566 | $item{__ACTION1__}=$_tok; | ||
| 2567 | |||
| 2568 | |||
| 2569 | Parse::RecDescent::_trace(q{>>Matched production: [/assign\\b|(?:local\\b|my\\b)?(?=\\s*\\$[a-zA-Z_][a-zA-Z0-9_]*\\s*\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:?=)/ <commit> variable /(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?=/, or /\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:=/]<<}, | ||
| 2570 | Parse::RecDescent::_tracefirst($text), | ||
| 2571 | q{command}, | ||
| 2572 | $tracelevel) | ||
| 2573 | if defined $::RD_TRACE; | ||
| 2574 | |||
| 2575 | |||
| 2576 | |||
| 2577 | $_matched = 1; | ||
| 2578 | last; | ||
| 2579 | } | ||
| 2580 | |||
| 2581 | |||
| 2582 | while (!$_matched && !$commit) | ||
| 2583 | { | ||
| 2584 | |||
| 2585 | Parse::RecDescent::_trace(q{Trying production: [/(my)\\b/ variable]}, | ||
| 2586 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2587 | q{command}, | ||
| 2588 | $tracelevel) | ||
| 2589 | if defined $::RD_TRACE; | ||
| 2590 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 2591 | $text = $_[1]; | ||
| 2592 | my $_savetext; | ||
| 2593 | @item = (q{command}); | ||
| 2594 | %item = (__RULE__ => q{command}); | ||
| 2595 | my $repcount = 0; | ||
| 2596 | |||
| 2597 | |||
| 2598 | Parse::RecDescent::_trace(q{Trying terminal: [/(my)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 2599 | q{command}, | ||
| 2600 | $tracelevel) | ||
| 2601 | if defined $::RD_TRACE; | ||
| 2602 | undef $lastsep; | ||
| 2603 | $expectation->is(q{})->at($text); | ||
| 2604 | |||
| 2605 | |||
| 2606 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(my)\b)/) | ||
| 2607 | { | ||
| 2608 | $text = $lastsep . $text if defined $lastsep; | ||
| 2609 | $expectation->failed(); | ||
| 2610 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 2611 | Parse::RecDescent::_tracefirst($text)) | ||
| 2612 | if defined $::RD_TRACE; | ||
| 2613 | |||
| 2614 | last; | ||
| 2615 | } | ||
| 2616 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 2617 | substr($text,0,length($current_match),q{}); | ||
| 2618 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2619 | . $current_match . q{])}, | ||
| 2620 | Parse::RecDescent::_tracefirst($text)) | ||
| 2621 | if defined $::RD_TRACE; | ||
| 2622 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 2623 | |||
| 2624 | |||
| 2625 | Parse::RecDescent::_trace(q{Trying repeated subrule: [variable]}, | ||
| 2626 | Parse::RecDescent::_tracefirst($text), | ||
| 2627 | q{command}, | ||
| 2628 | $tracelevel) | ||
| 2629 | if defined $::RD_TRACE; | ||
| 2630 | $expectation->is(q{variable})->at($text); | ||
| 2631 | |||
| 2632 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::variable, 1, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 2633 | { | ||
| 2634 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [variable]>>}, | ||
| 2635 | Parse::RecDescent::_tracefirst($text), | ||
| 2636 | q{command}, | ||
| 2637 | $tracelevel) | ||
| 2638 | if defined $::RD_TRACE; | ||
| 2639 | last; | ||
| 2640 | } | ||
| 2641 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [variable]<< (} | ||
| 2642 | . @$_tok . q{ times)}, | ||
| 2643 | |||
| 2644 | Parse::RecDescent::_tracefirst($text), | ||
| 2645 | q{command}, | ||
| 2646 | $tracelevel) | ||
| 2647 | if defined $::RD_TRACE; | ||
| 2648 | $item{q{variable(s)}} = $_tok; | ||
| 2649 | push @item, $_tok; | ||
| 2650 | |||
| 2651 | |||
| 2652 | |||
| 2653 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2654 | Parse::RecDescent::_tracefirst($text), | ||
| 2655 | q{command}, | ||
| 2656 | $tracelevel) | ||
| 2657 | if defined $::RD_TRACE; | ||
| 2658 | |||
| 2659 | |||
| 2660 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'store_lex_variables',0,@{$item[2]}] }; | ||
| 2661 | unless (defined $_tok) | ||
| 2662 | { | ||
| 2663 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2664 | if defined $::RD_TRACE; | ||
| 2665 | last; | ||
| 2666 | } | ||
| 2667 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2668 | . $_tok . q{])}, | ||
| 2669 | Parse::RecDescent::_tracefirst($text)) | ||
| 2670 | if defined $::RD_TRACE; | ||
| 2671 | push @item, $_tok; | ||
| 2672 | $item{__ACTION1__}=$_tok; | ||
| 2673 | |||
| 2674 | |||
| 2675 | Parse::RecDescent::_trace(q{>>Matched production: [/(my)\\b/ variable]<<}, | ||
| 2676 | Parse::RecDescent::_tracefirst($text), | ||
| 2677 | q{command}, | ||
| 2678 | $tracelevel) | ||
| 2679 | if defined $::RD_TRACE; | ||
| 2680 | |||
| 2681 | |||
| 2682 | |||
| 2683 | $_matched = 1; | ||
| 2684 | last; | ||
| 2685 | } | ||
| 2686 | |||
| 2687 | |||
| 2688 | while (!$_matched && !$commit) | ||
| 2689 | { | ||
| 2690 | |||
| 2691 | Parse::RecDescent::_trace(q{Trying production: [/(local)\\b/ variable]}, | ||
| 2692 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2693 | q{command}, | ||
| 2694 | $tracelevel) | ||
| 2695 | if defined $::RD_TRACE; | ||
| 2696 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 2697 | $text = $_[1]; | ||
| 2698 | my $_savetext; | ||
| 2699 | @item = (q{command}); | ||
| 2700 | %item = (__RULE__ => q{command}); | ||
| 2701 | my $repcount = 0; | ||
| 2702 | |||
| 2703 | |||
| 2704 | Parse::RecDescent::_trace(q{Trying terminal: [/(local)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 2705 | q{command}, | ||
| 2706 | $tracelevel) | ||
| 2707 | if defined $::RD_TRACE; | ||
| 2708 | undef $lastsep; | ||
| 2709 | $expectation->is(q{})->at($text); | ||
| 2710 | |||
| 2711 | |||
| 2712 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(local)\b)/) | ||
| 2713 | { | ||
| 2714 | $text = $lastsep . $text if defined $lastsep; | ||
| 2715 | $expectation->failed(); | ||
| 2716 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 2717 | Parse::RecDescent::_tracefirst($text)) | ||
| 2718 | if defined $::RD_TRACE; | ||
| 2719 | |||
| 2720 | last; | ||
| 2721 | } | ||
| 2722 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 2723 | substr($text,0,length($current_match),q{}); | ||
| 2724 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2725 | . $current_match . q{])}, | ||
| 2726 | Parse::RecDescent::_tracefirst($text)) | ||
| 2727 | if defined $::RD_TRACE; | ||
| 2728 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 2729 | |||
| 2730 | |||
| 2731 | Parse::RecDescent::_trace(q{Trying repeated subrule: [variable]}, | ||
| 2732 | Parse::RecDescent::_tracefirst($text), | ||
| 2733 | q{command}, | ||
| 2734 | $tracelevel) | ||
| 2735 | if defined $::RD_TRACE; | ||
| 2736 | $expectation->is(q{variable})->at($text); | ||
| 2737 | |||
| 2738 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::variable, 1, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 2739 | { | ||
| 2740 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [variable]>>}, | ||
| 2741 | Parse::RecDescent::_tracefirst($text), | ||
| 2742 | q{command}, | ||
| 2743 | $tracelevel) | ||
| 2744 | if defined $::RD_TRACE; | ||
| 2745 | last; | ||
| 2746 | } | ||
| 2747 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [variable]<< (} | ||
| 2748 | . @$_tok . q{ times)}, | ||
| 2749 | |||
| 2750 | Parse::RecDescent::_tracefirst($text), | ||
| 2751 | q{command}, | ||
| 2752 | $tracelevel) | ||
| 2753 | if defined $::RD_TRACE; | ||
| 2754 | $item{q{variable(s)}} = $_tok; | ||
| 2755 | push @item, $_tok; | ||
| 2756 | |||
| 2757 | |||
| 2758 | |||
| 2759 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2760 | Parse::RecDescent::_tracefirst($text), | ||
| 2761 | q{command}, | ||
| 2762 | $tracelevel) | ||
| 2763 | if defined $::RD_TRACE; | ||
| 2764 | |||
| 2765 | |||
| 2766 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'make_local',@{$item[2]}] }; | ||
| 2767 | unless (defined $_tok) | ||
| 2768 | { | ||
| 2769 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2770 | if defined $::RD_TRACE; | ||
| 2771 | last; | ||
| 2772 | } | ||
| 2773 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2774 | . $_tok . q{])}, | ||
| 2775 | Parse::RecDescent::_tracefirst($text)) | ||
| 2776 | if defined $::RD_TRACE; | ||
| 2777 | push @item, $_tok; | ||
| 2778 | $item{__ACTION1__}=$_tok; | ||
| 2779 | |||
| 2780 | |||
| 2781 | Parse::RecDescent::_trace(q{>>Matched production: [/(local)\\b/ variable]<<}, | ||
| 2782 | Parse::RecDescent::_tracefirst($text), | ||
| 2783 | q{command}, | ||
| 2784 | $tracelevel) | ||
| 2785 | if defined $::RD_TRACE; | ||
| 2786 | |||
| 2787 | |||
| 2788 | |||
| 2789 | $_matched = 1; | ||
| 2790 | last; | ||
| 2791 | } | ||
| 2792 | |||
| 2793 | |||
| 2794 | while (!$_matched && !$commit) | ||
| 2795 | { | ||
| 2796 | |||
| 2797 | Parse::RecDescent::_trace(q{Trying production: [/(do)\\b/ <commit> block]}, | ||
| 2798 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2799 | q{command}, | ||
| 2800 | $tracelevel) | ||
| 2801 | if defined $::RD_TRACE; | ||
| 2802 | my $thisprod = $thisrule->{"prods"}[4]; | ||
| 2803 | $text = $_[1]; | ||
| 2804 | my $_savetext; | ||
| 2805 | @item = (q{command}); | ||
| 2806 | %item = (__RULE__ => q{command}); | ||
| 2807 | my $repcount = 0; | ||
| 2808 | |||
| 2809 | |||
| 2810 | Parse::RecDescent::_trace(q{Trying terminal: [/(do)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 2811 | q{command}, | ||
| 2812 | $tracelevel) | ||
| 2813 | if defined $::RD_TRACE; | ||
| 2814 | undef $lastsep; | ||
| 2815 | $expectation->is(q{})->at($text); | ||
| 2816 | |||
| 2817 | |||
| 2818 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(do)\b)/) | ||
| 2819 | { | ||
| 2820 | $text = $lastsep . $text if defined $lastsep; | ||
| 2821 | $expectation->failed(); | ||
| 2822 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 2823 | Parse::RecDescent::_tracefirst($text)) | ||
| 2824 | if defined $::RD_TRACE; | ||
| 2825 | |||
| 2826 | last; | ||
| 2827 | } | ||
| 2828 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 2829 | substr($text,0,length($current_match),q{}); | ||
| 2830 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2831 | . $current_match . q{])}, | ||
| 2832 | Parse::RecDescent::_tracefirst($text)) | ||
| 2833 | if defined $::RD_TRACE; | ||
| 2834 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 2835 | |||
| 2836 | |||
| 2837 | |||
| 2838 | |||
| 2839 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 2840 | Parse::RecDescent::_tracefirst($text), | ||
| 2841 | q{command}, | ||
| 2842 | $tracelevel) | ||
| 2843 | if defined $::RD_TRACE; | ||
| 2844 | $_tok = do { $commit = 1 }; | ||
| 2845 | if (defined($_tok)) | ||
| 2846 | { | ||
| 2847 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 2848 | . $_tok . q{])}, | ||
| 2849 | Parse::RecDescent::_tracefirst($text)) | ||
| 2850 | if defined $::RD_TRACE; | ||
| 2851 | } | ||
| 2852 | else | ||
| 2853 | { | ||
| 2854 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 2855 | Parse::RecDescent::_tracefirst($text)) | ||
| 2856 | if defined $::RD_TRACE; | ||
| 2857 | } | ||
| 2858 | |||
| 2859 | last unless defined $_tok; | ||
| 2860 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 2861 | |||
| 2862 | |||
| 2863 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 2864 | Parse::RecDescent::_tracefirst($text), | ||
| 2865 | q{command}, | ||
| 2866 | $tracelevel) | ||
| 2867 | if defined $::RD_TRACE; | ||
| 2868 | if (1) { no strict qw{refs}; | ||
| 2869 | $expectation->is(q{block})->at($text); | ||
| 2870 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 2871 | { | ||
| 2872 | |||
| 2873 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 2874 | Parse::RecDescent::_tracefirst($text), | ||
| 2875 | q{command}, | ||
| 2876 | $tracelevel) | ||
| 2877 | if defined $::RD_TRACE; | ||
| 2878 | $expectation->failed(); | ||
| 2879 | last; | ||
| 2880 | } | ||
| 2881 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 2882 | . $_tok . q{]}, | ||
| 2883 | |||
| 2884 | Parse::RecDescent::_tracefirst($text), | ||
| 2885 | q{command}, | ||
| 2886 | $tracelevel) | ||
| 2887 | if defined $::RD_TRACE; | ||
| 2888 | $item{q{block}} = $_tok; | ||
| 2889 | push @item, $_tok; | ||
| 2890 | |||
| 2891 | } | ||
| 2892 | |||
| 2893 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2894 | Parse::RecDescent::_tracefirst($text), | ||
| 2895 | q{command}, | ||
| 2896 | $tracelevel) | ||
| 2897 | if defined $::RD_TRACE; | ||
| 2898 | |||
| 2899 | |||
| 2900 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'run_commands',$item[3],0] }; | ||
| 2901 | unless (defined $_tok) | ||
| 2902 | { | ||
| 2903 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2904 | if defined $::RD_TRACE; | ||
| 2905 | last; | ||
| 2906 | } | ||
| 2907 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2908 | . $_tok . q{])}, | ||
| 2909 | Parse::RecDescent::_tracefirst($text)) | ||
| 2910 | if defined $::RD_TRACE; | ||
| 2911 | push @item, $_tok; | ||
| 2912 | $item{__ACTION1__}=$_tok; | ||
| 2913 | |||
| 2914 | |||
| 2915 | Parse::RecDescent::_trace(q{>>Matched production: [/(do)\\b/ <commit> block]<<}, | ||
| 2916 | Parse::RecDescent::_tracefirst($text), | ||
| 2917 | q{command}, | ||
| 2918 | $tracelevel) | ||
| 2919 | if defined $::RD_TRACE; | ||
| 2920 | |||
| 2921 | |||
| 2922 | |||
| 2923 | $_matched = 1; | ||
| 2924 | last; | ||
| 2925 | } | ||
| 2926 | |||
| 2927 | |||
| 2928 | while (!$_matched && !$commit) | ||
| 2929 | { | ||
| 2930 | |||
| 2931 | Parse::RecDescent::_trace(q{Trying production: [/(if)\\b/ <commit> exp command]}, | ||
| 2932 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2933 | q{command}, | ||
| 2934 | $tracelevel) | ||
| 2935 | if defined $::RD_TRACE; | ||
| 2936 | my $thisprod = $thisrule->{"prods"}[5]; | ||
| 2937 | $text = $_[1]; | ||
| 2938 | my $_savetext; | ||
| 2939 | @item = (q{command}); | ||
| 2940 | %item = (__RULE__ => q{command}); | ||
| 2941 | my $repcount = 0; | ||
| 2942 | |||
| 2943 | |||
| 2944 | Parse::RecDescent::_trace(q{Trying terminal: [/(if)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 2945 | q{command}, | ||
| 2946 | $tracelevel) | ||
| 2947 | if defined $::RD_TRACE; | ||
| 2948 | undef $lastsep; | ||
| 2949 | $expectation->is(q{})->at($text); | ||
| 2950 | |||
| 2951 | |||
| 2952 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(if)\b)/) | ||
| 2953 | { | ||
| 2954 | $text = $lastsep . $text if defined $lastsep; | ||
| 2955 | $expectation->failed(); | ||
| 2956 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 2957 | Parse::RecDescent::_tracefirst($text)) | ||
| 2958 | if defined $::RD_TRACE; | ||
| 2959 | |||
| 2960 | last; | ||
| 2961 | } | ||
| 2962 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 2963 | substr($text,0,length($current_match),q{}); | ||
| 2964 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2965 | . $current_match . q{])}, | ||
| 2966 | Parse::RecDescent::_tracefirst($text)) | ||
| 2967 | if defined $::RD_TRACE; | ||
| 2968 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 2969 | |||
| 2970 | |||
| 2971 | |||
| 2972 | |||
| 2973 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 2974 | Parse::RecDescent::_tracefirst($text), | ||
| 2975 | q{command}, | ||
| 2976 | $tracelevel) | ||
| 2977 | if defined $::RD_TRACE; | ||
| 2978 | $_tok = do { $commit = 1 }; | ||
| 2979 | if (defined($_tok)) | ||
| 2980 | { | ||
| 2981 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 2982 | . $_tok . q{])}, | ||
| 2983 | Parse::RecDescent::_tracefirst($text)) | ||
| 2984 | if defined $::RD_TRACE; | ||
| 2985 | } | ||
| 2986 | else | ||
| 2987 | { | ||
| 2988 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 2989 | Parse::RecDescent::_tracefirst($text)) | ||
| 2990 | if defined $::RD_TRACE; | ||
| 2991 | } | ||
| 2992 | |||
| 2993 | last unless defined $_tok; | ||
| 2994 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 2995 | |||
| 2996 | |||
| 2997 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 2998 | Parse::RecDescent::_tracefirst($text), | ||
| 2999 | q{command}, | ||
| 3000 | $tracelevel) | ||
| 3001 | if defined $::RD_TRACE; | ||
| 3002 | if (1) { no strict qw{refs}; | ||
| 3003 | $expectation->is(q{exp})->at($text); | ||
| 3004 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3005 | { | ||
| 3006 | |||
| 3007 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 3008 | Parse::RecDescent::_tracefirst($text), | ||
| 3009 | q{command}, | ||
| 3010 | $tracelevel) | ||
| 3011 | if defined $::RD_TRACE; | ||
| 3012 | $expectation->failed(); | ||
| 3013 | last; | ||
| 3014 | } | ||
| 3015 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 3016 | . $_tok . q{]}, | ||
| 3017 | |||
| 3018 | Parse::RecDescent::_tracefirst($text), | ||
| 3019 | q{command}, | ||
| 3020 | $tracelevel) | ||
| 3021 | if defined $::RD_TRACE; | ||
| 3022 | $item{q{exp}} = $_tok; | ||
| 3023 | push @item, $_tok; | ||
| 3024 | |||
| 3025 | } | ||
| 3026 | |||
| 3027 | Parse::RecDescent::_trace(q{Trying subrule: [command]}, | ||
| 3028 | Parse::RecDescent::_tracefirst($text), | ||
| 3029 | q{command}, | ||
| 3030 | $tracelevel) | ||
| 3031 | if defined $::RD_TRACE; | ||
| 3032 | if (1) { no strict qw{refs}; | ||
| 3033 | $expectation->is(q{command})->at($text); | ||
| 3034 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::command($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3035 | { | ||
| 3036 | |||
| 3037 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [command]>>}, | ||
| 3038 | Parse::RecDescent::_tracefirst($text), | ||
| 3039 | q{command}, | ||
| 3040 | $tracelevel) | ||
| 3041 | if defined $::RD_TRACE; | ||
| 3042 | $expectation->failed(); | ||
| 3043 | last; | ||
| 3044 | } | ||
| 3045 | Parse::RecDescent::_trace(q{>>Matched subrule: [command]<< (return value: [} | ||
| 3046 | . $_tok . q{]}, | ||
| 3047 | |||
| 3048 | Parse::RecDescent::_tracefirst($text), | ||
| 3049 | q{command}, | ||
| 3050 | $tracelevel) | ||
| 3051 | if defined $::RD_TRACE; | ||
| 3052 | $item{q{command}} = $_tok; | ||
| 3053 | push @item, $_tok; | ||
| 3054 | |||
| 3055 | } | ||
| 3056 | |||
| 3057 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3058 | Parse::RecDescent::_tracefirst($text), | ||
| 3059 | q{command}, | ||
| 3060 | $tracelevel) | ||
| 3061 | if defined $::RD_TRACE; | ||
| 3062 | |||
| 3063 | |||
| 3064 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'if_statement',[$item[3],[$item[4]]]] }; | ||
| 3065 | unless (defined $_tok) | ||
| 3066 | { | ||
| 3067 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3068 | if defined $::RD_TRACE; | ||
| 3069 | last; | ||
| 3070 | } | ||
| 3071 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3072 | . $_tok . q{])}, | ||
| 3073 | Parse::RecDescent::_tracefirst($text)) | ||
| 3074 | if defined $::RD_TRACE; | ||
| 3075 | push @item, $_tok; | ||
| 3076 | $item{__ACTION1__}=$_tok; | ||
| 3077 | |||
| 3078 | |||
| 3079 | Parse::RecDescent::_trace(q{>>Matched production: [/(if)\\b/ <commit> exp command]<<}, | ||
| 3080 | Parse::RecDescent::_tracefirst($text), | ||
| 3081 | q{command}, | ||
| 3082 | $tracelevel) | ||
| 3083 | if defined $::RD_TRACE; | ||
| 3084 | |||
| 3085 | |||
| 3086 | |||
| 3087 | $_matched = 1; | ||
| 3088 | last; | ||
| 3089 | } | ||
| 3090 | |||
| 3091 | |||
| 3092 | while (!$_matched && !$commit) | ||
| 3093 | { | ||
| 3094 | |||
| 3095 | Parse::RecDescent::_trace(q{Trying production: [/(unless)\\b/ <commit> exp command]}, | ||
| 3096 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3097 | q{command}, | ||
| 3098 | $tracelevel) | ||
| 3099 | if defined $::RD_TRACE; | ||
| 3100 | my $thisprod = $thisrule->{"prods"}[6]; | ||
| 3101 | $text = $_[1]; | ||
| 3102 | my $_savetext; | ||
| 3103 | @item = (q{command}); | ||
| 3104 | %item = (__RULE__ => q{command}); | ||
| 3105 | my $repcount = 0; | ||
| 3106 | |||
| 3107 | |||
| 3108 | Parse::RecDescent::_trace(q{Trying terminal: [/(unless)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 3109 | q{command}, | ||
| 3110 | $tracelevel) | ||
| 3111 | if defined $::RD_TRACE; | ||
| 3112 | undef $lastsep; | ||
| 3113 | $expectation->is(q{})->at($text); | ||
| 3114 | |||
| 3115 | |||
| 3116 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(unless)\b)/) | ||
| 3117 | { | ||
| 3118 | $text = $lastsep . $text if defined $lastsep; | ||
| 3119 | $expectation->failed(); | ||
| 3120 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 3121 | Parse::RecDescent::_tracefirst($text)) | ||
| 3122 | if defined $::RD_TRACE; | ||
| 3123 | |||
| 3124 | last; | ||
| 3125 | } | ||
| 3126 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 3127 | substr($text,0,length($current_match),q{}); | ||
| 3128 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3129 | . $current_match . q{])}, | ||
| 3130 | Parse::RecDescent::_tracefirst($text)) | ||
| 3131 | if defined $::RD_TRACE; | ||
| 3132 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 3133 | |||
| 3134 | |||
| 3135 | |||
| 3136 | |||
| 3137 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 3138 | Parse::RecDescent::_tracefirst($text), | ||
| 3139 | q{command}, | ||
| 3140 | $tracelevel) | ||
| 3141 | if defined $::RD_TRACE; | ||
| 3142 | $_tok = do { $commit = 1 }; | ||
| 3143 | if (defined($_tok)) | ||
| 3144 | { | ||
| 3145 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 3146 | . $_tok . q{])}, | ||
| 3147 | Parse::RecDescent::_tracefirst($text)) | ||
| 3148 | if defined $::RD_TRACE; | ||
| 3149 | } | ||
| 3150 | else | ||
| 3151 | { | ||
| 3152 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 3153 | Parse::RecDescent::_tracefirst($text)) | ||
| 3154 | if defined $::RD_TRACE; | ||
| 3155 | } | ||
| 3156 | |||
| 3157 | last unless defined $_tok; | ||
| 3158 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 3159 | |||
| 3160 | |||
| 3161 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 3162 | Parse::RecDescent::_tracefirst($text), | ||
| 3163 | q{command}, | ||
| 3164 | $tracelevel) | ||
| 3165 | if defined $::RD_TRACE; | ||
| 3166 | if (1) { no strict qw{refs}; | ||
| 3167 | $expectation->is(q{exp})->at($text); | ||
| 3168 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3169 | { | ||
| 3170 | |||
| 3171 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 3172 | Parse::RecDescent::_tracefirst($text), | ||
| 3173 | q{command}, | ||
| 3174 | $tracelevel) | ||
| 3175 | if defined $::RD_TRACE; | ||
| 3176 | $expectation->failed(); | ||
| 3177 | last; | ||
| 3178 | } | ||
| 3179 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 3180 | . $_tok . q{]}, | ||
| 3181 | |||
| 3182 | Parse::RecDescent::_tracefirst($text), | ||
| 3183 | q{command}, | ||
| 3184 | $tracelevel) | ||
| 3185 | if defined $::RD_TRACE; | ||
| 3186 | $item{q{exp}} = $_tok; | ||
| 3187 | push @item, $_tok; | ||
| 3188 | |||
| 3189 | } | ||
| 3190 | |||
| 3191 | Parse::RecDescent::_trace(q{Trying subrule: [command]}, | ||
| 3192 | Parse::RecDescent::_tracefirst($text), | ||
| 3193 | q{command}, | ||
| 3194 | $tracelevel) | ||
| 3195 | if defined $::RD_TRACE; | ||
| 3196 | if (1) { no strict qw{refs}; | ||
| 3197 | $expectation->is(q{command})->at($text); | ||
| 3198 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::command($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3199 | { | ||
| 3200 | |||
| 3201 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [command]>>}, | ||
| 3202 | Parse::RecDescent::_tracefirst($text), | ||
| 3203 | q{command}, | ||
| 3204 | $tracelevel) | ||
| 3205 | if defined $::RD_TRACE; | ||
| 3206 | $expectation->failed(); | ||
| 3207 | last; | ||
| 3208 | } | ||
| 3209 | Parse::RecDescent::_trace(q{>>Matched subrule: [command]<< (return value: [} | ||
| 3210 | . $_tok . q{]}, | ||
| 3211 | |||
| 3212 | Parse::RecDescent::_tracefirst($text), | ||
| 3213 | q{command}, | ||
| 3214 | $tracelevel) | ||
| 3215 | if defined $::RD_TRACE; | ||
| 3216 | $item{q{command}} = $_tok; | ||
| 3217 | push @item, $_tok; | ||
| 3218 | |||
| 3219 | } | ||
| 3220 | |||
| 3221 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3222 | Parse::RecDescent::_tracefirst($text), | ||
| 3223 | q{command}, | ||
| 3224 | $tracelevel) | ||
| 3225 | if defined $::RD_TRACE; | ||
| 3226 | |||
| 3227 | |||
| 3228 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'unless_statement',$item[3],[$item[4]]] }; | ||
| 3229 | unless (defined $_tok) | ||
| 3230 | { | ||
| 3231 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3232 | if defined $::RD_TRACE; | ||
| 3233 | last; | ||
| 3234 | } | ||
| 3235 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3236 | . $_tok . q{])}, | ||
| 3237 | Parse::RecDescent::_tracefirst($text)) | ||
| 3238 | if defined $::RD_TRACE; | ||
| 3239 | push @item, $_tok; | ||
| 3240 | $item{__ACTION1__}=$_tok; | ||
| 3241 | |||
| 3242 | |||
| 3243 | Parse::RecDescent::_trace(q{>>Matched production: [/(unless)\\b/ <commit> exp command]<<}, | ||
| 3244 | Parse::RecDescent::_tracefirst($text), | ||
| 3245 | q{command}, | ||
| 3246 | $tracelevel) | ||
| 3247 | if defined $::RD_TRACE; | ||
| 3248 | |||
| 3249 | |||
| 3250 | |||
| 3251 | $_matched = 1; | ||
| 3252 | last; | ||
| 3253 | } | ||
| 3254 | |||
| 3255 | |||
| 3256 | while (!$_matched && !$commit) | ||
| 3257 | { | ||
| 3258 | |||
| 3259 | Parse::RecDescent::_trace(q{Trying production: [/(while)\\b/ <commit> exp command]}, | ||
| 3260 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3261 | q{command}, | ||
| 3262 | $tracelevel) | ||
| 3263 | if defined $::RD_TRACE; | ||
| 3264 | my $thisprod = $thisrule->{"prods"}[7]; | ||
| 3265 | $text = $_[1]; | ||
| 3266 | my $_savetext; | ||
| 3267 | @item = (q{command}); | ||
| 3268 | %item = (__RULE__ => q{command}); | ||
| 3269 | my $repcount = 0; | ||
| 3270 | |||
| 3271 | |||
| 3272 | Parse::RecDescent::_trace(q{Trying terminal: [/(while)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 3273 | q{command}, | ||
| 3274 | $tracelevel) | ||
| 3275 | if defined $::RD_TRACE; | ||
| 3276 | undef $lastsep; | ||
| 3277 | $expectation->is(q{})->at($text); | ||
| 3278 | |||
| 3279 | |||
| 3280 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(while)\b)/) | ||
| 3281 | { | ||
| 3282 | $text = $lastsep . $text if defined $lastsep; | ||
| 3283 | $expectation->failed(); | ||
| 3284 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 3285 | Parse::RecDescent::_tracefirst($text)) | ||
| 3286 | if defined $::RD_TRACE; | ||
| 3287 | |||
| 3288 | last; | ||
| 3289 | } | ||
| 3290 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 3291 | substr($text,0,length($current_match),q{}); | ||
| 3292 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3293 | . $current_match . q{])}, | ||
| 3294 | Parse::RecDescent::_tracefirst($text)) | ||
| 3295 | if defined $::RD_TRACE; | ||
| 3296 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 3297 | |||
| 3298 | |||
| 3299 | |||
| 3300 | |||
| 3301 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 3302 | Parse::RecDescent::_tracefirst($text), | ||
| 3303 | q{command}, | ||
| 3304 | $tracelevel) | ||
| 3305 | if defined $::RD_TRACE; | ||
| 3306 | $_tok = do { $commit = 1 }; | ||
| 3307 | if (defined($_tok)) | ||
| 3308 | { | ||
| 3309 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 3310 | . $_tok . q{])}, | ||
| 3311 | Parse::RecDescent::_tracefirst($text)) | ||
| 3312 | if defined $::RD_TRACE; | ||
| 3313 | } | ||
| 3314 | else | ||
| 3315 | { | ||
| 3316 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 3317 | Parse::RecDescent::_tracefirst($text)) | ||
| 3318 | if defined $::RD_TRACE; | ||
| 3319 | } | ||
| 3320 | |||
| 3321 | last unless defined $_tok; | ||
| 3322 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 3323 | |||
| 3324 | |||
| 3325 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 3326 | Parse::RecDescent::_tracefirst($text), | ||
| 3327 | q{command}, | ||
| 3328 | $tracelevel) | ||
| 3329 | if defined $::RD_TRACE; | ||
| 3330 | if (1) { no strict qw{refs}; | ||
| 3331 | $expectation->is(q{exp})->at($text); | ||
| 3332 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3333 | { | ||
| 3334 | |||
| 3335 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 3336 | Parse::RecDescent::_tracefirst($text), | ||
| 3337 | q{command}, | ||
| 3338 | $tracelevel) | ||
| 3339 | if defined $::RD_TRACE; | ||
| 3340 | $expectation->failed(); | ||
| 3341 | last; | ||
| 3342 | } | ||
| 3343 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 3344 | . $_tok . q{]}, | ||
| 3345 | |||
| 3346 | Parse::RecDescent::_tracefirst($text), | ||
| 3347 | q{command}, | ||
| 3348 | $tracelevel) | ||
| 3349 | if defined $::RD_TRACE; | ||
| 3350 | $item{q{exp}} = $_tok; | ||
| 3351 | push @item, $_tok; | ||
| 3352 | |||
| 3353 | } | ||
| 3354 | |||
| 3355 | Parse::RecDescent::_trace(q{Trying subrule: [command]}, | ||
| 3356 | Parse::RecDescent::_tracefirst($text), | ||
| 3357 | q{command}, | ||
| 3358 | $tracelevel) | ||
| 3359 | if defined $::RD_TRACE; | ||
| 3360 | if (1) { no strict qw{refs}; | ||
| 3361 | $expectation->is(q{command})->at($text); | ||
| 3362 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::command($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3363 | { | ||
| 3364 | |||
| 3365 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [command]>>}, | ||
| 3366 | Parse::RecDescent::_tracefirst($text), | ||
| 3367 | q{command}, | ||
| 3368 | $tracelevel) | ||
| 3369 | if defined $::RD_TRACE; | ||
| 3370 | $expectation->failed(); | ||
| 3371 | last; | ||
| 3372 | } | ||
| 3373 | Parse::RecDescent::_trace(q{>>Matched subrule: [command]<< (return value: [} | ||
| 3374 | . $_tok . q{]}, | ||
| 3375 | |||
| 3376 | Parse::RecDescent::_tracefirst($text), | ||
| 3377 | q{command}, | ||
| 3378 | $tracelevel) | ||
| 3379 | if defined $::RD_TRACE; | ||
| 3380 | $item{q{command}} = $_tok; | ||
| 3381 | push @item, $_tok; | ||
| 3382 | |||
| 3383 | } | ||
| 3384 | |||
| 3385 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3386 | Parse::RecDescent::_tracefirst($text), | ||
| 3387 | q{command}, | ||
| 3388 | $tracelevel) | ||
| 3389 | if defined $::RD_TRACE; | ||
| 3390 | |||
| 3391 | |||
| 3392 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'while_statement',$item[3],[$item[4]]] }; | ||
| 3393 | unless (defined $_tok) | ||
| 3394 | { | ||
| 3395 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3396 | if defined $::RD_TRACE; | ||
| 3397 | last; | ||
| 3398 | } | ||
| 3399 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3400 | . $_tok . q{])}, | ||
| 3401 | Parse::RecDescent::_tracefirst($text)) | ||
| 3402 | if defined $::RD_TRACE; | ||
| 3403 | push @item, $_tok; | ||
| 3404 | $item{__ACTION1__}=$_tok; | ||
| 3405 | |||
| 3406 | |||
| 3407 | Parse::RecDescent::_trace(q{>>Matched production: [/(while)\\b/ <commit> exp command]<<}, | ||
| 3408 | Parse::RecDescent::_tracefirst($text), | ||
| 3409 | q{command}, | ||
| 3410 | $tracelevel) | ||
| 3411 | if defined $::RD_TRACE; | ||
| 3412 | |||
| 3413 | |||
| 3414 | |||
| 3415 | $_matched = 1; | ||
| 3416 | last; | ||
| 3417 | } | ||
| 3418 | |||
| 3419 | |||
| 3420 | while (!$_matched && !$commit) | ||
| 3421 | { | ||
| 3422 | |||
| 3423 | Parse::RecDescent::_trace(q{Trying production: [/(foreach|for)\\b/ <commit> local_var_in exp command]}, | ||
| 3424 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3425 | q{command}, | ||
| 3426 | $tracelevel) | ||
| 3427 | if defined $::RD_TRACE; | ||
| 3428 | my $thisprod = $thisrule->{"prods"}[8]; | ||
| 3429 | $text = $_[1]; | ||
| 3430 | my $_savetext; | ||
| 3431 | @item = (q{command}); | ||
| 3432 | %item = (__RULE__ => q{command}); | ||
| 3433 | my $repcount = 0; | ||
| 3434 | |||
| 3435 | |||
| 3436 | Parse::RecDescent::_trace(q{Trying terminal: [/(foreach|for)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 3437 | q{command}, | ||
| 3438 | $tracelevel) | ||
| 3439 | if defined $::RD_TRACE; | ||
| 3440 | undef $lastsep; | ||
| 3441 | $expectation->is(q{})->at($text); | ||
| 3442 | |||
| 3443 | |||
| 3444 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(foreach|for)\b)/) | ||
| 3445 | { | ||
| 3446 | $text = $lastsep . $text if defined $lastsep; | ||
| 3447 | $expectation->failed(); | ||
| 3448 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 3449 | Parse::RecDescent::_tracefirst($text)) | ||
| 3450 | if defined $::RD_TRACE; | ||
| 3451 | |||
| 3452 | last; | ||
| 3453 | } | ||
| 3454 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 3455 | substr($text,0,length($current_match),q{}); | ||
| 3456 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3457 | . $current_match . q{])}, | ||
| 3458 | Parse::RecDescent::_tracefirst($text)) | ||
| 3459 | if defined $::RD_TRACE; | ||
| 3460 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 3461 | |||
| 3462 | |||
| 3463 | |||
| 3464 | |||
| 3465 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 3466 | Parse::RecDescent::_tracefirst($text), | ||
| 3467 | q{command}, | ||
| 3468 | $tracelevel) | ||
| 3469 | if defined $::RD_TRACE; | ||
| 3470 | $_tok = do { $commit = 1 }; | ||
| 3471 | if (defined($_tok)) | ||
| 3472 | { | ||
| 3473 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 3474 | . $_tok . q{])}, | ||
| 3475 | Parse::RecDescent::_tracefirst($text)) | ||
| 3476 | if defined $::RD_TRACE; | ||
| 3477 | } | ||
| 3478 | else | ||
| 3479 | { | ||
| 3480 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 3481 | Parse::RecDescent::_tracefirst($text)) | ||
| 3482 | if defined $::RD_TRACE; | ||
| 3483 | } | ||
| 3484 | |||
| 3485 | last unless defined $_tok; | ||
| 3486 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 3487 | |||
| 3488 | |||
| 3489 | Parse::RecDescent::_trace(q{Trying repeated subrule: [local_var_in]}, | ||
| 3490 | Parse::RecDescent::_tracefirst($text), | ||
| 3491 | q{command}, | ||
| 3492 | $tracelevel) | ||
| 3493 | if defined $::RD_TRACE; | ||
| 3494 | $expectation->is(q{local_var_in})->at($text); | ||
| 3495 | |||
| 3496 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::local_var_in, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 3497 | { | ||
| 3498 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [local_var_in]>>}, | ||
| 3499 | Parse::RecDescent::_tracefirst($text), | ||
| 3500 | q{command}, | ||
| 3501 | $tracelevel) | ||
| 3502 | if defined $::RD_TRACE; | ||
| 3503 | last; | ||
| 3504 | } | ||
| 3505 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [local_var_in]<< (} | ||
| 3506 | . @$_tok . q{ times)}, | ||
| 3507 | |||
| 3508 | Parse::RecDescent::_tracefirst($text), | ||
| 3509 | q{command}, | ||
| 3510 | $tracelevel) | ||
| 3511 | if defined $::RD_TRACE; | ||
| 3512 | $item{q{local_var_in(?)}} = $_tok; | ||
| 3513 | push @item, $_tok; | ||
| 3514 | |||
| 3515 | |||
| 3516 | |||
| 3517 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 3518 | Parse::RecDescent::_tracefirst($text), | ||
| 3519 | q{command}, | ||
| 3520 | $tracelevel) | ||
| 3521 | if defined $::RD_TRACE; | ||
| 3522 | if (1) { no strict qw{refs}; | ||
| 3523 | $expectation->is(q{exp})->at($text); | ||
| 3524 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3525 | { | ||
| 3526 | |||
| 3527 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 3528 | Parse::RecDescent::_tracefirst($text), | ||
| 3529 | q{command}, | ||
| 3530 | $tracelevel) | ||
| 3531 | if defined $::RD_TRACE; | ||
| 3532 | $expectation->failed(); | ||
| 3533 | last; | ||
| 3534 | } | ||
| 3535 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 3536 | . $_tok . q{]}, | ||
| 3537 | |||
| 3538 | Parse::RecDescent::_tracefirst($text), | ||
| 3539 | q{command}, | ||
| 3540 | $tracelevel) | ||
| 3541 | if defined $::RD_TRACE; | ||
| 3542 | $item{q{exp}} = $_tok; | ||
| 3543 | push @item, $_tok; | ||
| 3544 | |||
| 3545 | } | ||
| 3546 | |||
| 3547 | Parse::RecDescent::_trace(q{Trying subrule: [command]}, | ||
| 3548 | Parse::RecDescent::_tracefirst($text), | ||
| 3549 | q{command}, | ||
| 3550 | $tracelevel) | ||
| 3551 | if defined $::RD_TRACE; | ||
| 3552 | if (1) { no strict qw{refs}; | ||
| 3553 | $expectation->is(q{command})->at($text); | ||
| 3554 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::command($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3555 | { | ||
| 3556 | |||
| 3557 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [command]>>}, | ||
| 3558 | Parse::RecDescent::_tracefirst($text), | ||
| 3559 | q{command}, | ||
| 3560 | $tracelevel) | ||
| 3561 | if defined $::RD_TRACE; | ||
| 3562 | $expectation->failed(); | ||
| 3563 | last; | ||
| 3564 | } | ||
| 3565 | Parse::RecDescent::_trace(q{>>Matched subrule: [command]<< (return value: [} | ||
| 3566 | . $_tok . q{]}, | ||
| 3567 | |||
| 3568 | Parse::RecDescent::_tracefirst($text), | ||
| 3569 | q{command}, | ||
| 3570 | $tracelevel) | ||
| 3571 | if defined $::RD_TRACE; | ||
| 3572 | $item{q{command}} = $_tok; | ||
| 3573 | push @item, $_tok; | ||
| 3574 | |||
| 3575 | } | ||
| 3576 | |||
| 3577 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3578 | Parse::RecDescent::_tracefirst($text), | ||
| 3579 | q{command}, | ||
| 3580 | $tracelevel) | ||
| 3581 | if defined $::RD_TRACE; | ||
| 3582 | |||
| 3583 | |||
| 3584 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'foreach_statement',$item[4],[$item[5]],@{$item[3]}] }; | ||
| 3585 | unless (defined $_tok) | ||
| 3586 | { | ||
| 3587 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3588 | if defined $::RD_TRACE; | ||
| 3589 | last; | ||
| 3590 | } | ||
| 3591 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3592 | . $_tok . q{])}, | ||
| 3593 | Parse::RecDescent::_tracefirst($text)) | ||
| 3594 | if defined $::RD_TRACE; | ||
| 3595 | push @item, $_tok; | ||
| 3596 | $item{__ACTION1__}=$_tok; | ||
| 3597 | |||
| 3598 | |||
| 3599 | Parse::RecDescent::_trace(q{>>Matched production: [/(foreach|for)\\b/ <commit> local_var_in exp command]<<}, | ||
| 3600 | Parse::RecDescent::_tracefirst($text), | ||
| 3601 | q{command}, | ||
| 3602 | $tracelevel) | ||
| 3603 | if defined $::RD_TRACE; | ||
| 3604 | |||
| 3605 | |||
| 3606 | |||
| 3607 | $_matched = 1; | ||
| 3608 | last; | ||
| 3609 | } | ||
| 3610 | |||
| 3611 | |||
| 3612 | while (!$_matched && !$commit) | ||
| 3613 | { | ||
| 3614 | |||
| 3615 | Parse::RecDescent::_trace(q{Trying production: [/(stream)\\b/ <commit> /--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/ stream_select]}, | ||
| 3616 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3617 | q{command}, | ||
| 3618 | $tracelevel) | ||
| 3619 | if defined $::RD_TRACE; | ||
| 3620 | my $thisprod = $thisrule->{"prods"}[9]; | ||
| 3621 | $text = $_[1]; | ||
| 3622 | my $_savetext; | ||
| 3623 | @item = (q{command}); | ||
| 3624 | %item = (__RULE__ => q{command}); | ||
| 3625 | my $repcount = 0; | ||
| 3626 | |||
| 3627 | |||
| 3628 | Parse::RecDescent::_trace(q{Trying terminal: [/(stream)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 3629 | q{command}, | ||
| 3630 | $tracelevel) | ||
| 3631 | if defined $::RD_TRACE; | ||
| 3632 | undef $lastsep; | ||
| 3633 | $expectation->is(q{})->at($text); | ||
| 3634 | |||
| 3635 | |||
| 3636 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(stream)\b)/) | ||
| 3637 | { | ||
| 3638 | $text = $lastsep . $text if defined $lastsep; | ||
| 3639 | $expectation->failed(); | ||
| 3640 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 3641 | Parse::RecDescent::_tracefirst($text)) | ||
| 3642 | if defined $::RD_TRACE; | ||
| 3643 | |||
| 3644 | last; | ||
| 3645 | } | ||
| 3646 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 3647 | substr($text,0,length($current_match),q{}); | ||
| 3648 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3649 | . $current_match . q{])}, | ||
| 3650 | Parse::RecDescent::_tracefirst($text)) | ||
| 3651 | if defined $::RD_TRACE; | ||
| 3652 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 3653 | |||
| 3654 | |||
| 3655 | |||
| 3656 | |||
| 3657 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 3658 | Parse::RecDescent::_tracefirst($text), | ||
| 3659 | q{command}, | ||
| 3660 | $tracelevel) | ||
| 3661 | if defined $::RD_TRACE; | ||
| 3662 | $_tok = do { $commit = 1 }; | ||
| 3663 | if (defined($_tok)) | ||
| 3664 | { | ||
| 3665 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 3666 | . $_tok . q{])}, | ||
| 3667 | Parse::RecDescent::_tracefirst($text)) | ||
| 3668 | if defined $::RD_TRACE; | ||
| 3669 | } | ||
| 3670 | else | ||
| 3671 | { | ||
| 3672 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 3673 | Parse::RecDescent::_tracefirst($text)) | ||
| 3674 | if defined $::RD_TRACE; | ||
| 3675 | } | ||
| 3676 | |||
| 3677 | last unless defined $_tok; | ||
| 3678 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 3679 | |||
| 3680 | |||
| 3681 | Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_10_of_rule_command]}, | ||
| 3682 | Parse::RecDescent::_tracefirst($text), | ||
| 3683 | q{command}, | ||
| 3684 | $tracelevel) | ||
| 3685 | if defined $::RD_TRACE; | ||
| 3686 | if (1) { no strict qw{refs}; | ||
| 3687 | $expectation->is(q{/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/})->at($text); | ||
| 3688 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_10_of_rule_command($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 3689 | { | ||
| 3690 | |||
| 3691 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [_alternation_1_of_production_10_of_rule_command]>>}, | ||
| 3692 | Parse::RecDescent::_tracefirst($text), | ||
| 3693 | q{command}, | ||
| 3694 | $tracelevel) | ||
| 3695 | if defined $::RD_TRACE; | ||
| 3696 | $expectation->failed(); | ||
| 3697 | last; | ||
| 3698 | } | ||
| 3699 | Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_10_of_rule_command]<< (return value: [} | ||
| 3700 | . $_tok . q{]}, | ||
| 3701 | |||
| 3702 | Parse::RecDescent::_tracefirst($text), | ||
| 3703 | q{command}, | ||
| 3704 | $tracelevel) | ||
| 3705 | if defined $::RD_TRACE; | ||
| 3706 | $item{q{_alternation_1_of_production_10_of_rule_command}} = $_tok; | ||
| 3707 | push @item, $_tok; | ||
| 3708 | |||
| 3709 | } | ||
| 3710 | |||
| 3711 | Parse::RecDescent::_trace(q{Trying repeated subrule: [stream_select]}, | ||
| 3712 | Parse::RecDescent::_tracefirst($text), | ||
| 3713 | q{command}, | ||
| 3714 | $tracelevel) | ||
| 3715 | if defined $::RD_TRACE; | ||
| 3716 | $expectation->is(q{stream_select})->at($text); | ||
| 3717 | |||
| 3718 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::stream_select, 1, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 3719 | { | ||
| 3720 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [stream_select]>>}, | ||
| 3721 | Parse::RecDescent::_tracefirst($text), | ||
| 3722 | q{command}, | ||
| 3723 | $tracelevel) | ||
| 3724 | if defined $::RD_TRACE; | ||
| 3725 | last; | ||
| 3726 | } | ||
| 3727 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [stream_select]<< (} | ||
| 3728 | . @$_tok . q{ times)}, | ||
| 3729 | |||
| 3730 | Parse::RecDescent::_tracefirst($text), | ||
| 3731 | q{command}, | ||
| 3732 | $tracelevel) | ||
| 3733 | if defined $::RD_TRACE; | ||
| 3734 | $item{q{stream_select(s)}} = $_tok; | ||
| 3735 | push @item, $_tok; | ||
| 3736 | |||
| 3737 | |||
| 3738 | |||
| 3739 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3740 | Parse::RecDescent::_tracefirst($text), | ||
| 3741 | q{command}, | ||
| 3742 | $tracelevel) | ||
| 3743 | if defined $::RD_TRACE; | ||
| 3744 | |||
| 3745 | |||
| 3746 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'stream_process',$item[3],$item[4]] }; | ||
| 3747 | unless (defined $_tok) | ||
| 3748 | { | ||
| 3749 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3750 | if defined $::RD_TRACE; | ||
| 3751 | last; | ||
| 3752 | } | ||
| 3753 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3754 | . $_tok . q{])}, | ||
| 3755 | Parse::RecDescent::_tracefirst($text)) | ||
| 3756 | if defined $::RD_TRACE; | ||
| 3757 | push @item, $_tok; | ||
| 3758 | $item{__ACTION1__}=$_tok; | ||
| 3759 | |||
| 3760 | |||
| 3761 | Parse::RecDescent::_trace(q{>>Matched production: [/(stream)\\b/ <commit> /--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/ stream_select]<<}, | ||
| 3762 | Parse::RecDescent::_tracefirst($text), | ||
| 3763 | q{command}, | ||
| 3764 | $tracelevel) | ||
| 3765 | if defined $::RD_TRACE; | ||
| 3766 | |||
| 3767 | |||
| 3768 | |||
| 3769 | $_matched = 1; | ||
| 3770 | last; | ||
| 3771 | } | ||
| 3772 | |||
| 3773 | |||
| 3774 | while (!$_matched && !$commit) | ||
| 3775 | { | ||
| 3776 | |||
| 3777 | Parse::RecDescent::_trace(q{Trying production: [/(undef|undefine)\\b/ <commit> /\\$?[a-zA-Z_][a-zA-Z0-9_]*/]}, | ||
| 3778 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3779 | q{command}, | ||
| 3780 | $tracelevel) | ||
| 3781 | if defined $::RD_TRACE; | ||
| 3782 | my $thisprod = $thisrule->{"prods"}[10]; | ||
| 3783 | $text = $_[1]; | ||
| 3784 | my $_savetext; | ||
| 3785 | @item = (q{command}); | ||
| 3786 | %item = (__RULE__ => q{command}); | ||
| 3787 | my $repcount = 0; | ||
| 3788 | |||
| 3789 | |||
| 3790 | Parse::RecDescent::_trace(q{Trying terminal: [/(undef|undefine)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 3791 | q{command}, | ||
| 3792 | $tracelevel) | ||
| 3793 | if defined $::RD_TRACE; | ||
| 3794 | undef $lastsep; | ||
| 3795 | $expectation->is(q{})->at($text); | ||
| 3796 | |||
| 3797 | |||
| 3798 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(undef|undefine)\b)/) | ||
| 3799 | { | ||
| 3800 | $text = $lastsep . $text if defined $lastsep; | ||
| 3801 | $expectation->failed(); | ||
| 3802 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 3803 | Parse::RecDescent::_tracefirst($text)) | ||
| 3804 | if defined $::RD_TRACE; | ||
| 3805 | |||
| 3806 | last; | ||
| 3807 | } | ||
| 3808 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 3809 | substr($text,0,length($current_match),q{}); | ||
| 3810 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3811 | . $current_match . q{])}, | ||
| 3812 | Parse::RecDescent::_tracefirst($text)) | ||
| 3813 | if defined $::RD_TRACE; | ||
| 3814 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 3815 | |||
| 3816 | |||
| 3817 | |||
| 3818 | |||
| 3819 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 3820 | Parse::RecDescent::_tracefirst($text), | ||
| 3821 | q{command}, | ||
| 3822 | $tracelevel) | ||
| 3823 | if defined $::RD_TRACE; | ||
| 3824 | $_tok = do { $commit = 1 }; | ||
| 3825 | if (defined($_tok)) | ||
| 3826 | { | ||
| 3827 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 3828 | . $_tok . q{])}, | ||
| 3829 | Parse::RecDescent::_tracefirst($text)) | ||
| 3830 | if defined $::RD_TRACE; | ||
| 3831 | } | ||
| 3832 | else | ||
| 3833 | { | ||
| 3834 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 3835 | Parse::RecDescent::_tracefirst($text)) | ||
| 3836 | if defined $::RD_TRACE; | ||
| 3837 | } | ||
| 3838 | |||
| 3839 | last unless defined $_tok; | ||
| 3840 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 3841 | |||
| 3842 | |||
| 3843 | Parse::RecDescent::_trace(q{Trying terminal: [/\\$?[a-zA-Z_][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 3844 | q{command}, | ||
| 3845 | $tracelevel) | ||
| 3846 | if defined $::RD_TRACE; | ||
| 3847 | undef $lastsep; | ||
| 3848 | $expectation->is(q{/\\$?[a-zA-Z_][a-zA-Z0-9_]*/})->at($text); | ||
| 3849 | |||
| 3850 | |||
| 3851 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\$?[a-zA-Z_][a-zA-Z0-9_]*)/) | ||
| 3852 | { | ||
| 3853 | $text = $lastsep . $text if defined $lastsep; | ||
| 3854 | $expectation->failed(); | ||
| 3855 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 3856 | Parse::RecDescent::_tracefirst($text)) | ||
| 3857 | if defined $::RD_TRACE; | ||
| 3858 | |||
| 3859 | last; | ||
| 3860 | } | ||
| 3861 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 3862 | substr($text,0,length($current_match),q{}); | ||
| 3863 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3864 | . $current_match . q{])}, | ||
| 3865 | Parse::RecDescent::_tracefirst($text)) | ||
| 3866 | if defined $::RD_TRACE; | ||
| 3867 | push @item, $item{__PATTERN2__}=$current_match; | ||
| 3868 | |||
| 3869 | |||
| 3870 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3871 | Parse::RecDescent::_tracefirst($text), | ||
| 3872 | q{command}, | ||
| 3873 | $tracelevel) | ||
| 3874 | if defined $::RD_TRACE; | ||
| 3875 | |||
| 3876 | |||
| 3877 | $_tok = ($_noactions) ? 0 : do { | ||
| 3878 | [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'undefine',$item[3]]; | ||
| 3879 | }; | ||
| 3880 | unless (defined $_tok) | ||
| 3881 | { | ||
| 3882 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3883 | if defined $::RD_TRACE; | ||
| 3884 | last; | ||
| 3885 | } | ||
| 3886 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3887 | . $_tok . q{])}, | ||
| 3888 | Parse::RecDescent::_tracefirst($text)) | ||
| 3889 | if defined $::RD_TRACE; | ||
| 3890 | push @item, $_tok; | ||
| 3891 | $item{__ACTION1__}=$_tok; | ||
| 3892 | |||
| 3893 | |||
| 3894 | Parse::RecDescent::_trace(q{>>Matched production: [/(undef|undefine)\\b/ <commit> /\\$?[a-zA-Z_][a-zA-Z0-9_]*/]<<}, | ||
| 3895 | Parse::RecDescent::_tracefirst($text), | ||
| 3896 | q{command}, | ||
| 3897 | $tracelevel) | ||
| 3898 | if defined $::RD_TRACE; | ||
| 3899 | |||
| 3900 | |||
| 3901 | |||
| 3902 | $_matched = 1; | ||
| 3903 | last; | ||
| 3904 | } | ||
| 3905 | |||
| 3906 | |||
| 3907 | while (!$_matched && !$commit) | ||
| 3908 | { | ||
| 3909 | |||
| 3910 | Parse::RecDescent::_trace(q{Trying production: [/(use)\\b/ <commit> /XML::XSH2::(?:Inline|Compile)/]}, | ||
| 3911 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3912 | q{command}, | ||
| 3913 | $tracelevel) | ||
| 3914 | if defined $::RD_TRACE; | ||
| 3915 | my $thisprod = $thisrule->{"prods"}[11]; | ||
| 3916 | $text = $_[1]; | ||
| 3917 | my $_savetext; | ||
| 3918 | @item = (q{command}); | ||
| 3919 | %item = (__RULE__ => q{command}); | ||
| 3920 | my $repcount = 0; | ||
| 3921 | |||
| 3922 | |||
| 3923 | Parse::RecDescent::_trace(q{Trying terminal: [/(use)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 3924 | q{command}, | ||
| 3925 | $tracelevel) | ||
| 3926 | if defined $::RD_TRACE; | ||
| 3927 | undef $lastsep; | ||
| 3928 | $expectation->is(q{})->at($text); | ||
| 3929 | |||
| 3930 | |||
| 3931 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(use)\b)/) | ||
| 3932 | { | ||
| 3933 | $text = $lastsep . $text if defined $lastsep; | ||
| 3934 | $expectation->failed(); | ||
| 3935 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 3936 | Parse::RecDescent::_tracefirst($text)) | ||
| 3937 | if defined $::RD_TRACE; | ||
| 3938 | |||
| 3939 | last; | ||
| 3940 | } | ||
| 3941 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 3942 | substr($text,0,length($current_match),q{}); | ||
| 3943 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3944 | . $current_match . q{])}, | ||
| 3945 | Parse::RecDescent::_tracefirst($text)) | ||
| 3946 | if defined $::RD_TRACE; | ||
| 3947 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 3948 | |||
| 3949 | |||
| 3950 | |||
| 3951 | |||
| 3952 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 3953 | Parse::RecDescent::_tracefirst($text), | ||
| 3954 | q{command}, | ||
| 3955 | $tracelevel) | ||
| 3956 | if defined $::RD_TRACE; | ||
| 3957 | $_tok = do { $commit = 1 }; | ||
| 3958 | if (defined($_tok)) | ||
| 3959 | { | ||
| 3960 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 3961 | . $_tok . q{])}, | ||
| 3962 | Parse::RecDescent::_tracefirst($text)) | ||
| 3963 | if defined $::RD_TRACE; | ||
| 3964 | } | ||
| 3965 | else | ||
| 3966 | { | ||
| 3967 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 3968 | Parse::RecDescent::_tracefirst($text)) | ||
| 3969 | if defined $::RD_TRACE; | ||
| 3970 | } | ||
| 3971 | |||
| 3972 | last unless defined $_tok; | ||
| 3973 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 3974 | |||
| 3975 | |||
| 3976 | Parse::RecDescent::_trace(q{Trying terminal: [/XML::XSH2::(?:Inline|Compile)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 3977 | q{command}, | ||
| 3978 | $tracelevel) | ||
| 3979 | if defined $::RD_TRACE; | ||
| 3980 | undef $lastsep; | ||
| 3981 | $expectation->is(q{/XML::XSH2::(?:Inline|Compile)/})->at($text); | ||
| 3982 | |||
| 3983 | |||
| 3984 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:XML::XSH2::(?:Inline|Compile))/) | ||
| 3985 | { | ||
| 3986 | $text = $lastsep . $text if defined $lastsep; | ||
| 3987 | $expectation->failed(); | ||
| 3988 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 3989 | Parse::RecDescent::_tracefirst($text)) | ||
| 3990 | if defined $::RD_TRACE; | ||
| 3991 | |||
| 3992 | last; | ||
| 3993 | } | ||
| 3994 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 3995 | substr($text,0,length($current_match),q{}); | ||
| 3996 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3997 | . $current_match . q{])}, | ||
| 3998 | Parse::RecDescent::_tracefirst($text)) | ||
| 3999 | if defined $::RD_TRACE; | ||
| 4000 | push @item, $item{__PATTERN2__}=$current_match; | ||
| 4001 | |||
| 4002 | |||
| 4003 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 4004 | Parse::RecDescent::_tracefirst($text), | ||
| 4005 | q{command}, | ||
| 4006 | $tracelevel) | ||
| 4007 | if defined $::RD_TRACE; | ||
| 4008 | |||
| 4009 | |||
| 4010 | $_tok = ($_noactions) ? 0 : do { 1 }; | ||
| 4011 | unless (defined $_tok) | ||
| 4012 | { | ||
| 4013 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 4014 | if defined $::RD_TRACE; | ||
| 4015 | last; | ||
| 4016 | } | ||
| 4017 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 4018 | . $_tok . q{])}, | ||
| 4019 | Parse::RecDescent::_tracefirst($text)) | ||
| 4020 | if defined $::RD_TRACE; | ||
| 4021 | push @item, $_tok; | ||
| 4022 | $item{__ACTION1__}=$_tok; | ||
| 4023 | |||
| 4024 | |||
| 4025 | Parse::RecDescent::_trace(q{>>Matched production: [/(use)\\b/ <commit> /XML::XSH2::(?:Inline|Compile)/]<<}, | ||
| 4026 | Parse::RecDescent::_tracefirst($text), | ||
| 4027 | q{command}, | ||
| 4028 | $tracelevel) | ||
| 4029 | if defined $::RD_TRACE; | ||
| 4030 | |||
| 4031 | |||
| 4032 | |||
| 4033 | $_matched = 1; | ||
| 4034 | last; | ||
| 4035 | } | ||
| 4036 | |||
| 4037 | |||
| 4038 | while (!$_matched && !$commit) | ||
| 4039 | { | ||
| 4040 | |||
| 4041 | Parse::RecDescent::_trace(q{Trying production: [/(test-mode|test_mode)/]}, | ||
| 4042 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4043 | q{command}, | ||
| 4044 | $tracelevel) | ||
| 4045 | if defined $::RD_TRACE; | ||
| 4046 | my $thisprod = $thisrule->{"prods"}[12]; | ||
| 4047 | $text = $_[1]; | ||
| 4048 | my $_savetext; | ||
| 4049 | @item = (q{command}); | ||
| 4050 | %item = (__RULE__ => q{command}); | ||
| 4051 | my $repcount = 0; | ||
| 4052 | |||
| 4053 | |||
| 4054 | Parse::RecDescent::_trace(q{Trying terminal: [/(test-mode|test_mode)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 4055 | q{command}, | ||
| 4056 | $tracelevel) | ||
| 4057 | if defined $::RD_TRACE; | ||
| 4058 | undef $lastsep; | ||
| 4059 | $expectation->is(q{})->at($text); | ||
| 4060 | |||
| 4061 | |||
| 4062 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(test-mode|test_mode))/) | ||
| 4063 | { | ||
| 4064 | $text = $lastsep . $text if defined $lastsep; | ||
| 4065 | $expectation->failed(); | ||
| 4066 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 4067 | Parse::RecDescent::_tracefirst($text)) | ||
| 4068 | if defined $::RD_TRACE; | ||
| 4069 | |||
| 4070 | last; | ||
| 4071 | } | ||
| 4072 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 4073 | substr($text,0,length($current_match),q{}); | ||
| 4074 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 4075 | . $current_match . q{])}, | ||
| 4076 | Parse::RecDescent::_tracefirst($text)) | ||
| 4077 | if defined $::RD_TRACE; | ||
| 4078 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 4079 | |||
| 4080 | |||
| 4081 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 4082 | Parse::RecDescent::_tracefirst($text), | ||
| 4083 | q{command}, | ||
| 4084 | $tracelevel) | ||
| 4085 | if defined $::RD_TRACE; | ||
| 4086 | |||
| 4087 | |||
| 4088 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,"test-mode"] }; | ||
| 4089 | unless (defined $_tok) | ||
| 4090 | { | ||
| 4091 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 4092 | if defined $::RD_TRACE; | ||
| 4093 | last; | ||
| 4094 | } | ||
| 4095 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 4096 | . $_tok . q{])}, | ||
| 4097 | Parse::RecDescent::_tracefirst($text)) | ||
| 4098 | if defined $::RD_TRACE; | ||
| 4099 | push @item, $_tok; | ||
| 4100 | $item{__ACTION1__}=$_tok; | ||
| 4101 | |||
| 4102 | |||
| 4103 | Parse::RecDescent::_trace(q{>>Matched production: [/(test-mode|test_mode)/]<<}, | ||
| 4104 | Parse::RecDescent::_tracefirst($text), | ||
| 4105 | q{command}, | ||
| 4106 | $tracelevel) | ||
| 4107 | if defined $::RD_TRACE; | ||
| 4108 | |||
| 4109 | |||
| 4110 | |||
| 4111 | $_matched = 1; | ||
| 4112 | last; | ||
| 4113 | } | ||
| 4114 | |||
| 4115 | |||
| 4116 | while (!$_matched && !$commit) | ||
| 4117 | { | ||
| 4118 | |||
| 4119 | Parse::RecDescent::_trace(q{Trying production: [/(run-mode|run_mode)/]}, | ||
| 4120 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4121 | q{command}, | ||
| 4122 | $tracelevel) | ||
| 4123 | if defined $::RD_TRACE; | ||
| 4124 | my $thisprod = $thisrule->{"prods"}[13]; | ||
| 4125 | $text = $_[1]; | ||
| 4126 | my $_savetext; | ||
| 4127 | @item = (q{command}); | ||
| 4128 | %item = (__RULE__ => q{command}); | ||
| 4129 | my $repcount = 0; | ||
| 4130 | |||
| 4131 | |||
| 4132 | Parse::RecDescent::_trace(q{Trying terminal: [/(run-mode|run_mode)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 4133 | q{command}, | ||
| 4134 | $tracelevel) | ||
| 4135 | if defined $::RD_TRACE; | ||
| 4136 | undef $lastsep; | ||
| 4137 | $expectation->is(q{})->at($text); | ||
| 4138 | |||
| 4139 | |||
| 4140 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(run-mode|run_mode))/) | ||
| 4141 | { | ||
| 4142 | $text = $lastsep . $text if defined $lastsep; | ||
| 4143 | $expectation->failed(); | ||
| 4144 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 4145 | Parse::RecDescent::_tracefirst($text)) | ||
| 4146 | if defined $::RD_TRACE; | ||
| 4147 | |||
| 4148 | last; | ||
| 4149 | } | ||
| 4150 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 4151 | substr($text,0,length($current_match),q{}); | ||
| 4152 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 4153 | . $current_match . q{])}, | ||
| 4154 | Parse::RecDescent::_tracefirst($text)) | ||
| 4155 | if defined $::RD_TRACE; | ||
| 4156 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 4157 | |||
| 4158 | |||
| 4159 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 4160 | Parse::RecDescent::_tracefirst($text), | ||
| 4161 | q{command}, | ||
| 4162 | $tracelevel) | ||
| 4163 | if defined $::RD_TRACE; | ||
| 4164 | |||
| 4165 | |||
| 4166 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,"run-mode"] }; | ||
| 4167 | unless (defined $_tok) | ||
| 4168 | { | ||
| 4169 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 4170 | if defined $::RD_TRACE; | ||
| 4171 | last; | ||
| 4172 | } | ||
| 4173 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 4174 | . $_tok . q{])}, | ||
| 4175 | Parse::RecDescent::_tracefirst($text)) | ||
| 4176 | if defined $::RD_TRACE; | ||
| 4177 | push @item, $_tok; | ||
| 4178 | $item{__ACTION1__}=$_tok; | ||
| 4179 | |||
| 4180 | |||
| 4181 | Parse::RecDescent::_trace(q{>>Matched production: [/(run-mode|run_mode)/]<<}, | ||
| 4182 | Parse::RecDescent::_tracefirst($text), | ||
| 4183 | q{command}, | ||
| 4184 | $tracelevel) | ||
| 4185 | if defined $::RD_TRACE; | ||
| 4186 | |||
| 4187 | |||
| 4188 | |||
| 4189 | $_matched = 1; | ||
| 4190 | last; | ||
| 4191 | } | ||
| 4192 | |||
| 4193 | |||
| 4194 | while (!$_matched && !$commit) | ||
| 4195 | { | ||
| 4196 | |||
| 4197 | Parse::RecDescent::_trace(q{Trying production: [/(?!(?:iterate|try|def|define)\\b)/ /\\.|[a-zA-Z_][-a-zA-Z0-9_]*/ exp_or_opt]}, | ||
| 4198 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4199 | q{command}, | ||
| 4200 | $tracelevel) | ||
| 4201 | if defined $::RD_TRACE; | ||
| 4202 | my $thisprod = $thisrule->{"prods"}[14]; | ||
| 4203 | $text = $_[1]; | ||
| 4204 | my $_savetext; | ||
| 4205 | @item = (q{command}); | ||
| 4206 | %item = (__RULE__ => q{command}); | ||
| 4207 | my $repcount = 0; | ||
| 4208 | |||
| 4209 | |||
| 4210 | Parse::RecDescent::_trace(q{Trying terminal: [/(?!(?:iterate|try|def|define)\\b)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 4211 | q{command}, | ||
| 4212 | $tracelevel) | ||
| 4213 | if defined $::RD_TRACE; | ||
| 4214 | undef $lastsep; | ||
| 4215 | $expectation->is(q{})->at($text); | ||
| 4216 | |||
| 4217 | |||
| 4218 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?!(?:iterate|try|def|define)\b))/) | ||
| 4219 | { | ||
| 4220 | $text = $lastsep . $text if defined $lastsep; | ||
| 4221 | $expectation->failed(); | ||
| 4222 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 4223 | Parse::RecDescent::_tracefirst($text)) | ||
| 4224 | if defined $::RD_TRACE; | ||
| 4225 | |||
| 4226 | last; | ||
| 4227 | } | ||
| 4228 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 4229 | substr($text,0,length($current_match),q{}); | ||
| 4230 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 4231 | . $current_match . q{])}, | ||
| 4232 | Parse::RecDescent::_tracefirst($text)) | ||
| 4233 | if defined $::RD_TRACE; | ||
| 4234 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 4235 | |||
| 4236 | |||
| 4237 | Parse::RecDescent::_trace(q{Trying terminal: [/\\.|[a-zA-Z_][-a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 4238 | q{command}, | ||
| 4239 | $tracelevel) | ||
| 4240 | if defined $::RD_TRACE; | ||
| 4241 | undef $lastsep; | ||
| 4242 | $expectation->is(q{/\\.|[a-zA-Z_][-a-zA-Z0-9_]*/})->at($text); | ||
| 4243 | |||
| 4244 | |||
| 4245 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\.|[a-zA-Z_][-a-zA-Z0-9_]*)/) | ||
| 4246 | { | ||
| 4247 | $text = $lastsep . $text if defined $lastsep; | ||
| 4248 | $expectation->failed(); | ||
| 4249 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 4250 | Parse::RecDescent::_tracefirst($text)) | ||
| 4251 | if defined $::RD_TRACE; | ||
| 4252 | |||
| 4253 | last; | ||
| 4254 | } | ||
| 4255 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 4256 | substr($text,0,length($current_match),q{}); | ||
| 4257 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 4258 | . $current_match . q{])}, | ||
| 4259 | Parse::RecDescent::_tracefirst($text)) | ||
| 4260 | if defined $::RD_TRACE; | ||
| 4261 | push @item, $item{__PATTERN2__}=$current_match; | ||
| 4262 | |||
| 4263 | |||
| 4264 | Parse::RecDescent::_trace(q{Trying repeated subrule: [exp_or_opt]}, | ||
| 4265 | Parse::RecDescent::_tracefirst($text), | ||
| 4266 | q{command}, | ||
| 4267 | $tracelevel) | ||
| 4268 | if defined $::RD_TRACE; | ||
| 4269 | $expectation->is(q{exp_or_opt})->at($text); | ||
| 4270 | |||
| 4271 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::exp_or_opt, 0, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 4272 | { | ||
| 4273 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [exp_or_opt]>>}, | ||
| 4274 | Parse::RecDescent::_tracefirst($text), | ||
| 4275 | q{command}, | ||
| 4276 | $tracelevel) | ||
| 4277 | if defined $::RD_TRACE; | ||
| 4278 | last; | ||
| 4279 | } | ||
| 4280 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [exp_or_opt]<< (} | ||
| 4281 | . @$_tok . q{ times)}, | ||
| 4282 | |||
| 4283 | Parse::RecDescent::_tracefirst($text), | ||
| 4284 | q{command}, | ||
| 4285 | $tracelevel) | ||
| 4286 | if defined $::RD_TRACE; | ||
| 4287 | $item{q{exp_or_opt(s?)}} = $_tok; | ||
| 4288 | push @item, $_tok; | ||
| 4289 | |||
| 4290 | |||
| 4291 | |||
| 4292 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 4293 | Parse::RecDescent::_tracefirst($text), | ||
| 4294 | q{command}, | ||
| 4295 | $tracelevel) | ||
| 4296 | if defined $::RD_TRACE; | ||
| 4297 | |||
| 4298 | |||
| 4299 | $_tok = ($_noactions) ? 0 : do { | ||
| 4300 | bless | ||
| 4301 | [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,$item[2],@{$item[3]}], | ||
| 4302 | 'XML::XSH2::Command' | ||
| 4303 | }; | ||
| 4304 | unless (defined $_tok) | ||
| 4305 | { | ||
| 4306 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 4307 | if defined $::RD_TRACE; | ||
| 4308 | last; | ||
| 4309 | } | ||
| 4310 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 4311 | . $_tok . q{])}, | ||
| 4312 | Parse::RecDescent::_tracefirst($text)) | ||
| 4313 | if defined $::RD_TRACE; | ||
| 4314 | push @item, $_tok; | ||
| 4315 | $item{__ACTION1__}=$_tok; | ||
| 4316 | |||
| 4317 | |||
| 4318 | Parse::RecDescent::_trace(q{>>Matched production: [/(?!(?:iterate|try|def|define)\\b)/ /\\.|[a-zA-Z_][-a-zA-Z0-9_]*/ exp_or_opt]<<}, | ||
| 4319 | Parse::RecDescent::_tracefirst($text), | ||
| 4320 | q{command}, | ||
| 4321 | $tracelevel) | ||
| 4322 | if defined $::RD_TRACE; | ||
| 4323 | |||
| 4324 | |||
| 4325 | |||
| 4326 | $_matched = 1; | ||
| 4327 | last; | ||
| 4328 | } | ||
| 4329 | |||
| 4330 | |||
| 4331 | unless ( $_matched || defined($score) ) | ||
| 4332 | { | ||
| 4333 | |||
| 4334 | |||
| 4335 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 4336 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 4337 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4338 | q{command}, | ||
| 4339 | $tracelevel) | ||
| 4340 | if defined $::RD_TRACE; | ||
| 4341 | return undef; | ||
| 4342 | } | ||
| 4343 | if (!defined($return) && defined($score)) | ||
| 4344 | { | ||
| 4345 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 4346 | q{command}, | ||
| 4347 | $tracelevel) | ||
| 4348 | if defined $::RD_TRACE; | ||
| 4349 | $return = $score_return; | ||
| 4350 | } | ||
| 4351 | splice @{$thisparser->{errors}}, $err_at; | ||
| 4352 | $return = $item[$#item] unless defined $return; | ||
| 4353 | if (defined $::RD_TRACE) | ||
| 4354 | { | ||
| 4355 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 4356 | $return . q{])}, "", | ||
| 4357 | q{command}, | ||
| 4358 | $tracelevel); | ||
| 4359 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 4360 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 4361 | Parse::RecDescent::_tracefirst($text), | ||
| 4362 | , q{command}, | ||
| 4363 | $tracelevel) | ||
| 4364 | } | ||
| 4365 | $_[1] = $text; | ||
| 4366 | return $return; | ||
| 4367 | } | ||
| 4368 | |||
| 4369 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 4370 | sub Parse::RecDescent::XML::XSH2::Parser::complex_command | ||
| 4371 | { | ||
| 4372 | my $thisparser = $_[0]; | ||
| 4373 | use vars q{$tracelevel}; | ||
| 4374 | local $tracelevel = ($tracelevel||0)+1; | ||
| 4375 | $ERRORS = 0; | ||
| 4376 | my $thisrule = $thisparser->{"rules"}{"complex_command"}; | ||
| 4377 | |||
| 4378 | Parse::RecDescent::_trace(q{Trying rule: [complex_command]}, | ||
| 4379 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4380 | q{complex_command}, | ||
| 4381 | $tracelevel) | ||
| 4382 | if defined $::RD_TRACE; | ||
| 4383 | |||
| 4384 | |||
| 4385 | my $err_at = @{$thisparser->{errors}}; | ||
| 4386 | |||
| 4387 | my $score; | ||
| 4388 | my $score_return; | ||
| 4389 | my $_tok; | ||
| 4390 | my $return = undef; | ||
| 4391 | my $_matched=0; | ||
| 4392 | my $commit=0; | ||
| 4393 | my @item = (); | ||
| 4394 | my %item = (); | ||
| 4395 | my $repeating = $_[2]; | ||
| 4396 | my $_noactions = $_[3]; | ||
| 4397 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 4398 | my $_itempos = $_[5]; | ||
| 4399 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 4400 | my $text; | ||
| 4401 | my $lastsep; | ||
| 4402 | my $current_match; | ||
| 4403 | my $expectation = new Parse::RecDescent::Expectation(q{/(?=\\s*[\{\}]|\\s*\\Z)/, or /\\s*;/, or /(?=(?:foreach|for|if|unless|iterate|while|try|def|define)\\b)/, or command}); | ||
| 4404 | $expectation->at($_[1]); | ||
| 4405 | |||
| 4406 | my $thisoffset; | ||
| 4407 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 4408 | |||
| 4409 | my $thiscolumn; | ||
| 4410 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 4411 | |||
| 4412 | my $thisline; | ||
| 4413 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 4414 | |||
| 4415 | |||
| 4416 | |||
| 4417 | while (!$_matched && !$commit) | ||
| 4418 | { | ||
| 4419 | |||
| 4420 | Parse::RecDescent::_trace(q{Trying production: [/(?=\\s*[\{\}]|\\s*\\Z)/ <commit> <reject>]}, | ||
| 4421 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4422 | q{complex_command}, | ||
| 4423 | $tracelevel) | ||
| 4424 | if defined $::RD_TRACE; | ||
| 4425 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 4426 | $text = $_[1]; | ||
| 4427 | my $_savetext; | ||
| 4428 | @item = (q{complex_command}); | ||
| 4429 | %item = (__RULE__ => q{complex_command}); | ||
| 4430 | my $repcount = 0; | ||
| 4431 | |||
| 4432 | |||
| 4433 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=\\s*[\{\}]|\\s*\\Z)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 4434 | q{complex_command}, | ||
| 4435 | $tracelevel) | ||
| 4436 | if defined $::RD_TRACE; | ||
| 4437 | undef $lastsep; | ||
| 4438 | $expectation->is(q{})->at($text); | ||
| 4439 | |||
| 4440 | |||
| 4441 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=\s*[{}]|\s*\Z))/) | ||
| 4442 | { | ||
| 4443 | $text = $lastsep . $text if defined $lastsep; | ||
| 4444 | $expectation->failed(); | ||
| 4445 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 4446 | Parse::RecDescent::_tracefirst($text)) | ||
| 4447 | if defined $::RD_TRACE; | ||
| 4448 | |||
| 4449 | last; | ||
| 4450 | } | ||
| 4451 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 4452 | substr($text,0,length($current_match),q{}); | ||
| 4453 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 4454 | . $current_match . q{])}, | ||
| 4455 | Parse::RecDescent::_tracefirst($text)) | ||
| 4456 | if defined $::RD_TRACE; | ||
| 4457 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 4458 | |||
| 4459 | |||
| 4460 | |||
| 4461 | |||
| 4462 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 4463 | Parse::RecDescent::_tracefirst($text), | ||
| 4464 | q{complex_command}, | ||
| 4465 | $tracelevel) | ||
| 4466 | if defined $::RD_TRACE; | ||
| 4467 | $_tok = do { $commit = 1 }; | ||
| 4468 | if (defined($_tok)) | ||
| 4469 | { | ||
| 4470 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 4471 | . $_tok . q{])}, | ||
| 4472 | Parse::RecDescent::_tracefirst($text)) | ||
| 4473 | if defined $::RD_TRACE; | ||
| 4474 | } | ||
| 4475 | else | ||
| 4476 | { | ||
| 4477 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 4478 | Parse::RecDescent::_tracefirst($text)) | ||
| 4479 | if defined $::RD_TRACE; | ||
| 4480 | } | ||
| 4481 | |||
| 4482 | last unless defined $_tok; | ||
| 4483 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 4484 | |||
| 4485 | |||
| 4486 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 4487 | Parse::RecDescent::_tracefirst($text), | ||
| 4488 | q{complex_command}, | ||
| 4489 | $tracelevel) | ||
| 4490 | if defined $::RD_TRACE; | ||
| 4491 | undef $return; | ||
| 4492 | |||
| 4493 | |||
| 4494 | $_tok = undef; | ||
| 4495 | |||
| 4496 | last unless defined $_tok; | ||
| 4497 | |||
| 4498 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=\\s*[\{\}]|\\s*\\Z)/ <commit> <reject>]<<}, | ||
| 4499 | Parse::RecDescent::_tracefirst($text), | ||
| 4500 | q{complex_command}, | ||
| 4501 | $tracelevel) | ||
| 4502 | if defined $::RD_TRACE; | ||
| 4503 | |||
| 4504 | |||
| 4505 | |||
| 4506 | $_matched = 1; | ||
| 4507 | last; | ||
| 4508 | } | ||
| 4509 | |||
| 4510 | |||
| 4511 | while (!$_matched && !$commit) | ||
| 4512 | { | ||
| 4513 | |||
| 4514 | Parse::RecDescent::_trace(q{Trying production: [/\\s*;/ <commit>]}, | ||
| 4515 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4516 | q{complex_command}, | ||
| 4517 | $tracelevel) | ||
| 4518 | if defined $::RD_TRACE; | ||
| 4519 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 4520 | $text = $_[1]; | ||
| 4521 | my $_savetext; | ||
| 4522 | @item = (q{complex_command}); | ||
| 4523 | %item = (__RULE__ => q{complex_command}); | ||
| 4524 | my $repcount = 0; | ||
| 4525 | |||
| 4526 | |||
| 4527 | Parse::RecDescent::_trace(q{Trying terminal: [/\\s*;/]}, Parse::RecDescent::_tracefirst($text), | ||
| 4528 | q{complex_command}, | ||
| 4529 | $tracelevel) | ||
| 4530 | if defined $::RD_TRACE; | ||
| 4531 | undef $lastsep; | ||
| 4532 | $expectation->is(q{})->at($text); | ||
| 4533 | |||
| 4534 | |||
| 4535 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*;)/) | ||
| 4536 | { | ||
| 4537 | $text = $lastsep . $text if defined $lastsep; | ||
| 4538 | $expectation->failed(); | ||
| 4539 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 4540 | Parse::RecDescent::_tracefirst($text)) | ||
| 4541 | if defined $::RD_TRACE; | ||
| 4542 | |||
| 4543 | last; | ||
| 4544 | } | ||
| 4545 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 4546 | substr($text,0,length($current_match),q{}); | ||
| 4547 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 4548 | . $current_match . q{])}, | ||
| 4549 | Parse::RecDescent::_tracefirst($text)) | ||
| 4550 | if defined $::RD_TRACE; | ||
| 4551 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 4552 | |||
| 4553 | |||
| 4554 | |||
| 4555 | |||
| 4556 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 4557 | Parse::RecDescent::_tracefirst($text), | ||
| 4558 | q{complex_command}, | ||
| 4559 | $tracelevel) | ||
| 4560 | if defined $::RD_TRACE; | ||
| 4561 | $_tok = do { $commit = 1 }; | ||
| 4562 | if (defined($_tok)) | ||
| 4563 | { | ||
| 4564 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 4565 | . $_tok . q{])}, | ||
| 4566 | Parse::RecDescent::_tracefirst($text)) | ||
| 4567 | if defined $::RD_TRACE; | ||
| 4568 | } | ||
| 4569 | else | ||
| 4570 | { | ||
| 4571 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 4572 | Parse::RecDescent::_tracefirst($text)) | ||
| 4573 | if defined $::RD_TRACE; | ||
| 4574 | } | ||
| 4575 | |||
| 4576 | last unless defined $_tok; | ||
| 4577 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 4578 | |||
| 4579 | |||
| 4580 | Parse::RecDescent::_trace(q{>>Matched production: [/\\s*;/ <commit>]<<}, | ||
| 4581 | Parse::RecDescent::_tracefirst($text), | ||
| 4582 | q{complex_command}, | ||
| 4583 | $tracelevel) | ||
| 4584 | if defined $::RD_TRACE; | ||
| 4585 | |||
| 4586 | |||
| 4587 | |||
| 4588 | $_matched = 1; | ||
| 4589 | last; | ||
| 4590 | } | ||
| 4591 | |||
| 4592 | |||
| 4593 | while (!$_matched && !$commit) | ||
| 4594 | { | ||
| 4595 | |||
| 4596 | Parse::RecDescent::_trace(q{Trying production: [/(?=(?:foreach|for|if|unless|iterate|while|try|def|define)\\b)/ statement <commit> trail]}, | ||
| 4597 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4598 | q{complex_command}, | ||
| 4599 | $tracelevel) | ||
| 4600 | if defined $::RD_TRACE; | ||
| 4601 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 4602 | $text = $_[1]; | ||
| 4603 | my $_savetext; | ||
| 4604 | @item = (q{complex_command}); | ||
| 4605 | %item = (__RULE__ => q{complex_command}); | ||
| 4606 | my $repcount = 0; | ||
| 4607 | |||
| 4608 | |||
| 4609 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=(?:foreach|for|if|unless|iterate|while|try|def|define)\\b)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 4610 | q{complex_command}, | ||
| 4611 | $tracelevel) | ||
| 4612 | if defined $::RD_TRACE; | ||
| 4613 | undef $lastsep; | ||
| 4614 | $expectation->is(q{})->at($text); | ||
| 4615 | |||
| 4616 | |||
| 4617 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=(?:foreach|for|if|unless|iterate|while|try|def|define)\b))/) | ||
| 4618 | { | ||
| 4619 | $text = $lastsep . $text if defined $lastsep; | ||
| 4620 | $expectation->failed(); | ||
| 4621 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 4622 | Parse::RecDescent::_tracefirst($text)) | ||
| 4623 | if defined $::RD_TRACE; | ||
| 4624 | |||
| 4625 | last; | ||
| 4626 | } | ||
| 4627 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 4628 | substr($text,0,length($current_match),q{}); | ||
| 4629 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 4630 | . $current_match . q{])}, | ||
| 4631 | Parse::RecDescent::_tracefirst($text)) | ||
| 4632 | if defined $::RD_TRACE; | ||
| 4633 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 4634 | |||
| 4635 | |||
| 4636 | Parse::RecDescent::_trace(q{Trying subrule: [statement]}, | ||
| 4637 | Parse::RecDescent::_tracefirst($text), | ||
| 4638 | q{complex_command}, | ||
| 4639 | $tracelevel) | ||
| 4640 | if defined $::RD_TRACE; | ||
| 4641 | if (1) { no strict qw{refs}; | ||
| 4642 | $expectation->is(q{statement})->at($text); | ||
| 4643 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::statement($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 4644 | { | ||
| 4645 | |||
| 4646 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [statement]>>}, | ||
| 4647 | Parse::RecDescent::_tracefirst($text), | ||
| 4648 | q{complex_command}, | ||
| 4649 | $tracelevel) | ||
| 4650 | if defined $::RD_TRACE; | ||
| 4651 | $expectation->failed(); | ||
| 4652 | last; | ||
| 4653 | } | ||
| 4654 | Parse::RecDescent::_trace(q{>>Matched subrule: [statement]<< (return value: [} | ||
| 4655 | . $_tok . q{]}, | ||
| 4656 | |||
| 4657 | Parse::RecDescent::_tracefirst($text), | ||
| 4658 | q{complex_command}, | ||
| 4659 | $tracelevel) | ||
| 4660 | if defined $::RD_TRACE; | ||
| 4661 | $item{q{statement}} = $_tok; | ||
| 4662 | push @item, $_tok; | ||
| 4663 | |||
| 4664 | } | ||
| 4665 | |||
| 4666 | |||
| 4667 | |||
| 4668 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 4669 | Parse::RecDescent::_tracefirst($text), | ||
| 4670 | q{complex_command}, | ||
| 4671 | $tracelevel) | ||
| 4672 | if defined $::RD_TRACE; | ||
| 4673 | $_tok = do { $commit = 1 }; | ||
| 4674 | if (defined($_tok)) | ||
| 4675 | { | ||
| 4676 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 4677 | . $_tok . q{])}, | ||
| 4678 | Parse::RecDescent::_tracefirst($text)) | ||
| 4679 | if defined $::RD_TRACE; | ||
| 4680 | } | ||
| 4681 | else | ||
| 4682 | { | ||
| 4683 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 4684 | Parse::RecDescent::_tracefirst($text)) | ||
| 4685 | if defined $::RD_TRACE; | ||
| 4686 | } | ||
| 4687 | |||
| 4688 | last unless defined $_tok; | ||
| 4689 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 4690 | |||
| 4691 | |||
| 4692 | Parse::RecDescent::_trace(q{Trying repeated subrule: [trail]}, | ||
| 4693 | Parse::RecDescent::_tracefirst($text), | ||
| 4694 | q{complex_command}, | ||
| 4695 | $tracelevel) | ||
| 4696 | if defined $::RD_TRACE; | ||
| 4697 | $expectation->is(q{trail})->at($text); | ||
| 4698 | |||
| 4699 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::trail, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 4700 | { | ||
| 4701 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [trail]>>}, | ||
| 4702 | Parse::RecDescent::_tracefirst($text), | ||
| 4703 | q{complex_command}, | ||
| 4704 | $tracelevel) | ||
| 4705 | if defined $::RD_TRACE; | ||
| 4706 | last; | ||
| 4707 | } | ||
| 4708 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [trail]<< (} | ||
| 4709 | . @$_tok . q{ times)}, | ||
| 4710 | |||
| 4711 | Parse::RecDescent::_tracefirst($text), | ||
| 4712 | q{complex_command}, | ||
| 4713 | $tracelevel) | ||
| 4714 | if defined $::RD_TRACE; | ||
| 4715 | $item{q{trail(?)}} = $_tok; | ||
| 4716 | push @item, $_tok; | ||
| 4717 | |||
| 4718 | |||
| 4719 | |||
| 4720 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 4721 | Parse::RecDescent::_tracefirst($text), | ||
| 4722 | q{complex_command}, | ||
| 4723 | $tracelevel) | ||
| 4724 | if defined $::RD_TRACE; | ||
| 4725 | |||
| 4726 | |||
| 4727 | $_tok = ($_noactions) ? 0 : do { | ||
| 4728 | if (scalar(@{$item[4]})) { | ||
| 4729 | if ($item[4][0][0] eq 'pipe') { | ||
| 4730 | $return=[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'pipe_command',[$item[2]],$item[4][0][1]] | ||
| 4731 | } else { | ||
| 4732 | $return=[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'string_pipe_command',[$item[2]],$item[4][0][1]] | ||
| 4733 | } | ||
| 4734 | } else { | ||
| 4735 | $return=$item[2] | ||
| 4736 | } | ||
| 4737 | }; | ||
| 4738 | unless (defined $_tok) | ||
| 4739 | { | ||
| 4740 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 4741 | if defined $::RD_TRACE; | ||
| 4742 | last; | ||
| 4743 | } | ||
| 4744 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 4745 | . $_tok . q{])}, | ||
| 4746 | Parse::RecDescent::_tracefirst($text)) | ||
| 4747 | if defined $::RD_TRACE; | ||
| 4748 | push @item, $_tok; | ||
| 4749 | $item{__ACTION1__}=$_tok; | ||
| 4750 | |||
| 4751 | |||
| 4752 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=(?:foreach|for|if|unless|iterate|while|try|def|define)\\b)/ statement <commit> trail]<<}, | ||
| 4753 | Parse::RecDescent::_tracefirst($text), | ||
| 4754 | q{complex_command}, | ||
| 4755 | $tracelevel) | ||
| 4756 | if defined $::RD_TRACE; | ||
| 4757 | |||
| 4758 | |||
| 4759 | |||
| 4760 | $_matched = 1; | ||
| 4761 | last; | ||
| 4762 | } | ||
| 4763 | |||
| 4764 | |||
| 4765 | while (!$_matched && !$commit) | ||
| 4766 | { | ||
| 4767 | |||
| 4768 | Parse::RecDescent::_trace(q{Trying production: [command <commit> trail /\\s*;|(?=\\s*\}|\\s*\\Z)/]}, | ||
| 4769 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4770 | q{complex_command}, | ||
| 4771 | $tracelevel) | ||
| 4772 | if defined $::RD_TRACE; | ||
| 4773 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 4774 | $text = $_[1]; | ||
| 4775 | my $_savetext; | ||
| 4776 | @item = (q{complex_command}); | ||
| 4777 | %item = (__RULE__ => q{complex_command}); | ||
| 4778 | my $repcount = 0; | ||
| 4779 | |||
| 4780 | |||
| 4781 | Parse::RecDescent::_trace(q{Trying subrule: [command]}, | ||
| 4782 | Parse::RecDescent::_tracefirst($text), | ||
| 4783 | q{complex_command}, | ||
| 4784 | $tracelevel) | ||
| 4785 | if defined $::RD_TRACE; | ||
| 4786 | if (1) { no strict qw{refs}; | ||
| 4787 | $expectation->is(q{})->at($text); | ||
| 4788 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::command($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 4789 | { | ||
| 4790 | |||
| 4791 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [command]>>}, | ||
| 4792 | Parse::RecDescent::_tracefirst($text), | ||
| 4793 | q{complex_command}, | ||
| 4794 | $tracelevel) | ||
| 4795 | if defined $::RD_TRACE; | ||
| 4796 | $expectation->failed(); | ||
| 4797 | last; | ||
| 4798 | } | ||
| 4799 | Parse::RecDescent::_trace(q{>>Matched subrule: [command]<< (return value: [} | ||
| 4800 | . $_tok . q{]}, | ||
| 4801 | |||
| 4802 | Parse::RecDescent::_tracefirst($text), | ||
| 4803 | q{complex_command}, | ||
| 4804 | $tracelevel) | ||
| 4805 | if defined $::RD_TRACE; | ||
| 4806 | $item{q{command}} = $_tok; | ||
| 4807 | push @item, $_tok; | ||
| 4808 | |||
| 4809 | } | ||
| 4810 | |||
| 4811 | |||
| 4812 | |||
| 4813 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 4814 | Parse::RecDescent::_tracefirst($text), | ||
| 4815 | q{complex_command}, | ||
| 4816 | $tracelevel) | ||
| 4817 | if defined $::RD_TRACE; | ||
| 4818 | $_tok = do { $commit = 1 }; | ||
| 4819 | if (defined($_tok)) | ||
| 4820 | { | ||
| 4821 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 4822 | . $_tok . q{])}, | ||
| 4823 | Parse::RecDescent::_tracefirst($text)) | ||
| 4824 | if defined $::RD_TRACE; | ||
| 4825 | } | ||
| 4826 | else | ||
| 4827 | { | ||
| 4828 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 4829 | Parse::RecDescent::_tracefirst($text)) | ||
| 4830 | if defined $::RD_TRACE; | ||
| 4831 | } | ||
| 4832 | |||
| 4833 | last unless defined $_tok; | ||
| 4834 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 4835 | |||
| 4836 | |||
| 4837 | Parse::RecDescent::_trace(q{Trying repeated subrule: [trail]}, | ||
| 4838 | Parse::RecDescent::_tracefirst($text), | ||
| 4839 | q{complex_command}, | ||
| 4840 | $tracelevel) | ||
| 4841 | if defined $::RD_TRACE; | ||
| 4842 | $expectation->is(q{trail})->at($text); | ||
| 4843 | |||
| 4844 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::trail, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 4845 | { | ||
| 4846 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [trail]>>}, | ||
| 4847 | Parse::RecDescent::_tracefirst($text), | ||
| 4848 | q{complex_command}, | ||
| 4849 | $tracelevel) | ||
| 4850 | if defined $::RD_TRACE; | ||
| 4851 | last; | ||
| 4852 | } | ||
| 4853 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [trail]<< (} | ||
| 4854 | . @$_tok . q{ times)}, | ||
| 4855 | |||
| 4856 | Parse::RecDescent::_tracefirst($text), | ||
| 4857 | q{complex_command}, | ||
| 4858 | $tracelevel) | ||
| 4859 | if defined $::RD_TRACE; | ||
| 4860 | $item{q{trail(?)}} = $_tok; | ||
| 4861 | push @item, $_tok; | ||
| 4862 | |||
| 4863 | |||
| 4864 | |||
| 4865 | Parse::RecDescent::_trace(q{Trying terminal: [/\\s*;|(?=\\s*\}|\\s*\\Z)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 4866 | q{complex_command}, | ||
| 4867 | $tracelevel) | ||
| 4868 | if defined $::RD_TRACE; | ||
| 4869 | undef $lastsep; | ||
| 4870 | $expectation->is(q{/\\s*;|(?=\\s*\}|\\s*\\Z)/})->at($text); | ||
| 4871 | |||
| 4872 | |||
| 4873 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\s*;|(?=\s*}|\s*\Z))/) | ||
| 4874 | { | ||
| 4875 | $text = $lastsep . $text if defined $lastsep; | ||
| 4876 | $expectation->failed(); | ||
| 4877 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 4878 | Parse::RecDescent::_tracefirst($text)) | ||
| 4879 | if defined $::RD_TRACE; | ||
| 4880 | |||
| 4881 | last; | ||
| 4882 | } | ||
| 4883 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 4884 | substr($text,0,length($current_match),q{}); | ||
| 4885 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 4886 | . $current_match . q{])}, | ||
| 4887 | Parse::RecDescent::_tracefirst($text)) | ||
| 4888 | if defined $::RD_TRACE; | ||
| 4889 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 4890 | |||
| 4891 | |||
| 4892 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 4893 | Parse::RecDescent::_tracefirst($text), | ||
| 4894 | q{complex_command}, | ||
| 4895 | $tracelevel) | ||
| 4896 | if defined $::RD_TRACE; | ||
| 4897 | |||
| 4898 | |||
| 4899 | $_tok = ($_noactions) ? 0 : do { | ||
| 4900 | if (scalar(@{$item[3]})) { | ||
| 4901 | if ($item[3][0][0] eq 'pipe') { | ||
| 4902 | $return=[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'pipe_command',[$item[1]],$item[3][0][1]] | ||
| 4903 | } else { | ||
| 4904 | $return=[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'string_pipe_command',[$item[1]],$item[3][0][1]] | ||
| 4905 | } | ||
| 4906 | } else { | ||
| 4907 | $return=$item[1] | ||
| 4908 | } | ||
| 4909 | }; | ||
| 4910 | unless (defined $_tok) | ||
| 4911 | { | ||
| 4912 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 4913 | if defined $::RD_TRACE; | ||
| 4914 | last; | ||
| 4915 | } | ||
| 4916 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 4917 | . $_tok . q{])}, | ||
| 4918 | Parse::RecDescent::_tracefirst($text)) | ||
| 4919 | if defined $::RD_TRACE; | ||
| 4920 | push @item, $_tok; | ||
| 4921 | $item{__ACTION1__}=$_tok; | ||
| 4922 | |||
| 4923 | |||
| 4924 | Parse::RecDescent::_trace(q{>>Matched production: [command <commit> trail /\\s*;|(?=\\s*\}|\\s*\\Z)/]<<}, | ||
| 4925 | Parse::RecDescent::_tracefirst($text), | ||
| 4926 | q{complex_command}, | ||
| 4927 | $tracelevel) | ||
| 4928 | if defined $::RD_TRACE; | ||
| 4929 | |||
| 4930 | |||
| 4931 | |||
| 4932 | $_matched = 1; | ||
| 4933 | last; | ||
| 4934 | } | ||
| 4935 | |||
| 4936 | |||
| 4937 | while (!$_matched) | ||
| 4938 | { | ||
| 4939 | |||
| 4940 | Parse::RecDescent::_trace(q{Trying production: [<error...>]}, | ||
| 4941 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4942 | q{complex_command}, | ||
| 4943 | $tracelevel) | ||
| 4944 | if defined $::RD_TRACE; | ||
| 4945 | my $thisprod = $thisrule->{"prods"}[4]; | ||
| 4946 | |||
| 4947 | my $_savetext; | ||
| 4948 | @item = (q{complex_command}); | ||
| 4949 | %item = (__RULE__ => q{complex_command}); | ||
| 4950 | my $repcount = 0; | ||
| 4951 | |||
| 4952 | |||
| 4953 | |||
| 4954 | |||
| 4955 | Parse::RecDescent::_trace(q{Trying directive: [<error...>]}, | ||
| 4956 | Parse::RecDescent::_tracefirst($text), | ||
| 4957 | q{complex_command}, | ||
| 4958 | $tracelevel) | ||
| 4959 | if defined $::RD_TRACE; | ||
| 4960 | $_tok = do { if (1) { do {push @{$thisparser->{errors}}, [qq{Parse error near: "}.substr($text,0,40).qq{ ..."},$thisline];} unless $_noactions; undef } else {0} }; | ||
| 4961 | if (defined($_tok)) | ||
| 4962 | { | ||
| 4963 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 4964 | . $_tok . q{])}, | ||
| 4965 | Parse::RecDescent::_tracefirst($text)) | ||
| 4966 | if defined $::RD_TRACE; | ||
| 4967 | } | ||
| 4968 | else | ||
| 4969 | { | ||
| 4970 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 4971 | Parse::RecDescent::_tracefirst($text)) | ||
| 4972 | if defined $::RD_TRACE; | ||
| 4973 | } | ||
| 4974 | |||
| 4975 | last unless defined $_tok; | ||
| 4976 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 4977 | |||
| 4978 | |||
| 4979 | Parse::RecDescent::_trace(q{>>Matched production: [<error...>]<<}, | ||
| 4980 | Parse::RecDescent::_tracefirst($text), | ||
| 4981 | q{complex_command}, | ||
| 4982 | $tracelevel) | ||
| 4983 | if defined $::RD_TRACE; | ||
| 4984 | |||
| 4985 | |||
| 4986 | |||
| 4987 | $_matched = 1; | ||
| 4988 | last; | ||
| 4989 | } | ||
| 4990 | |||
| 4991 | |||
| 4992 | unless ( $_matched || defined($score) ) | ||
| 4993 | { | ||
| 4994 | |||
| 4995 | |||
| 4996 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 4997 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 4998 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 4999 | q{complex_command}, | ||
| 5000 | $tracelevel) | ||
| 5001 | if defined $::RD_TRACE; | ||
| 5002 | return undef; | ||
| 5003 | } | ||
| 5004 | if (!defined($return) && defined($score)) | ||
| 5005 | { | ||
| 5006 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 5007 | q{complex_command}, | ||
| 5008 | $tracelevel) | ||
| 5009 | if defined $::RD_TRACE; | ||
| 5010 | $return = $score_return; | ||
| 5011 | } | ||
| 5012 | splice @{$thisparser->{errors}}, $err_at; | ||
| 5013 | $return = $item[$#item] unless defined $return; | ||
| 5014 | if (defined $::RD_TRACE) | ||
| 5015 | { | ||
| 5016 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 5017 | $return . q{])}, "", | ||
| 5018 | q{complex_command}, | ||
| 5019 | $tracelevel); | ||
| 5020 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 5021 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 5022 | Parse::RecDescent::_tracefirst($text), | ||
| 5023 | , q{complex_command}, | ||
| 5024 | $tracelevel) | ||
| 5025 | } | ||
| 5026 | $_[1] = $text; | ||
| 5027 | return $return; | ||
| 5028 | } | ||
| 5029 | |||
| 5030 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 5031 | sub Parse::RecDescent::XML::XSH2::Parser::else_block | ||
| 5032 | { | ||
| 5033 | my $thisparser = $_[0]; | ||
| 5034 | use vars q{$tracelevel}; | ||
| 5035 | local $tracelevel = ($tracelevel||0)+1; | ||
| 5036 | $ERRORS = 0; | ||
| 5037 | my $thisrule = $thisparser->{"rules"}{"else_block"}; | ||
| 5038 | |||
| 5039 | Parse::RecDescent::_trace(q{Trying rule: [else_block]}, | ||
| 5040 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5041 | q{else_block}, | ||
| 5042 | $tracelevel) | ||
| 5043 | if defined $::RD_TRACE; | ||
| 5044 | |||
| 5045 | |||
| 5046 | my $err_at = @{$thisparser->{errors}}; | ||
| 5047 | |||
| 5048 | my $score; | ||
| 5049 | my $score_return; | ||
| 5050 | my $_tok; | ||
| 5051 | my $return = undef; | ||
| 5052 | my $_matched=0; | ||
| 5053 | my $commit=0; | ||
| 5054 | my @item = (); | ||
| 5055 | my %item = (); | ||
| 5056 | my $repeating = $_[2]; | ||
| 5057 | my $_noactions = $_[3]; | ||
| 5058 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 5059 | my $_itempos = $_[5]; | ||
| 5060 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 5061 | my $text; | ||
| 5062 | my $lastsep; | ||
| 5063 | my $current_match; | ||
| 5064 | my $expectation = new Parse::RecDescent::Expectation(q{/(else)\\b/, or /(?!else)/}); | ||
| 5065 | $expectation->at($_[1]); | ||
| 5066 | |||
| 5067 | my $thisoffset; | ||
| 5068 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 5069 | |||
| 5070 | my $thiscolumn; | ||
| 5071 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 5072 | |||
| 5073 | my $thisline; | ||
| 5074 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 5075 | |||
| 5076 | |||
| 5077 | |||
| 5078 | while (!$_matched && !$commit) | ||
| 5079 | { | ||
| 5080 | |||
| 5081 | Parse::RecDescent::_trace(q{Trying production: [/(else)\\b/ <commit> block]}, | ||
| 5082 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5083 | q{else_block}, | ||
| 5084 | $tracelevel) | ||
| 5085 | if defined $::RD_TRACE; | ||
| 5086 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 5087 | $text = $_[1]; | ||
| 5088 | my $_savetext; | ||
| 5089 | @item = (q{else_block}); | ||
| 5090 | %item = (__RULE__ => q{else_block}); | ||
| 5091 | my $repcount = 0; | ||
| 5092 | |||
| 5093 | |||
| 5094 | Parse::RecDescent::_trace(q{Trying terminal: [/(else)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 5095 | q{else_block}, | ||
| 5096 | $tracelevel) | ||
| 5097 | if defined $::RD_TRACE; | ||
| 5098 | undef $lastsep; | ||
| 5099 | $expectation->is(q{})->at($text); | ||
| 5100 | |||
| 5101 | |||
| 5102 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(else)\b)/) | ||
| 5103 | { | ||
| 5104 | $text = $lastsep . $text if defined $lastsep; | ||
| 5105 | $expectation->failed(); | ||
| 5106 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 5107 | Parse::RecDescent::_tracefirst($text)) | ||
| 5108 | if defined $::RD_TRACE; | ||
| 5109 | |||
| 5110 | last; | ||
| 5111 | } | ||
| 5112 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 5113 | substr($text,0,length($current_match),q{}); | ||
| 5114 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 5115 | . $current_match . q{])}, | ||
| 5116 | Parse::RecDescent::_tracefirst($text)) | ||
| 5117 | if defined $::RD_TRACE; | ||
| 5118 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 5119 | |||
| 5120 | |||
| 5121 | |||
| 5122 | |||
| 5123 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 5124 | Parse::RecDescent::_tracefirst($text), | ||
| 5125 | q{else_block}, | ||
| 5126 | $tracelevel) | ||
| 5127 | if defined $::RD_TRACE; | ||
| 5128 | $_tok = do { $commit = 1 }; | ||
| 5129 | if (defined($_tok)) | ||
| 5130 | { | ||
| 5131 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 5132 | . $_tok . q{])}, | ||
| 5133 | Parse::RecDescent::_tracefirst($text)) | ||
| 5134 | if defined $::RD_TRACE; | ||
| 5135 | } | ||
| 5136 | else | ||
| 5137 | { | ||
| 5138 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 5139 | Parse::RecDescent::_tracefirst($text)) | ||
| 5140 | if defined $::RD_TRACE; | ||
| 5141 | } | ||
| 5142 | |||
| 5143 | last unless defined $_tok; | ||
| 5144 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 5145 | |||
| 5146 | |||
| 5147 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 5148 | Parse::RecDescent::_tracefirst($text), | ||
| 5149 | q{else_block}, | ||
| 5150 | $tracelevel) | ||
| 5151 | if defined $::RD_TRACE; | ||
| 5152 | if (1) { no strict qw{refs}; | ||
| 5153 | $expectation->is(q{block})->at($text); | ||
| 5154 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 5155 | { | ||
| 5156 | |||
| 5157 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 5158 | Parse::RecDescent::_tracefirst($text), | ||
| 5159 | q{else_block}, | ||
| 5160 | $tracelevel) | ||
| 5161 | if defined $::RD_TRACE; | ||
| 5162 | $expectation->failed(); | ||
| 5163 | last; | ||
| 5164 | } | ||
| 5165 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 5166 | . $_tok . q{]}, | ||
| 5167 | |||
| 5168 | Parse::RecDescent::_tracefirst($text), | ||
| 5169 | q{else_block}, | ||
| 5170 | $tracelevel) | ||
| 5171 | if defined $::RD_TRACE; | ||
| 5172 | $item{q{block}} = $_tok; | ||
| 5173 | push @item, $_tok; | ||
| 5174 | |||
| 5175 | } | ||
| 5176 | |||
| 5177 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 5178 | Parse::RecDescent::_tracefirst($text), | ||
| 5179 | q{else_block}, | ||
| 5180 | $tracelevel) | ||
| 5181 | if defined $::RD_TRACE; | ||
| 5182 | |||
| 5183 | |||
| 5184 | $_tok = ($_noactions) ? 0 : do { [[undef,$item[3]]] }; | ||
| 5185 | unless (defined $_tok) | ||
| 5186 | { | ||
| 5187 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 5188 | if defined $::RD_TRACE; | ||
| 5189 | last; | ||
| 5190 | } | ||
| 5191 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 5192 | . $_tok . q{])}, | ||
| 5193 | Parse::RecDescent::_tracefirst($text)) | ||
| 5194 | if defined $::RD_TRACE; | ||
| 5195 | push @item, $_tok; | ||
| 5196 | $item{__ACTION1__}=$_tok; | ||
| 5197 | |||
| 5198 | |||
| 5199 | Parse::RecDescent::_trace(q{>>Matched production: [/(else)\\b/ <commit> block]<<}, | ||
| 5200 | Parse::RecDescent::_tracefirst($text), | ||
| 5201 | q{else_block}, | ||
| 5202 | $tracelevel) | ||
| 5203 | if defined $::RD_TRACE; | ||
| 5204 | |||
| 5205 | |||
| 5206 | |||
| 5207 | $_matched = 1; | ||
| 5208 | last; | ||
| 5209 | } | ||
| 5210 | |||
| 5211 | |||
| 5212 | while (!$_matched && !$commit) | ||
| 5213 | { | ||
| 5214 | |||
| 5215 | Parse::RecDescent::_trace(q{Trying production: [/(?!else)/]}, | ||
| 5216 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5217 | q{else_block}, | ||
| 5218 | $tracelevel) | ||
| 5219 | if defined $::RD_TRACE; | ||
| 5220 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 5221 | $text = $_[1]; | ||
| 5222 | my $_savetext; | ||
| 5223 | @item = (q{else_block}); | ||
| 5224 | %item = (__RULE__ => q{else_block}); | ||
| 5225 | my $repcount = 0; | ||
| 5226 | |||
| 5227 | |||
| 5228 | Parse::RecDescent::_trace(q{Trying terminal: [/(?!else)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 5229 | q{else_block}, | ||
| 5230 | $tracelevel) | ||
| 5231 | if defined $::RD_TRACE; | ||
| 5232 | undef $lastsep; | ||
| 5233 | $expectation->is(q{})->at($text); | ||
| 5234 | |||
| 5235 | |||
| 5236 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?!else))/) | ||
| 5237 | { | ||
| 5238 | $text = $lastsep . $text if defined $lastsep; | ||
| 5239 | $expectation->failed(); | ||
| 5240 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 5241 | Parse::RecDescent::_tracefirst($text)) | ||
| 5242 | if defined $::RD_TRACE; | ||
| 5243 | |||
| 5244 | last; | ||
| 5245 | } | ||
| 5246 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 5247 | substr($text,0,length($current_match),q{}); | ||
| 5248 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 5249 | . $current_match . q{])}, | ||
| 5250 | Parse::RecDescent::_tracefirst($text)) | ||
| 5251 | if defined $::RD_TRACE; | ||
| 5252 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 5253 | |||
| 5254 | |||
| 5255 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 5256 | Parse::RecDescent::_tracefirst($text), | ||
| 5257 | q{else_block}, | ||
| 5258 | $tracelevel) | ||
| 5259 | if defined $::RD_TRACE; | ||
| 5260 | |||
| 5261 | |||
| 5262 | $_tok = ($_noactions) ? 0 : do { [] }; | ||
| 5263 | unless (defined $_tok) | ||
| 5264 | { | ||
| 5265 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 5266 | if defined $::RD_TRACE; | ||
| 5267 | last; | ||
| 5268 | } | ||
| 5269 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 5270 | . $_tok . q{])}, | ||
| 5271 | Parse::RecDescent::_tracefirst($text)) | ||
| 5272 | if defined $::RD_TRACE; | ||
| 5273 | push @item, $_tok; | ||
| 5274 | $item{__ACTION1__}=$_tok; | ||
| 5275 | |||
| 5276 | |||
| 5277 | Parse::RecDescent::_trace(q{>>Matched production: [/(?!else)/]<<}, | ||
| 5278 | Parse::RecDescent::_tracefirst($text), | ||
| 5279 | q{else_block}, | ||
| 5280 | $tracelevel) | ||
| 5281 | if defined $::RD_TRACE; | ||
| 5282 | |||
| 5283 | |||
| 5284 | |||
| 5285 | $_matched = 1; | ||
| 5286 | last; | ||
| 5287 | } | ||
| 5288 | |||
| 5289 | |||
| 5290 | while (!$_matched) | ||
| 5291 | { | ||
| 5292 | |||
| 5293 | Parse::RecDescent::_trace(q{Trying production: [<uncommit> <error...>]}, | ||
| 5294 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5295 | q{else_block}, | ||
| 5296 | $tracelevel) | ||
| 5297 | if defined $::RD_TRACE; | ||
| 5298 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 5299 | $text = $_[1]; | ||
| 5300 | my $_savetext; | ||
| 5301 | @item = (q{else_block}); | ||
| 5302 | %item = (__RULE__ => q{else_block}); | ||
| 5303 | my $repcount = 0; | ||
| 5304 | |||
| 5305 | |||
| 5306 | |||
| 5307 | |||
| 5308 | Parse::RecDescent::_trace(q{Trying directive: [<uncommit>]}, | ||
| 5309 | Parse::RecDescent::_tracefirst($text), | ||
| 5310 | q{else_block}, | ||
| 5311 | $tracelevel) | ||
| 5312 | if defined $::RD_TRACE; | ||
| 5313 | $_tok = do { $commit=0;1 }; | ||
| 5314 | if (defined($_tok)) | ||
| 5315 | { | ||
| 5316 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 5317 | . $_tok . q{])}, | ||
| 5318 | Parse::RecDescent::_tracefirst($text)) | ||
| 5319 | if defined $::RD_TRACE; | ||
| 5320 | } | ||
| 5321 | else | ||
| 5322 | { | ||
| 5323 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 5324 | Parse::RecDescent::_tracefirst($text)) | ||
| 5325 | if defined $::RD_TRACE; | ||
| 5326 | } | ||
| 5327 | |||
| 5328 | last unless defined $_tok; | ||
| 5329 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 5330 | |||
| 5331 | |||
| 5332 | |||
| 5333 | |||
| 5334 | Parse::RecDescent::_trace(q{Trying directive: [<error...>]}, | ||
| 5335 | Parse::RecDescent::_tracefirst($text), | ||
| 5336 | q{else_block}, | ||
| 5337 | $tracelevel) | ||
| 5338 | if defined $::RD_TRACE; | ||
| 5339 | $_tok = do { if (1) { do {push @{$thisparser->{errors}}, [qq{Parse error near keyword else: "}.substr($text,0,40).qq{ ..."},$thisline];} unless $_noactions; undef } else {0} }; | ||
| 5340 | if (defined($_tok)) | ||
| 5341 | { | ||
| 5342 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 5343 | . $_tok . q{])}, | ||
| 5344 | Parse::RecDescent::_tracefirst($text)) | ||
| 5345 | if defined $::RD_TRACE; | ||
| 5346 | } | ||
| 5347 | else | ||
| 5348 | { | ||
| 5349 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 5350 | Parse::RecDescent::_tracefirst($text)) | ||
| 5351 | if defined $::RD_TRACE; | ||
| 5352 | } | ||
| 5353 | |||
| 5354 | last unless defined $_tok; | ||
| 5355 | push @item, $item{__DIRECTIVE2__}=$_tok; | ||
| 5356 | |||
| 5357 | |||
| 5358 | Parse::RecDescent::_trace(q{>>Matched production: [<uncommit> <error...>]<<}, | ||
| 5359 | Parse::RecDescent::_tracefirst($text), | ||
| 5360 | q{else_block}, | ||
| 5361 | $tracelevel) | ||
| 5362 | if defined $::RD_TRACE; | ||
| 5363 | |||
| 5364 | |||
| 5365 | |||
| 5366 | $_matched = 1; | ||
| 5367 | last; | ||
| 5368 | } | ||
| 5369 | |||
| 5370 | |||
| 5371 | unless ( $_matched || defined($score) ) | ||
| 5372 | { | ||
| 5373 | |||
| 5374 | |||
| 5375 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 5376 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 5377 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5378 | q{else_block}, | ||
| 5379 | $tracelevel) | ||
| 5380 | if defined $::RD_TRACE; | ||
| 5381 | return undef; | ||
| 5382 | } | ||
| 5383 | if (!defined($return) && defined($score)) | ||
| 5384 | { | ||
| 5385 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 5386 | q{else_block}, | ||
| 5387 | $tracelevel) | ||
| 5388 | if defined $::RD_TRACE; | ||
| 5389 | $return = $score_return; | ||
| 5390 | } | ||
| 5391 | splice @{$thisparser->{errors}}, $err_at; | ||
| 5392 | $return = $item[$#item] unless defined $return; | ||
| 5393 | if (defined $::RD_TRACE) | ||
| 5394 | { | ||
| 5395 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 5396 | $return . q{])}, "", | ||
| 5397 | q{else_block}, | ||
| 5398 | $tracelevel); | ||
| 5399 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 5400 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 5401 | Parse::RecDescent::_tracefirst($text), | ||
| 5402 | , q{else_block}, | ||
| 5403 | $tracelevel) | ||
| 5404 | } | ||
| 5405 | $_[1] = $text; | ||
| 5406 | return $return; | ||
| 5407 | } | ||
| 5408 | |||
| 5409 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 5410 | sub Parse::RecDescent::XML::XSH2::Parser::elsif_block | ||
| 5411 | { | ||
| 5412 | my $thisparser = $_[0]; | ||
| 5413 | use vars q{$tracelevel}; | ||
| 5414 | local $tracelevel = ($tracelevel||0)+1; | ||
| 5415 | $ERRORS = 0; | ||
| 5416 | my $thisrule = $thisparser->{"rules"}{"elsif_block"}; | ||
| 5417 | |||
| 5418 | Parse::RecDescent::_trace(q{Trying rule: [elsif_block]}, | ||
| 5419 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5420 | q{elsif_block}, | ||
| 5421 | $tracelevel) | ||
| 5422 | if defined $::RD_TRACE; | ||
| 5423 | |||
| 5424 | |||
| 5425 | my $err_at = @{$thisparser->{errors}}; | ||
| 5426 | |||
| 5427 | my $score; | ||
| 5428 | my $score_return; | ||
| 5429 | my $_tok; | ||
| 5430 | my $return = undef; | ||
| 5431 | my $_matched=0; | ||
| 5432 | my $commit=0; | ||
| 5433 | my @item = (); | ||
| 5434 | my %item = (); | ||
| 5435 | my $repeating = $_[2]; | ||
| 5436 | my $_noactions = $_[3]; | ||
| 5437 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 5438 | my $_itempos = $_[5]; | ||
| 5439 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 5440 | my $text; | ||
| 5441 | my $lastsep; | ||
| 5442 | my $current_match; | ||
| 5443 | my $expectation = new Parse::RecDescent::Expectation(q{/(elsif)\\b/, or /(?!elsif)/}); | ||
| 5444 | $expectation->at($_[1]); | ||
| 5445 | |||
| 5446 | my $thisoffset; | ||
| 5447 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 5448 | |||
| 5449 | my $thiscolumn; | ||
| 5450 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 5451 | |||
| 5452 | my $thisline; | ||
| 5453 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 5454 | |||
| 5455 | |||
| 5456 | |||
| 5457 | while (!$_matched && !$commit) | ||
| 5458 | { | ||
| 5459 | |||
| 5460 | Parse::RecDescent::_trace(q{Trying production: [/(elsif)\\b/ <commit> exp block elsif_block]}, | ||
| 5461 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5462 | q{elsif_block}, | ||
| 5463 | $tracelevel) | ||
| 5464 | if defined $::RD_TRACE; | ||
| 5465 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 5466 | $text = $_[1]; | ||
| 5467 | my $_savetext; | ||
| 5468 | @item = (q{elsif_block}); | ||
| 5469 | %item = (__RULE__ => q{elsif_block}); | ||
| 5470 | my $repcount = 0; | ||
| 5471 | |||
| 5472 | |||
| 5473 | Parse::RecDescent::_trace(q{Trying terminal: [/(elsif)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 5474 | q{elsif_block}, | ||
| 5475 | $tracelevel) | ||
| 5476 | if defined $::RD_TRACE; | ||
| 5477 | undef $lastsep; | ||
| 5478 | $expectation->is(q{})->at($text); | ||
| 5479 | |||
| 5480 | |||
| 5481 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(elsif)\b)/) | ||
| 5482 | { | ||
| 5483 | $text = $lastsep . $text if defined $lastsep; | ||
| 5484 | $expectation->failed(); | ||
| 5485 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 5486 | Parse::RecDescent::_tracefirst($text)) | ||
| 5487 | if defined $::RD_TRACE; | ||
| 5488 | |||
| 5489 | last; | ||
| 5490 | } | ||
| 5491 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 5492 | substr($text,0,length($current_match),q{}); | ||
| 5493 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 5494 | . $current_match . q{])}, | ||
| 5495 | Parse::RecDescent::_tracefirst($text)) | ||
| 5496 | if defined $::RD_TRACE; | ||
| 5497 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 5498 | |||
| 5499 | |||
| 5500 | |||
| 5501 | |||
| 5502 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 5503 | Parse::RecDescent::_tracefirst($text), | ||
| 5504 | q{elsif_block}, | ||
| 5505 | $tracelevel) | ||
| 5506 | if defined $::RD_TRACE; | ||
| 5507 | $_tok = do { $commit = 1 }; | ||
| 5508 | if (defined($_tok)) | ||
| 5509 | { | ||
| 5510 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 5511 | . $_tok . q{])}, | ||
| 5512 | Parse::RecDescent::_tracefirst($text)) | ||
| 5513 | if defined $::RD_TRACE; | ||
| 5514 | } | ||
| 5515 | else | ||
| 5516 | { | ||
| 5517 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 5518 | Parse::RecDescent::_tracefirst($text)) | ||
| 5519 | if defined $::RD_TRACE; | ||
| 5520 | } | ||
| 5521 | |||
| 5522 | last unless defined $_tok; | ||
| 5523 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 5524 | |||
| 5525 | |||
| 5526 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 5527 | Parse::RecDescent::_tracefirst($text), | ||
| 5528 | q{elsif_block}, | ||
| 5529 | $tracelevel) | ||
| 5530 | if defined $::RD_TRACE; | ||
| 5531 | if (1) { no strict qw{refs}; | ||
| 5532 | $expectation->is(q{exp})->at($text); | ||
| 5533 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 5534 | { | ||
| 5535 | |||
| 5536 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 5537 | Parse::RecDescent::_tracefirst($text), | ||
| 5538 | q{elsif_block}, | ||
| 5539 | $tracelevel) | ||
| 5540 | if defined $::RD_TRACE; | ||
| 5541 | $expectation->failed(); | ||
| 5542 | last; | ||
| 5543 | } | ||
| 5544 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 5545 | . $_tok . q{]}, | ||
| 5546 | |||
| 5547 | Parse::RecDescent::_tracefirst($text), | ||
| 5548 | q{elsif_block}, | ||
| 5549 | $tracelevel) | ||
| 5550 | if defined $::RD_TRACE; | ||
| 5551 | $item{q{exp}} = $_tok; | ||
| 5552 | push @item, $_tok; | ||
| 5553 | |||
| 5554 | } | ||
| 5555 | |||
| 5556 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 5557 | Parse::RecDescent::_tracefirst($text), | ||
| 5558 | q{elsif_block}, | ||
| 5559 | $tracelevel) | ||
| 5560 | if defined $::RD_TRACE; | ||
| 5561 | if (1) { no strict qw{refs}; | ||
| 5562 | $expectation->is(q{block})->at($text); | ||
| 5563 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 5564 | { | ||
| 5565 | |||
| 5566 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 5567 | Parse::RecDescent::_tracefirst($text), | ||
| 5568 | q{elsif_block}, | ||
| 5569 | $tracelevel) | ||
| 5570 | if defined $::RD_TRACE; | ||
| 5571 | $expectation->failed(); | ||
| 5572 | last; | ||
| 5573 | } | ||
| 5574 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 5575 | . $_tok . q{]}, | ||
| 5576 | |||
| 5577 | Parse::RecDescent::_tracefirst($text), | ||
| 5578 | q{elsif_block}, | ||
| 5579 | $tracelevel) | ||
| 5580 | if defined $::RD_TRACE; | ||
| 5581 | $item{q{block}} = $_tok; | ||
| 5582 | push @item, $_tok; | ||
| 5583 | |||
| 5584 | } | ||
| 5585 | |||
| 5586 | Parse::RecDescent::_trace(q{Trying subrule: [elsif_block]}, | ||
| 5587 | Parse::RecDescent::_tracefirst($text), | ||
| 5588 | q{elsif_block}, | ||
| 5589 | $tracelevel) | ||
| 5590 | if defined $::RD_TRACE; | ||
| 5591 | if (1) { no strict qw{refs}; | ||
| 5592 | $expectation->is(q{elsif_block})->at($text); | ||
| 5593 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::elsif_block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 5594 | { | ||
| 5595 | |||
| 5596 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [elsif_block]>>}, | ||
| 5597 | Parse::RecDescent::_tracefirst($text), | ||
| 5598 | q{elsif_block}, | ||
| 5599 | $tracelevel) | ||
| 5600 | if defined $::RD_TRACE; | ||
| 5601 | $expectation->failed(); | ||
| 5602 | last; | ||
| 5603 | } | ||
| 5604 | Parse::RecDescent::_trace(q{>>Matched subrule: [elsif_block]<< (return value: [} | ||
| 5605 | . $_tok . q{]}, | ||
| 5606 | |||
| 5607 | Parse::RecDescent::_tracefirst($text), | ||
| 5608 | q{elsif_block}, | ||
| 5609 | $tracelevel) | ||
| 5610 | if defined $::RD_TRACE; | ||
| 5611 | $item{q{elsif_block}} = $_tok; | ||
| 5612 | push @item, $_tok; | ||
| 5613 | |||
| 5614 | } | ||
| 5615 | |||
| 5616 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 5617 | Parse::RecDescent::_tracefirst($text), | ||
| 5618 | q{elsif_block}, | ||
| 5619 | $tracelevel) | ||
| 5620 | if defined $::RD_TRACE; | ||
| 5621 | |||
| 5622 | |||
| 5623 | $_tok = ($_noactions) ? 0 : do { [[$item[3],$item[4]],@{$item[5]}] }; | ||
| 5624 | unless (defined $_tok) | ||
| 5625 | { | ||
| 5626 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 5627 | if defined $::RD_TRACE; | ||
| 5628 | last; | ||
| 5629 | } | ||
| 5630 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 5631 | . $_tok . q{])}, | ||
| 5632 | Parse::RecDescent::_tracefirst($text)) | ||
| 5633 | if defined $::RD_TRACE; | ||
| 5634 | push @item, $_tok; | ||
| 5635 | $item{__ACTION1__}=$_tok; | ||
| 5636 | |||
| 5637 | |||
| 5638 | Parse::RecDescent::_trace(q{>>Matched production: [/(elsif)\\b/ <commit> exp block elsif_block]<<}, | ||
| 5639 | Parse::RecDescent::_tracefirst($text), | ||
| 5640 | q{elsif_block}, | ||
| 5641 | $tracelevel) | ||
| 5642 | if defined $::RD_TRACE; | ||
| 5643 | |||
| 5644 | |||
| 5645 | |||
| 5646 | $_matched = 1; | ||
| 5647 | last; | ||
| 5648 | } | ||
| 5649 | |||
| 5650 | |||
| 5651 | while (!$_matched && !$commit) | ||
| 5652 | { | ||
| 5653 | |||
| 5654 | Parse::RecDescent::_trace(q{Trying production: [/(?!elsif)/]}, | ||
| 5655 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5656 | q{elsif_block}, | ||
| 5657 | $tracelevel) | ||
| 5658 | if defined $::RD_TRACE; | ||
| 5659 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 5660 | $text = $_[1]; | ||
| 5661 | my $_savetext; | ||
| 5662 | @item = (q{elsif_block}); | ||
| 5663 | %item = (__RULE__ => q{elsif_block}); | ||
| 5664 | my $repcount = 0; | ||
| 5665 | |||
| 5666 | |||
| 5667 | Parse::RecDescent::_trace(q{Trying terminal: [/(?!elsif)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 5668 | q{elsif_block}, | ||
| 5669 | $tracelevel) | ||
| 5670 | if defined $::RD_TRACE; | ||
| 5671 | undef $lastsep; | ||
| 5672 | $expectation->is(q{})->at($text); | ||
| 5673 | |||
| 5674 | |||
| 5675 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?!elsif))/) | ||
| 5676 | { | ||
| 5677 | $text = $lastsep . $text if defined $lastsep; | ||
| 5678 | $expectation->failed(); | ||
| 5679 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 5680 | Parse::RecDescent::_tracefirst($text)) | ||
| 5681 | if defined $::RD_TRACE; | ||
| 5682 | |||
| 5683 | last; | ||
| 5684 | } | ||
| 5685 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 5686 | substr($text,0,length($current_match),q{}); | ||
| 5687 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 5688 | . $current_match . q{])}, | ||
| 5689 | Parse::RecDescent::_tracefirst($text)) | ||
| 5690 | if defined $::RD_TRACE; | ||
| 5691 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 5692 | |||
| 5693 | |||
| 5694 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 5695 | Parse::RecDescent::_tracefirst($text), | ||
| 5696 | q{elsif_block}, | ||
| 5697 | $tracelevel) | ||
| 5698 | if defined $::RD_TRACE; | ||
| 5699 | |||
| 5700 | |||
| 5701 | $_tok = ($_noactions) ? 0 : do { [] }; | ||
| 5702 | unless (defined $_tok) | ||
| 5703 | { | ||
| 5704 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 5705 | if defined $::RD_TRACE; | ||
| 5706 | last; | ||
| 5707 | } | ||
| 5708 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 5709 | . $_tok . q{])}, | ||
| 5710 | Parse::RecDescent::_tracefirst($text)) | ||
| 5711 | if defined $::RD_TRACE; | ||
| 5712 | push @item, $_tok; | ||
| 5713 | $item{__ACTION1__}=$_tok; | ||
| 5714 | |||
| 5715 | |||
| 5716 | Parse::RecDescent::_trace(q{>>Matched production: [/(?!elsif)/]<<}, | ||
| 5717 | Parse::RecDescent::_tracefirst($text), | ||
| 5718 | q{elsif_block}, | ||
| 5719 | $tracelevel) | ||
| 5720 | if defined $::RD_TRACE; | ||
| 5721 | |||
| 5722 | |||
| 5723 | |||
| 5724 | $_matched = 1; | ||
| 5725 | last; | ||
| 5726 | } | ||
| 5727 | |||
| 5728 | |||
| 5729 | while (!$_matched) | ||
| 5730 | { | ||
| 5731 | |||
| 5732 | Parse::RecDescent::_trace(q{Trying production: [<uncommit> <error...>]}, | ||
| 5733 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5734 | q{elsif_block}, | ||
| 5735 | $tracelevel) | ||
| 5736 | if defined $::RD_TRACE; | ||
| 5737 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 5738 | $text = $_[1]; | ||
| 5739 | my $_savetext; | ||
| 5740 | @item = (q{elsif_block}); | ||
| 5741 | %item = (__RULE__ => q{elsif_block}); | ||
| 5742 | my $repcount = 0; | ||
| 5743 | |||
| 5744 | |||
| 5745 | |||
| 5746 | |||
| 5747 | Parse::RecDescent::_trace(q{Trying directive: [<uncommit>]}, | ||
| 5748 | Parse::RecDescent::_tracefirst($text), | ||
| 5749 | q{elsif_block}, | ||
| 5750 | $tracelevel) | ||
| 5751 | if defined $::RD_TRACE; | ||
| 5752 | $_tok = do { $commit=0;1 }; | ||
| 5753 | if (defined($_tok)) | ||
| 5754 | { | ||
| 5755 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 5756 | . $_tok . q{])}, | ||
| 5757 | Parse::RecDescent::_tracefirst($text)) | ||
| 5758 | if defined $::RD_TRACE; | ||
| 5759 | } | ||
| 5760 | else | ||
| 5761 | { | ||
| 5762 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 5763 | Parse::RecDescent::_tracefirst($text)) | ||
| 5764 | if defined $::RD_TRACE; | ||
| 5765 | } | ||
| 5766 | |||
| 5767 | last unless defined $_tok; | ||
| 5768 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 5769 | |||
| 5770 | |||
| 5771 | |||
| 5772 | |||
| 5773 | Parse::RecDescent::_trace(q{Trying directive: [<error...>]}, | ||
| 5774 | Parse::RecDescent::_tracefirst($text), | ||
| 5775 | q{elsif_block}, | ||
| 5776 | $tracelevel) | ||
| 5777 | if defined $::RD_TRACE; | ||
| 5778 | $_tok = do { if (1) { do {push @{$thisparser->{errors}}, [qq{Parse error near keyword elsif: "}.substr($text,0,40).qq{ ..."},$thisline];} unless $_noactions; undef } else {0} }; | ||
| 5779 | if (defined($_tok)) | ||
| 5780 | { | ||
| 5781 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 5782 | . $_tok . q{])}, | ||
| 5783 | Parse::RecDescent::_tracefirst($text)) | ||
| 5784 | if defined $::RD_TRACE; | ||
| 5785 | } | ||
| 5786 | else | ||
| 5787 | { | ||
| 5788 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 5789 | Parse::RecDescent::_tracefirst($text)) | ||
| 5790 | if defined $::RD_TRACE; | ||
| 5791 | } | ||
| 5792 | |||
| 5793 | last unless defined $_tok; | ||
| 5794 | push @item, $item{__DIRECTIVE2__}=$_tok; | ||
| 5795 | |||
| 5796 | |||
| 5797 | Parse::RecDescent::_trace(q{>>Matched production: [<uncommit> <error...>]<<}, | ||
| 5798 | Parse::RecDescent::_tracefirst($text), | ||
| 5799 | q{elsif_block}, | ||
| 5800 | $tracelevel) | ||
| 5801 | if defined $::RD_TRACE; | ||
| 5802 | |||
| 5803 | |||
| 5804 | |||
| 5805 | $_matched = 1; | ||
| 5806 | last; | ||
| 5807 | } | ||
| 5808 | |||
| 5809 | |||
| 5810 | unless ( $_matched || defined($score) ) | ||
| 5811 | { | ||
| 5812 | |||
| 5813 | |||
| 5814 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 5815 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 5816 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5817 | q{elsif_block}, | ||
| 5818 | $tracelevel) | ||
| 5819 | if defined $::RD_TRACE; | ||
| 5820 | return undef; | ||
| 5821 | } | ||
| 5822 | if (!defined($return) && defined($score)) | ||
| 5823 | { | ||
| 5824 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 5825 | q{elsif_block}, | ||
| 5826 | $tracelevel) | ||
| 5827 | if defined $::RD_TRACE; | ||
| 5828 | $return = $score_return; | ||
| 5829 | } | ||
| 5830 | splice @{$thisparser->{errors}}, $err_at; | ||
| 5831 | $return = $item[$#item] unless defined $return; | ||
| 5832 | if (defined $::RD_TRACE) | ||
| 5833 | { | ||
| 5834 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 5835 | $return . q{])}, "", | ||
| 5836 | q{elsif_block}, | ||
| 5837 | $tracelevel); | ||
| 5838 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 5839 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 5840 | Parse::RecDescent::_tracefirst($text), | ||
| 5841 | , q{elsif_block}, | ||
| 5842 | $tracelevel) | ||
| 5843 | } | ||
| 5844 | $_[1] = $text; | ||
| 5845 | return $return; | ||
| 5846 | } | ||
| 5847 | |||
| 5848 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 5849 | sub Parse::RecDescent::XML::XSH2::Parser::enc_string | ||
| 5850 | { | ||
| 5851 | my $thisparser = $_[0]; | ||
| 5852 | use vars q{$tracelevel}; | ||
| 5853 | local $tracelevel = ($tracelevel||0)+1; | ||
| 5854 | $ERRORS = 0; | ||
| 5855 | my $thisrule = $thisparser->{"rules"}{"enc_string"}; | ||
| 5856 | |||
| 5857 | Parse::RecDescent::_trace(q{Trying rule: [enc_string]}, | ||
| 5858 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5859 | q{enc_string}, | ||
| 5860 | $tracelevel) | ||
| 5861 | if defined $::RD_TRACE; | ||
| 5862 | |||
| 5863 | |||
| 5864 | my $err_at = @{$thisparser->{errors}}; | ||
| 5865 | |||
| 5866 | my $score; | ||
| 5867 | my $score_return; | ||
| 5868 | my $_tok; | ||
| 5869 | my $return = undef; | ||
| 5870 | my $_matched=0; | ||
| 5871 | my $commit=0; | ||
| 5872 | my @item = (); | ||
| 5873 | my %item = (); | ||
| 5874 | my $repeating = $_[2]; | ||
| 5875 | my $_noactions = $_[3]; | ||
| 5876 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 5877 | my $_itempos = $_[5]; | ||
| 5878 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 5879 | my $text; | ||
| 5880 | my $lastsep; | ||
| 5881 | my $current_match; | ||
| 5882 | my $expectation = new Parse::RecDescent::Expectation(q{exp}); | ||
| 5883 | $expectation->at($_[1]); | ||
| 5884 | |||
| 5885 | my $thisoffset; | ||
| 5886 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 5887 | |||
| 5888 | my $thiscolumn; | ||
| 5889 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 5890 | |||
| 5891 | my $thisline; | ||
| 5892 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 5893 | |||
| 5894 | |||
| 5895 | |||
| 5896 | while (!$_matched && !$commit) | ||
| 5897 | { | ||
| 5898 | |||
| 5899 | Parse::RecDescent::_trace(q{Trying production: [exp]}, | ||
| 5900 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5901 | q{enc_string}, | ||
| 5902 | $tracelevel) | ||
| 5903 | if defined $::RD_TRACE; | ||
| 5904 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 5905 | $text = $_[1]; | ||
| 5906 | my $_savetext; | ||
| 5907 | @item = (q{enc_string}); | ||
| 5908 | %item = (__RULE__ => q{enc_string}); | ||
| 5909 | my $repcount = 0; | ||
| 5910 | |||
| 5911 | |||
| 5912 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 5913 | Parse::RecDescent::_tracefirst($text), | ||
| 5914 | q{enc_string}, | ||
| 5915 | $tracelevel) | ||
| 5916 | if defined $::RD_TRACE; | ||
| 5917 | if (1) { no strict qw{refs}; | ||
| 5918 | $expectation->is(q{})->at($text); | ||
| 5919 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 5920 | { | ||
| 5921 | |||
| 5922 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 5923 | Parse::RecDescent::_tracefirst($text), | ||
| 5924 | q{enc_string}, | ||
| 5925 | $tracelevel) | ||
| 5926 | if defined $::RD_TRACE; | ||
| 5927 | $expectation->failed(); | ||
| 5928 | last; | ||
| 5929 | } | ||
| 5930 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 5931 | . $_tok . q{]}, | ||
| 5932 | |||
| 5933 | Parse::RecDescent::_tracefirst($text), | ||
| 5934 | q{enc_string}, | ||
| 5935 | $tracelevel) | ||
| 5936 | if defined $::RD_TRACE; | ||
| 5937 | $item{q{exp}} = $_tok; | ||
| 5938 | push @item, $_tok; | ||
| 5939 | |||
| 5940 | } | ||
| 5941 | |||
| 5942 | Parse::RecDescent::_trace(q{>>Matched production: [exp]<<}, | ||
| 5943 | Parse::RecDescent::_tracefirst($text), | ||
| 5944 | q{enc_string}, | ||
| 5945 | $tracelevel) | ||
| 5946 | if defined $::RD_TRACE; | ||
| 5947 | |||
| 5948 | |||
| 5949 | |||
| 5950 | $_matched = 1; | ||
| 5951 | last; | ||
| 5952 | } | ||
| 5953 | |||
| 5954 | |||
| 5955 | unless ( $_matched || defined($score) ) | ||
| 5956 | { | ||
| 5957 | |||
| 5958 | |||
| 5959 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 5960 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 5961 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 5962 | q{enc_string}, | ||
| 5963 | $tracelevel) | ||
| 5964 | if defined $::RD_TRACE; | ||
| 5965 | return undef; | ||
| 5966 | } | ||
| 5967 | if (!defined($return) && defined($score)) | ||
| 5968 | { | ||
| 5969 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 5970 | q{enc_string}, | ||
| 5971 | $tracelevel) | ||
| 5972 | if defined $::RD_TRACE; | ||
| 5973 | $return = $score_return; | ||
| 5974 | } | ||
| 5975 | splice @{$thisparser->{errors}}, $err_at; | ||
| 5976 | $return = $item[$#item] unless defined $return; | ||
| 5977 | if (defined $::RD_TRACE) | ||
| 5978 | { | ||
| 5979 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 5980 | $return . q{])}, "", | ||
| 5981 | q{enc_string}, | ||
| 5982 | $tracelevel); | ||
| 5983 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 5984 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 5985 | Parse::RecDescent::_tracefirst($text), | ||
| 5986 | , q{enc_string}, | ||
| 5987 | $tracelevel) | ||
| 5988 | } | ||
| 5989 | $_[1] = $text; | ||
| 5990 | return $return; | ||
| 5991 | } | ||
| 5992 | |||
| 5993 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 5994 | sub Parse::RecDescent::XML::XSH2::Parser::eof | ||
| 5995 | { | ||
| 5996 | my $thisparser = $_[0]; | ||
| 5997 | use vars q{$tracelevel}; | ||
| 5998 | local $tracelevel = ($tracelevel||0)+1; | ||
| 5999 | $ERRORS = 0; | ||
| 6000 | my $thisrule = $thisparser->{"rules"}{"eof"}; | ||
| 6001 | |||
| 6002 | Parse::RecDescent::_trace(q{Trying rule: [eof]}, | ||
| 6003 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6004 | q{eof}, | ||
| 6005 | $tracelevel) | ||
| 6006 | if defined $::RD_TRACE; | ||
| 6007 | |||
| 6008 | |||
| 6009 | my $err_at = @{$thisparser->{errors}}; | ||
| 6010 | |||
| 6011 | my $score; | ||
| 6012 | my $score_return; | ||
| 6013 | my $_tok; | ||
| 6014 | my $return = undef; | ||
| 6015 | my $_matched=0; | ||
| 6016 | my $commit=0; | ||
| 6017 | my @item = (); | ||
| 6018 | my %item = (); | ||
| 6019 | my $repeating = $_[2]; | ||
| 6020 | my $_noactions = $_[3]; | ||
| 6021 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 6022 | my $_itempos = $_[5]; | ||
| 6023 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 6024 | my $text; | ||
| 6025 | my $lastsep; | ||
| 6026 | my $current_match; | ||
| 6027 | my $expectation = new Parse::RecDescent::Expectation(q{/\\Z/}); | ||
| 6028 | $expectation->at($_[1]); | ||
| 6029 | |||
| 6030 | my $thisoffset; | ||
| 6031 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 6032 | |||
| 6033 | my $thiscolumn; | ||
| 6034 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 6035 | |||
| 6036 | my $thisline; | ||
| 6037 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 6038 | |||
| 6039 | |||
| 6040 | |||
| 6041 | while (!$_matched && !$commit) | ||
| 6042 | { | ||
| 6043 | |||
| 6044 | Parse::RecDescent::_trace(q{Trying production: [/\\Z/]}, | ||
| 6045 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6046 | q{eof}, | ||
| 6047 | $tracelevel) | ||
| 6048 | if defined $::RD_TRACE; | ||
| 6049 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 6050 | $text = $_[1]; | ||
| 6051 | my $_savetext; | ||
| 6052 | @item = (q{eof}); | ||
| 6053 | %item = (__RULE__ => q{eof}); | ||
| 6054 | my $repcount = 0; | ||
| 6055 | |||
| 6056 | |||
| 6057 | Parse::RecDescent::_trace(q{Trying terminal: [/\\Z/]}, Parse::RecDescent::_tracefirst($text), | ||
| 6058 | q{eof}, | ||
| 6059 | $tracelevel) | ||
| 6060 | if defined $::RD_TRACE; | ||
| 6061 | undef $lastsep; | ||
| 6062 | $expectation->is(q{})->at($text); | ||
| 6063 | |||
| 6064 | |||
| 6065 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\Z)/) | ||
| 6066 | { | ||
| 6067 | $text = $lastsep . $text if defined $lastsep; | ||
| 6068 | $expectation->failed(); | ||
| 6069 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 6070 | Parse::RecDescent::_tracefirst($text)) | ||
| 6071 | if defined $::RD_TRACE; | ||
| 6072 | |||
| 6073 | last; | ||
| 6074 | } | ||
| 6075 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 6076 | substr($text,0,length($current_match),q{}); | ||
| 6077 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 6078 | . $current_match . q{])}, | ||
| 6079 | Parse::RecDescent::_tracefirst($text)) | ||
| 6080 | if defined $::RD_TRACE; | ||
| 6081 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 6082 | |||
| 6083 | |||
| 6084 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 6085 | Parse::RecDescent::_tracefirst($text), | ||
| 6086 | q{eof}, | ||
| 6087 | $tracelevel) | ||
| 6088 | if defined $::RD_TRACE; | ||
| 6089 | |||
| 6090 | |||
| 6091 | $_tok = ($_noactions) ? 0 : do { 1; }; | ||
| 6092 | unless (defined $_tok) | ||
| 6093 | { | ||
| 6094 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 6095 | if defined $::RD_TRACE; | ||
| 6096 | last; | ||
| 6097 | } | ||
| 6098 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 6099 | . $_tok . q{])}, | ||
| 6100 | Parse::RecDescent::_tracefirst($text)) | ||
| 6101 | if defined $::RD_TRACE; | ||
| 6102 | push @item, $_tok; | ||
| 6103 | $item{__ACTION1__}=$_tok; | ||
| 6104 | |||
| 6105 | |||
| 6106 | Parse::RecDescent::_trace(q{>>Matched production: [/\\Z/]<<}, | ||
| 6107 | Parse::RecDescent::_tracefirst($text), | ||
| 6108 | q{eof}, | ||
| 6109 | $tracelevel) | ||
| 6110 | if defined $::RD_TRACE; | ||
| 6111 | |||
| 6112 | |||
| 6113 | |||
| 6114 | $_matched = 1; | ||
| 6115 | last; | ||
| 6116 | } | ||
| 6117 | |||
| 6118 | |||
| 6119 | unless ( $_matched || defined($score) ) | ||
| 6120 | { | ||
| 6121 | |||
| 6122 | |||
| 6123 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 6124 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 6125 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6126 | q{eof}, | ||
| 6127 | $tracelevel) | ||
| 6128 | if defined $::RD_TRACE; | ||
| 6129 | return undef; | ||
| 6130 | } | ||
| 6131 | if (!defined($return) && defined($score)) | ||
| 6132 | { | ||
| 6133 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 6134 | q{eof}, | ||
| 6135 | $tracelevel) | ||
| 6136 | if defined $::RD_TRACE; | ||
| 6137 | $return = $score_return; | ||
| 6138 | } | ||
| 6139 | splice @{$thisparser->{errors}}, $err_at; | ||
| 6140 | $return = $item[$#item] unless defined $return; | ||
| 6141 | if (defined $::RD_TRACE) | ||
| 6142 | { | ||
| 6143 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 6144 | $return . q{])}, "", | ||
| 6145 | q{eof}, | ||
| 6146 | $tracelevel); | ||
| 6147 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 6148 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 6149 | Parse::RecDescent::_tracefirst($text), | ||
| 6150 | , q{eof}, | ||
| 6151 | $tracelevel) | ||
| 6152 | } | ||
| 6153 | $_[1] = $text; | ||
| 6154 | return $return; | ||
| 6155 | } | ||
| 6156 | |||
| 6157 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 6158 | sub Parse::RecDescent::XML::XSH2::Parser::exp | ||
| 6159 | { | ||
| 6160 | my $thisparser = $_[0]; | ||
| 6161 | use vars q{$tracelevel}; | ||
| 6162 | local $tracelevel = ($tracelevel||0)+1; | ||
| 6163 | $ERRORS = 0; | ||
| 6164 | my $thisrule = $thisparser->{"rules"}{"exp"}; | ||
| 6165 | |||
| 6166 | Parse::RecDescent::_trace(q{Trying rule: [exp]}, | ||
| 6167 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6168 | q{exp}, | ||
| 6169 | $tracelevel) | ||
| 6170 | if defined $::RD_TRACE; | ||
| 6171 | |||
| 6172 | |||
| 6173 | my $err_at = @{$thisparser->{errors}}; | ||
| 6174 | |||
| 6175 | my $score; | ||
| 6176 | my $score_return; | ||
| 6177 | my $_tok; | ||
| 6178 | my $return = undef; | ||
| 6179 | my $_matched=0; | ||
| 6180 | my $commit=0; | ||
| 6181 | my @item = (); | ||
| 6182 | my %item = (); | ||
| 6183 | my $repeating = $_[2]; | ||
| 6184 | my $_noactions = $_[3]; | ||
| 6185 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 6186 | my $_itempos = $_[5]; | ||
| 6187 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 6188 | my $text; | ||
| 6189 | my $lastsep; | ||
| 6190 | my $current_match; | ||
| 6191 | my $expectation = new Parse::RecDescent::Expectation(q{/^(?=\{)/, or '&', or /^(?=<<)/, or xpath}); | ||
| 6192 | $expectation->at($_[1]); | ||
| 6193 | |||
| 6194 | my $thisoffset; | ||
| 6195 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 6196 | |||
| 6197 | my $thiscolumn; | ||
| 6198 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 6199 | |||
| 6200 | my $thisline; | ||
| 6201 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 6202 | |||
| 6203 | |||
| 6204 | |||
| 6205 | while (!$_matched && !$commit) | ||
| 6206 | { | ||
| 6207 | |||
| 6208 | Parse::RecDescent::_trace(q{Trying production: [/^(?=\{)/ perl_block]}, | ||
| 6209 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6210 | q{exp}, | ||
| 6211 | $tracelevel) | ||
| 6212 | if defined $::RD_TRACE; | ||
| 6213 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 6214 | $text = $_[1]; | ||
| 6215 | my $_savetext; | ||
| 6216 | @item = (q{exp}); | ||
| 6217 | %item = (__RULE__ => q{exp}); | ||
| 6218 | my $repcount = 0; | ||
| 6219 | |||
| 6220 | |||
| 6221 | Parse::RecDescent::_trace(q{Trying terminal: [/^(?=\{)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 6222 | q{exp}, | ||
| 6223 | $tracelevel) | ||
| 6224 | if defined $::RD_TRACE; | ||
| 6225 | undef $lastsep; | ||
| 6226 | $expectation->is(q{})->at($text); | ||
| 6227 | |||
| 6228 | |||
| 6229 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^(?={))/) | ||
| 6230 | { | ||
| 6231 | $text = $lastsep . $text if defined $lastsep; | ||
| 6232 | $expectation->failed(); | ||
| 6233 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 6234 | Parse::RecDescent::_tracefirst($text)) | ||
| 6235 | if defined $::RD_TRACE; | ||
| 6236 | |||
| 6237 | last; | ||
| 6238 | } | ||
| 6239 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 6240 | substr($text,0,length($current_match),q{}); | ||
| 6241 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 6242 | . $current_match . q{])}, | ||
| 6243 | Parse::RecDescent::_tracefirst($text)) | ||
| 6244 | if defined $::RD_TRACE; | ||
| 6245 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 6246 | |||
| 6247 | |||
| 6248 | Parse::RecDescent::_trace(q{Trying subrule: [perl_block]}, | ||
| 6249 | Parse::RecDescent::_tracefirst($text), | ||
| 6250 | q{exp}, | ||
| 6251 | $tracelevel) | ||
| 6252 | if defined $::RD_TRACE; | ||
| 6253 | if (1) { no strict qw{refs}; | ||
| 6254 | $expectation->is(q{perl_block})->at($text); | ||
| 6255 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::perl_block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 6256 | { | ||
| 6257 | |||
| 6258 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [perl_block]>>}, | ||
| 6259 | Parse::RecDescent::_tracefirst($text), | ||
| 6260 | q{exp}, | ||
| 6261 | $tracelevel) | ||
| 6262 | if defined $::RD_TRACE; | ||
| 6263 | $expectation->failed(); | ||
| 6264 | last; | ||
| 6265 | } | ||
| 6266 | Parse::RecDescent::_trace(q{>>Matched subrule: [perl_block]<< (return value: [} | ||
| 6267 | . $_tok . q{]}, | ||
| 6268 | |||
| 6269 | Parse::RecDescent::_tracefirst($text), | ||
| 6270 | q{exp}, | ||
| 6271 | $tracelevel) | ||
| 6272 | if defined $::RD_TRACE; | ||
| 6273 | $item{q{perl_block}} = $_tok; | ||
| 6274 | push @item, $_tok; | ||
| 6275 | |||
| 6276 | } | ||
| 6277 | |||
| 6278 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 6279 | Parse::RecDescent::_tracefirst($text), | ||
| 6280 | q{exp}, | ||
| 6281 | $tracelevel) | ||
| 6282 | if defined $::RD_TRACE; | ||
| 6283 | |||
| 6284 | |||
| 6285 | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||
| 6286 | unless (defined $_tok) | ||
| 6287 | { | ||
| 6288 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 6289 | if defined $::RD_TRACE; | ||
| 6290 | last; | ||
| 6291 | } | ||
| 6292 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 6293 | . $_tok . q{])}, | ||
| 6294 | Parse::RecDescent::_tracefirst($text)) | ||
| 6295 | if defined $::RD_TRACE; | ||
| 6296 | push @item, $_tok; | ||
| 6297 | $item{__ACTION1__}=$_tok; | ||
| 6298 | |||
| 6299 | |||
| 6300 | Parse::RecDescent::_trace(q{>>Matched production: [/^(?=\{)/ perl_block]<<}, | ||
| 6301 | Parse::RecDescent::_tracefirst($text), | ||
| 6302 | q{exp}, | ||
| 6303 | $tracelevel) | ||
| 6304 | if defined $::RD_TRACE; | ||
| 6305 | |||
| 6306 | |||
| 6307 | |||
| 6308 | $_matched = 1; | ||
| 6309 | last; | ||
| 6310 | } | ||
| 6311 | |||
| 6312 | |||
| 6313 | while (!$_matched && !$commit) | ||
| 6314 | { | ||
| 6315 | |||
| 6316 | Parse::RecDescent::_trace(q{Trying production: ['&' block]}, | ||
| 6317 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6318 | q{exp}, | ||
| 6319 | $tracelevel) | ||
| 6320 | if defined $::RD_TRACE; | ||
| 6321 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 6322 | $text = $_[1]; | ||
| 6323 | my $_savetext; | ||
| 6324 | @item = (q{exp}); | ||
| 6325 | %item = (__RULE__ => q{exp}); | ||
| 6326 | my $repcount = 0; | ||
| 6327 | |||
| 6328 | |||
| 6329 | Parse::RecDescent::_trace(q{Trying terminal: ['&']}, | ||
| 6330 | Parse::RecDescent::_tracefirst($text), | ||
| 6331 | q{exp}, | ||
| 6332 | $tracelevel) | ||
| 6333 | if defined $::RD_TRACE; | ||
| 6334 | undef $lastsep; | ||
| 6335 | $expectation->is(q{})->at($text); | ||
| 6336 | |||
| 6337 | |||
| 6338 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\&/) | ||
| 6339 | { | ||
| 6340 | $text = $lastsep . $text if defined $lastsep; | ||
| 6341 | |||
| 6342 | $expectation->failed(); | ||
| 6343 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 6344 | Parse::RecDescent::_tracefirst($text)) | ||
| 6345 | if defined $::RD_TRACE; | ||
| 6346 | last; | ||
| 6347 | } | ||
| 6348 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 6349 | substr($text,0,length($current_match),q{}); | ||
| 6350 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 6351 | . $current_match . q{])}, | ||
| 6352 | Parse::RecDescent::_tracefirst($text)) | ||
| 6353 | if defined $::RD_TRACE; | ||
| 6354 | push @item, $item{__STRING1__}=$current_match; | ||
| 6355 | |||
| 6356 | |||
| 6357 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 6358 | Parse::RecDescent::_tracefirst($text), | ||
| 6359 | q{exp}, | ||
| 6360 | $tracelevel) | ||
| 6361 | if defined $::RD_TRACE; | ||
| 6362 | if (1) { no strict qw{refs}; | ||
| 6363 | $expectation->is(q{block})->at($text); | ||
| 6364 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 6365 | { | ||
| 6366 | |||
| 6367 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 6368 | Parse::RecDescent::_tracefirst($text), | ||
| 6369 | q{exp}, | ||
| 6370 | $tracelevel) | ||
| 6371 | if defined $::RD_TRACE; | ||
| 6372 | $expectation->failed(); | ||
| 6373 | last; | ||
| 6374 | } | ||
| 6375 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 6376 | . $_tok . q{]}, | ||
| 6377 | |||
| 6378 | Parse::RecDescent::_tracefirst($text), | ||
| 6379 | q{exp}, | ||
| 6380 | $tracelevel) | ||
| 6381 | if defined $::RD_TRACE; | ||
| 6382 | $item{q{block}} = $_tok; | ||
| 6383 | push @item, $_tok; | ||
| 6384 | |||
| 6385 | } | ||
| 6386 | |||
| 6387 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 6388 | Parse::RecDescent::_tracefirst($text), | ||
| 6389 | q{exp}, | ||
| 6390 | $tracelevel) | ||
| 6391 | if defined $::RD_TRACE; | ||
| 6392 | |||
| 6393 | |||
| 6394 | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||
| 6395 | unless (defined $_tok) | ||
| 6396 | { | ||
| 6397 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 6398 | if defined $::RD_TRACE; | ||
| 6399 | last; | ||
| 6400 | } | ||
| 6401 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 6402 | . $_tok . q{])}, | ||
| 6403 | Parse::RecDescent::_tracefirst($text)) | ||
| 6404 | if defined $::RD_TRACE; | ||
| 6405 | push @item, $_tok; | ||
| 6406 | $item{__ACTION1__}=$_tok; | ||
| 6407 | |||
| 6408 | |||
| 6409 | Parse::RecDescent::_trace(q{>>Matched production: ['&' block]<<}, | ||
| 6410 | Parse::RecDescent::_tracefirst($text), | ||
| 6411 | q{exp}, | ||
| 6412 | $tracelevel) | ||
| 6413 | if defined $::RD_TRACE; | ||
| 6414 | |||
| 6415 | |||
| 6416 | |||
| 6417 | $_matched = 1; | ||
| 6418 | last; | ||
| 6419 | } | ||
| 6420 | |||
| 6421 | |||
| 6422 | while (!$_matched && !$commit) | ||
| 6423 | { | ||
| 6424 | |||
| 6425 | Parse::RecDescent::_trace(q{Trying production: [/^(?=<<)/ inline_doc]}, | ||
| 6426 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6427 | q{exp}, | ||
| 6428 | $tracelevel) | ||
| 6429 | if defined $::RD_TRACE; | ||
| 6430 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 6431 | $text = $_[1]; | ||
| 6432 | my $_savetext; | ||
| 6433 | @item = (q{exp}); | ||
| 6434 | %item = (__RULE__ => q{exp}); | ||
| 6435 | my $repcount = 0; | ||
| 6436 | |||
| 6437 | |||
| 6438 | Parse::RecDescent::_trace(q{Trying terminal: [/^(?=<<)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 6439 | q{exp}, | ||
| 6440 | $tracelevel) | ||
| 6441 | if defined $::RD_TRACE; | ||
| 6442 | undef $lastsep; | ||
| 6443 | $expectation->is(q{})->at($text); | ||
| 6444 | |||
| 6445 | |||
| 6446 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^(?=<<))/) | ||
| 6447 | { | ||
| 6448 | $text = $lastsep . $text if defined $lastsep; | ||
| 6449 | $expectation->failed(); | ||
| 6450 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 6451 | Parse::RecDescent::_tracefirst($text)) | ||
| 6452 | if defined $::RD_TRACE; | ||
| 6453 | |||
| 6454 | last; | ||
| 6455 | } | ||
| 6456 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 6457 | substr($text,0,length($current_match),q{}); | ||
| 6458 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 6459 | . $current_match . q{])}, | ||
| 6460 | Parse::RecDescent::_tracefirst($text)) | ||
| 6461 | if defined $::RD_TRACE; | ||
| 6462 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 6463 | |||
| 6464 | |||
| 6465 | Parse::RecDescent::_trace(q{Trying subrule: [inline_doc]}, | ||
| 6466 | Parse::RecDescent::_tracefirst($text), | ||
| 6467 | q{exp}, | ||
| 6468 | $tracelevel) | ||
| 6469 | if defined $::RD_TRACE; | ||
| 6470 | if (1) { no strict qw{refs}; | ||
| 6471 | $expectation->is(q{inline_doc})->at($text); | ||
| 6472 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::inline_doc($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 6473 | { | ||
| 6474 | |||
| 6475 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [inline_doc]>>}, | ||
| 6476 | Parse::RecDescent::_tracefirst($text), | ||
| 6477 | q{exp}, | ||
| 6478 | $tracelevel) | ||
| 6479 | if defined $::RD_TRACE; | ||
| 6480 | $expectation->failed(); | ||
| 6481 | last; | ||
| 6482 | } | ||
| 6483 | Parse::RecDescent::_trace(q{>>Matched subrule: [inline_doc]<< (return value: [} | ||
| 6484 | . $_tok . q{]}, | ||
| 6485 | |||
| 6486 | Parse::RecDescent::_tracefirst($text), | ||
| 6487 | q{exp}, | ||
| 6488 | $tracelevel) | ||
| 6489 | if defined $::RD_TRACE; | ||
| 6490 | $item{q{inline_doc}} = $_tok; | ||
| 6491 | push @item, $_tok; | ||
| 6492 | |||
| 6493 | } | ||
| 6494 | |||
| 6495 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 6496 | Parse::RecDescent::_tracefirst($text), | ||
| 6497 | q{exp}, | ||
| 6498 | $tracelevel) | ||
| 6499 | if defined $::RD_TRACE; | ||
| 6500 | |||
| 6501 | |||
| 6502 | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||
| 6503 | unless (defined $_tok) | ||
| 6504 | { | ||
| 6505 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 6506 | if defined $::RD_TRACE; | ||
| 6507 | last; | ||
| 6508 | } | ||
| 6509 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 6510 | . $_tok . q{])}, | ||
| 6511 | Parse::RecDescent::_tracefirst($text)) | ||
| 6512 | if defined $::RD_TRACE; | ||
| 6513 | push @item, $_tok; | ||
| 6514 | $item{__ACTION1__}=$_tok; | ||
| 6515 | |||
| 6516 | |||
| 6517 | Parse::RecDescent::_trace(q{>>Matched production: [/^(?=<<)/ inline_doc]<<}, | ||
| 6518 | Parse::RecDescent::_tracefirst($text), | ||
| 6519 | q{exp}, | ||
| 6520 | $tracelevel) | ||
| 6521 | if defined $::RD_TRACE; | ||
| 6522 | |||
| 6523 | |||
| 6524 | |||
| 6525 | $_matched = 1; | ||
| 6526 | last; | ||
| 6527 | } | ||
| 6528 | |||
| 6529 | |||
| 6530 | while (!$_matched && !$commit) | ||
| 6531 | { | ||
| 6532 | |||
| 6533 | Parse::RecDescent::_trace(q{Trying production: [xpath]}, | ||
| 6534 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6535 | q{exp}, | ||
| 6536 | $tracelevel) | ||
| 6537 | if defined $::RD_TRACE; | ||
| 6538 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 6539 | $text = $_[1]; | ||
| 6540 | my $_savetext; | ||
| 6541 | @item = (q{exp}); | ||
| 6542 | %item = (__RULE__ => q{exp}); | ||
| 6543 | my $repcount = 0; | ||
| 6544 | |||
| 6545 | |||
| 6546 | Parse::RecDescent::_trace(q{Trying subrule: [xpath]}, | ||
| 6547 | Parse::RecDescent::_tracefirst($text), | ||
| 6548 | q{exp}, | ||
| 6549 | $tracelevel) | ||
| 6550 | if defined $::RD_TRACE; | ||
| 6551 | if (1) { no strict qw{refs}; | ||
| 6552 | $expectation->is(q{})->at($text); | ||
| 6553 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpath($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 6554 | { | ||
| 6555 | |||
| 6556 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpath]>>}, | ||
| 6557 | Parse::RecDescent::_tracefirst($text), | ||
| 6558 | q{exp}, | ||
| 6559 | $tracelevel) | ||
| 6560 | if defined $::RD_TRACE; | ||
| 6561 | $expectation->failed(); | ||
| 6562 | last; | ||
| 6563 | } | ||
| 6564 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpath]<< (return value: [} | ||
| 6565 | . $_tok . q{]}, | ||
| 6566 | |||
| 6567 | Parse::RecDescent::_tracefirst($text), | ||
| 6568 | q{exp}, | ||
| 6569 | $tracelevel) | ||
| 6570 | if defined $::RD_TRACE; | ||
| 6571 | $item{q{xpath}} = $_tok; | ||
| 6572 | push @item, $_tok; | ||
| 6573 | |||
| 6574 | } | ||
| 6575 | |||
| 6576 | Parse::RecDescent::_trace(q{>>Matched production: [xpath]<<}, | ||
| 6577 | Parse::RecDescent::_tracefirst($text), | ||
| 6578 | q{exp}, | ||
| 6579 | $tracelevel) | ||
| 6580 | if defined $::RD_TRACE; | ||
| 6581 | |||
| 6582 | |||
| 6583 | |||
| 6584 | $_matched = 1; | ||
| 6585 | last; | ||
| 6586 | } | ||
| 6587 | |||
| 6588 | |||
| 6589 | unless ( $_matched || defined($score) ) | ||
| 6590 | { | ||
| 6591 | |||
| 6592 | |||
| 6593 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 6594 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 6595 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6596 | q{exp}, | ||
| 6597 | $tracelevel) | ||
| 6598 | if defined $::RD_TRACE; | ||
| 6599 | return undef; | ||
| 6600 | } | ||
| 6601 | if (!defined($return) && defined($score)) | ||
| 6602 | { | ||
| 6603 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 6604 | q{exp}, | ||
| 6605 | $tracelevel) | ||
| 6606 | if defined $::RD_TRACE; | ||
| 6607 | $return = $score_return; | ||
| 6608 | } | ||
| 6609 | splice @{$thisparser->{errors}}, $err_at; | ||
| 6610 | $return = $item[$#item] unless defined $return; | ||
| 6611 | if (defined $::RD_TRACE) | ||
| 6612 | { | ||
| 6613 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 6614 | $return . q{])}, "", | ||
| 6615 | q{exp}, | ||
| 6616 | $tracelevel); | ||
| 6617 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 6618 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 6619 | Parse::RecDescent::_tracefirst($text), | ||
| 6620 | , q{exp}, | ||
| 6621 | $tracelevel) | ||
| 6622 | } | ||
| 6623 | $_[1] = $text; | ||
| 6624 | return $return; | ||
| 6625 | } | ||
| 6626 | |||
| 6627 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 6628 | sub Parse::RecDescent::XML::XSH2::Parser::exp_or_opt | ||
| 6629 | { | ||
| 6630 | my $thisparser = $_[0]; | ||
| 6631 | use vars q{$tracelevel}; | ||
| 6632 | local $tracelevel = ($tracelevel||0)+1; | ||
| 6633 | $ERRORS = 0; | ||
| 6634 | my $thisrule = $thisparser->{"rules"}{"exp_or_opt"}; | ||
| 6635 | |||
| 6636 | Parse::RecDescent::_trace(q{Trying rule: [exp_or_opt]}, | ||
| 6637 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6638 | q{exp_or_opt}, | ||
| 6639 | $tracelevel) | ||
| 6640 | if defined $::RD_TRACE; | ||
| 6641 | |||
| 6642 | |||
| 6643 | my $err_at = @{$thisparser->{errors}}; | ||
| 6644 | |||
| 6645 | my $score; | ||
| 6646 | my $score_return; | ||
| 6647 | my $_tok; | ||
| 6648 | my $return = undef; | ||
| 6649 | my $_matched=0; | ||
| 6650 | my $commit=0; | ||
| 6651 | my @item = (); | ||
| 6652 | my %item = (); | ||
| 6653 | my $repeating = $_[2]; | ||
| 6654 | my $_noactions = $_[3]; | ||
| 6655 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 6656 | my $_itempos = $_[5]; | ||
| 6657 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 6658 | my $text; | ||
| 6659 | my $lastsep; | ||
| 6660 | my $current_match; | ||
| 6661 | my $expectation = new Parse::RecDescent::Expectation(q{/(?=\\s*[\};]|\\s*\\Z)/, or option, or exp}); | ||
| 6662 | $expectation->at($_[1]); | ||
| 6663 | |||
| 6664 | my $thisoffset; | ||
| 6665 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 6666 | |||
| 6667 | my $thiscolumn; | ||
| 6668 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 6669 | |||
| 6670 | my $thisline; | ||
| 6671 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 6672 | |||
| 6673 | |||
| 6674 | |||
| 6675 | while (!$_matched && !$commit) | ||
| 6676 | { | ||
| 6677 | |||
| 6678 | Parse::RecDescent::_trace(q{Trying production: [/(?=\\s*[\};]|\\s*\\Z)/ <commit> <reject>]}, | ||
| 6679 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6680 | q{exp_or_opt}, | ||
| 6681 | $tracelevel) | ||
| 6682 | if defined $::RD_TRACE; | ||
| 6683 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 6684 | $text = $_[1]; | ||
| 6685 | my $_savetext; | ||
| 6686 | @item = (q{exp_or_opt}); | ||
| 6687 | %item = (__RULE__ => q{exp_or_opt}); | ||
| 6688 | my $repcount = 0; | ||
| 6689 | |||
| 6690 | |||
| 6691 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=\\s*[\};]|\\s*\\Z)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 6692 | q{exp_or_opt}, | ||
| 6693 | $tracelevel) | ||
| 6694 | if defined $::RD_TRACE; | ||
| 6695 | undef $lastsep; | ||
| 6696 | $expectation->is(q{})->at($text); | ||
| 6697 | |||
| 6698 | |||
| 6699 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=\s*[};]|\s*\Z))/) | ||
| 6700 | { | ||
| 6701 | $text = $lastsep . $text if defined $lastsep; | ||
| 6702 | $expectation->failed(); | ||
| 6703 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 6704 | Parse::RecDescent::_tracefirst($text)) | ||
| 6705 | if defined $::RD_TRACE; | ||
| 6706 | |||
| 6707 | last; | ||
| 6708 | } | ||
| 6709 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 6710 | substr($text,0,length($current_match),q{}); | ||
| 6711 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 6712 | . $current_match . q{])}, | ||
| 6713 | Parse::RecDescent::_tracefirst($text)) | ||
| 6714 | if defined $::RD_TRACE; | ||
| 6715 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 6716 | |||
| 6717 | |||
| 6718 | |||
| 6719 | |||
| 6720 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 6721 | Parse::RecDescent::_tracefirst($text), | ||
| 6722 | q{exp_or_opt}, | ||
| 6723 | $tracelevel) | ||
| 6724 | if defined $::RD_TRACE; | ||
| 6725 | $_tok = do { $commit = 1 }; | ||
| 6726 | if (defined($_tok)) | ||
| 6727 | { | ||
| 6728 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 6729 | . $_tok . q{])}, | ||
| 6730 | Parse::RecDescent::_tracefirst($text)) | ||
| 6731 | if defined $::RD_TRACE; | ||
| 6732 | } | ||
| 6733 | else | ||
| 6734 | { | ||
| 6735 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 6736 | Parse::RecDescent::_tracefirst($text)) | ||
| 6737 | if defined $::RD_TRACE; | ||
| 6738 | } | ||
| 6739 | |||
| 6740 | last unless defined $_tok; | ||
| 6741 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 6742 | |||
| 6743 | |||
| 6744 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 6745 | Parse::RecDescent::_tracefirst($text), | ||
| 6746 | q{exp_or_opt}, | ||
| 6747 | $tracelevel) | ||
| 6748 | if defined $::RD_TRACE; | ||
| 6749 | undef $return; | ||
| 6750 | |||
| 6751 | |||
| 6752 | $_tok = undef; | ||
| 6753 | |||
| 6754 | last unless defined $_tok; | ||
| 6755 | |||
| 6756 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=\\s*[\};]|\\s*\\Z)/ <commit> <reject>]<<}, | ||
| 6757 | Parse::RecDescent::_tracefirst($text), | ||
| 6758 | q{exp_or_opt}, | ||
| 6759 | $tracelevel) | ||
| 6760 | if defined $::RD_TRACE; | ||
| 6761 | |||
| 6762 | |||
| 6763 | |||
| 6764 | $_matched = 1; | ||
| 6765 | last; | ||
| 6766 | } | ||
| 6767 | |||
| 6768 | |||
| 6769 | while (!$_matched && !$commit) | ||
| 6770 | { | ||
| 6771 | |||
| 6772 | Parse::RecDescent::_trace(q{Trying production: [option]}, | ||
| 6773 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6774 | q{exp_or_opt}, | ||
| 6775 | $tracelevel) | ||
| 6776 | if defined $::RD_TRACE; | ||
| 6777 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 6778 | $text = $_[1]; | ||
| 6779 | my $_savetext; | ||
| 6780 | @item = (q{exp_or_opt}); | ||
| 6781 | %item = (__RULE__ => q{exp_or_opt}); | ||
| 6782 | my $repcount = 0; | ||
| 6783 | |||
| 6784 | |||
| 6785 | Parse::RecDescent::_trace(q{Trying subrule: [option]}, | ||
| 6786 | Parse::RecDescent::_tracefirst($text), | ||
| 6787 | q{exp_or_opt}, | ||
| 6788 | $tracelevel) | ||
| 6789 | if defined $::RD_TRACE; | ||
| 6790 | if (1) { no strict qw{refs}; | ||
| 6791 | $expectation->is(q{})->at($text); | ||
| 6792 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::option($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 6793 | { | ||
| 6794 | |||
| 6795 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [option]>>}, | ||
| 6796 | Parse::RecDescent::_tracefirst($text), | ||
| 6797 | q{exp_or_opt}, | ||
| 6798 | $tracelevel) | ||
| 6799 | if defined $::RD_TRACE; | ||
| 6800 | $expectation->failed(); | ||
| 6801 | last; | ||
| 6802 | } | ||
| 6803 | Parse::RecDescent::_trace(q{>>Matched subrule: [option]<< (return value: [} | ||
| 6804 | . $_tok . q{]}, | ||
| 6805 | |||
| 6806 | Parse::RecDescent::_tracefirst($text), | ||
| 6807 | q{exp_or_opt}, | ||
| 6808 | $tracelevel) | ||
| 6809 | if defined $::RD_TRACE; | ||
| 6810 | $item{q{option}} = $_tok; | ||
| 6811 | push @item, $_tok; | ||
| 6812 | |||
| 6813 | } | ||
| 6814 | |||
| 6815 | Parse::RecDescent::_trace(q{>>Matched production: [option]<<}, | ||
| 6816 | Parse::RecDescent::_tracefirst($text), | ||
| 6817 | q{exp_or_opt}, | ||
| 6818 | $tracelevel) | ||
| 6819 | if defined $::RD_TRACE; | ||
| 6820 | |||
| 6821 | |||
| 6822 | |||
| 6823 | $_matched = 1; | ||
| 6824 | last; | ||
| 6825 | } | ||
| 6826 | |||
| 6827 | |||
| 6828 | while (!$_matched && !$commit) | ||
| 6829 | { | ||
| 6830 | |||
| 6831 | Parse::RecDescent::_trace(q{Trying production: [exp]}, | ||
| 6832 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6833 | q{exp_or_opt}, | ||
| 6834 | $tracelevel) | ||
| 6835 | if defined $::RD_TRACE; | ||
| 6836 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 6837 | $text = $_[1]; | ||
| 6838 | my $_savetext; | ||
| 6839 | @item = (q{exp_or_opt}); | ||
| 6840 | %item = (__RULE__ => q{exp_or_opt}); | ||
| 6841 | my $repcount = 0; | ||
| 6842 | |||
| 6843 | |||
| 6844 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 6845 | Parse::RecDescent::_tracefirst($text), | ||
| 6846 | q{exp_or_opt}, | ||
| 6847 | $tracelevel) | ||
| 6848 | if defined $::RD_TRACE; | ||
| 6849 | if (1) { no strict qw{refs}; | ||
| 6850 | $expectation->is(q{})->at($text); | ||
| 6851 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 6852 | { | ||
| 6853 | |||
| 6854 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 6855 | Parse::RecDescent::_tracefirst($text), | ||
| 6856 | q{exp_or_opt}, | ||
| 6857 | $tracelevel) | ||
| 6858 | if defined $::RD_TRACE; | ||
| 6859 | $expectation->failed(); | ||
| 6860 | last; | ||
| 6861 | } | ||
| 6862 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 6863 | . $_tok . q{]}, | ||
| 6864 | |||
| 6865 | Parse::RecDescent::_tracefirst($text), | ||
| 6866 | q{exp_or_opt}, | ||
| 6867 | $tracelevel) | ||
| 6868 | if defined $::RD_TRACE; | ||
| 6869 | $item{q{exp}} = $_tok; | ||
| 6870 | push @item, $_tok; | ||
| 6871 | |||
| 6872 | } | ||
| 6873 | |||
| 6874 | Parse::RecDescent::_trace(q{>>Matched production: [exp]<<}, | ||
| 6875 | Parse::RecDescent::_tracefirst($text), | ||
| 6876 | q{exp_or_opt}, | ||
| 6877 | $tracelevel) | ||
| 6878 | if defined $::RD_TRACE; | ||
| 6879 | |||
| 6880 | |||
| 6881 | |||
| 6882 | $_matched = 1; | ||
| 6883 | last; | ||
| 6884 | } | ||
| 6885 | |||
| 6886 | |||
| 6887 | unless ( $_matched || defined($score) ) | ||
| 6888 | { | ||
| 6889 | |||
| 6890 | |||
| 6891 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 6892 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 6893 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6894 | q{exp_or_opt}, | ||
| 6895 | $tracelevel) | ||
| 6896 | if defined $::RD_TRACE; | ||
| 6897 | return undef; | ||
| 6898 | } | ||
| 6899 | if (!defined($return) && defined($score)) | ||
| 6900 | { | ||
| 6901 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 6902 | q{exp_or_opt}, | ||
| 6903 | $tracelevel) | ||
| 6904 | if defined $::RD_TRACE; | ||
| 6905 | $return = $score_return; | ||
| 6906 | } | ||
| 6907 | splice @{$thisparser->{errors}}, $err_at; | ||
| 6908 | $return = $item[$#item] unless defined $return; | ||
| 6909 | if (defined $::RD_TRACE) | ||
| 6910 | { | ||
| 6911 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 6912 | $return . q{])}, "", | ||
| 6913 | q{exp_or_opt}, | ||
| 6914 | $tracelevel); | ||
| 6915 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 6916 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 6917 | Parse::RecDescent::_tracefirst($text), | ||
| 6918 | , q{exp_or_opt}, | ||
| 6919 | $tracelevel) | ||
| 6920 | } | ||
| 6921 | $_[1] = $text; | ||
| 6922 | return $return; | ||
| 6923 | } | ||
| 6924 | |||
| 6925 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 6926 | sub Parse::RecDescent::XML::XSH2::Parser::filename | ||
| 6927 | { | ||
| 6928 | my $thisparser = $_[0]; | ||
| 6929 | use vars q{$tracelevel}; | ||
| 6930 | local $tracelevel = ($tracelevel||0)+1; | ||
| 6931 | $ERRORS = 0; | ||
| 6932 | my $thisrule = $thisparser->{"rules"}{"filename"}; | ||
| 6933 | |||
| 6934 | Parse::RecDescent::_trace(q{Trying rule: [filename]}, | ||
| 6935 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6936 | q{filename}, | ||
| 6937 | $tracelevel) | ||
| 6938 | if defined $::RD_TRACE; | ||
| 6939 | |||
| 6940 | |||
| 6941 | my $err_at = @{$thisparser->{errors}}; | ||
| 6942 | |||
| 6943 | my $score; | ||
| 6944 | my $score_return; | ||
| 6945 | my $_tok; | ||
| 6946 | my $return = undef; | ||
| 6947 | my $_matched=0; | ||
| 6948 | my $commit=0; | ||
| 6949 | my @item = (); | ||
| 6950 | my %item = (); | ||
| 6951 | my $repeating = $_[2]; | ||
| 6952 | my $_noactions = $_[3]; | ||
| 6953 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 6954 | my $_itempos = $_[5]; | ||
| 6955 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 6956 | my $text; | ||
| 6957 | my $lastsep; | ||
| 6958 | my $current_match; | ||
| 6959 | my $expectation = new Parse::RecDescent::Expectation(q{exp}); | ||
| 6960 | $expectation->at($_[1]); | ||
| 6961 | |||
| 6962 | my $thisoffset; | ||
| 6963 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 6964 | |||
| 6965 | my $thiscolumn; | ||
| 6966 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 6967 | |||
| 6968 | my $thisline; | ||
| 6969 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 6970 | |||
| 6971 | |||
| 6972 | |||
| 6973 | while (!$_matched && !$commit) | ||
| 6974 | { | ||
| 6975 | |||
| 6976 | Parse::RecDescent::_trace(q{Trying production: [exp]}, | ||
| 6977 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 6978 | q{filename}, | ||
| 6979 | $tracelevel) | ||
| 6980 | if defined $::RD_TRACE; | ||
| 6981 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 6982 | $text = $_[1]; | ||
| 6983 | my $_savetext; | ||
| 6984 | @item = (q{filename}); | ||
| 6985 | %item = (__RULE__ => q{filename}); | ||
| 6986 | my $repcount = 0; | ||
| 6987 | |||
| 6988 | |||
| 6989 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 6990 | Parse::RecDescent::_tracefirst($text), | ||
| 6991 | q{filename}, | ||
| 6992 | $tracelevel) | ||
| 6993 | if defined $::RD_TRACE; | ||
| 6994 | if (1) { no strict qw{refs}; | ||
| 6995 | $expectation->is(q{})->at($text); | ||
| 6996 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 6997 | { | ||
| 6998 | |||
| 6999 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 7000 | Parse::RecDescent::_tracefirst($text), | ||
| 7001 | q{filename}, | ||
| 7002 | $tracelevel) | ||
| 7003 | if defined $::RD_TRACE; | ||
| 7004 | $expectation->failed(); | ||
| 7005 | last; | ||
| 7006 | } | ||
| 7007 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 7008 | . $_tok . q{]}, | ||
| 7009 | |||
| 7010 | Parse::RecDescent::_tracefirst($text), | ||
| 7011 | q{filename}, | ||
| 7012 | $tracelevel) | ||
| 7013 | if defined $::RD_TRACE; | ||
| 7014 | $item{q{exp}} = $_tok; | ||
| 7015 | push @item, $_tok; | ||
| 7016 | |||
| 7017 | } | ||
| 7018 | |||
| 7019 | Parse::RecDescent::_trace(q{>>Matched production: [exp]<<}, | ||
| 7020 | Parse::RecDescent::_tracefirst($text), | ||
| 7021 | q{filename}, | ||
| 7022 | $tracelevel) | ||
| 7023 | if defined $::RD_TRACE; | ||
| 7024 | |||
| 7025 | |||
| 7026 | |||
| 7027 | $_matched = 1; | ||
| 7028 | last; | ||
| 7029 | } | ||
| 7030 | |||
| 7031 | |||
| 7032 | unless ( $_matched || defined($score) ) | ||
| 7033 | { | ||
| 7034 | |||
| 7035 | |||
| 7036 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 7037 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 7038 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7039 | q{filename}, | ||
| 7040 | $tracelevel) | ||
| 7041 | if defined $::RD_TRACE; | ||
| 7042 | return undef; | ||
| 7043 | } | ||
| 7044 | if (!defined($return) && defined($score)) | ||
| 7045 | { | ||
| 7046 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 7047 | q{filename}, | ||
| 7048 | $tracelevel) | ||
| 7049 | if defined $::RD_TRACE; | ||
| 7050 | $return = $score_return; | ||
| 7051 | } | ||
| 7052 | splice @{$thisparser->{errors}}, $err_at; | ||
| 7053 | $return = $item[$#item] unless defined $return; | ||
| 7054 | if (defined $::RD_TRACE) | ||
| 7055 | { | ||
| 7056 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 7057 | $return . q{])}, "", | ||
| 7058 | q{filename}, | ||
| 7059 | $tracelevel); | ||
| 7060 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 7061 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 7062 | Parse::RecDescent::_tracefirst($text), | ||
| 7063 | , q{filename}, | ||
| 7064 | $tracelevel) | ||
| 7065 | } | ||
| 7066 | $_[1] = $text; | ||
| 7067 | return $return; | ||
| 7068 | } | ||
| 7069 | |||
| 7070 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 7071 | sub Parse::RecDescent::XML::XSH2::Parser::inline_doc | ||
| 7072 | { | ||
| 7073 | my $thisparser = $_[0]; | ||
| 7074 | use vars q{$tracelevel}; | ||
| 7075 | local $tracelevel = ($tracelevel||0)+1; | ||
| 7076 | $ERRORS = 0; | ||
| 7077 | my $thisrule = $thisparser->{"rules"}{"inline_doc"}; | ||
| 7078 | |||
| 7079 | Parse::RecDescent::_trace(q{Trying rule: [inline_doc]}, | ||
| 7080 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7081 | q{inline_doc}, | ||
| 7082 | $tracelevel) | ||
| 7083 | if defined $::RD_TRACE; | ||
| 7084 | |||
| 7085 | |||
| 7086 | my $err_at = @{$thisparser->{errors}}; | ||
| 7087 | |||
| 7088 | my $score; | ||
| 7089 | my $score_return; | ||
| 7090 | my $_tok; | ||
| 7091 | my $return = undef; | ||
| 7092 | my $_matched=0; | ||
| 7093 | my $commit=0; | ||
| 7094 | my @item = (); | ||
| 7095 | my %item = (); | ||
| 7096 | my $repeating = $_[2]; | ||
| 7097 | my $_noactions = $_[3]; | ||
| 7098 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 7099 | my $_itempos = $_[5]; | ||
| 7100 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 7101 | my $text; | ||
| 7102 | my $lastsep; | ||
| 7103 | my $current_match; | ||
| 7104 | my $expectation = new Parse::RecDescent::Expectation(q{/<</}); | ||
| 7105 | $expectation->at($_[1]); | ||
| 7106 | |||
| 7107 | my $thisoffset; | ||
| 7108 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 7109 | |||
| 7110 | my $thiscolumn; | ||
| 7111 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 7112 | |||
| 7113 | my $thisline; | ||
| 7114 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 7115 | |||
| 7116 | |||
| 7117 | |||
| 7118 | while (!$_matched && !$commit) | ||
| 7119 | { | ||
| 7120 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 7121 | Parse::RecDescent::_trace(q{Trying production: [/<</ inline_doc_string <skip:""> /.*\\n/ /(.|\\n)*?\\n$item[2][1]\\s*(\\n|$)/]}, | ||
| 7122 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7123 | q{inline_doc}, | ||
| 7124 | $tracelevel) | ||
| 7125 | if defined $::RD_TRACE; | ||
| 7126 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 7127 | $text = $_[1]; | ||
| 7128 | my $_savetext; | ||
| 7129 | @item = (q{inline_doc}); | ||
| 7130 | %item = (__RULE__ => q{inline_doc}); | ||
| 7131 | my $repcount = 0; | ||
| 7132 | |||
| 7133 | |||
| 7134 | Parse::RecDescent::_trace(q{Trying terminal: [/<</]}, Parse::RecDescent::_tracefirst($text), | ||
| 7135 | q{inline_doc}, | ||
| 7136 | $tracelevel) | ||
| 7137 | if defined $::RD_TRACE; | ||
| 7138 | undef $lastsep; | ||
| 7139 | $expectation->is(q{})->at($text); | ||
| 7140 | |||
| 7141 | |||
| 7142 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:<<)/) | ||
| 7143 | { | ||
| 7144 | $text = $lastsep . $text if defined $lastsep; | ||
| 7145 | $expectation->failed(); | ||
| 7146 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7147 | Parse::RecDescent::_tracefirst($text)) | ||
| 7148 | if defined $::RD_TRACE; | ||
| 7149 | |||
| 7150 | last; | ||
| 7151 | } | ||
| 7152 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7153 | substr($text,0,length($current_match),q{}); | ||
| 7154 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7155 | . $current_match . q{])}, | ||
| 7156 | Parse::RecDescent::_tracefirst($text)) | ||
| 7157 | if defined $::RD_TRACE; | ||
| 7158 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 7159 | |||
| 7160 | |||
| 7161 | Parse::RecDescent::_trace(q{Trying subrule: [inline_doc_string]}, | ||
| 7162 | Parse::RecDescent::_tracefirst($text), | ||
| 7163 | q{inline_doc}, | ||
| 7164 | $tracelevel) | ||
| 7165 | if defined $::RD_TRACE; | ||
| 7166 | if (1) { no strict qw{refs}; | ||
| 7167 | $expectation->is(q{inline_doc_string})->at($text); | ||
| 7168 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::inline_doc_string($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 7169 | { | ||
| 7170 | |||
| 7171 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [inline_doc_string]>>}, | ||
| 7172 | Parse::RecDescent::_tracefirst($text), | ||
| 7173 | q{inline_doc}, | ||
| 7174 | $tracelevel) | ||
| 7175 | if defined $::RD_TRACE; | ||
| 7176 | $expectation->failed(); | ||
| 7177 | last; | ||
| 7178 | } | ||
| 7179 | Parse::RecDescent::_trace(q{>>Matched subrule: [inline_doc_string]<< (return value: [} | ||
| 7180 | . $_tok . q{]}, | ||
| 7181 | |||
| 7182 | Parse::RecDescent::_tracefirst($text), | ||
| 7183 | q{inline_doc}, | ||
| 7184 | $tracelevel) | ||
| 7185 | if defined $::RD_TRACE; | ||
| 7186 | $item{q{inline_doc_string}} = $_tok; | ||
| 7187 | push @item, $_tok; | ||
| 7188 | |||
| 7189 | } | ||
| 7190 | |||
| 7191 | |||
| 7192 | |||
| 7193 | Parse::RecDescent::_trace(q{Trying directive: [<skip:"">]}, | ||
| 7194 | Parse::RecDescent::_tracefirst($text), | ||
| 7195 | q{inline_doc}, | ||
| 7196 | $tracelevel) | ||
| 7197 | if defined $::RD_TRACE; | ||
| 7198 | $_tok = do { my $oldskip = $skip; $skip=""; $oldskip }; | ||
| 7199 | if (defined($_tok)) | ||
| 7200 | { | ||
| 7201 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 7202 | . $_tok . q{])}, | ||
| 7203 | Parse::RecDescent::_tracefirst($text)) | ||
| 7204 | if defined $::RD_TRACE; | ||
| 7205 | } | ||
| 7206 | else | ||
| 7207 | { | ||
| 7208 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 7209 | Parse::RecDescent::_tracefirst($text)) | ||
| 7210 | if defined $::RD_TRACE; | ||
| 7211 | } | ||
| 7212 | |||
| 7213 | last unless defined $_tok; | ||
| 7214 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 7215 | |||
| 7216 | |||
| 7217 | Parse::RecDescent::_trace(q{Trying terminal: [/.*\\n/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7218 | q{inline_doc}, | ||
| 7219 | $tracelevel) | ||
| 7220 | if defined $::RD_TRACE; | ||
| 7221 | undef $lastsep; | ||
| 7222 | $expectation->is(q{/.*\\n/})->at($text); | ||
| 7223 | |||
| 7224 | |||
| 7225 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:.*\n)/) | ||
| 7226 | { | ||
| 7227 | $text = $lastsep . $text if defined $lastsep; | ||
| 7228 | $expectation->failed(); | ||
| 7229 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7230 | Parse::RecDescent::_tracefirst($text)) | ||
| 7231 | if defined $::RD_TRACE; | ||
| 7232 | |||
| 7233 | last; | ||
| 7234 | } | ||
| 7235 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7236 | substr($text,0,length($current_match),q{}); | ||
| 7237 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7238 | . $current_match . q{])}, | ||
| 7239 | Parse::RecDescent::_tracefirst($text)) | ||
| 7240 | if defined $::RD_TRACE; | ||
| 7241 | push @item, $item{__PATTERN2__}=$current_match; | ||
| 7242 | |||
| 7243 | |||
| 7244 | Parse::RecDescent::_trace(q{Trying terminal: [/(.|\\n)*?\\n$item[2][1]\\s*(\\n|$)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7245 | q{inline_doc}, | ||
| 7246 | $tracelevel) | ||
| 7247 | if defined $::RD_TRACE; | ||
| 7248 | undef $lastsep; | ||
| 7249 | $expectation->is(q{/(.|\\n)*?\\n$item[2][1]\\s*(\\n|$)/})->at($text); | ||
| 7250 | |||
| 7251 | |||
| 7252 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(.|\n)*?\n$item[2][1]\s*(\n|$))/) | ||
| 7253 | { | ||
| 7254 | $text = $lastsep . $text if defined $lastsep; | ||
| 7255 | $expectation->failed(); | ||
| 7256 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7257 | Parse::RecDescent::_tracefirst($text)) | ||
| 7258 | if defined $::RD_TRACE; | ||
| 7259 | |||
| 7260 | last; | ||
| 7261 | } | ||
| 7262 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7263 | substr($text,0,length($current_match),q{}); | ||
| 7264 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7265 | . $current_match . q{])}, | ||
| 7266 | Parse::RecDescent::_tracefirst($text)) | ||
| 7267 | if defined $::RD_TRACE; | ||
| 7268 | push @item, $item{__PATTERN3__}=$current_match; | ||
| 7269 | |||
| 7270 | |||
| 7271 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 7272 | Parse::RecDescent::_tracefirst($text), | ||
| 7273 | q{inline_doc}, | ||
| 7274 | $tracelevel) | ||
| 7275 | if defined $::RD_TRACE; | ||
| 7276 | |||
| 7277 | |||
| 7278 | $_tok = ($_noactions) ? 0 : do { | ||
| 7279 | $text=$item[4].$text; | ||
| 7280 | local $_=$item[5]; s/\n$item[2][1]\s*$//; | ||
| 7281 | my $paren = $item[2][0]; | ||
| 7282 | $paren = '"' if $paren eq ""; | ||
| 7283 | if ($paren eq "'") { | ||
| 7284 | $paren = '"'; | ||
| 7285 | s{(\\)(.|\n)|(\$)}{ (defined($3) and $3 eq '$') ? "\\\$" | ||
| 7286 | : ((defined($2) and $2 eq "\\") | ||
| 7287 | ? "\\\\" : ((defined($2) and $2 eq "'") ? "'" : ( | ||
| 7288 | (defined($2) and $2 eq '$') ? "\\\\\\$2" : | ||
| 7289 | "\\\\$2"))) }eg; | ||
| 7290 | } "<<".$paren.$_; | ||
| 7291 | }; | ||
| 7292 | unless (defined $_tok) | ||
| 7293 | { | ||
| 7294 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 7295 | if defined $::RD_TRACE; | ||
| 7296 | last; | ||
| 7297 | } | ||
| 7298 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 7299 | . $_tok . q{])}, | ||
| 7300 | Parse::RecDescent::_tracefirst($text)) | ||
| 7301 | if defined $::RD_TRACE; | ||
| 7302 | push @item, $_tok; | ||
| 7303 | $item{__ACTION1__}=$_tok; | ||
| 7304 | |||
| 7305 | |||
| 7306 | Parse::RecDescent::_trace(q{>>Matched production: [/<</ inline_doc_string <skip:""> /.*\\n/ /(.|\\n)*?\\n$item[2][1]\\s*(\\n|$)/]<<}, | ||
| 7307 | Parse::RecDescent::_tracefirst($text), | ||
| 7308 | q{inline_doc}, | ||
| 7309 | $tracelevel) | ||
| 7310 | if defined $::RD_TRACE; | ||
| 7311 | |||
| 7312 | |||
| 7313 | |||
| 7314 | $_matched = 1; | ||
| 7315 | last; | ||
| 7316 | } | ||
| 7317 | |||
| 7318 | |||
| 7319 | unless ( $_matched || defined($score) ) | ||
| 7320 | { | ||
| 7321 | |||
| 7322 | |||
| 7323 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 7324 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 7325 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7326 | q{inline_doc}, | ||
| 7327 | $tracelevel) | ||
| 7328 | if defined $::RD_TRACE; | ||
| 7329 | return undef; | ||
| 7330 | } | ||
| 7331 | if (!defined($return) && defined($score)) | ||
| 7332 | { | ||
| 7333 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 7334 | q{inline_doc}, | ||
| 7335 | $tracelevel) | ||
| 7336 | if defined $::RD_TRACE; | ||
| 7337 | $return = $score_return; | ||
| 7338 | } | ||
| 7339 | splice @{$thisparser->{errors}}, $err_at; | ||
| 7340 | $return = $item[$#item] unless defined $return; | ||
| 7341 | if (defined $::RD_TRACE) | ||
| 7342 | { | ||
| 7343 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 7344 | $return . q{])}, "", | ||
| 7345 | q{inline_doc}, | ||
| 7346 | $tracelevel); | ||
| 7347 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 7348 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 7349 | Parse::RecDescent::_tracefirst($text), | ||
| 7350 | , q{inline_doc}, | ||
| 7351 | $tracelevel) | ||
| 7352 | } | ||
| 7353 | $_[1] = $text; | ||
| 7354 | return $return; | ||
| 7355 | } | ||
| 7356 | |||
| 7357 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 7358 | sub Parse::RecDescent::XML::XSH2::Parser::inline_doc_string | ||
| 7359 | { | ||
| 7360 | my $thisparser = $_[0]; | ||
| 7361 | use vars q{$tracelevel}; | ||
| 7362 | local $tracelevel = ($tracelevel||0)+1; | ||
| 7363 | $ERRORS = 0; | ||
| 7364 | my $thisrule = $thisparser->{"rules"}{"inline_doc_string"}; | ||
| 7365 | |||
| 7366 | Parse::RecDescent::_trace(q{Trying rule: [inline_doc_string]}, | ||
| 7367 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7368 | q{inline_doc_string}, | ||
| 7369 | $tracelevel) | ||
| 7370 | if defined $::RD_TRACE; | ||
| 7371 | |||
| 7372 | |||
| 7373 | my $err_at = @{$thisparser->{errors}}; | ||
| 7374 | |||
| 7375 | my $score; | ||
| 7376 | my $score_return; | ||
| 7377 | my $_tok; | ||
| 7378 | my $return = undef; | ||
| 7379 | my $_matched=0; | ||
| 7380 | my $commit=0; | ||
| 7381 | my @item = (); | ||
| 7382 | my %item = (); | ||
| 7383 | my $repeating = $_[2]; | ||
| 7384 | my $_noactions = $_[3]; | ||
| 7385 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 7386 | my $_itempos = $_[5]; | ||
| 7387 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 7388 | my $text; | ||
| 7389 | my $lastsep; | ||
| 7390 | my $current_match; | ||
| 7391 | my $expectation = new Parse::RecDescent::Expectation(q{/'[a-zA-Z_][a-zA-Z0-9_]*'|"[a-zA-Z_][a-zA-Z0-9_]*"|\\([a-zA-Z_][a-zA-Z0-9_]*\\)|\\\{[a-zA-Z_][a-zA-Z0-9_]*\\\}|[a-zA-Z_][a-zA-Z0-9_]*/}); | ||
| 7392 | $expectation->at($_[1]); | ||
| 7393 | |||
| 7394 | my $thisoffset; | ||
| 7395 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 7396 | |||
| 7397 | my $thiscolumn; | ||
| 7398 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 7399 | |||
| 7400 | my $thisline; | ||
| 7401 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 7402 | |||
| 7403 | |||
| 7404 | |||
| 7405 | while (!$_matched && !$commit) | ||
| 7406 | { | ||
| 7407 | |||
| 7408 | Parse::RecDescent::_trace(q{Trying production: [/'[a-zA-Z_][a-zA-Z0-9_]*'|"[a-zA-Z_][a-zA-Z0-9_]*"|\\([a-zA-Z_][a-zA-Z0-9_]*\\)|\\\{[a-zA-Z_][a-zA-Z0-9_]*\\\}|[a-zA-Z_][a-zA-Z0-9_]*/]}, | ||
| 7409 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7410 | q{inline_doc_string}, | ||
| 7411 | $tracelevel) | ||
| 7412 | if defined $::RD_TRACE; | ||
| 7413 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 7414 | $text = $_[1]; | ||
| 7415 | my $_savetext; | ||
| 7416 | @item = (q{inline_doc_string}); | ||
| 7417 | %item = (__RULE__ => q{inline_doc_string}); | ||
| 7418 | my $repcount = 0; | ||
| 7419 | |||
| 7420 | |||
| 7421 | Parse::RecDescent::_trace(q{Trying terminal: [/'[a-zA-Z_][a-zA-Z0-9_]*'|"[a-zA-Z_][a-zA-Z0-9_]*"|\\([a-zA-Z_][a-zA-Z0-9_]*\\)|\\\{[a-zA-Z_][a-zA-Z0-9_]*\\\}|[a-zA-Z_][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7422 | q{inline_doc_string}, | ||
| 7423 | $tracelevel) | ||
| 7424 | if defined $::RD_TRACE; | ||
| 7425 | undef $lastsep; | ||
| 7426 | $expectation->is(q{})->at($text); | ||
| 7427 | |||
| 7428 | |||
| 7429 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:'[a-zA-Z_][a-zA-Z0-9_]*'|"[a-zA-Z_][a-zA-Z0-9_]*"|\([a-zA-Z_][a-zA-Z0-9_]*\)|\{[a-zA-Z_][a-zA-Z0-9_]*\}|[a-zA-Z_][a-zA-Z0-9_]*)/) | ||
| 7430 | { | ||
| 7431 | $text = $lastsep . $text if defined $lastsep; | ||
| 7432 | $expectation->failed(); | ||
| 7433 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7434 | Parse::RecDescent::_tracefirst($text)) | ||
| 7435 | if defined $::RD_TRACE; | ||
| 7436 | |||
| 7437 | last; | ||
| 7438 | } | ||
| 7439 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7440 | substr($text,0,length($current_match),q{}); | ||
| 7441 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7442 | . $current_match . q{])}, | ||
| 7443 | Parse::RecDescent::_tracefirst($text)) | ||
| 7444 | if defined $::RD_TRACE; | ||
| 7445 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 7446 | |||
| 7447 | |||
| 7448 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 7449 | Parse::RecDescent::_tracefirst($text), | ||
| 7450 | q{inline_doc_string}, | ||
| 7451 | $tracelevel) | ||
| 7452 | if defined $::RD_TRACE; | ||
| 7453 | |||
| 7454 | |||
| 7455 | $_tok = ($_noactions) ? 0 : do { [($item[1]=~/^(['"({])?(.*?)(['")}])?$/)] }; | ||
| 7456 | unless (defined $_tok) | ||
| 7457 | { | ||
| 7458 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 7459 | if defined $::RD_TRACE; | ||
| 7460 | last; | ||
| 7461 | } | ||
| 7462 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 7463 | . $_tok . q{])}, | ||
| 7464 | Parse::RecDescent::_tracefirst($text)) | ||
| 7465 | if defined $::RD_TRACE; | ||
| 7466 | push @item, $_tok; | ||
| 7467 | $item{__ACTION1__}=$_tok; | ||
| 7468 | |||
| 7469 | |||
| 7470 | Parse::RecDescent::_trace(q{>>Matched production: [/'[a-zA-Z_][a-zA-Z0-9_]*'|"[a-zA-Z_][a-zA-Z0-9_]*"|\\([a-zA-Z_][a-zA-Z0-9_]*\\)|\\\{[a-zA-Z_][a-zA-Z0-9_]*\\\}|[a-zA-Z_][a-zA-Z0-9_]*/]<<}, | ||
| 7471 | Parse::RecDescent::_tracefirst($text), | ||
| 7472 | q{inline_doc_string}, | ||
| 7473 | $tracelevel) | ||
| 7474 | if defined $::RD_TRACE; | ||
| 7475 | |||
| 7476 | |||
| 7477 | |||
| 7478 | $_matched = 1; | ||
| 7479 | last; | ||
| 7480 | } | ||
| 7481 | |||
| 7482 | |||
| 7483 | unless ( $_matched || defined($score) ) | ||
| 7484 | { | ||
| 7485 | |||
| 7486 | |||
| 7487 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 7488 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 7489 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7490 | q{inline_doc_string}, | ||
| 7491 | $tracelevel) | ||
| 7492 | if defined $::RD_TRACE; | ||
| 7493 | return undef; | ||
| 7494 | } | ||
| 7495 | if (!defined($return) && defined($score)) | ||
| 7496 | { | ||
| 7497 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 7498 | q{inline_doc_string}, | ||
| 7499 | $tracelevel) | ||
| 7500 | if defined $::RD_TRACE; | ||
| 7501 | $return = $score_return; | ||
| 7502 | } | ||
| 7503 | splice @{$thisparser->{errors}}, $err_at; | ||
| 7504 | $return = $item[$#item] unless defined $return; | ||
| 7505 | if (defined $::RD_TRACE) | ||
| 7506 | { | ||
| 7507 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 7508 | $return . q{])}, "", | ||
| 7509 | q{inline_doc_string}, | ||
| 7510 | $tracelevel); | ||
| 7511 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 7512 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 7513 | Parse::RecDescent::_tracefirst($text), | ||
| 7514 | , q{inline_doc_string}, | ||
| 7515 | $tracelevel) | ||
| 7516 | } | ||
| 7517 | $_[1] = $text; | ||
| 7518 | return $return; | ||
| 7519 | } | ||
| 7520 | |||
| 7521 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 7522 | sub Parse::RecDescent::XML::XSH2::Parser::loc | ||
| 7523 | { | ||
| 7524 | my $thisparser = $_[0]; | ||
| 7525 | use vars q{$tracelevel}; | ||
| 7526 | local $tracelevel = ($tracelevel||0)+1; | ||
| 7527 | $ERRORS = 0; | ||
| 7528 | my $thisrule = $thisparser->{"rules"}{"loc"}; | ||
| 7529 | |||
| 7530 | Parse::RecDescent::_trace(q{Trying rule: [loc]}, | ||
| 7531 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7532 | q{loc}, | ||
| 7533 | $tracelevel) | ||
| 7534 | if defined $::RD_TRACE; | ||
| 7535 | |||
| 7536 | |||
| 7537 | my $err_at = @{$thisparser->{errors}}; | ||
| 7538 | |||
| 7539 | my $score; | ||
| 7540 | my $score_return; | ||
| 7541 | my $_tok; | ||
| 7542 | my $return = undef; | ||
| 7543 | my $_matched=0; | ||
| 7544 | my $commit=0; | ||
| 7545 | my @item = (); | ||
| 7546 | my %item = (); | ||
| 7547 | my $repeating = $_[2]; | ||
| 7548 | my $_noactions = $_[3]; | ||
| 7549 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 7550 | my $_itempos = $_[5]; | ||
| 7551 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 7552 | my $text; | ||
| 7553 | my $lastsep; | ||
| 7554 | my $current_match; | ||
| 7555 | my $expectation = new Parse::RecDescent::Expectation(q{/after\\s/, or /before\\s/, or /(in)?to\\s/, or /(append(ing)?|as\\s+(a\\s+)child(\\s+of)?)\\s/, or /(prepend(ing)?|(as\\s+)(the\\s+)first(\\s+child(\\s+of)?)?)\\s/, or /(replace|instead( of)?)\\s/}); | ||
| 7556 | $expectation->at($_[1]); | ||
| 7557 | |||
| 7558 | my $thisoffset; | ||
| 7559 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 7560 | |||
| 7561 | my $thiscolumn; | ||
| 7562 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 7563 | |||
| 7564 | my $thisline; | ||
| 7565 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 7566 | |||
| 7567 | |||
| 7568 | |||
| 7569 | while (!$_matched && !$commit) | ||
| 7570 | { | ||
| 7571 | |||
| 7572 | Parse::RecDescent::_trace(q{Trying production: [/after\\s/]}, | ||
| 7573 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7574 | q{loc}, | ||
| 7575 | $tracelevel) | ||
| 7576 | if defined $::RD_TRACE; | ||
| 7577 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 7578 | $text = $_[1]; | ||
| 7579 | my $_savetext; | ||
| 7580 | @item = (q{loc}); | ||
| 7581 | %item = (__RULE__ => q{loc}); | ||
| 7582 | my $repcount = 0; | ||
| 7583 | |||
| 7584 | |||
| 7585 | Parse::RecDescent::_trace(q{Trying terminal: [/after\\s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7586 | q{loc}, | ||
| 7587 | $tracelevel) | ||
| 7588 | if defined $::RD_TRACE; | ||
| 7589 | undef $lastsep; | ||
| 7590 | $expectation->is(q{})->at($text); | ||
| 7591 | |||
| 7592 | |||
| 7593 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:after\s)/) | ||
| 7594 | { | ||
| 7595 | $text = $lastsep . $text if defined $lastsep; | ||
| 7596 | $expectation->failed(); | ||
| 7597 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7598 | Parse::RecDescent::_tracefirst($text)) | ||
| 7599 | if defined $::RD_TRACE; | ||
| 7600 | |||
| 7601 | last; | ||
| 7602 | } | ||
| 7603 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7604 | substr($text,0,length($current_match),q{}); | ||
| 7605 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7606 | . $current_match . q{])}, | ||
| 7607 | Parse::RecDescent::_tracefirst($text)) | ||
| 7608 | if defined $::RD_TRACE; | ||
| 7609 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 7610 | |||
| 7611 | |||
| 7612 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 7613 | Parse::RecDescent::_tracefirst($text), | ||
| 7614 | q{loc}, | ||
| 7615 | $tracelevel) | ||
| 7616 | if defined $::RD_TRACE; | ||
| 7617 | |||
| 7618 | |||
| 7619 | $_tok = ($_noactions) ? 0 : do { "after" }; | ||
| 7620 | unless (defined $_tok) | ||
| 7621 | { | ||
| 7622 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 7623 | if defined $::RD_TRACE; | ||
| 7624 | last; | ||
| 7625 | } | ||
| 7626 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 7627 | . $_tok . q{])}, | ||
| 7628 | Parse::RecDescent::_tracefirst($text)) | ||
| 7629 | if defined $::RD_TRACE; | ||
| 7630 | push @item, $_tok; | ||
| 7631 | $item{__ACTION1__}=$_tok; | ||
| 7632 | |||
| 7633 | |||
| 7634 | Parse::RecDescent::_trace(q{>>Matched production: [/after\\s/]<<}, | ||
| 7635 | Parse::RecDescent::_tracefirst($text), | ||
| 7636 | q{loc}, | ||
| 7637 | $tracelevel) | ||
| 7638 | if defined $::RD_TRACE; | ||
| 7639 | |||
| 7640 | |||
| 7641 | |||
| 7642 | $_matched = 1; | ||
| 7643 | last; | ||
| 7644 | } | ||
| 7645 | |||
| 7646 | |||
| 7647 | while (!$_matched && !$commit) | ||
| 7648 | { | ||
| 7649 | |||
| 7650 | Parse::RecDescent::_trace(q{Trying production: [/before\\s/]}, | ||
| 7651 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7652 | q{loc}, | ||
| 7653 | $tracelevel) | ||
| 7654 | if defined $::RD_TRACE; | ||
| 7655 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 7656 | $text = $_[1]; | ||
| 7657 | my $_savetext; | ||
| 7658 | @item = (q{loc}); | ||
| 7659 | %item = (__RULE__ => q{loc}); | ||
| 7660 | my $repcount = 0; | ||
| 7661 | |||
| 7662 | |||
| 7663 | Parse::RecDescent::_trace(q{Trying terminal: [/before\\s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7664 | q{loc}, | ||
| 7665 | $tracelevel) | ||
| 7666 | if defined $::RD_TRACE; | ||
| 7667 | undef $lastsep; | ||
| 7668 | $expectation->is(q{})->at($text); | ||
| 7669 | |||
| 7670 | |||
| 7671 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:before\s)/) | ||
| 7672 | { | ||
| 7673 | $text = $lastsep . $text if defined $lastsep; | ||
| 7674 | $expectation->failed(); | ||
| 7675 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7676 | Parse::RecDescent::_tracefirst($text)) | ||
| 7677 | if defined $::RD_TRACE; | ||
| 7678 | |||
| 7679 | last; | ||
| 7680 | } | ||
| 7681 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7682 | substr($text,0,length($current_match),q{}); | ||
| 7683 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7684 | . $current_match . q{])}, | ||
| 7685 | Parse::RecDescent::_tracefirst($text)) | ||
| 7686 | if defined $::RD_TRACE; | ||
| 7687 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 7688 | |||
| 7689 | |||
| 7690 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 7691 | Parse::RecDescent::_tracefirst($text), | ||
| 7692 | q{loc}, | ||
| 7693 | $tracelevel) | ||
| 7694 | if defined $::RD_TRACE; | ||
| 7695 | |||
| 7696 | |||
| 7697 | $_tok = ($_noactions) ? 0 : do { "before" }; | ||
| 7698 | unless (defined $_tok) | ||
| 7699 | { | ||
| 7700 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 7701 | if defined $::RD_TRACE; | ||
| 7702 | last; | ||
| 7703 | } | ||
| 7704 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 7705 | . $_tok . q{])}, | ||
| 7706 | Parse::RecDescent::_tracefirst($text)) | ||
| 7707 | if defined $::RD_TRACE; | ||
| 7708 | push @item, $_tok; | ||
| 7709 | $item{__ACTION1__}=$_tok; | ||
| 7710 | |||
| 7711 | |||
| 7712 | Parse::RecDescent::_trace(q{>>Matched production: [/before\\s/]<<}, | ||
| 7713 | Parse::RecDescent::_tracefirst($text), | ||
| 7714 | q{loc}, | ||
| 7715 | $tracelevel) | ||
| 7716 | if defined $::RD_TRACE; | ||
| 7717 | |||
| 7718 | |||
| 7719 | |||
| 7720 | $_matched = 1; | ||
| 7721 | last; | ||
| 7722 | } | ||
| 7723 | |||
| 7724 | |||
| 7725 | while (!$_matched && !$commit) | ||
| 7726 | { | ||
| 7727 | |||
| 7728 | Parse::RecDescent::_trace(q{Trying production: [/(in)?to\\s/]}, | ||
| 7729 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7730 | q{loc}, | ||
| 7731 | $tracelevel) | ||
| 7732 | if defined $::RD_TRACE; | ||
| 7733 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 7734 | $text = $_[1]; | ||
| 7735 | my $_savetext; | ||
| 7736 | @item = (q{loc}); | ||
| 7737 | %item = (__RULE__ => q{loc}); | ||
| 7738 | my $repcount = 0; | ||
| 7739 | |||
| 7740 | |||
| 7741 | Parse::RecDescent::_trace(q{Trying terminal: [/(in)?to\\s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7742 | q{loc}, | ||
| 7743 | $tracelevel) | ||
| 7744 | if defined $::RD_TRACE; | ||
| 7745 | undef $lastsep; | ||
| 7746 | $expectation->is(q{})->at($text); | ||
| 7747 | |||
| 7748 | |||
| 7749 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(in)?to\s)/) | ||
| 7750 | { | ||
| 7751 | $text = $lastsep . $text if defined $lastsep; | ||
| 7752 | $expectation->failed(); | ||
| 7753 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7754 | Parse::RecDescent::_tracefirst($text)) | ||
| 7755 | if defined $::RD_TRACE; | ||
| 7756 | |||
| 7757 | last; | ||
| 7758 | } | ||
| 7759 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7760 | substr($text,0,length($current_match),q{}); | ||
| 7761 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7762 | . $current_match . q{])}, | ||
| 7763 | Parse::RecDescent::_tracefirst($text)) | ||
| 7764 | if defined $::RD_TRACE; | ||
| 7765 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 7766 | |||
| 7767 | |||
| 7768 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 7769 | Parse::RecDescent::_tracefirst($text), | ||
| 7770 | q{loc}, | ||
| 7771 | $tracelevel) | ||
| 7772 | if defined $::RD_TRACE; | ||
| 7773 | |||
| 7774 | |||
| 7775 | $_tok = ($_noactions) ? 0 : do { "into" }; | ||
| 7776 | unless (defined $_tok) | ||
| 7777 | { | ||
| 7778 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 7779 | if defined $::RD_TRACE; | ||
| 7780 | last; | ||
| 7781 | } | ||
| 7782 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 7783 | . $_tok . q{])}, | ||
| 7784 | Parse::RecDescent::_tracefirst($text)) | ||
| 7785 | if defined $::RD_TRACE; | ||
| 7786 | push @item, $_tok; | ||
| 7787 | $item{__ACTION1__}=$_tok; | ||
| 7788 | |||
| 7789 | |||
| 7790 | Parse::RecDescent::_trace(q{>>Matched production: [/(in)?to\\s/]<<}, | ||
| 7791 | Parse::RecDescent::_tracefirst($text), | ||
| 7792 | q{loc}, | ||
| 7793 | $tracelevel) | ||
| 7794 | if defined $::RD_TRACE; | ||
| 7795 | |||
| 7796 | |||
| 7797 | |||
| 7798 | $_matched = 1; | ||
| 7799 | last; | ||
| 7800 | } | ||
| 7801 | |||
| 7802 | |||
| 7803 | while (!$_matched && !$commit) | ||
| 7804 | { | ||
| 7805 | |||
| 7806 | Parse::RecDescent::_trace(q{Trying production: [/(append(ing)?|as\\s+(a\\s+)child(\\s+of)?)\\s/]}, | ||
| 7807 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7808 | q{loc}, | ||
| 7809 | $tracelevel) | ||
| 7810 | if defined $::RD_TRACE; | ||
| 7811 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 7812 | $text = $_[1]; | ||
| 7813 | my $_savetext; | ||
| 7814 | @item = (q{loc}); | ||
| 7815 | %item = (__RULE__ => q{loc}); | ||
| 7816 | my $repcount = 0; | ||
| 7817 | |||
| 7818 | |||
| 7819 | Parse::RecDescent::_trace(q{Trying terminal: [/(append(ing)?|as\\s+(a\\s+)child(\\s+of)?)\\s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7820 | q{loc}, | ||
| 7821 | $tracelevel) | ||
| 7822 | if defined $::RD_TRACE; | ||
| 7823 | undef $lastsep; | ||
| 7824 | $expectation->is(q{})->at($text); | ||
| 7825 | |||
| 7826 | |||
| 7827 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(append(ing)?|as\s+(a\s+)child(\s+of)?)\s)/) | ||
| 7828 | { | ||
| 7829 | $text = $lastsep . $text if defined $lastsep; | ||
| 7830 | $expectation->failed(); | ||
| 7831 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7832 | Parse::RecDescent::_tracefirst($text)) | ||
| 7833 | if defined $::RD_TRACE; | ||
| 7834 | |||
| 7835 | last; | ||
| 7836 | } | ||
| 7837 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7838 | substr($text,0,length($current_match),q{}); | ||
| 7839 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7840 | . $current_match . q{])}, | ||
| 7841 | Parse::RecDescent::_tracefirst($text)) | ||
| 7842 | if defined $::RD_TRACE; | ||
| 7843 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 7844 | |||
| 7845 | |||
| 7846 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 7847 | Parse::RecDescent::_tracefirst($text), | ||
| 7848 | q{loc}, | ||
| 7849 | $tracelevel) | ||
| 7850 | if defined $::RD_TRACE; | ||
| 7851 | |||
| 7852 | |||
| 7853 | $_tok = ($_noactions) ? 0 : do { "append" }; | ||
| 7854 | unless (defined $_tok) | ||
| 7855 | { | ||
| 7856 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 7857 | if defined $::RD_TRACE; | ||
| 7858 | last; | ||
| 7859 | } | ||
| 7860 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 7861 | . $_tok . q{])}, | ||
| 7862 | Parse::RecDescent::_tracefirst($text)) | ||
| 7863 | if defined $::RD_TRACE; | ||
| 7864 | push @item, $_tok; | ||
| 7865 | $item{__ACTION1__}=$_tok; | ||
| 7866 | |||
| 7867 | |||
| 7868 | Parse::RecDescent::_trace(q{>>Matched production: [/(append(ing)?|as\\s+(a\\s+)child(\\s+of)?)\\s/]<<}, | ||
| 7869 | Parse::RecDescent::_tracefirst($text), | ||
| 7870 | q{loc}, | ||
| 7871 | $tracelevel) | ||
| 7872 | if defined $::RD_TRACE; | ||
| 7873 | |||
| 7874 | |||
| 7875 | |||
| 7876 | $_matched = 1; | ||
| 7877 | last; | ||
| 7878 | } | ||
| 7879 | |||
| 7880 | |||
| 7881 | while (!$_matched && !$commit) | ||
| 7882 | { | ||
| 7883 | |||
| 7884 | Parse::RecDescent::_trace(q{Trying production: [/(prepend(ing)?|(as\\s+)(the\\s+)first(\\s+child(\\s+of)?)?)\\s/]}, | ||
| 7885 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7886 | q{loc}, | ||
| 7887 | $tracelevel) | ||
| 7888 | if defined $::RD_TRACE; | ||
| 7889 | my $thisprod = $thisrule->{"prods"}[4]; | ||
| 7890 | $text = $_[1]; | ||
| 7891 | my $_savetext; | ||
| 7892 | @item = (q{loc}); | ||
| 7893 | %item = (__RULE__ => q{loc}); | ||
| 7894 | my $repcount = 0; | ||
| 7895 | |||
| 7896 | |||
| 7897 | Parse::RecDescent::_trace(q{Trying terminal: [/(prepend(ing)?|(as\\s+)(the\\s+)first(\\s+child(\\s+of)?)?)\\s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7898 | q{loc}, | ||
| 7899 | $tracelevel) | ||
| 7900 | if defined $::RD_TRACE; | ||
| 7901 | undef $lastsep; | ||
| 7902 | $expectation->is(q{})->at($text); | ||
| 7903 | |||
| 7904 | |||
| 7905 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(prepend(ing)?|(as\s+)(the\s+)first(\s+child(\s+of)?)?)\s)/) | ||
| 7906 | { | ||
| 7907 | $text = $lastsep . $text if defined $lastsep; | ||
| 7908 | $expectation->failed(); | ||
| 7909 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7910 | Parse::RecDescent::_tracefirst($text)) | ||
| 7911 | if defined $::RD_TRACE; | ||
| 7912 | |||
| 7913 | last; | ||
| 7914 | } | ||
| 7915 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7916 | substr($text,0,length($current_match),q{}); | ||
| 7917 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7918 | . $current_match . q{])}, | ||
| 7919 | Parse::RecDescent::_tracefirst($text)) | ||
| 7920 | if defined $::RD_TRACE; | ||
| 7921 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 7922 | |||
| 7923 | |||
| 7924 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 7925 | Parse::RecDescent::_tracefirst($text), | ||
| 7926 | q{loc}, | ||
| 7927 | $tracelevel) | ||
| 7928 | if defined $::RD_TRACE; | ||
| 7929 | |||
| 7930 | |||
| 7931 | $_tok = ($_noactions) ? 0 : do { "prepend" }; | ||
| 7932 | unless (defined $_tok) | ||
| 7933 | { | ||
| 7934 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 7935 | if defined $::RD_TRACE; | ||
| 7936 | last; | ||
| 7937 | } | ||
| 7938 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 7939 | . $_tok . q{])}, | ||
| 7940 | Parse::RecDescent::_tracefirst($text)) | ||
| 7941 | if defined $::RD_TRACE; | ||
| 7942 | push @item, $_tok; | ||
| 7943 | $item{__ACTION1__}=$_tok; | ||
| 7944 | |||
| 7945 | |||
| 7946 | Parse::RecDescent::_trace(q{>>Matched production: [/(prepend(ing)?|(as\\s+)(the\\s+)first(\\s+child(\\s+of)?)?)\\s/]<<}, | ||
| 7947 | Parse::RecDescent::_tracefirst($text), | ||
| 7948 | q{loc}, | ||
| 7949 | $tracelevel) | ||
| 7950 | if defined $::RD_TRACE; | ||
| 7951 | |||
| 7952 | |||
| 7953 | |||
| 7954 | $_matched = 1; | ||
| 7955 | last; | ||
| 7956 | } | ||
| 7957 | |||
| 7958 | |||
| 7959 | while (!$_matched && !$commit) | ||
| 7960 | { | ||
| 7961 | |||
| 7962 | Parse::RecDescent::_trace(q{Trying production: [/(replace|instead( of)?)\\s/]}, | ||
| 7963 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 7964 | q{loc}, | ||
| 7965 | $tracelevel) | ||
| 7966 | if defined $::RD_TRACE; | ||
| 7967 | my $thisprod = $thisrule->{"prods"}[5]; | ||
| 7968 | $text = $_[1]; | ||
| 7969 | my $_savetext; | ||
| 7970 | @item = (q{loc}); | ||
| 7971 | %item = (__RULE__ => q{loc}); | ||
| 7972 | my $repcount = 0; | ||
| 7973 | |||
| 7974 | |||
| 7975 | Parse::RecDescent::_trace(q{Trying terminal: [/(replace|instead( of)?)\\s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 7976 | q{loc}, | ||
| 7977 | $tracelevel) | ||
| 7978 | if defined $::RD_TRACE; | ||
| 7979 | undef $lastsep; | ||
| 7980 | $expectation->is(q{})->at($text); | ||
| 7981 | |||
| 7982 | |||
| 7983 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(replace|instead( of)?)\s)/) | ||
| 7984 | { | ||
| 7985 | $text = $lastsep . $text if defined $lastsep; | ||
| 7986 | $expectation->failed(); | ||
| 7987 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 7988 | Parse::RecDescent::_tracefirst($text)) | ||
| 7989 | if defined $::RD_TRACE; | ||
| 7990 | |||
| 7991 | last; | ||
| 7992 | } | ||
| 7993 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 7994 | substr($text,0,length($current_match),q{}); | ||
| 7995 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 7996 | . $current_match . q{])}, | ||
| 7997 | Parse::RecDescent::_tracefirst($text)) | ||
| 7998 | if defined $::RD_TRACE; | ||
| 7999 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 8000 | |||
| 8001 | |||
| 8002 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 8003 | Parse::RecDescent::_tracefirst($text), | ||
| 8004 | q{loc}, | ||
| 8005 | $tracelevel) | ||
| 8006 | if defined $::RD_TRACE; | ||
| 8007 | |||
| 8008 | |||
| 8009 | $_tok = ($_noactions) ? 0 : do { "replace" }; | ||
| 8010 | unless (defined $_tok) | ||
| 8011 | { | ||
| 8012 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 8013 | if defined $::RD_TRACE; | ||
| 8014 | last; | ||
| 8015 | } | ||
| 8016 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 8017 | . $_tok . q{])}, | ||
| 8018 | Parse::RecDescent::_tracefirst($text)) | ||
| 8019 | if defined $::RD_TRACE; | ||
| 8020 | push @item, $_tok; | ||
| 8021 | $item{__ACTION1__}=$_tok; | ||
| 8022 | |||
| 8023 | |||
| 8024 | Parse::RecDescent::_trace(q{>>Matched production: [/(replace|instead( of)?)\\s/]<<}, | ||
| 8025 | Parse::RecDescent::_tracefirst($text), | ||
| 8026 | q{loc}, | ||
| 8027 | $tracelevel) | ||
| 8028 | if defined $::RD_TRACE; | ||
| 8029 | |||
| 8030 | |||
| 8031 | |||
| 8032 | $_matched = 1; | ||
| 8033 | last; | ||
| 8034 | } | ||
| 8035 | |||
| 8036 | |||
| 8037 | unless ( $_matched || defined($score) ) | ||
| 8038 | { | ||
| 8039 | |||
| 8040 | |||
| 8041 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 8042 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 8043 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8044 | q{loc}, | ||
| 8045 | $tracelevel) | ||
| 8046 | if defined $::RD_TRACE; | ||
| 8047 | return undef; | ||
| 8048 | } | ||
| 8049 | if (!defined($return) && defined($score)) | ||
| 8050 | { | ||
| 8051 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 8052 | q{loc}, | ||
| 8053 | $tracelevel) | ||
| 8054 | if defined $::RD_TRACE; | ||
| 8055 | $return = $score_return; | ||
| 8056 | } | ||
| 8057 | splice @{$thisparser->{errors}}, $err_at; | ||
| 8058 | $return = $item[$#item] unless defined $return; | ||
| 8059 | if (defined $::RD_TRACE) | ||
| 8060 | { | ||
| 8061 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 8062 | $return . q{])}, "", | ||
| 8063 | q{loc}, | ||
| 8064 | $tracelevel); | ||
| 8065 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 8066 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 8067 | Parse::RecDescent::_tracefirst($text), | ||
| 8068 | , q{loc}, | ||
| 8069 | $tracelevel) | ||
| 8070 | } | ||
| 8071 | $_[1] = $text; | ||
| 8072 | return $return; | ||
| 8073 | } | ||
| 8074 | |||
| 8075 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 8076 | sub Parse::RecDescent::XML::XSH2::Parser::local_var | ||
| 8077 | { | ||
| 8078 | my $thisparser = $_[0]; | ||
| 8079 | use vars q{$tracelevel}; | ||
| 8080 | local $tracelevel = ($tracelevel||0)+1; | ||
| 8081 | $ERRORS = 0; | ||
| 8082 | my $thisrule = $thisparser->{"rules"}{"local_var"}; | ||
| 8083 | |||
| 8084 | Parse::RecDescent::_trace(q{Trying rule: [local_var]}, | ||
| 8085 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8086 | q{local_var}, | ||
| 8087 | $tracelevel) | ||
| 8088 | if defined $::RD_TRACE; | ||
| 8089 | |||
| 8090 | |||
| 8091 | my $err_at = @{$thisparser->{errors}}; | ||
| 8092 | |||
| 8093 | my $score; | ||
| 8094 | my $score_return; | ||
| 8095 | my $_tok; | ||
| 8096 | my $return = undef; | ||
| 8097 | my $_matched=0; | ||
| 8098 | my $commit=0; | ||
| 8099 | my @item = (); | ||
| 8100 | my %item = (); | ||
| 8101 | my $repeating = $_[2]; | ||
| 8102 | my $_noactions = $_[3]; | ||
| 8103 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 8104 | my $_itempos = $_[5]; | ||
| 8105 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 8106 | my $text; | ||
| 8107 | my $lastsep; | ||
| 8108 | my $current_match; | ||
| 8109 | my $expectation = new Parse::RecDescent::Expectation(q{/(local|my)\\s/}); | ||
| 8110 | $expectation->at($_[1]); | ||
| 8111 | |||
| 8112 | my $thisoffset; | ||
| 8113 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 8114 | |||
| 8115 | my $thiscolumn; | ||
| 8116 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 8117 | |||
| 8118 | my $thisline; | ||
| 8119 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 8120 | |||
| 8121 | |||
| 8122 | |||
| 8123 | while (!$_matched && !$commit) | ||
| 8124 | { | ||
| 8125 | |||
| 8126 | Parse::RecDescent::_trace(q{Trying production: [/(local|my)\\s/ variable]}, | ||
| 8127 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8128 | q{local_var}, | ||
| 8129 | $tracelevel) | ||
| 8130 | if defined $::RD_TRACE; | ||
| 8131 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 8132 | $text = $_[1]; | ||
| 8133 | my $_savetext; | ||
| 8134 | @item = (q{local_var}); | ||
| 8135 | %item = (__RULE__ => q{local_var}); | ||
| 8136 | my $repcount = 0; | ||
| 8137 | |||
| 8138 | |||
| 8139 | Parse::RecDescent::_trace(q{Trying repeated subrule: [/(local|my)\\s/]}, | ||
| 8140 | Parse::RecDescent::_tracefirst($text), | ||
| 8141 | q{local_var}, | ||
| 8142 | $tracelevel) | ||
| 8143 | if defined $::RD_TRACE; | ||
| 8144 | $expectation->is(q{})->at($text); | ||
| 8145 | |||
| 8146 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_1_of_rule_local_var, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 8147 | { | ||
| 8148 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [/(local|my)\\s/]>>}, | ||
| 8149 | Parse::RecDescent::_tracefirst($text), | ||
| 8150 | q{local_var}, | ||
| 8151 | $tracelevel) | ||
| 8152 | if defined $::RD_TRACE; | ||
| 8153 | last; | ||
| 8154 | } | ||
| 8155 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [_alternation_1_of_production_1_of_rule_local_var]<< (} | ||
| 8156 | . @$_tok . q{ times)}, | ||
| 8157 | |||
| 8158 | Parse::RecDescent::_tracefirst($text), | ||
| 8159 | q{local_var}, | ||
| 8160 | $tracelevel) | ||
| 8161 | if defined $::RD_TRACE; | ||
| 8162 | $item{q{_alternation_1_of_production_1_of_rule_local_var(?)}} = $_tok; | ||
| 8163 | push @item, $_tok; | ||
| 8164 | |||
| 8165 | |||
| 8166 | |||
| 8167 | Parse::RecDescent::_trace(q{Trying subrule: [variable]}, | ||
| 8168 | Parse::RecDescent::_tracefirst($text), | ||
| 8169 | q{local_var}, | ||
| 8170 | $tracelevel) | ||
| 8171 | if defined $::RD_TRACE; | ||
| 8172 | if (1) { no strict qw{refs}; | ||
| 8173 | $expectation->is(q{variable})->at($text); | ||
| 8174 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::variable($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 8175 | { | ||
| 8176 | |||
| 8177 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [variable]>>}, | ||
| 8178 | Parse::RecDescent::_tracefirst($text), | ||
| 8179 | q{local_var}, | ||
| 8180 | $tracelevel) | ||
| 8181 | if defined $::RD_TRACE; | ||
| 8182 | $expectation->failed(); | ||
| 8183 | last; | ||
| 8184 | } | ||
| 8185 | Parse::RecDescent::_trace(q{>>Matched subrule: [variable]<< (return value: [} | ||
| 8186 | . $_tok . q{]}, | ||
| 8187 | |||
| 8188 | Parse::RecDescent::_tracefirst($text), | ||
| 8189 | q{local_var}, | ||
| 8190 | $tracelevel) | ||
| 8191 | if defined $::RD_TRACE; | ||
| 8192 | $item{q{variable}} = $_tok; | ||
| 8193 | push @item, $_tok; | ||
| 8194 | |||
| 8195 | } | ||
| 8196 | |||
| 8197 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 8198 | Parse::RecDescent::_tracefirst($text), | ||
| 8199 | q{local_var}, | ||
| 8200 | $tracelevel) | ||
| 8201 | if defined $::RD_TRACE; | ||
| 8202 | |||
| 8203 | |||
| 8204 | $_tok = ($_noactions) ? 0 : do { [$item[2],@{$item[1]}] }; | ||
| 8205 | unless (defined $_tok) | ||
| 8206 | { | ||
| 8207 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 8208 | if defined $::RD_TRACE; | ||
| 8209 | last; | ||
| 8210 | } | ||
| 8211 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 8212 | . $_tok . q{])}, | ||
| 8213 | Parse::RecDescent::_tracefirst($text)) | ||
| 8214 | if defined $::RD_TRACE; | ||
| 8215 | push @item, $_tok; | ||
| 8216 | $item{__ACTION1__}=$_tok; | ||
| 8217 | |||
| 8218 | |||
| 8219 | Parse::RecDescent::_trace(q{>>Matched production: [/(local|my)\\s/ variable]<<}, | ||
| 8220 | Parse::RecDescent::_tracefirst($text), | ||
| 8221 | q{local_var}, | ||
| 8222 | $tracelevel) | ||
| 8223 | if defined $::RD_TRACE; | ||
| 8224 | |||
| 8225 | |||
| 8226 | |||
| 8227 | $_matched = 1; | ||
| 8228 | last; | ||
| 8229 | } | ||
| 8230 | |||
| 8231 | |||
| 8232 | unless ( $_matched || defined($score) ) | ||
| 8233 | { | ||
| 8234 | |||
| 8235 | |||
| 8236 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 8237 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 8238 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8239 | q{local_var}, | ||
| 8240 | $tracelevel) | ||
| 8241 | if defined $::RD_TRACE; | ||
| 8242 | return undef; | ||
| 8243 | } | ||
| 8244 | if (!defined($return) && defined($score)) | ||
| 8245 | { | ||
| 8246 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 8247 | q{local_var}, | ||
| 8248 | $tracelevel) | ||
| 8249 | if defined $::RD_TRACE; | ||
| 8250 | $return = $score_return; | ||
| 8251 | } | ||
| 8252 | splice @{$thisparser->{errors}}, $err_at; | ||
| 8253 | $return = $item[$#item] unless defined $return; | ||
| 8254 | if (defined $::RD_TRACE) | ||
| 8255 | { | ||
| 8256 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 8257 | $return . q{])}, "", | ||
| 8258 | q{local_var}, | ||
| 8259 | $tracelevel); | ||
| 8260 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 8261 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 8262 | Parse::RecDescent::_tracefirst($text), | ||
| 8263 | , q{local_var}, | ||
| 8264 | $tracelevel) | ||
| 8265 | } | ||
| 8266 | $_[1] = $text; | ||
| 8267 | return $return; | ||
| 8268 | } | ||
| 8269 | |||
| 8270 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 8271 | sub Parse::RecDescent::XML::XSH2::Parser::local_var_in | ||
| 8272 | { | ||
| 8273 | my $thisparser = $_[0]; | ||
| 8274 | use vars q{$tracelevel}; | ||
| 8275 | local $tracelevel = ($tracelevel||0)+1; | ||
| 8276 | $ERRORS = 0; | ||
| 8277 | my $thisrule = $thisparser->{"rules"}{"local_var_in"}; | ||
| 8278 | |||
| 8279 | Parse::RecDescent::_trace(q{Trying rule: [local_var_in]}, | ||
| 8280 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8281 | q{local_var_in}, | ||
| 8282 | $tracelevel) | ||
| 8283 | if defined $::RD_TRACE; | ||
| 8284 | |||
| 8285 | |||
| 8286 | my $err_at = @{$thisparser->{errors}}; | ||
| 8287 | |||
| 8288 | my $score; | ||
| 8289 | my $score_return; | ||
| 8290 | my $_tok; | ||
| 8291 | my $return = undef; | ||
| 8292 | my $_matched=0; | ||
| 8293 | my $commit=0; | ||
| 8294 | my @item = (); | ||
| 8295 | my %item = (); | ||
| 8296 | my $repeating = $_[2]; | ||
| 8297 | my $_noactions = $_[3]; | ||
| 8298 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 8299 | my $_itempos = $_[5]; | ||
| 8300 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 8301 | my $text; | ||
| 8302 | my $lastsep; | ||
| 8303 | my $current_match; | ||
| 8304 | my $expectation = new Parse::RecDescent::Expectation(q{local_var}); | ||
| 8305 | $expectation->at($_[1]); | ||
| 8306 | |||
| 8307 | my $thisoffset; | ||
| 8308 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 8309 | |||
| 8310 | my $thiscolumn; | ||
| 8311 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 8312 | |||
| 8313 | my $thisline; | ||
| 8314 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 8315 | |||
| 8316 | |||
| 8317 | |||
| 8318 | while (!$_matched && !$commit) | ||
| 8319 | { | ||
| 8320 | |||
| 8321 | Parse::RecDescent::_trace(q{Trying production: [local_var 'in']}, | ||
| 8322 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8323 | q{local_var_in}, | ||
| 8324 | $tracelevel) | ||
| 8325 | if defined $::RD_TRACE; | ||
| 8326 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 8327 | $text = $_[1]; | ||
| 8328 | my $_savetext; | ||
| 8329 | @item = (q{local_var_in}); | ||
| 8330 | %item = (__RULE__ => q{local_var_in}); | ||
| 8331 | my $repcount = 0; | ||
| 8332 | |||
| 8333 | |||
| 8334 | Parse::RecDescent::_trace(q{Trying subrule: [local_var]}, | ||
| 8335 | Parse::RecDescent::_tracefirst($text), | ||
| 8336 | q{local_var_in}, | ||
| 8337 | $tracelevel) | ||
| 8338 | if defined $::RD_TRACE; | ||
| 8339 | if (1) { no strict qw{refs}; | ||
| 8340 | $expectation->is(q{})->at($text); | ||
| 8341 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::local_var($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 8342 | { | ||
| 8343 | |||
| 8344 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [local_var]>>}, | ||
| 8345 | Parse::RecDescent::_tracefirst($text), | ||
| 8346 | q{local_var_in}, | ||
| 8347 | $tracelevel) | ||
| 8348 | if defined $::RD_TRACE; | ||
| 8349 | $expectation->failed(); | ||
| 8350 | last; | ||
| 8351 | } | ||
| 8352 | Parse::RecDescent::_trace(q{>>Matched subrule: [local_var]<< (return value: [} | ||
| 8353 | . $_tok . q{]}, | ||
| 8354 | |||
| 8355 | Parse::RecDescent::_tracefirst($text), | ||
| 8356 | q{local_var_in}, | ||
| 8357 | $tracelevel) | ||
| 8358 | if defined $::RD_TRACE; | ||
| 8359 | $item{q{local_var}} = $_tok; | ||
| 8360 | push @item, $_tok; | ||
| 8361 | |||
| 8362 | } | ||
| 8363 | |||
| 8364 | Parse::RecDescent::_trace(q{Trying terminal: ['in']}, | ||
| 8365 | Parse::RecDescent::_tracefirst($text), | ||
| 8366 | q{local_var_in}, | ||
| 8367 | $tracelevel) | ||
| 8368 | if defined $::RD_TRACE; | ||
| 8369 | undef $lastsep; | ||
| 8370 | $expectation->is(q{'in'})->at($text); | ||
| 8371 | |||
| 8372 | |||
| 8373 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Ain/) | ||
| 8374 | { | ||
| 8375 | $text = $lastsep . $text if defined $lastsep; | ||
| 8376 | |||
| 8377 | $expectation->failed(); | ||
| 8378 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 8379 | Parse::RecDescent::_tracefirst($text)) | ||
| 8380 | if defined $::RD_TRACE; | ||
| 8381 | last; | ||
| 8382 | } | ||
| 8383 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 8384 | substr($text,0,length($current_match),q{}); | ||
| 8385 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 8386 | . $current_match . q{])}, | ||
| 8387 | Parse::RecDescent::_tracefirst($text)) | ||
| 8388 | if defined $::RD_TRACE; | ||
| 8389 | push @item, $item{__STRING1__}=$current_match; | ||
| 8390 | |||
| 8391 | |||
| 8392 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 8393 | Parse::RecDescent::_tracefirst($text), | ||
| 8394 | q{local_var_in}, | ||
| 8395 | $tracelevel) | ||
| 8396 | if defined $::RD_TRACE; | ||
| 8397 | |||
| 8398 | |||
| 8399 | $_tok = ($_noactions) ? 0 : do { $item[1] }; | ||
| 8400 | unless (defined $_tok) | ||
| 8401 | { | ||
| 8402 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 8403 | if defined $::RD_TRACE; | ||
| 8404 | last; | ||
| 8405 | } | ||
| 8406 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 8407 | . $_tok . q{])}, | ||
| 8408 | Parse::RecDescent::_tracefirst($text)) | ||
| 8409 | if defined $::RD_TRACE; | ||
| 8410 | push @item, $_tok; | ||
| 8411 | $item{__ACTION1__}=$_tok; | ||
| 8412 | |||
| 8413 | |||
| 8414 | Parse::RecDescent::_trace(q{>>Matched production: [local_var 'in']<<}, | ||
| 8415 | Parse::RecDescent::_tracefirst($text), | ||
| 8416 | q{local_var_in}, | ||
| 8417 | $tracelevel) | ||
| 8418 | if defined $::RD_TRACE; | ||
| 8419 | |||
| 8420 | |||
| 8421 | |||
| 8422 | $_matched = 1; | ||
| 8423 | last; | ||
| 8424 | } | ||
| 8425 | |||
| 8426 | |||
| 8427 | unless ( $_matched || defined($score) ) | ||
| 8428 | { | ||
| 8429 | |||
| 8430 | |||
| 8431 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 8432 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 8433 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8434 | q{local_var_in}, | ||
| 8435 | $tracelevel) | ||
| 8436 | if defined $::RD_TRACE; | ||
| 8437 | return undef; | ||
| 8438 | } | ||
| 8439 | if (!defined($return) && defined($score)) | ||
| 8440 | { | ||
| 8441 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 8442 | q{local_var_in}, | ||
| 8443 | $tracelevel) | ||
| 8444 | if defined $::RD_TRACE; | ||
| 8445 | $return = $score_return; | ||
| 8446 | } | ||
| 8447 | splice @{$thisparser->{errors}}, $err_at; | ||
| 8448 | $return = $item[$#item] unless defined $return; | ||
| 8449 | if (defined $::RD_TRACE) | ||
| 8450 | { | ||
| 8451 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 8452 | $return . q{])}, "", | ||
| 8453 | q{local_var_in}, | ||
| 8454 | $tracelevel); | ||
| 8455 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 8456 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 8457 | Parse::RecDescent::_tracefirst($text), | ||
| 8458 | , q{local_var_in}, | ||
| 8459 | $tracelevel) | ||
| 8460 | } | ||
| 8461 | $_[1] = $text; | ||
| 8462 | return $return; | ||
| 8463 | } | ||
| 8464 | |||
| 8465 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 8466 | sub Parse::RecDescent::XML::XSH2::Parser::loose_exp | ||
| 8467 | { | ||
| 8468 | my $thisparser = $_[0]; | ||
| 8469 | use vars q{$tracelevel}; | ||
| 8470 | local $tracelevel = ($tracelevel||0)+1; | ||
| 8471 | $ERRORS = 0; | ||
| 8472 | my $thisrule = $thisparser->{"rules"}{"loose_exp"}; | ||
| 8473 | |||
| 8474 | Parse::RecDescent::_trace(q{Trying rule: [loose_exp]}, | ||
| 8475 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8476 | q{loose_exp}, | ||
| 8477 | $tracelevel) | ||
| 8478 | if defined $::RD_TRACE; | ||
| 8479 | |||
| 8480 | |||
| 8481 | my $err_at = @{$thisparser->{errors}}; | ||
| 8482 | |||
| 8483 | my $score; | ||
| 8484 | my $score_return; | ||
| 8485 | my $_tok; | ||
| 8486 | my $return = undef; | ||
| 8487 | my $_matched=0; | ||
| 8488 | my $commit=0; | ||
| 8489 | my @item = (); | ||
| 8490 | my %item = (); | ||
| 8491 | my $repeating = $_[2]; | ||
| 8492 | my $_noactions = $_[3]; | ||
| 8493 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 8494 | my $_itempos = $_[5]; | ||
| 8495 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 8496 | my $text; | ||
| 8497 | my $lastsep; | ||
| 8498 | my $current_match; | ||
| 8499 | my $expectation = new Parse::RecDescent::Expectation(q{/^(?=\{)/, or '&', or /^(?=<<)/, or xpinter}); | ||
| 8500 | $expectation->at($_[1]); | ||
| 8501 | |||
| 8502 | my $thisoffset; | ||
| 8503 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 8504 | |||
| 8505 | my $thiscolumn; | ||
| 8506 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 8507 | |||
| 8508 | my $thisline; | ||
| 8509 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 8510 | |||
| 8511 | |||
| 8512 | |||
| 8513 | while (!$_matched && !$commit) | ||
| 8514 | { | ||
| 8515 | |||
| 8516 | Parse::RecDescent::_trace(q{Trying production: [/^(?=\{)/ perl_block]}, | ||
| 8517 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8518 | q{loose_exp}, | ||
| 8519 | $tracelevel) | ||
| 8520 | if defined $::RD_TRACE; | ||
| 8521 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 8522 | $text = $_[1]; | ||
| 8523 | my $_savetext; | ||
| 8524 | @item = (q{loose_exp}); | ||
| 8525 | %item = (__RULE__ => q{loose_exp}); | ||
| 8526 | my $repcount = 0; | ||
| 8527 | |||
| 8528 | |||
| 8529 | Parse::RecDescent::_trace(q{Trying terminal: [/^(?=\{)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 8530 | q{loose_exp}, | ||
| 8531 | $tracelevel) | ||
| 8532 | if defined $::RD_TRACE; | ||
| 8533 | undef $lastsep; | ||
| 8534 | $expectation->is(q{})->at($text); | ||
| 8535 | |||
| 8536 | |||
| 8537 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^(?={))/) | ||
| 8538 | { | ||
| 8539 | $text = $lastsep . $text if defined $lastsep; | ||
| 8540 | $expectation->failed(); | ||
| 8541 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 8542 | Parse::RecDescent::_tracefirst($text)) | ||
| 8543 | if defined $::RD_TRACE; | ||
| 8544 | |||
| 8545 | last; | ||
| 8546 | } | ||
| 8547 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 8548 | substr($text,0,length($current_match),q{}); | ||
| 8549 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 8550 | . $current_match . q{])}, | ||
| 8551 | Parse::RecDescent::_tracefirst($text)) | ||
| 8552 | if defined $::RD_TRACE; | ||
| 8553 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 8554 | |||
| 8555 | |||
| 8556 | Parse::RecDescent::_trace(q{Trying subrule: [perl_block]}, | ||
| 8557 | Parse::RecDescent::_tracefirst($text), | ||
| 8558 | q{loose_exp}, | ||
| 8559 | $tracelevel) | ||
| 8560 | if defined $::RD_TRACE; | ||
| 8561 | if (1) { no strict qw{refs}; | ||
| 8562 | $expectation->is(q{perl_block})->at($text); | ||
| 8563 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::perl_block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 8564 | { | ||
| 8565 | |||
| 8566 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [perl_block]>>}, | ||
| 8567 | Parse::RecDescent::_tracefirst($text), | ||
| 8568 | q{loose_exp}, | ||
| 8569 | $tracelevel) | ||
| 8570 | if defined $::RD_TRACE; | ||
| 8571 | $expectation->failed(); | ||
| 8572 | last; | ||
| 8573 | } | ||
| 8574 | Parse::RecDescent::_trace(q{>>Matched subrule: [perl_block]<< (return value: [} | ||
| 8575 | . $_tok . q{]}, | ||
| 8576 | |||
| 8577 | Parse::RecDescent::_tracefirst($text), | ||
| 8578 | q{loose_exp}, | ||
| 8579 | $tracelevel) | ||
| 8580 | if defined $::RD_TRACE; | ||
| 8581 | $item{q{perl_block}} = $_tok; | ||
| 8582 | push @item, $_tok; | ||
| 8583 | |||
| 8584 | } | ||
| 8585 | |||
| 8586 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 8587 | Parse::RecDescent::_tracefirst($text), | ||
| 8588 | q{loose_exp}, | ||
| 8589 | $tracelevel) | ||
| 8590 | if defined $::RD_TRACE; | ||
| 8591 | |||
| 8592 | |||
| 8593 | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||
| 8594 | unless (defined $_tok) | ||
| 8595 | { | ||
| 8596 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 8597 | if defined $::RD_TRACE; | ||
| 8598 | last; | ||
| 8599 | } | ||
| 8600 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 8601 | . $_tok . q{])}, | ||
| 8602 | Parse::RecDescent::_tracefirst($text)) | ||
| 8603 | if defined $::RD_TRACE; | ||
| 8604 | push @item, $_tok; | ||
| 8605 | $item{__ACTION1__}=$_tok; | ||
| 8606 | |||
| 8607 | |||
| 8608 | Parse::RecDescent::_trace(q{>>Matched production: [/^(?=\{)/ perl_block]<<}, | ||
| 8609 | Parse::RecDescent::_tracefirst($text), | ||
| 8610 | q{loose_exp}, | ||
| 8611 | $tracelevel) | ||
| 8612 | if defined $::RD_TRACE; | ||
| 8613 | |||
| 8614 | |||
| 8615 | |||
| 8616 | $_matched = 1; | ||
| 8617 | last; | ||
| 8618 | } | ||
| 8619 | |||
| 8620 | |||
| 8621 | while (!$_matched && !$commit) | ||
| 8622 | { | ||
| 8623 | |||
| 8624 | Parse::RecDescent::_trace(q{Trying production: ['&' block]}, | ||
| 8625 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8626 | q{loose_exp}, | ||
| 8627 | $tracelevel) | ||
| 8628 | if defined $::RD_TRACE; | ||
| 8629 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 8630 | $text = $_[1]; | ||
| 8631 | my $_savetext; | ||
| 8632 | @item = (q{loose_exp}); | ||
| 8633 | %item = (__RULE__ => q{loose_exp}); | ||
| 8634 | my $repcount = 0; | ||
| 8635 | |||
| 8636 | |||
| 8637 | Parse::RecDescent::_trace(q{Trying terminal: ['&']}, | ||
| 8638 | Parse::RecDescent::_tracefirst($text), | ||
| 8639 | q{loose_exp}, | ||
| 8640 | $tracelevel) | ||
| 8641 | if defined $::RD_TRACE; | ||
| 8642 | undef $lastsep; | ||
| 8643 | $expectation->is(q{})->at($text); | ||
| 8644 | |||
| 8645 | |||
| 8646 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\&/) | ||
| 8647 | { | ||
| 8648 | $text = $lastsep . $text if defined $lastsep; | ||
| 8649 | |||
| 8650 | $expectation->failed(); | ||
| 8651 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 8652 | Parse::RecDescent::_tracefirst($text)) | ||
| 8653 | if defined $::RD_TRACE; | ||
| 8654 | last; | ||
| 8655 | } | ||
| 8656 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 8657 | substr($text,0,length($current_match),q{}); | ||
| 8658 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 8659 | . $current_match . q{])}, | ||
| 8660 | Parse::RecDescent::_tracefirst($text)) | ||
| 8661 | if defined $::RD_TRACE; | ||
| 8662 | push @item, $item{__STRING1__}=$current_match; | ||
| 8663 | |||
| 8664 | |||
| 8665 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 8666 | Parse::RecDescent::_tracefirst($text), | ||
| 8667 | q{loose_exp}, | ||
| 8668 | $tracelevel) | ||
| 8669 | if defined $::RD_TRACE; | ||
| 8670 | if (1) { no strict qw{refs}; | ||
| 8671 | $expectation->is(q{block})->at($text); | ||
| 8672 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 8673 | { | ||
| 8674 | |||
| 8675 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 8676 | Parse::RecDescent::_tracefirst($text), | ||
| 8677 | q{loose_exp}, | ||
| 8678 | $tracelevel) | ||
| 8679 | if defined $::RD_TRACE; | ||
| 8680 | $expectation->failed(); | ||
| 8681 | last; | ||
| 8682 | } | ||
| 8683 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 8684 | . $_tok . q{]}, | ||
| 8685 | |||
| 8686 | Parse::RecDescent::_tracefirst($text), | ||
| 8687 | q{loose_exp}, | ||
| 8688 | $tracelevel) | ||
| 8689 | if defined $::RD_TRACE; | ||
| 8690 | $item{q{block}} = $_tok; | ||
| 8691 | push @item, $_tok; | ||
| 8692 | |||
| 8693 | } | ||
| 8694 | |||
| 8695 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 8696 | Parse::RecDescent::_tracefirst($text), | ||
| 8697 | q{loose_exp}, | ||
| 8698 | $tracelevel) | ||
| 8699 | if defined $::RD_TRACE; | ||
| 8700 | |||
| 8701 | |||
| 8702 | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||
| 8703 | unless (defined $_tok) | ||
| 8704 | { | ||
| 8705 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 8706 | if defined $::RD_TRACE; | ||
| 8707 | last; | ||
| 8708 | } | ||
| 8709 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 8710 | . $_tok . q{])}, | ||
| 8711 | Parse::RecDescent::_tracefirst($text)) | ||
| 8712 | if defined $::RD_TRACE; | ||
| 8713 | push @item, $_tok; | ||
| 8714 | $item{__ACTION1__}=$_tok; | ||
| 8715 | |||
| 8716 | |||
| 8717 | Parse::RecDescent::_trace(q{>>Matched production: ['&' block]<<}, | ||
| 8718 | Parse::RecDescent::_tracefirst($text), | ||
| 8719 | q{loose_exp}, | ||
| 8720 | $tracelevel) | ||
| 8721 | if defined $::RD_TRACE; | ||
| 8722 | |||
| 8723 | |||
| 8724 | |||
| 8725 | $_matched = 1; | ||
| 8726 | last; | ||
| 8727 | } | ||
| 8728 | |||
| 8729 | |||
| 8730 | while (!$_matched && !$commit) | ||
| 8731 | { | ||
| 8732 | |||
| 8733 | Parse::RecDescent::_trace(q{Trying production: [/^(?=<<)/ inline_doc]}, | ||
| 8734 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8735 | q{loose_exp}, | ||
| 8736 | $tracelevel) | ||
| 8737 | if defined $::RD_TRACE; | ||
| 8738 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 8739 | $text = $_[1]; | ||
| 8740 | my $_savetext; | ||
| 8741 | @item = (q{loose_exp}); | ||
| 8742 | %item = (__RULE__ => q{loose_exp}); | ||
| 8743 | my $repcount = 0; | ||
| 8744 | |||
| 8745 | |||
| 8746 | Parse::RecDescent::_trace(q{Trying terminal: [/^(?=<<)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 8747 | q{loose_exp}, | ||
| 8748 | $tracelevel) | ||
| 8749 | if defined $::RD_TRACE; | ||
| 8750 | undef $lastsep; | ||
| 8751 | $expectation->is(q{})->at($text); | ||
| 8752 | |||
| 8753 | |||
| 8754 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:^(?=<<))/) | ||
| 8755 | { | ||
| 8756 | $text = $lastsep . $text if defined $lastsep; | ||
| 8757 | $expectation->failed(); | ||
| 8758 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 8759 | Parse::RecDescent::_tracefirst($text)) | ||
| 8760 | if defined $::RD_TRACE; | ||
| 8761 | |||
| 8762 | last; | ||
| 8763 | } | ||
| 8764 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 8765 | substr($text,0,length($current_match),q{}); | ||
| 8766 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 8767 | . $current_match . q{])}, | ||
| 8768 | Parse::RecDescent::_tracefirst($text)) | ||
| 8769 | if defined $::RD_TRACE; | ||
| 8770 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 8771 | |||
| 8772 | |||
| 8773 | Parse::RecDescent::_trace(q{Trying subrule: [inline_doc]}, | ||
| 8774 | Parse::RecDescent::_tracefirst($text), | ||
| 8775 | q{loose_exp}, | ||
| 8776 | $tracelevel) | ||
| 8777 | if defined $::RD_TRACE; | ||
| 8778 | if (1) { no strict qw{refs}; | ||
| 8779 | $expectation->is(q{inline_doc})->at($text); | ||
| 8780 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::inline_doc($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 8781 | { | ||
| 8782 | |||
| 8783 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [inline_doc]>>}, | ||
| 8784 | Parse::RecDescent::_tracefirst($text), | ||
| 8785 | q{loose_exp}, | ||
| 8786 | $tracelevel) | ||
| 8787 | if defined $::RD_TRACE; | ||
| 8788 | $expectation->failed(); | ||
| 8789 | last; | ||
| 8790 | } | ||
| 8791 | Parse::RecDescent::_trace(q{>>Matched subrule: [inline_doc]<< (return value: [} | ||
| 8792 | . $_tok . q{]}, | ||
| 8793 | |||
| 8794 | Parse::RecDescent::_tracefirst($text), | ||
| 8795 | q{loose_exp}, | ||
| 8796 | $tracelevel) | ||
| 8797 | if defined $::RD_TRACE; | ||
| 8798 | $item{q{inline_doc}} = $_tok; | ||
| 8799 | push @item, $_tok; | ||
| 8800 | |||
| 8801 | } | ||
| 8802 | |||
| 8803 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 8804 | Parse::RecDescent::_tracefirst($text), | ||
| 8805 | q{loose_exp}, | ||
| 8806 | $tracelevel) | ||
| 8807 | if defined $::RD_TRACE; | ||
| 8808 | |||
| 8809 | |||
| 8810 | $_tok = ($_noactions) ? 0 : do { $item[2] }; | ||
| 8811 | unless (defined $_tok) | ||
| 8812 | { | ||
| 8813 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 8814 | if defined $::RD_TRACE; | ||
| 8815 | last; | ||
| 8816 | } | ||
| 8817 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 8818 | . $_tok . q{])}, | ||
| 8819 | Parse::RecDescent::_tracefirst($text)) | ||
| 8820 | if defined $::RD_TRACE; | ||
| 8821 | push @item, $_tok; | ||
| 8822 | $item{__ACTION1__}=$_tok; | ||
| 8823 | |||
| 8824 | |||
| 8825 | Parse::RecDescent::_trace(q{>>Matched production: [/^(?=<<)/ inline_doc]<<}, | ||
| 8826 | Parse::RecDescent::_tracefirst($text), | ||
| 8827 | q{loose_exp}, | ||
| 8828 | $tracelevel) | ||
| 8829 | if defined $::RD_TRACE; | ||
| 8830 | |||
| 8831 | |||
| 8832 | |||
| 8833 | $_matched = 1; | ||
| 8834 | last; | ||
| 8835 | } | ||
| 8836 | |||
| 8837 | |||
| 8838 | while (!$_matched && !$commit) | ||
| 8839 | { | ||
| 8840 | |||
| 8841 | Parse::RecDescent::_trace(q{Trying production: [xpinter]}, | ||
| 8842 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8843 | q{loose_exp}, | ||
| 8844 | $tracelevel) | ||
| 8845 | if defined $::RD_TRACE; | ||
| 8846 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 8847 | $text = $_[1]; | ||
| 8848 | my $_savetext; | ||
| 8849 | @item = (q{loose_exp}); | ||
| 8850 | %item = (__RULE__ => q{loose_exp}); | ||
| 8851 | my $repcount = 0; | ||
| 8852 | |||
| 8853 | |||
| 8854 | Parse::RecDescent::_trace(q{Trying subrule: [xpinter]}, | ||
| 8855 | Parse::RecDescent::_tracefirst($text), | ||
| 8856 | q{loose_exp}, | ||
| 8857 | $tracelevel) | ||
| 8858 | if defined $::RD_TRACE; | ||
| 8859 | if (1) { no strict qw{refs}; | ||
| 8860 | $expectation->is(q{})->at($text); | ||
| 8861 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpinter($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 8862 | { | ||
| 8863 | |||
| 8864 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpinter]>>}, | ||
| 8865 | Parse::RecDescent::_tracefirst($text), | ||
| 8866 | q{loose_exp}, | ||
| 8867 | $tracelevel) | ||
| 8868 | if defined $::RD_TRACE; | ||
| 8869 | $expectation->failed(); | ||
| 8870 | last; | ||
| 8871 | } | ||
| 8872 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpinter]<< (return value: [} | ||
| 8873 | . $_tok . q{]}, | ||
| 8874 | |||
| 8875 | Parse::RecDescent::_tracefirst($text), | ||
| 8876 | q{loose_exp}, | ||
| 8877 | $tracelevel) | ||
| 8878 | if defined $::RD_TRACE; | ||
| 8879 | $item{q{xpinter}} = $_tok; | ||
| 8880 | push @item, $_tok; | ||
| 8881 | |||
| 8882 | } | ||
| 8883 | |||
| 8884 | Parse::RecDescent::_trace(q{>>Matched production: [xpinter]<<}, | ||
| 8885 | Parse::RecDescent::_tracefirst($text), | ||
| 8886 | q{loose_exp}, | ||
| 8887 | $tracelevel) | ||
| 8888 | if defined $::RD_TRACE; | ||
| 8889 | |||
| 8890 | |||
| 8891 | |||
| 8892 | $_matched = 1; | ||
| 8893 | last; | ||
| 8894 | } | ||
| 8895 | |||
| 8896 | |||
| 8897 | unless ( $_matched || defined($score) ) | ||
| 8898 | { | ||
| 8899 | |||
| 8900 | |||
| 8901 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 8902 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 8903 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8904 | q{loose_exp}, | ||
| 8905 | $tracelevel) | ||
| 8906 | if defined $::RD_TRACE; | ||
| 8907 | return undef; | ||
| 8908 | } | ||
| 8909 | if (!defined($return) && defined($score)) | ||
| 8910 | { | ||
| 8911 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 8912 | q{loose_exp}, | ||
| 8913 | $tracelevel) | ||
| 8914 | if defined $::RD_TRACE; | ||
| 8915 | $return = $score_return; | ||
| 8916 | } | ||
| 8917 | splice @{$thisparser->{errors}}, $err_at; | ||
| 8918 | $return = $item[$#item] unless defined $return; | ||
| 8919 | if (defined $::RD_TRACE) | ||
| 8920 | { | ||
| 8921 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 8922 | $return . q{])}, "", | ||
| 8923 | q{loose_exp}, | ||
| 8924 | $tracelevel); | ||
| 8925 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 8926 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 8927 | Parse::RecDescent::_tracefirst($text), | ||
| 8928 | , q{loose_exp}, | ||
| 8929 | $tracelevel) | ||
| 8930 | } | ||
| 8931 | $_[1] = $text; | ||
| 8932 | return $return; | ||
| 8933 | } | ||
| 8934 | |||
| 8935 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 8936 | sub Parse::RecDescent::XML::XSH2::Parser::nodename | ||
| 8937 | { | ||
| 8938 | my $thisparser = $_[0]; | ||
| 8939 | use vars q{$tracelevel}; | ||
| 8940 | local $tracelevel = ($tracelevel||0)+1; | ||
| 8941 | $ERRORS = 0; | ||
| 8942 | my $thisrule = $thisparser->{"rules"}{"nodename"}; | ||
| 8943 | |||
| 8944 | Parse::RecDescent::_trace(q{Trying rule: [nodename]}, | ||
| 8945 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8946 | q{nodename}, | ||
| 8947 | $tracelevel) | ||
| 8948 | if defined $::RD_TRACE; | ||
| 8949 | |||
| 8950 | |||
| 8951 | my $err_at = @{$thisparser->{errors}}; | ||
| 8952 | |||
| 8953 | my $score; | ||
| 8954 | my $score_return; | ||
| 8955 | my $_tok; | ||
| 8956 | my $return = undef; | ||
| 8957 | my $_matched=0; | ||
| 8958 | my $commit=0; | ||
| 8959 | my @item = (); | ||
| 8960 | my %item = (); | ||
| 8961 | my $repeating = $_[2]; | ||
| 8962 | my $_noactions = $_[3]; | ||
| 8963 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 8964 | my $_itempos = $_[5]; | ||
| 8965 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 8966 | my $text; | ||
| 8967 | my $lastsep; | ||
| 8968 | my $current_match; | ||
| 8969 | my $expectation = new Parse::RecDescent::Expectation(q{exp}); | ||
| 8970 | $expectation->at($_[1]); | ||
| 8971 | |||
| 8972 | my $thisoffset; | ||
| 8973 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 8974 | |||
| 8975 | my $thiscolumn; | ||
| 8976 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 8977 | |||
| 8978 | my $thisline; | ||
| 8979 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 8980 | |||
| 8981 | |||
| 8982 | |||
| 8983 | while (!$_matched && !$commit) | ||
| 8984 | { | ||
| 8985 | |||
| 8986 | Parse::RecDescent::_trace(q{Trying production: [exp]}, | ||
| 8987 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 8988 | q{nodename}, | ||
| 8989 | $tracelevel) | ||
| 8990 | if defined $::RD_TRACE; | ||
| 8991 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 8992 | $text = $_[1]; | ||
| 8993 | my $_savetext; | ||
| 8994 | @item = (q{nodename}); | ||
| 8995 | %item = (__RULE__ => q{nodename}); | ||
| 8996 | my $repcount = 0; | ||
| 8997 | |||
| 8998 | |||
| 8999 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 9000 | Parse::RecDescent::_tracefirst($text), | ||
| 9001 | q{nodename}, | ||
| 9002 | $tracelevel) | ||
| 9003 | if defined $::RD_TRACE; | ||
| 9004 | if (1) { no strict qw{refs}; | ||
| 9005 | $expectation->is(q{})->at($text); | ||
| 9006 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 9007 | { | ||
| 9008 | |||
| 9009 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 9010 | Parse::RecDescent::_tracefirst($text), | ||
| 9011 | q{nodename}, | ||
| 9012 | $tracelevel) | ||
| 9013 | if defined $::RD_TRACE; | ||
| 9014 | $expectation->failed(); | ||
| 9015 | last; | ||
| 9016 | } | ||
| 9017 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 9018 | . $_tok . q{]}, | ||
| 9019 | |||
| 9020 | Parse::RecDescent::_tracefirst($text), | ||
| 9021 | q{nodename}, | ||
| 9022 | $tracelevel) | ||
| 9023 | if defined $::RD_TRACE; | ||
| 9024 | $item{q{exp}} = $_tok; | ||
| 9025 | push @item, $_tok; | ||
| 9026 | |||
| 9027 | } | ||
| 9028 | |||
| 9029 | Parse::RecDescent::_trace(q{>>Matched production: [exp]<<}, | ||
| 9030 | Parse::RecDescent::_tracefirst($text), | ||
| 9031 | q{nodename}, | ||
| 9032 | $tracelevel) | ||
| 9033 | if defined $::RD_TRACE; | ||
| 9034 | |||
| 9035 | |||
| 9036 | |||
| 9037 | $_matched = 1; | ||
| 9038 | last; | ||
| 9039 | } | ||
| 9040 | |||
| 9041 | |||
| 9042 | unless ( $_matched || defined($score) ) | ||
| 9043 | { | ||
| 9044 | |||
| 9045 | |||
| 9046 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 9047 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 9048 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9049 | q{nodename}, | ||
| 9050 | $tracelevel) | ||
| 9051 | if defined $::RD_TRACE; | ||
| 9052 | return undef; | ||
| 9053 | } | ||
| 9054 | if (!defined($return) && defined($score)) | ||
| 9055 | { | ||
| 9056 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 9057 | q{nodename}, | ||
| 9058 | $tracelevel) | ||
| 9059 | if defined $::RD_TRACE; | ||
| 9060 | $return = $score_return; | ||
| 9061 | } | ||
| 9062 | splice @{$thisparser->{errors}}, $err_at; | ||
| 9063 | $return = $item[$#item] unless defined $return; | ||
| 9064 | if (defined $::RD_TRACE) | ||
| 9065 | { | ||
| 9066 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 9067 | $return . q{])}, "", | ||
| 9068 | q{nodename}, | ||
| 9069 | $tracelevel); | ||
| 9070 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 9071 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 9072 | Parse::RecDescent::_tracefirst($text), | ||
| 9073 | , q{nodename}, | ||
| 9074 | $tracelevel) | ||
| 9075 | } | ||
| 9076 | $_[1] = $text; | ||
| 9077 | return $return; | ||
| 9078 | } | ||
| 9079 | |||
| 9080 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 9081 | sub Parse::RecDescent::XML::XSH2::Parser::nodetype | ||
| 9082 | { | ||
| 9083 | my $thisparser = $_[0]; | ||
| 9084 | use vars q{$tracelevel}; | ||
| 9085 | local $tracelevel = ($tracelevel||0)+1; | ||
| 9086 | $ERRORS = 0; | ||
| 9087 | my $thisrule = $thisparser->{"rules"}{"nodetype"}; | ||
| 9088 | |||
| 9089 | Parse::RecDescent::_trace(q{Trying rule: [nodetype]}, | ||
| 9090 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9091 | q{nodetype}, | ||
| 9092 | $tracelevel) | ||
| 9093 | if defined $::RD_TRACE; | ||
| 9094 | |||
| 9095 | |||
| 9096 | my $err_at = @{$thisparser->{errors}}; | ||
| 9097 | |||
| 9098 | my $score; | ||
| 9099 | my $score_return; | ||
| 9100 | my $_tok; | ||
| 9101 | my $return = undef; | ||
| 9102 | my $_matched=0; | ||
| 9103 | my $commit=0; | ||
| 9104 | my @item = (); | ||
| 9105 | my %item = (); | ||
| 9106 | my $repeating = $_[2]; | ||
| 9107 | my $_noactions = $_[3]; | ||
| 9108 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 9109 | my $_itempos = $_[5]; | ||
| 9110 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 9111 | my $text; | ||
| 9112 | my $lastsep; | ||
| 9113 | my $current_match; | ||
| 9114 | my $expectation = new Parse::RecDescent::Expectation(q{/element|attribute|attributes|text|cdata|pi|comment|chunk|entity_reference/}); | ||
| 9115 | $expectation->at($_[1]); | ||
| 9116 | |||
| 9117 | my $thisoffset; | ||
| 9118 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 9119 | |||
| 9120 | my $thiscolumn; | ||
| 9121 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 9122 | |||
| 9123 | my $thisline; | ||
| 9124 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 9125 | |||
| 9126 | |||
| 9127 | |||
| 9128 | while (!$_matched && !$commit) | ||
| 9129 | { | ||
| 9130 | |||
| 9131 | Parse::RecDescent::_trace(q{Trying production: [/element|attribute|attributes|text|cdata|pi|comment|chunk|entity_reference/]}, | ||
| 9132 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9133 | q{nodetype}, | ||
| 9134 | $tracelevel) | ||
| 9135 | if defined $::RD_TRACE; | ||
| 9136 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 9137 | $text = $_[1]; | ||
| 9138 | my $_savetext; | ||
| 9139 | @item = (q{nodetype}); | ||
| 9140 | %item = (__RULE__ => q{nodetype}); | ||
| 9141 | my $repcount = 0; | ||
| 9142 | |||
| 9143 | |||
| 9144 | Parse::RecDescent::_trace(q{Trying terminal: [/element|attribute|attributes|text|cdata|pi|comment|chunk|entity_reference/]}, Parse::RecDescent::_tracefirst($text), | ||
| 9145 | q{nodetype}, | ||
| 9146 | $tracelevel) | ||
| 9147 | if defined $::RD_TRACE; | ||
| 9148 | undef $lastsep; | ||
| 9149 | $expectation->is(q{})->at($text); | ||
| 9150 | |||
| 9151 | |||
| 9152 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:element|attribute|attributes|text|cdata|pi|comment|chunk|entity_reference)/) | ||
| 9153 | { | ||
| 9154 | $text = $lastsep . $text if defined $lastsep; | ||
| 9155 | $expectation->failed(); | ||
| 9156 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 9157 | Parse::RecDescent::_tracefirst($text)) | ||
| 9158 | if defined $::RD_TRACE; | ||
| 9159 | |||
| 9160 | last; | ||
| 9161 | } | ||
| 9162 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 9163 | substr($text,0,length($current_match),q{}); | ||
| 9164 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 9165 | . $current_match . q{])}, | ||
| 9166 | Parse::RecDescent::_tracefirst($text)) | ||
| 9167 | if defined $::RD_TRACE; | ||
| 9168 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 9169 | |||
| 9170 | |||
| 9171 | Parse::RecDescent::_trace(q{>>Matched production: [/element|attribute|attributes|text|cdata|pi|comment|chunk|entity_reference/]<<}, | ||
| 9172 | Parse::RecDescent::_tracefirst($text), | ||
| 9173 | q{nodetype}, | ||
| 9174 | $tracelevel) | ||
| 9175 | if defined $::RD_TRACE; | ||
| 9176 | |||
| 9177 | |||
| 9178 | |||
| 9179 | $_matched = 1; | ||
| 9180 | last; | ||
| 9181 | } | ||
| 9182 | |||
| 9183 | |||
| 9184 | unless ( $_matched || defined($score) ) | ||
| 9185 | { | ||
| 9186 | |||
| 9187 | |||
| 9188 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 9189 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 9190 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9191 | q{nodetype}, | ||
| 9192 | $tracelevel) | ||
| 9193 | if defined $::RD_TRACE; | ||
| 9194 | return undef; | ||
| 9195 | } | ||
| 9196 | if (!defined($return) && defined($score)) | ||
| 9197 | { | ||
| 9198 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 9199 | q{nodetype}, | ||
| 9200 | $tracelevel) | ||
| 9201 | if defined $::RD_TRACE; | ||
| 9202 | $return = $score_return; | ||
| 9203 | } | ||
| 9204 | splice @{$thisparser->{errors}}, $err_at; | ||
| 9205 | $return = $item[$#item] unless defined $return; | ||
| 9206 | if (defined $::RD_TRACE) | ||
| 9207 | { | ||
| 9208 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 9209 | $return . q{])}, "", | ||
| 9210 | q{nodetype}, | ||
| 9211 | $tracelevel); | ||
| 9212 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 9213 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 9214 | Parse::RecDescent::_tracefirst($text), | ||
| 9215 | , q{nodetype}, | ||
| 9216 | $tracelevel) | ||
| 9217 | } | ||
| 9218 | $_[1] = $text; | ||
| 9219 | return $return; | ||
| 9220 | } | ||
| 9221 | |||
| 9222 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 9223 | sub Parse::RecDescent::XML::XSH2::Parser::option | ||
| 9224 | { | ||
| 9225 | my $thisparser = $_[0]; | ||
| 9226 | use vars q{$tracelevel}; | ||
| 9227 | local $tracelevel = ($tracelevel||0)+1; | ||
| 9228 | $ERRORS = 0; | ||
| 9229 | my $thisrule = $thisparser->{"rules"}{"option"}; | ||
| 9230 | |||
| 9231 | Parse::RecDescent::_trace(q{Trying rule: [option]}, | ||
| 9232 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9233 | q{option}, | ||
| 9234 | $tracelevel) | ||
| 9235 | if defined $::RD_TRACE; | ||
| 9236 | |||
| 9237 | |||
| 9238 | my $err_at = @{$thisparser->{errors}}; | ||
| 9239 | |||
| 9240 | my $score; | ||
| 9241 | my $score_return; | ||
| 9242 | my $_tok; | ||
| 9243 | my $return = undef; | ||
| 9244 | my $_matched=0; | ||
| 9245 | my $commit=0; | ||
| 9246 | my @item = (); | ||
| 9247 | my %item = (); | ||
| 9248 | my $repeating = $_[2]; | ||
| 9249 | my $_noactions = $_[3]; | ||
| 9250 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 9251 | my $_itempos = $_[5]; | ||
| 9252 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 9253 | my $text; | ||
| 9254 | my $lastsep; | ||
| 9255 | my $current_match; | ||
| 9256 | my $expectation = new Parse::RecDescent::Expectation(q{/:[[:alnum:]]|--[-_[:alnum:]]+/}); | ||
| 9257 | $expectation->at($_[1]); | ||
| 9258 | |||
| 9259 | my $thisoffset; | ||
| 9260 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 9261 | |||
| 9262 | my $thiscolumn; | ||
| 9263 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 9264 | |||
| 9265 | my $thisline; | ||
| 9266 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 9267 | |||
| 9268 | |||
| 9269 | |||
| 9270 | while (!$_matched && !$commit) | ||
| 9271 | { | ||
| 9272 | |||
| 9273 | Parse::RecDescent::_trace(q{Trying production: [/:[[:alnum:]]|--[-_[:alnum:]]+/]}, | ||
| 9274 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9275 | q{option}, | ||
| 9276 | $tracelevel) | ||
| 9277 | if defined $::RD_TRACE; | ||
| 9278 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 9279 | $text = $_[1]; | ||
| 9280 | my $_savetext; | ||
| 9281 | @item = (q{option}); | ||
| 9282 | %item = (__RULE__ => q{option}); | ||
| 9283 | my $repcount = 0; | ||
| 9284 | |||
| 9285 | |||
| 9286 | Parse::RecDescent::_trace(q{Trying terminal: [/:[[:alnum:]]|--[-_[:alnum:]]+/]}, Parse::RecDescent::_tracefirst($text), | ||
| 9287 | q{option}, | ||
| 9288 | $tracelevel) | ||
| 9289 | if defined $::RD_TRACE; | ||
| 9290 | undef $lastsep; | ||
| 9291 | $expectation->is(q{})->at($text); | ||
| 9292 | |||
| 9293 | |||
| 9294 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?::[[:alnum:]]|--[-_[:alnum:]]+)/) | ||
| 9295 | { | ||
| 9296 | $text = $lastsep . $text if defined $lastsep; | ||
| 9297 | $expectation->failed(); | ||
| 9298 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 9299 | Parse::RecDescent::_tracefirst($text)) | ||
| 9300 | if defined $::RD_TRACE; | ||
| 9301 | |||
| 9302 | last; | ||
| 9303 | } | ||
| 9304 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 9305 | substr($text,0,length($current_match),q{}); | ||
| 9306 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 9307 | . $current_match . q{])}, | ||
| 9308 | Parse::RecDescent::_tracefirst($text)) | ||
| 9309 | if defined $::RD_TRACE; | ||
| 9310 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 9311 | |||
| 9312 | |||
| 9313 | Parse::RecDescent::_trace(q{>>Matched production: [/:[[:alnum:]]|--[-_[:alnum:]]+/]<<}, | ||
| 9314 | Parse::RecDescent::_tracefirst($text), | ||
| 9315 | q{option}, | ||
| 9316 | $tracelevel) | ||
| 9317 | if defined $::RD_TRACE; | ||
| 9318 | |||
| 9319 | |||
| 9320 | |||
| 9321 | $_matched = 1; | ||
| 9322 | last; | ||
| 9323 | } | ||
| 9324 | |||
| 9325 | |||
| 9326 | unless ( $_matched || defined($score) ) | ||
| 9327 | { | ||
| 9328 | |||
| 9329 | |||
| 9330 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 9331 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 9332 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9333 | q{option}, | ||
| 9334 | $tracelevel) | ||
| 9335 | if defined $::RD_TRACE; | ||
| 9336 | return undef; | ||
| 9337 | } | ||
| 9338 | if (!defined($return) && defined($score)) | ||
| 9339 | { | ||
| 9340 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 9341 | q{option}, | ||
| 9342 | $tracelevel) | ||
| 9343 | if defined $::RD_TRACE; | ||
| 9344 | $return = $score_return; | ||
| 9345 | } | ||
| 9346 | splice @{$thisparser->{errors}}, $err_at; | ||
| 9347 | $return = $item[$#item] unless defined $return; | ||
| 9348 | if (defined $::RD_TRACE) | ||
| 9349 | { | ||
| 9350 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 9351 | $return . q{])}, "", | ||
| 9352 | q{option}, | ||
| 9353 | $tracelevel); | ||
| 9354 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 9355 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 9356 | Parse::RecDescent::_tracefirst($text), | ||
| 9357 | , q{option}, | ||
| 9358 | $tracelevel) | ||
| 9359 | } | ||
| 9360 | $_[1] = $text; | ||
| 9361 | return $return; | ||
| 9362 | } | ||
| 9363 | |||
| 9364 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 9365 | sub Parse::RecDescent::XML::XSH2::Parser::param | ||
| 9366 | { | ||
| 9367 | my $thisparser = $_[0]; | ||
| 9368 | use vars q{$tracelevel}; | ||
| 9369 | local $tracelevel = ($tracelevel||0)+1; | ||
| 9370 | $ERRORS = 0; | ||
| 9371 | my $thisrule = $thisparser->{"rules"}{"param"}; | ||
| 9372 | |||
| 9373 | Parse::RecDescent::_trace(q{Trying rule: [param]}, | ||
| 9374 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9375 | q{param}, | ||
| 9376 | $tracelevel) | ||
| 9377 | if defined $::RD_TRACE; | ||
| 9378 | |||
| 9379 | |||
| 9380 | my $err_at = @{$thisparser->{errors}}; | ||
| 9381 | |||
| 9382 | my $score; | ||
| 9383 | my $score_return; | ||
| 9384 | my $_tok; | ||
| 9385 | my $return = undef; | ||
| 9386 | my $_matched=0; | ||
| 9387 | my $commit=0; | ||
| 9388 | my @item = (); | ||
| 9389 | my %item = (); | ||
| 9390 | my $repeating = $_[2]; | ||
| 9391 | my $_noactions = $_[3]; | ||
| 9392 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 9393 | my $_itempos = $_[5]; | ||
| 9394 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 9395 | my $text; | ||
| 9396 | my $lastsep; | ||
| 9397 | my $current_match; | ||
| 9398 | my $expectation = new Parse::RecDescent::Expectation(q{/[^=\\s]+/}); | ||
| 9399 | $expectation->at($_[1]); | ||
| 9400 | |||
| 9401 | my $thisoffset; | ||
| 9402 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 9403 | |||
| 9404 | my $thiscolumn; | ||
| 9405 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 9406 | |||
| 9407 | my $thisline; | ||
| 9408 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 9409 | |||
| 9410 | |||
| 9411 | |||
| 9412 | while (!$_matched && !$commit) | ||
| 9413 | { | ||
| 9414 | |||
| 9415 | Parse::RecDescent::_trace(q{Trying production: [/[^=\\s]+/ '=' exp]}, | ||
| 9416 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9417 | q{param}, | ||
| 9418 | $tracelevel) | ||
| 9419 | if defined $::RD_TRACE; | ||
| 9420 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 9421 | $text = $_[1]; | ||
| 9422 | my $_savetext; | ||
| 9423 | @item = (q{param}); | ||
| 9424 | %item = (__RULE__ => q{param}); | ||
| 9425 | my $repcount = 0; | ||
| 9426 | |||
| 9427 | |||
| 9428 | Parse::RecDescent::_trace(q{Trying terminal: [/[^=\\s]+/]}, Parse::RecDescent::_tracefirst($text), | ||
| 9429 | q{param}, | ||
| 9430 | $tracelevel) | ||
| 9431 | if defined $::RD_TRACE; | ||
| 9432 | undef $lastsep; | ||
| 9433 | $expectation->is(q{})->at($text); | ||
| 9434 | |||
| 9435 | |||
| 9436 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[^=\s]+)/) | ||
| 9437 | { | ||
| 9438 | $text = $lastsep . $text if defined $lastsep; | ||
| 9439 | $expectation->failed(); | ||
| 9440 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 9441 | Parse::RecDescent::_tracefirst($text)) | ||
| 9442 | if defined $::RD_TRACE; | ||
| 9443 | |||
| 9444 | last; | ||
| 9445 | } | ||
| 9446 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 9447 | substr($text,0,length($current_match),q{}); | ||
| 9448 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 9449 | . $current_match . q{])}, | ||
| 9450 | Parse::RecDescent::_tracefirst($text)) | ||
| 9451 | if defined $::RD_TRACE; | ||
| 9452 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 9453 | |||
| 9454 | |||
| 9455 | Parse::RecDescent::_trace(q{Trying terminal: ['=']}, | ||
| 9456 | Parse::RecDescent::_tracefirst($text), | ||
| 9457 | q{param}, | ||
| 9458 | $tracelevel) | ||
| 9459 | if defined $::RD_TRACE; | ||
| 9460 | undef $lastsep; | ||
| 9461 | $expectation->is(q{'='})->at($text); | ||
| 9462 | |||
| 9463 | |||
| 9464 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\=/) | ||
| 9465 | { | ||
| 9466 | $text = $lastsep . $text if defined $lastsep; | ||
| 9467 | |||
| 9468 | $expectation->failed(); | ||
| 9469 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 9470 | Parse::RecDescent::_tracefirst($text)) | ||
| 9471 | if defined $::RD_TRACE; | ||
| 9472 | last; | ||
| 9473 | } | ||
| 9474 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 9475 | substr($text,0,length($current_match),q{}); | ||
| 9476 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 9477 | . $current_match . q{])}, | ||
| 9478 | Parse::RecDescent::_tracefirst($text)) | ||
| 9479 | if defined $::RD_TRACE; | ||
| 9480 | push @item, $item{__STRING1__}=$current_match; | ||
| 9481 | |||
| 9482 | |||
| 9483 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 9484 | Parse::RecDescent::_tracefirst($text), | ||
| 9485 | q{param}, | ||
| 9486 | $tracelevel) | ||
| 9487 | if defined $::RD_TRACE; | ||
| 9488 | if (1) { no strict qw{refs}; | ||
| 9489 | $expectation->is(q{exp})->at($text); | ||
| 9490 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 9491 | { | ||
| 9492 | |||
| 9493 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 9494 | Parse::RecDescent::_tracefirst($text), | ||
| 9495 | q{param}, | ||
| 9496 | $tracelevel) | ||
| 9497 | if defined $::RD_TRACE; | ||
| 9498 | $expectation->failed(); | ||
| 9499 | last; | ||
| 9500 | } | ||
| 9501 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 9502 | . $_tok . q{]}, | ||
| 9503 | |||
| 9504 | Parse::RecDescent::_tracefirst($text), | ||
| 9505 | q{param}, | ||
| 9506 | $tracelevel) | ||
| 9507 | if defined $::RD_TRACE; | ||
| 9508 | $item{q{exp}} = $_tok; | ||
| 9509 | push @item, $_tok; | ||
| 9510 | |||
| 9511 | } | ||
| 9512 | |||
| 9513 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 9514 | Parse::RecDescent::_tracefirst($text), | ||
| 9515 | q{param}, | ||
| 9516 | $tracelevel) | ||
| 9517 | if defined $::RD_TRACE; | ||
| 9518 | |||
| 9519 | |||
| 9520 | $_tok = ($_noactions) ? 0 : do { [$item[1],$item[3]] }; | ||
| 9521 | unless (defined $_tok) | ||
| 9522 | { | ||
| 9523 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 9524 | if defined $::RD_TRACE; | ||
| 9525 | last; | ||
| 9526 | } | ||
| 9527 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 9528 | . $_tok . q{])}, | ||
| 9529 | Parse::RecDescent::_tracefirst($text)) | ||
| 9530 | if defined $::RD_TRACE; | ||
| 9531 | push @item, $_tok; | ||
| 9532 | $item{__ACTION1__}=$_tok; | ||
| 9533 | |||
| 9534 | |||
| 9535 | Parse::RecDescent::_trace(q{>>Matched production: [/[^=\\s]+/ '=' exp]<<}, | ||
| 9536 | Parse::RecDescent::_tracefirst($text), | ||
| 9537 | q{param}, | ||
| 9538 | $tracelevel) | ||
| 9539 | if defined $::RD_TRACE; | ||
| 9540 | |||
| 9541 | |||
| 9542 | |||
| 9543 | $_matched = 1; | ||
| 9544 | last; | ||
| 9545 | } | ||
| 9546 | |||
| 9547 | |||
| 9548 | unless ( $_matched || defined($score) ) | ||
| 9549 | { | ||
| 9550 | |||
| 9551 | |||
| 9552 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 9553 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 9554 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9555 | q{param}, | ||
| 9556 | $tracelevel) | ||
| 9557 | if defined $::RD_TRACE; | ||
| 9558 | return undef; | ||
| 9559 | } | ||
| 9560 | if (!defined($return) && defined($score)) | ||
| 9561 | { | ||
| 9562 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 9563 | q{param}, | ||
| 9564 | $tracelevel) | ||
| 9565 | if defined $::RD_TRACE; | ||
| 9566 | $return = $score_return; | ||
| 9567 | } | ||
| 9568 | splice @{$thisparser->{errors}}, $err_at; | ||
| 9569 | $return = $item[$#item] unless defined $return; | ||
| 9570 | if (defined $::RD_TRACE) | ||
| 9571 | { | ||
| 9572 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 9573 | $return . q{])}, "", | ||
| 9574 | q{param}, | ||
| 9575 | $tracelevel); | ||
| 9576 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 9577 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 9578 | Parse::RecDescent::_tracefirst($text), | ||
| 9579 | , q{param}, | ||
| 9580 | $tracelevel) | ||
| 9581 | } | ||
| 9582 | $_[1] = $text; | ||
| 9583 | return $return; | ||
| 9584 | } | ||
| 9585 | |||
| 9586 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 9587 | sub Parse::RecDescent::XML::XSH2::Parser::perl_block | ||
| 9588 | { | ||
| 9589 | my $thisparser = $_[0]; | ||
| 9590 | use vars q{$tracelevel}; | ||
| 9591 | local $tracelevel = ($tracelevel||0)+1; | ||
| 9592 | $ERRORS = 0; | ||
| 9593 | my $thisrule = $thisparser->{"rules"}{"perl_block"}; | ||
| 9594 | |||
| 9595 | Parse::RecDescent::_trace(q{Trying rule: [perl_block]}, | ||
| 9596 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9597 | q{perl_block}, | ||
| 9598 | $tracelevel) | ||
| 9599 | if defined $::RD_TRACE; | ||
| 9600 | |||
| 9601 | |||
| 9602 | my $err_at = @{$thisparser->{errors}}; | ||
| 9603 | |||
| 9604 | my $score; | ||
| 9605 | my $score_return; | ||
| 9606 | my $_tok; | ||
| 9607 | my $return = undef; | ||
| 9608 | my $_matched=0; | ||
| 9609 | my $commit=0; | ||
| 9610 | my @item = (); | ||
| 9611 | my %item = (); | ||
| 9612 | my $repeating = $_[2]; | ||
| 9613 | my $_noactions = $_[3]; | ||
| 9614 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 9615 | my $_itempos = $_[5]; | ||
| 9616 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 9617 | my $text; | ||
| 9618 | my $lastsep; | ||
| 9619 | my $current_match; | ||
| 9620 | my $expectation = new Parse::RecDescent::Expectation(q{}); | ||
| 9621 | $expectation->at($_[1]); | ||
| 9622 | |||
| 9623 | my $thisoffset; | ||
| 9624 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 9625 | |||
| 9626 | my $thiscolumn; | ||
| 9627 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 9628 | |||
| 9629 | my $thisline; | ||
| 9630 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 9631 | |||
| 9632 | |||
| 9633 | |||
| 9634 | while (!$_matched && !$commit) | ||
| 9635 | { | ||
| 9636 | |||
| 9637 | Parse::RecDescent::_trace(q{Trying production: [<reject>]}, | ||
| 9638 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9639 | q{perl_block}, | ||
| 9640 | $tracelevel) | ||
| 9641 | if defined $::RD_TRACE; | ||
| 9642 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 9643 | $text = $_[1]; | ||
| 9644 | my $_savetext; | ||
| 9645 | @item = (q{perl_block}); | ||
| 9646 | %item = (__RULE__ => q{perl_block}); | ||
| 9647 | my $repcount = 0; | ||
| 9648 | |||
| 9649 | |||
| 9650 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 9651 | Parse::RecDescent::_tracefirst($text), | ||
| 9652 | q{perl_block}, | ||
| 9653 | $tracelevel) | ||
| 9654 | if defined $::RD_TRACE; | ||
| 9655 | |||
| 9656 | |||
| 9657 | $_tok = ($_noactions) ? 0 : do { $main::myline = $thisline; }; | ||
| 9658 | unless (defined $_tok) | ||
| 9659 | { | ||
| 9660 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 9661 | if defined $::RD_TRACE; | ||
| 9662 | last; | ||
| 9663 | } | ||
| 9664 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 9665 | . $_tok . q{])}, | ||
| 9666 | Parse::RecDescent::_tracefirst($text)) | ||
| 9667 | if defined $::RD_TRACE; | ||
| 9668 | push @item, $_tok; | ||
| 9669 | $item{__ACTION1__}=$_tok; | ||
| 9670 | |||
| 9671 | |||
| 9672 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 9673 | Parse::RecDescent::_tracefirst($text), | ||
| 9674 | q{perl_block}, | ||
| 9675 | $tracelevel) | ||
| 9676 | if defined $::RD_TRACE; | ||
| 9677 | undef $return; | ||
| 9678 | |||
| 9679 | |||
| 9680 | $_tok = undef; | ||
| 9681 | |||
| 9682 | last unless defined $_tok; | ||
| 9683 | |||
| 9684 | Parse::RecDescent::_trace(q{>>Matched production: [<reject>]<<}, | ||
| 9685 | Parse::RecDescent::_tracefirst($text), | ||
| 9686 | q{perl_block}, | ||
| 9687 | $tracelevel) | ||
| 9688 | if defined $::RD_TRACE; | ||
| 9689 | |||
| 9690 | |||
| 9691 | |||
| 9692 | $_matched = 1; | ||
| 9693 | last; | ||
| 9694 | } | ||
| 9695 | |||
| 9696 | |||
| 9697 | while (!$_matched && !$commit) | ||
| 9698 | { | ||
| 9699 | |||
| 9700 | Parse::RecDescent::_trace(q{Trying production: [<reject>]}, | ||
| 9701 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9702 | q{perl_block}, | ||
| 9703 | $tracelevel) | ||
| 9704 | if defined $::RD_TRACE; | ||
| 9705 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 9706 | $text = $_[1]; | ||
| 9707 | my $_savetext; | ||
| 9708 | @item = (q{perl_block}); | ||
| 9709 | %item = (__RULE__ => q{perl_block}); | ||
| 9710 | my $repcount = 0; | ||
| 9711 | |||
| 9712 | |||
| 9713 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 9714 | Parse::RecDescent::_tracefirst($text), | ||
| 9715 | q{perl_block}, | ||
| 9716 | $tracelevel) | ||
| 9717 | if defined $::RD_TRACE; | ||
| 9718 | |||
| 9719 | |||
| 9720 | $_tok = ($_noactions) ? 0 : do { $main::myline = $thisline; }; | ||
| 9721 | unless (defined $_tok) | ||
| 9722 | { | ||
| 9723 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 9724 | if defined $::RD_TRACE; | ||
| 9725 | last; | ||
| 9726 | } | ||
| 9727 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 9728 | . $_tok . q{])}, | ||
| 9729 | Parse::RecDescent::_tracefirst($text)) | ||
| 9730 | if defined $::RD_TRACE; | ||
| 9731 | push @item, $_tok; | ||
| 9732 | $item{__ACTION1__}=$_tok; | ||
| 9733 | |||
| 9734 | |||
| 9735 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 9736 | Parse::RecDescent::_tracefirst($text), | ||
| 9737 | q{perl_block}, | ||
| 9738 | $tracelevel) | ||
| 9739 | if defined $::RD_TRACE; | ||
| 9740 | undef $return; | ||
| 9741 | |||
| 9742 | |||
| 9743 | $_tok = undef; | ||
| 9744 | |||
| 9745 | last unless defined $_tok; | ||
| 9746 | |||
| 9747 | Parse::RecDescent::_trace(q{>>Matched production: [<reject>]<<}, | ||
| 9748 | Parse::RecDescent::_tracefirst($text), | ||
| 9749 | q{perl_block}, | ||
| 9750 | $tracelevel) | ||
| 9751 | if defined $::RD_TRACE; | ||
| 9752 | |||
| 9753 | |||
| 9754 | |||
| 9755 | $_matched = 1; | ||
| 9756 | last; | ||
| 9757 | } | ||
| 9758 | |||
| 9759 | |||
| 9760 | while (!$_matched && !$commit) | ||
| 9761 | { | ||
| 9762 | |||
| 9763 | Parse::RecDescent::_trace(q{Trying production: [<perl_codeblock>]}, | ||
| 9764 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9765 | q{perl_block}, | ||
| 9766 | $tracelevel) | ||
| 9767 | if defined $::RD_TRACE; | ||
| 9768 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 9769 | $text = $_[1]; | ||
| 9770 | my $_savetext; | ||
| 9771 | @item = (q{perl_block}); | ||
| 9772 | %item = (__RULE__ => q{perl_block}); | ||
| 9773 | my $repcount = 0; | ||
| 9774 | |||
| 9775 | |||
| 9776 | |||
| 9777 | |||
| 9778 | Parse::RecDescent::_trace(q{Trying directive: [<perl_codeblock>]}, | ||
| 9779 | Parse::RecDescent::_tracefirst($text), | ||
| 9780 | q{perl_block}, | ||
| 9781 | $tracelevel) | ||
| 9782 | if defined $::RD_TRACE; | ||
| 9783 | $_tok = do { Text::Balanced::extract_codeblock($text,undef,$skip,'{}'); | ||
| 9784 | }; | ||
| 9785 | if (defined($_tok)) | ||
| 9786 | { | ||
| 9787 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 9788 | . $_tok . q{])}, | ||
| 9789 | Parse::RecDescent::_tracefirst($text)) | ||
| 9790 | if defined $::RD_TRACE; | ||
| 9791 | } | ||
| 9792 | else | ||
| 9793 | { | ||
| 9794 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 9795 | Parse::RecDescent::_tracefirst($text)) | ||
| 9796 | if defined $::RD_TRACE; | ||
| 9797 | } | ||
| 9798 | |||
| 9799 | last unless defined $_tok; | ||
| 9800 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 9801 | |||
| 9802 | |||
| 9803 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 9804 | Parse::RecDescent::_tracefirst($text), | ||
| 9805 | q{perl_block}, | ||
| 9806 | $tracelevel) | ||
| 9807 | if defined $::RD_TRACE; | ||
| 9808 | |||
| 9809 | |||
| 9810 | $_tok = ($_noactions) ? 0 : do { { | ||
| 9811 | $return=$item[1]; | ||
| 9812 | { | ||
| 9813 | local $^W = 0; # don't warn about undefined contants | ||
| 9814 | my $pos="# line $main::myline \"$XML::XSH2::Functions::SCRIPT\"\n"; | ||
| 9815 | $return=~s/^\{/\{\n$pos/; | ||
| 9816 | } | ||
| 9817 | } }; | ||
| 9818 | unless (defined $_tok) | ||
| 9819 | { | ||
| 9820 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 9821 | if defined $::RD_TRACE; | ||
| 9822 | last; | ||
| 9823 | } | ||
| 9824 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 9825 | . $_tok . q{])}, | ||
| 9826 | Parse::RecDescent::_tracefirst($text)) | ||
| 9827 | if defined $::RD_TRACE; | ||
| 9828 | push @item, $_tok; | ||
| 9829 | $item{__ACTION1__}=$_tok; | ||
| 9830 | |||
| 9831 | |||
| 9832 | Parse::RecDescent::_trace(q{>>Matched production: [<perl_codeblock>]<<}, | ||
| 9833 | Parse::RecDescent::_tracefirst($text), | ||
| 9834 | q{perl_block}, | ||
| 9835 | $tracelevel) | ||
| 9836 | if defined $::RD_TRACE; | ||
| 9837 | |||
| 9838 | |||
| 9839 | |||
| 9840 | $_matched = 1; | ||
| 9841 | last; | ||
| 9842 | } | ||
| 9843 | |||
| 9844 | |||
| 9845 | unless ( $_matched || defined($score) ) | ||
| 9846 | { | ||
| 9847 | |||
| 9848 | |||
| 9849 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 9850 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 9851 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9852 | q{perl_block}, | ||
| 9853 | $tracelevel) | ||
| 9854 | if defined $::RD_TRACE; | ||
| 9855 | return undef; | ||
| 9856 | } | ||
| 9857 | if (!defined($return) && defined($score)) | ||
| 9858 | { | ||
| 9859 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 9860 | q{perl_block}, | ||
| 9861 | $tracelevel) | ||
| 9862 | if defined $::RD_TRACE; | ||
| 9863 | $return = $score_return; | ||
| 9864 | } | ||
| 9865 | splice @{$thisparser->{errors}}, $err_at; | ||
| 9866 | $return = $item[$#item] unless defined $return; | ||
| 9867 | if (defined $::RD_TRACE) | ||
| 9868 | { | ||
| 9869 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 9870 | $return . q{])}, "", | ||
| 9871 | q{perl_block}, | ||
| 9872 | $tracelevel); | ||
| 9873 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 9874 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 9875 | Parse::RecDescent::_tracefirst($text), | ||
| 9876 | , q{perl_block}, | ||
| 9877 | $tracelevel) | ||
| 9878 | } | ||
| 9879 | $_[1] = $text; | ||
| 9880 | return $return; | ||
| 9881 | } | ||
| 9882 | |||
| 9883 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 9884 | sub Parse::RecDescent::XML::XSH2::Parser::perl_expression | ||
| 9885 | { | ||
| 9886 | my $thisparser = $_[0]; | ||
| 9887 | use vars q{$tracelevel}; | ||
| 9888 | local $tracelevel = ($tracelevel||0)+1; | ||
| 9889 | $ERRORS = 0; | ||
| 9890 | my $thisrule = $thisparser->{"rules"}{"perl_expression"}; | ||
| 9891 | |||
| 9892 | Parse::RecDescent::_trace(q{Trying rule: [perl_expression]}, | ||
| 9893 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9894 | q{perl_expression}, | ||
| 9895 | $tracelevel) | ||
| 9896 | if defined $::RD_TRACE; | ||
| 9897 | |||
| 9898 | |||
| 9899 | my $err_at = @{$thisparser->{errors}}; | ||
| 9900 | |||
| 9901 | my $score; | ||
| 9902 | my $score_return; | ||
| 9903 | my $_tok; | ||
| 9904 | my $return = undef; | ||
| 9905 | my $_matched=0; | ||
| 9906 | my $commit=0; | ||
| 9907 | my @item = (); | ||
| 9908 | my %item = (); | ||
| 9909 | my $repeating = $_[2]; | ||
| 9910 | my $_noactions = $_[3]; | ||
| 9911 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 9912 | my $_itempos = $_[5]; | ||
| 9913 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 9914 | my $text; | ||
| 9915 | my $lastsep; | ||
| 9916 | my $current_match; | ||
| 9917 | my $expectation = new Parse::RecDescent::Expectation(q{exp}); | ||
| 9918 | $expectation->at($_[1]); | ||
| 9919 | |||
| 9920 | my $thisoffset; | ||
| 9921 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 9922 | |||
| 9923 | my $thiscolumn; | ||
| 9924 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 9925 | |||
| 9926 | my $thisline; | ||
| 9927 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 9928 | |||
| 9929 | |||
| 9930 | |||
| 9931 | while (!$_matched && !$commit) | ||
| 9932 | { | ||
| 9933 | |||
| 9934 | Parse::RecDescent::_trace(q{Trying production: [<reject>]}, | ||
| 9935 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9936 | q{perl_expression}, | ||
| 9937 | $tracelevel) | ||
| 9938 | if defined $::RD_TRACE; | ||
| 9939 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 9940 | $text = $_[1]; | ||
| 9941 | my $_savetext; | ||
| 9942 | @item = (q{perl_expression}); | ||
| 9943 | %item = (__RULE__ => q{perl_expression}); | ||
| 9944 | my $repcount = 0; | ||
| 9945 | |||
| 9946 | |||
| 9947 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 9948 | Parse::RecDescent::_tracefirst($text), | ||
| 9949 | q{perl_expression}, | ||
| 9950 | $tracelevel) | ||
| 9951 | if defined $::RD_TRACE; | ||
| 9952 | |||
| 9953 | |||
| 9954 | $_tok = ($_noactions) ? 0 : do { $main::myline = $thisline; }; | ||
| 9955 | unless (defined $_tok) | ||
| 9956 | { | ||
| 9957 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 9958 | if defined $::RD_TRACE; | ||
| 9959 | last; | ||
| 9960 | } | ||
| 9961 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 9962 | . $_tok . q{])}, | ||
| 9963 | Parse::RecDescent::_tracefirst($text)) | ||
| 9964 | if defined $::RD_TRACE; | ||
| 9965 | push @item, $_tok; | ||
| 9966 | $item{__ACTION1__}=$_tok; | ||
| 9967 | |||
| 9968 | |||
| 9969 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 9970 | Parse::RecDescent::_tracefirst($text), | ||
| 9971 | q{perl_expression}, | ||
| 9972 | $tracelevel) | ||
| 9973 | if defined $::RD_TRACE; | ||
| 9974 | undef $return; | ||
| 9975 | |||
| 9976 | |||
| 9977 | $_tok = undef; | ||
| 9978 | |||
| 9979 | last unless defined $_tok; | ||
| 9980 | |||
| 9981 | Parse::RecDescent::_trace(q{>>Matched production: [<reject>]<<}, | ||
| 9982 | Parse::RecDescent::_tracefirst($text), | ||
| 9983 | q{perl_expression}, | ||
| 9984 | $tracelevel) | ||
| 9985 | if defined $::RD_TRACE; | ||
| 9986 | |||
| 9987 | |||
| 9988 | |||
| 9989 | $_matched = 1; | ||
| 9990 | last; | ||
| 9991 | } | ||
| 9992 | |||
| 9993 | |||
| 9994 | while (!$_matched && !$commit) | ||
| 9995 | { | ||
| 9996 | |||
| 9997 | Parse::RecDescent::_trace(q{Trying production: [exp]}, | ||
| 9998 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 9999 | q{perl_expression}, | ||
| 10000 | $tracelevel) | ||
| 10001 | if defined $::RD_TRACE; | ||
| 10002 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 10003 | $text = $_[1]; | ||
| 10004 | my $_savetext; | ||
| 10005 | @item = (q{perl_expression}); | ||
| 10006 | %item = (__RULE__ => q{perl_expression}); | ||
| 10007 | my $repcount = 0; | ||
| 10008 | |||
| 10009 | |||
| 10010 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 10011 | Parse::RecDescent::_tracefirst($text), | ||
| 10012 | q{perl_expression}, | ||
| 10013 | $tracelevel) | ||
| 10014 | if defined $::RD_TRACE; | ||
| 10015 | if (1) { no strict qw{refs}; | ||
| 10016 | $expectation->is(q{})->at($text); | ||
| 10017 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 10018 | { | ||
| 10019 | |||
| 10020 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 10021 | Parse::RecDescent::_tracefirst($text), | ||
| 10022 | q{perl_expression}, | ||
| 10023 | $tracelevel) | ||
| 10024 | if defined $::RD_TRACE; | ||
| 10025 | $expectation->failed(); | ||
| 10026 | last; | ||
| 10027 | } | ||
| 10028 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 10029 | . $_tok . q{]}, | ||
| 10030 | |||
| 10031 | Parse::RecDescent::_tracefirst($text), | ||
| 10032 | q{perl_expression}, | ||
| 10033 | $tracelevel) | ||
| 10034 | if defined $::RD_TRACE; | ||
| 10035 | $item{q{exp}} = $_tok; | ||
| 10036 | push @item, $_tok; | ||
| 10037 | |||
| 10038 | } | ||
| 10039 | |||
| 10040 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 10041 | Parse::RecDescent::_tracefirst($text), | ||
| 10042 | q{perl_expression}, | ||
| 10043 | $tracelevel) | ||
| 10044 | if defined $::RD_TRACE; | ||
| 10045 | |||
| 10046 | |||
| 10047 | $_tok = ($_noactions) ? 0 : do { {local $^W=0; "\n# line $main::myline \"$XML::XSH2::Functions::SCRIPT\"\n".$item[1]} }; | ||
| 10048 | unless (defined $_tok) | ||
| 10049 | { | ||
| 10050 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 10051 | if defined $::RD_TRACE; | ||
| 10052 | last; | ||
| 10053 | } | ||
| 10054 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 10055 | . $_tok . q{])}, | ||
| 10056 | Parse::RecDescent::_tracefirst($text)) | ||
| 10057 | if defined $::RD_TRACE; | ||
| 10058 | push @item, $_tok; | ||
| 10059 | $item{__ACTION1__}=$_tok; | ||
| 10060 | |||
| 10061 | |||
| 10062 | Parse::RecDescent::_trace(q{>>Matched production: [exp]<<}, | ||
| 10063 | Parse::RecDescent::_tracefirst($text), | ||
| 10064 | q{perl_expression}, | ||
| 10065 | $tracelevel) | ||
| 10066 | if defined $::RD_TRACE; | ||
| 10067 | |||
| 10068 | |||
| 10069 | |||
| 10070 | $_matched = 1; | ||
| 10071 | last; | ||
| 10072 | } | ||
| 10073 | |||
| 10074 | |||
| 10075 | unless ( $_matched || defined($score) ) | ||
| 10076 | { | ||
| 10077 | |||
| 10078 | |||
| 10079 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 10080 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 10081 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10082 | q{perl_expression}, | ||
| 10083 | $tracelevel) | ||
| 10084 | if defined $::RD_TRACE; | ||
| 10085 | return undef; | ||
| 10086 | } | ||
| 10087 | if (!defined($return) && defined($score)) | ||
| 10088 | { | ||
| 10089 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 10090 | q{perl_expression}, | ||
| 10091 | $tracelevel) | ||
| 10092 | if defined $::RD_TRACE; | ||
| 10093 | $return = $score_return; | ||
| 10094 | } | ||
| 10095 | splice @{$thisparser->{errors}}, $err_at; | ||
| 10096 | $return = $item[$#item] unless defined $return; | ||
| 10097 | if (defined $::RD_TRACE) | ||
| 10098 | { | ||
| 10099 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 10100 | $return . q{])}, "", | ||
| 10101 | q{perl_expression}, | ||
| 10102 | $tracelevel); | ||
| 10103 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 10104 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 10105 | Parse::RecDescent::_tracefirst($text), | ||
| 10106 | , q{perl_expression}, | ||
| 10107 | $tracelevel) | ||
| 10108 | } | ||
| 10109 | $_[1] = $text; | ||
| 10110 | return $return; | ||
| 10111 | } | ||
| 10112 | |||
| 10113 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 10114 | sub Parse::RecDescent::XML::XSH2::Parser::shell | ||
| 10115 | { | ||
| 10116 | my $thisparser = $_[0]; | ||
| 10117 | use vars q{$tracelevel}; | ||
| 10118 | local $tracelevel = ($tracelevel||0)+1; | ||
| 10119 | $ERRORS = 0; | ||
| 10120 | my $thisrule = $thisparser->{"rules"}{"shell"}; | ||
| 10121 | |||
| 10122 | Parse::RecDescent::_trace(q{Trying rule: [shell]}, | ||
| 10123 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10124 | q{shell}, | ||
| 10125 | $tracelevel) | ||
| 10126 | if defined $::RD_TRACE; | ||
| 10127 | |||
| 10128 | |||
| 10129 | my $err_at = @{$thisparser->{errors}}; | ||
| 10130 | |||
| 10131 | my $score; | ||
| 10132 | my $score_return; | ||
| 10133 | my $_tok; | ||
| 10134 | my $return = undef; | ||
| 10135 | my $_matched=0; | ||
| 10136 | my $commit=0; | ||
| 10137 | my @item = (); | ||
| 10138 | my %item = (); | ||
| 10139 | my $repeating = $_[2]; | ||
| 10140 | my $_noactions = $_[3]; | ||
| 10141 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 10142 | my $_itempos = $_[5]; | ||
| 10143 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 10144 | my $text; | ||
| 10145 | my $lastsep; | ||
| 10146 | my $current_match; | ||
| 10147 | my $expectation = new Parse::RecDescent::Expectation(q{/!\\s*/}); | ||
| 10148 | $expectation->at($_[1]); | ||
| 10149 | |||
| 10150 | my $thisoffset; | ||
| 10151 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 10152 | |||
| 10153 | my $thiscolumn; | ||
| 10154 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 10155 | |||
| 10156 | my $thisline; | ||
| 10157 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 10158 | |||
| 10159 | |||
| 10160 | |||
| 10161 | while (!$_matched && !$commit) | ||
| 10162 | { | ||
| 10163 | |||
| 10164 | Parse::RecDescent::_trace(q{Trying production: [/!\\s*/ <commit> /.*/]}, | ||
| 10165 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10166 | q{shell}, | ||
| 10167 | $tracelevel) | ||
| 10168 | if defined $::RD_TRACE; | ||
| 10169 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 10170 | $text = $_[1]; | ||
| 10171 | my $_savetext; | ||
| 10172 | @item = (q{shell}); | ||
| 10173 | %item = (__RULE__ => q{shell}); | ||
| 10174 | my $repcount = 0; | ||
| 10175 | |||
| 10176 | |||
| 10177 | Parse::RecDescent::_trace(q{Trying terminal: [/!\\s*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 10178 | q{shell}, | ||
| 10179 | $tracelevel) | ||
| 10180 | if defined $::RD_TRACE; | ||
| 10181 | undef $lastsep; | ||
| 10182 | $expectation->is(q{})->at($text); | ||
| 10183 | |||
| 10184 | |||
| 10185 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:!\s*)/) | ||
| 10186 | { | ||
| 10187 | $text = $lastsep . $text if defined $lastsep; | ||
| 10188 | $expectation->failed(); | ||
| 10189 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 10190 | Parse::RecDescent::_tracefirst($text)) | ||
| 10191 | if defined $::RD_TRACE; | ||
| 10192 | |||
| 10193 | last; | ||
| 10194 | } | ||
| 10195 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 10196 | substr($text,0,length($current_match),q{}); | ||
| 10197 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 10198 | . $current_match . q{])}, | ||
| 10199 | Parse::RecDescent::_tracefirst($text)) | ||
| 10200 | if defined $::RD_TRACE; | ||
| 10201 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 10202 | |||
| 10203 | |||
| 10204 | |||
| 10205 | |||
| 10206 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 10207 | Parse::RecDescent::_tracefirst($text), | ||
| 10208 | q{shell}, | ||
| 10209 | $tracelevel) | ||
| 10210 | if defined $::RD_TRACE; | ||
| 10211 | $_tok = do { $commit = 1 }; | ||
| 10212 | if (defined($_tok)) | ||
| 10213 | { | ||
| 10214 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 10215 | . $_tok . q{])}, | ||
| 10216 | Parse::RecDescent::_tracefirst($text)) | ||
| 10217 | if defined $::RD_TRACE; | ||
| 10218 | } | ||
| 10219 | else | ||
| 10220 | { | ||
| 10221 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 10222 | Parse::RecDescent::_tracefirst($text)) | ||
| 10223 | if defined $::RD_TRACE; | ||
| 10224 | } | ||
| 10225 | |||
| 10226 | last unless defined $_tok; | ||
| 10227 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 10228 | |||
| 10229 | |||
| 10230 | Parse::RecDescent::_trace(q{Trying terminal: [/.*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 10231 | q{shell}, | ||
| 10232 | $tracelevel) | ||
| 10233 | if defined $::RD_TRACE; | ||
| 10234 | undef $lastsep; | ||
| 10235 | $expectation->is(q{/.*/})->at($text); | ||
| 10236 | |||
| 10237 | |||
| 10238 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:.*)/) | ||
| 10239 | { | ||
| 10240 | $text = $lastsep . $text if defined $lastsep; | ||
| 10241 | $expectation->failed(); | ||
| 10242 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 10243 | Parse::RecDescent::_tracefirst($text)) | ||
| 10244 | if defined $::RD_TRACE; | ||
| 10245 | |||
| 10246 | last; | ||
| 10247 | } | ||
| 10248 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 10249 | substr($text,0,length($current_match),q{}); | ||
| 10250 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 10251 | . $current_match . q{])}, | ||
| 10252 | Parse::RecDescent::_tracefirst($text)) | ||
| 10253 | if defined $::RD_TRACE; | ||
| 10254 | push @item, $item{__PATTERN2__}=$current_match; | ||
| 10255 | |||
| 10256 | |||
| 10257 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 10258 | Parse::RecDescent::_tracefirst($text), | ||
| 10259 | q{shell}, | ||
| 10260 | $tracelevel) | ||
| 10261 | if defined $::RD_TRACE; | ||
| 10262 | |||
| 10263 | |||
| 10264 | $_tok = ($_noactions) ? 0 : do { [[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'sh_noev',$item[3]]] }; | ||
| 10265 | unless (defined $_tok) | ||
| 10266 | { | ||
| 10267 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 10268 | if defined $::RD_TRACE; | ||
| 10269 | last; | ||
| 10270 | } | ||
| 10271 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 10272 | . $_tok . q{])}, | ||
| 10273 | Parse::RecDescent::_tracefirst($text)) | ||
| 10274 | if defined $::RD_TRACE; | ||
| 10275 | push @item, $_tok; | ||
| 10276 | $item{__ACTION1__}=$_tok; | ||
| 10277 | |||
| 10278 | |||
| 10279 | Parse::RecDescent::_trace(q{>>Matched production: [/!\\s*/ <commit> /.*/]<<}, | ||
| 10280 | Parse::RecDescent::_tracefirst($text), | ||
| 10281 | q{shell}, | ||
| 10282 | $tracelevel) | ||
| 10283 | if defined $::RD_TRACE; | ||
| 10284 | |||
| 10285 | |||
| 10286 | |||
| 10287 | $_matched = 1; | ||
| 10288 | last; | ||
| 10289 | } | ||
| 10290 | |||
| 10291 | |||
| 10292 | while (!$_matched) | ||
| 10293 | { | ||
| 10294 | |||
| 10295 | Parse::RecDescent::_trace(q{Trying production: [<error?:...> <reject>]}, | ||
| 10296 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10297 | q{shell}, | ||
| 10298 | $tracelevel) | ||
| 10299 | if defined $::RD_TRACE; | ||
| 10300 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 10301 | |||
| 10302 | my $_savetext; | ||
| 10303 | @item = (q{shell}); | ||
| 10304 | %item = (__RULE__ => q{shell}); | ||
| 10305 | my $repcount = 0; | ||
| 10306 | |||
| 10307 | |||
| 10308 | |||
| 10309 | |||
| 10310 | Parse::RecDescent::_trace(q{Trying directive: [<error?:...>]}, | ||
| 10311 | Parse::RecDescent::_tracefirst($text), | ||
| 10312 | q{shell}, | ||
| 10313 | $tracelevel) | ||
| 10314 | if defined $::RD_TRACE; | ||
| 10315 | $_tok = do { if ($commit) { do {push @{$thisparser->{errors}}, [qq{Parse error near: "! }.substr($text,0,40).qq{ ..."},$thisline];} unless $_noactions; undef } else {0} }; | ||
| 10316 | if (defined($_tok)) | ||
| 10317 | { | ||
| 10318 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 10319 | . $_tok . q{])}, | ||
| 10320 | Parse::RecDescent::_tracefirst($text)) | ||
| 10321 | if defined $::RD_TRACE; | ||
| 10322 | } | ||
| 10323 | else | ||
| 10324 | { | ||
| 10325 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 10326 | Parse::RecDescent::_tracefirst($text)) | ||
| 10327 | if defined $::RD_TRACE; | ||
| 10328 | } | ||
| 10329 | |||
| 10330 | last unless defined $_tok; | ||
| 10331 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 10332 | |||
| 10333 | |||
| 10334 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 10335 | Parse::RecDescent::_tracefirst($text), | ||
| 10336 | q{shell}, | ||
| 10337 | $tracelevel) | ||
| 10338 | if defined $::RD_TRACE; | ||
| 10339 | undef $return; | ||
| 10340 | |||
| 10341 | |||
| 10342 | $_tok = undef; | ||
| 10343 | |||
| 10344 | last unless defined $_tok; | ||
| 10345 | |||
| 10346 | Parse::RecDescent::_trace(q{>>Matched production: [<error?:...> <reject>]<<}, | ||
| 10347 | Parse::RecDescent::_tracefirst($text), | ||
| 10348 | q{shell}, | ||
| 10349 | $tracelevel) | ||
| 10350 | if defined $::RD_TRACE; | ||
| 10351 | |||
| 10352 | |||
| 10353 | |||
| 10354 | $_matched = 1; | ||
| 10355 | last; | ||
| 10356 | } | ||
| 10357 | |||
| 10358 | |||
| 10359 | unless ( $_matched || defined($score) ) | ||
| 10360 | { | ||
| 10361 | |||
| 10362 | |||
| 10363 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 10364 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 10365 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10366 | q{shell}, | ||
| 10367 | $tracelevel) | ||
| 10368 | if defined $::RD_TRACE; | ||
| 10369 | return undef; | ||
| 10370 | } | ||
| 10371 | if (!defined($return) && defined($score)) | ||
| 10372 | { | ||
| 10373 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 10374 | q{shell}, | ||
| 10375 | $tracelevel) | ||
| 10376 | if defined $::RD_TRACE; | ||
| 10377 | $return = $score_return; | ||
| 10378 | } | ||
| 10379 | splice @{$thisparser->{errors}}, $err_at; | ||
| 10380 | $return = $item[$#item] unless defined $return; | ||
| 10381 | if (defined $::RD_TRACE) | ||
| 10382 | { | ||
| 10383 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 10384 | $return . q{])}, "", | ||
| 10385 | q{shell}, | ||
| 10386 | $tracelevel); | ||
| 10387 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 10388 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 10389 | Parse::RecDescent::_tracefirst($text), | ||
| 10390 | , q{shell}, | ||
| 10391 | $tracelevel) | ||
| 10392 | } | ||
| 10393 | $_[1] = $text; | ||
| 10394 | return $return; | ||
| 10395 | } | ||
| 10396 | |||
| 10397 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 10398 | sub Parse::RecDescent::XML::XSH2::Parser::shline | ||
| 10399 | { | ||
| 10400 | my $thisparser = $_[0]; | ||
| 10401 | use vars q{$tracelevel}; | ||
| 10402 | local $tracelevel = ($tracelevel||0)+1; | ||
| 10403 | $ERRORS = 0; | ||
| 10404 | my $thisrule = $thisparser->{"rules"}{"shline"}; | ||
| 10405 | |||
| 10406 | Parse::RecDescent::_trace(q{Trying rule: [shline]}, | ||
| 10407 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10408 | q{shline}, | ||
| 10409 | $tracelevel) | ||
| 10410 | if defined $::RD_TRACE; | ||
| 10411 | |||
| 10412 | |||
| 10413 | my $err_at = @{$thisparser->{errors}}; | ||
| 10414 | |||
| 10415 | my $score; | ||
| 10416 | my $score_return; | ||
| 10417 | my $_tok; | ||
| 10418 | my $return = undef; | ||
| 10419 | my $_matched=0; | ||
| 10420 | my $commit=0; | ||
| 10421 | my @item = (); | ||
| 10422 | my %item = (); | ||
| 10423 | my $repeating = $_[2]; | ||
| 10424 | my $_noactions = $_[3]; | ||
| 10425 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 10426 | my $_itempos = $_[5]; | ||
| 10427 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 10428 | my $text; | ||
| 10429 | my $lastsep; | ||
| 10430 | my $current_match; | ||
| 10431 | my $expectation = new Parse::RecDescent::Expectation(q{shline_nosc}); | ||
| 10432 | $expectation->at($_[1]); | ||
| 10433 | |||
| 10434 | my $thisoffset; | ||
| 10435 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 10436 | |||
| 10437 | my $thiscolumn; | ||
| 10438 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 10439 | |||
| 10440 | my $thisline; | ||
| 10441 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 10442 | |||
| 10443 | |||
| 10444 | |||
| 10445 | while (!$_matched && !$commit) | ||
| 10446 | { | ||
| 10447 | |||
| 10448 | Parse::RecDescent::_trace(q{Trying production: [shline_nosc shline_bracket shline_nosc]}, | ||
| 10449 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10450 | q{shline}, | ||
| 10451 | $tracelevel) | ||
| 10452 | if defined $::RD_TRACE; | ||
| 10453 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 10454 | $text = $_[1]; | ||
| 10455 | my $_savetext; | ||
| 10456 | @item = (q{shline}); | ||
| 10457 | %item = (__RULE__ => q{shline}); | ||
| 10458 | my $repcount = 0; | ||
| 10459 | |||
| 10460 | |||
| 10461 | Parse::RecDescent::_trace(q{Trying subrule: [shline_nosc]}, | ||
| 10462 | Parse::RecDescent::_tracefirst($text), | ||
| 10463 | q{shline}, | ||
| 10464 | $tracelevel) | ||
| 10465 | if defined $::RD_TRACE; | ||
| 10466 | if (1) { no strict qw{refs}; | ||
| 10467 | $expectation->is(q{})->at($text); | ||
| 10468 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::shline_nosc($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 10469 | { | ||
| 10470 | |||
| 10471 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [shline_nosc]>>}, | ||
| 10472 | Parse::RecDescent::_tracefirst($text), | ||
| 10473 | q{shline}, | ||
| 10474 | $tracelevel) | ||
| 10475 | if defined $::RD_TRACE; | ||
| 10476 | $expectation->failed(); | ||
| 10477 | last; | ||
| 10478 | } | ||
| 10479 | Parse::RecDescent::_trace(q{>>Matched subrule: [shline_nosc]<< (return value: [} | ||
| 10480 | . $_tok . q{]}, | ||
| 10481 | |||
| 10482 | Parse::RecDescent::_tracefirst($text), | ||
| 10483 | q{shline}, | ||
| 10484 | $tracelevel) | ||
| 10485 | if defined $::RD_TRACE; | ||
| 10486 | $item{q{shline_nosc}} = $_tok; | ||
| 10487 | push @item, $_tok; | ||
| 10488 | |||
| 10489 | } | ||
| 10490 | |||
| 10491 | Parse::RecDescent::_trace(q{Trying repeated subrule: [shline_bracket]}, | ||
| 10492 | Parse::RecDescent::_tracefirst($text), | ||
| 10493 | q{shline}, | ||
| 10494 | $tracelevel) | ||
| 10495 | if defined $::RD_TRACE; | ||
| 10496 | $expectation->is(q{shline_bracket})->at($text); | ||
| 10497 | |||
| 10498 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::shline_bracket, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 10499 | { | ||
| 10500 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [shline_bracket]>>}, | ||
| 10501 | Parse::RecDescent::_tracefirst($text), | ||
| 10502 | q{shline}, | ||
| 10503 | $tracelevel) | ||
| 10504 | if defined $::RD_TRACE; | ||
| 10505 | last; | ||
| 10506 | } | ||
| 10507 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [shline_bracket]<< (} | ||
| 10508 | . @$_tok . q{ times)}, | ||
| 10509 | |||
| 10510 | Parse::RecDescent::_tracefirst($text), | ||
| 10511 | q{shline}, | ||
| 10512 | $tracelevel) | ||
| 10513 | if defined $::RD_TRACE; | ||
| 10514 | $item{q{shline_bracket(?)}} = $_tok; | ||
| 10515 | push @item, $_tok; | ||
| 10516 | |||
| 10517 | |||
| 10518 | |||
| 10519 | Parse::RecDescent::_trace(q{Trying subrule: [shline_nosc]}, | ||
| 10520 | Parse::RecDescent::_tracefirst($text), | ||
| 10521 | q{shline}, | ||
| 10522 | $tracelevel) | ||
| 10523 | if defined $::RD_TRACE; | ||
| 10524 | if (1) { no strict qw{refs}; | ||
| 10525 | $expectation->is(q{shline_nosc})->at($text); | ||
| 10526 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::shline_nosc($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 10527 | { | ||
| 10528 | |||
| 10529 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [shline_nosc]>>}, | ||
| 10530 | Parse::RecDescent::_tracefirst($text), | ||
| 10531 | q{shline}, | ||
| 10532 | $tracelevel) | ||
| 10533 | if defined $::RD_TRACE; | ||
| 10534 | $expectation->failed(); | ||
| 10535 | last; | ||
| 10536 | } | ||
| 10537 | Parse::RecDescent::_trace(q{>>Matched subrule: [shline_nosc]<< (return value: [} | ||
| 10538 | . $_tok . q{]}, | ||
| 10539 | |||
| 10540 | Parse::RecDescent::_tracefirst($text), | ||
| 10541 | q{shline}, | ||
| 10542 | $tracelevel) | ||
| 10543 | if defined $::RD_TRACE; | ||
| 10544 | $item{q{shline_nosc}} = $_tok; | ||
| 10545 | push @item, $_tok; | ||
| 10546 | |||
| 10547 | } | ||
| 10548 | |||
| 10549 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 10550 | Parse::RecDescent::_tracefirst($text), | ||
| 10551 | q{shline}, | ||
| 10552 | $tracelevel) | ||
| 10553 | if defined $::RD_TRACE; | ||
| 10554 | |||
| 10555 | |||
| 10556 | $_tok = ($_noactions) ? 0 : do { join("",$item[1],@{$item[2]},$item[3]) }; | ||
| 10557 | unless (defined $_tok) | ||
| 10558 | { | ||
| 10559 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 10560 | if defined $::RD_TRACE; | ||
| 10561 | last; | ||
| 10562 | } | ||
| 10563 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 10564 | . $_tok . q{])}, | ||
| 10565 | Parse::RecDescent::_tracefirst($text)) | ||
| 10566 | if defined $::RD_TRACE; | ||
| 10567 | push @item, $_tok; | ||
| 10568 | $item{__ACTION1__}=$_tok; | ||
| 10569 | |||
| 10570 | |||
| 10571 | Parse::RecDescent::_trace(q{>>Matched production: [shline_nosc shline_bracket shline_nosc]<<}, | ||
| 10572 | Parse::RecDescent::_tracefirst($text), | ||
| 10573 | q{shline}, | ||
| 10574 | $tracelevel) | ||
| 10575 | if defined $::RD_TRACE; | ||
| 10576 | |||
| 10577 | |||
| 10578 | |||
| 10579 | $_matched = 1; | ||
| 10580 | last; | ||
| 10581 | } | ||
| 10582 | |||
| 10583 | |||
| 10584 | unless ( $_matched || defined($score) ) | ||
| 10585 | { | ||
| 10586 | |||
| 10587 | |||
| 10588 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 10589 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 10590 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10591 | q{shline}, | ||
| 10592 | $tracelevel) | ||
| 10593 | if defined $::RD_TRACE; | ||
| 10594 | return undef; | ||
| 10595 | } | ||
| 10596 | if (!defined($return) && defined($score)) | ||
| 10597 | { | ||
| 10598 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 10599 | q{shline}, | ||
| 10600 | $tracelevel) | ||
| 10601 | if defined $::RD_TRACE; | ||
| 10602 | $return = $score_return; | ||
| 10603 | } | ||
| 10604 | splice @{$thisparser->{errors}}, $err_at; | ||
| 10605 | $return = $item[$#item] unless defined $return; | ||
| 10606 | if (defined $::RD_TRACE) | ||
| 10607 | { | ||
| 10608 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 10609 | $return . q{])}, "", | ||
| 10610 | q{shline}, | ||
| 10611 | $tracelevel); | ||
| 10612 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 10613 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 10614 | Parse::RecDescent::_tracefirst($text), | ||
| 10615 | , q{shline}, | ||
| 10616 | $tracelevel) | ||
| 10617 | } | ||
| 10618 | $_[1] = $text; | ||
| 10619 | return $return; | ||
| 10620 | } | ||
| 10621 | |||
| 10622 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 10623 | sub Parse::RecDescent::XML::XSH2::Parser::shline_bracket | ||
| 10624 | { | ||
| 10625 | my $thisparser = $_[0]; | ||
| 10626 | use vars q{$tracelevel}; | ||
| 10627 | local $tracelevel = ($tracelevel||0)+1; | ||
| 10628 | $ERRORS = 0; | ||
| 10629 | my $thisrule = $thisparser->{"rules"}{"shline_bracket"}; | ||
| 10630 | |||
| 10631 | Parse::RecDescent::_trace(q{Trying rule: [shline_bracket]}, | ||
| 10632 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10633 | q{shline_bracket}, | ||
| 10634 | $tracelevel) | ||
| 10635 | if defined $::RD_TRACE; | ||
| 10636 | |||
| 10637 | |||
| 10638 | my $err_at = @{$thisparser->{errors}}; | ||
| 10639 | |||
| 10640 | my $score; | ||
| 10641 | my $score_return; | ||
| 10642 | my $_tok; | ||
| 10643 | my $return = undef; | ||
| 10644 | my $_matched=0; | ||
| 10645 | my $commit=0; | ||
| 10646 | my @item = (); | ||
| 10647 | my %item = (); | ||
| 10648 | my $repeating = $_[2]; | ||
| 10649 | my $_noactions = $_[3]; | ||
| 10650 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 10651 | my $_itempos = $_[5]; | ||
| 10652 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 10653 | my $text; | ||
| 10654 | my $lastsep; | ||
| 10655 | my $current_match; | ||
| 10656 | my $expectation = new Parse::RecDescent::Expectation(q{'('}); | ||
| 10657 | $expectation->at($_[1]); | ||
| 10658 | |||
| 10659 | my $thisoffset; | ||
| 10660 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 10661 | |||
| 10662 | my $thiscolumn; | ||
| 10663 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 10664 | |||
| 10665 | my $thisline; | ||
| 10666 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 10667 | |||
| 10668 | |||
| 10669 | |||
| 10670 | while (!$_matched && !$commit) | ||
| 10671 | { | ||
| 10672 | |||
| 10673 | Parse::RecDescent::_trace(q{Trying production: ['(' shline_inter shline_bracket shline_inter ')']}, | ||
| 10674 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10675 | q{shline_bracket}, | ||
| 10676 | $tracelevel) | ||
| 10677 | if defined $::RD_TRACE; | ||
| 10678 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 10679 | $text = $_[1]; | ||
| 10680 | my $_savetext; | ||
| 10681 | @item = (q{shline_bracket}); | ||
| 10682 | %item = (__RULE__ => q{shline_bracket}); | ||
| 10683 | my $repcount = 0; | ||
| 10684 | |||
| 10685 | |||
| 10686 | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||
| 10687 | Parse::RecDescent::_tracefirst($text), | ||
| 10688 | q{shline_bracket}, | ||
| 10689 | $tracelevel) | ||
| 10690 | if defined $::RD_TRACE; | ||
| 10691 | undef $lastsep; | ||
| 10692 | $expectation->is(q{})->at($text); | ||
| 10693 | |||
| 10694 | |||
| 10695 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) | ||
| 10696 | { | ||
| 10697 | $text = $lastsep . $text if defined $lastsep; | ||
| 10698 | |||
| 10699 | $expectation->failed(); | ||
| 10700 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 10701 | Parse::RecDescent::_tracefirst($text)) | ||
| 10702 | if defined $::RD_TRACE; | ||
| 10703 | last; | ||
| 10704 | } | ||
| 10705 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 10706 | substr($text,0,length($current_match),q{}); | ||
| 10707 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 10708 | . $current_match . q{])}, | ||
| 10709 | Parse::RecDescent::_tracefirst($text)) | ||
| 10710 | if defined $::RD_TRACE; | ||
| 10711 | push @item, $item{__STRING1__}=$current_match; | ||
| 10712 | |||
| 10713 | |||
| 10714 | Parse::RecDescent::_trace(q{Trying subrule: [shline_inter]}, | ||
| 10715 | Parse::RecDescent::_tracefirst($text), | ||
| 10716 | q{shline_bracket}, | ||
| 10717 | $tracelevel) | ||
| 10718 | if defined $::RD_TRACE; | ||
| 10719 | if (1) { no strict qw{refs}; | ||
| 10720 | $expectation->is(q{shline_inter})->at($text); | ||
| 10721 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::shline_inter($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 10722 | { | ||
| 10723 | |||
| 10724 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [shline_inter]>>}, | ||
| 10725 | Parse::RecDescent::_tracefirst($text), | ||
| 10726 | q{shline_bracket}, | ||
| 10727 | $tracelevel) | ||
| 10728 | if defined $::RD_TRACE; | ||
| 10729 | $expectation->failed(); | ||
| 10730 | last; | ||
| 10731 | } | ||
| 10732 | Parse::RecDescent::_trace(q{>>Matched subrule: [shline_inter]<< (return value: [} | ||
| 10733 | . $_tok . q{]}, | ||
| 10734 | |||
| 10735 | Parse::RecDescent::_tracefirst($text), | ||
| 10736 | q{shline_bracket}, | ||
| 10737 | $tracelevel) | ||
| 10738 | if defined $::RD_TRACE; | ||
| 10739 | $item{q{shline_inter}} = $_tok; | ||
| 10740 | push @item, $_tok; | ||
| 10741 | |||
| 10742 | } | ||
| 10743 | |||
| 10744 | Parse::RecDescent::_trace(q{Trying repeated subrule: [shline_bracket]}, | ||
| 10745 | Parse::RecDescent::_tracefirst($text), | ||
| 10746 | q{shline_bracket}, | ||
| 10747 | $tracelevel) | ||
| 10748 | if defined $::RD_TRACE; | ||
| 10749 | $expectation->is(q{shline_bracket})->at($text); | ||
| 10750 | |||
| 10751 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::shline_bracket, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 10752 | { | ||
| 10753 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [shline_bracket]>>}, | ||
| 10754 | Parse::RecDescent::_tracefirst($text), | ||
| 10755 | q{shline_bracket}, | ||
| 10756 | $tracelevel) | ||
| 10757 | if defined $::RD_TRACE; | ||
| 10758 | last; | ||
| 10759 | } | ||
| 10760 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [shline_bracket]<< (} | ||
| 10761 | . @$_tok . q{ times)}, | ||
| 10762 | |||
| 10763 | Parse::RecDescent::_tracefirst($text), | ||
| 10764 | q{shline_bracket}, | ||
| 10765 | $tracelevel) | ||
| 10766 | if defined $::RD_TRACE; | ||
| 10767 | $item{q{shline_bracket(?)}} = $_tok; | ||
| 10768 | push @item, $_tok; | ||
| 10769 | |||
| 10770 | |||
| 10771 | |||
| 10772 | Parse::RecDescent::_trace(q{Trying subrule: [shline_inter]}, | ||
| 10773 | Parse::RecDescent::_tracefirst($text), | ||
| 10774 | q{shline_bracket}, | ||
| 10775 | $tracelevel) | ||
| 10776 | if defined $::RD_TRACE; | ||
| 10777 | if (1) { no strict qw{refs}; | ||
| 10778 | $expectation->is(q{shline_inter})->at($text); | ||
| 10779 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::shline_inter($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 10780 | { | ||
| 10781 | |||
| 10782 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [shline_inter]>>}, | ||
| 10783 | Parse::RecDescent::_tracefirst($text), | ||
| 10784 | q{shline_bracket}, | ||
| 10785 | $tracelevel) | ||
| 10786 | if defined $::RD_TRACE; | ||
| 10787 | $expectation->failed(); | ||
| 10788 | last; | ||
| 10789 | } | ||
| 10790 | Parse::RecDescent::_trace(q{>>Matched subrule: [shline_inter]<< (return value: [} | ||
| 10791 | . $_tok . q{]}, | ||
| 10792 | |||
| 10793 | Parse::RecDescent::_tracefirst($text), | ||
| 10794 | q{shline_bracket}, | ||
| 10795 | $tracelevel) | ||
| 10796 | if defined $::RD_TRACE; | ||
| 10797 | $item{q{shline_inter}} = $_tok; | ||
| 10798 | push @item, $_tok; | ||
| 10799 | |||
| 10800 | } | ||
| 10801 | |||
| 10802 | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||
| 10803 | Parse::RecDescent::_tracefirst($text), | ||
| 10804 | q{shline_bracket}, | ||
| 10805 | $tracelevel) | ||
| 10806 | if defined $::RD_TRACE; | ||
| 10807 | undef $lastsep; | ||
| 10808 | $expectation->is(q{')'})->at($text); | ||
| 10809 | |||
| 10810 | |||
| 10811 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) | ||
| 10812 | { | ||
| 10813 | $text = $lastsep . $text if defined $lastsep; | ||
| 10814 | |||
| 10815 | $expectation->failed(); | ||
| 10816 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 10817 | Parse::RecDescent::_tracefirst($text)) | ||
| 10818 | if defined $::RD_TRACE; | ||
| 10819 | last; | ||
| 10820 | } | ||
| 10821 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 10822 | substr($text,0,length($current_match),q{}); | ||
| 10823 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 10824 | . $current_match . q{])}, | ||
| 10825 | Parse::RecDescent::_tracefirst($text)) | ||
| 10826 | if defined $::RD_TRACE; | ||
| 10827 | push @item, $item{__STRING2__}=$current_match; | ||
| 10828 | |||
| 10829 | |||
| 10830 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 10831 | Parse::RecDescent::_tracefirst($text), | ||
| 10832 | q{shline_bracket}, | ||
| 10833 | $tracelevel) | ||
| 10834 | if defined $::RD_TRACE; | ||
| 10835 | |||
| 10836 | |||
| 10837 | $_tok = ($_noactions) ? 0 : do { join("",'(',$item[2],@{$item[3]},$item[4],')') }; | ||
| 10838 | unless (defined $_tok) | ||
| 10839 | { | ||
| 10840 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 10841 | if defined $::RD_TRACE; | ||
| 10842 | last; | ||
| 10843 | } | ||
| 10844 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 10845 | . $_tok . q{])}, | ||
| 10846 | Parse::RecDescent::_tracefirst($text)) | ||
| 10847 | if defined $::RD_TRACE; | ||
| 10848 | push @item, $_tok; | ||
| 10849 | $item{__ACTION1__}=$_tok; | ||
| 10850 | |||
| 10851 | |||
| 10852 | Parse::RecDescent::_trace(q{>>Matched production: ['(' shline_inter shline_bracket shline_inter ')']<<}, | ||
| 10853 | Parse::RecDescent::_tracefirst($text), | ||
| 10854 | q{shline_bracket}, | ||
| 10855 | $tracelevel) | ||
| 10856 | if defined $::RD_TRACE; | ||
| 10857 | |||
| 10858 | |||
| 10859 | |||
| 10860 | $_matched = 1; | ||
| 10861 | last; | ||
| 10862 | } | ||
| 10863 | |||
| 10864 | |||
| 10865 | unless ( $_matched || defined($score) ) | ||
| 10866 | { | ||
| 10867 | |||
| 10868 | |||
| 10869 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 10870 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 10871 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10872 | q{shline_bracket}, | ||
| 10873 | $tracelevel) | ||
| 10874 | if defined $::RD_TRACE; | ||
| 10875 | return undef; | ||
| 10876 | } | ||
| 10877 | if (!defined($return) && defined($score)) | ||
| 10878 | { | ||
| 10879 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 10880 | q{shline_bracket}, | ||
| 10881 | $tracelevel) | ||
| 10882 | if defined $::RD_TRACE; | ||
| 10883 | $return = $score_return; | ||
| 10884 | } | ||
| 10885 | splice @{$thisparser->{errors}}, $err_at; | ||
| 10886 | $return = $item[$#item] unless defined $return; | ||
| 10887 | if (defined $::RD_TRACE) | ||
| 10888 | { | ||
| 10889 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 10890 | $return . q{])}, "", | ||
| 10891 | q{shline_bracket}, | ||
| 10892 | $tracelevel); | ||
| 10893 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 10894 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 10895 | Parse::RecDescent::_tracefirst($text), | ||
| 10896 | , q{shline_bracket}, | ||
| 10897 | $tracelevel) | ||
| 10898 | } | ||
| 10899 | $_[1] = $text; | ||
| 10900 | return $return; | ||
| 10901 | } | ||
| 10902 | |||
| 10903 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 10904 | sub Parse::RecDescent::XML::XSH2::Parser::shline_inter | ||
| 10905 | { | ||
| 10906 | my $thisparser = $_[0]; | ||
| 10907 | use vars q{$tracelevel}; | ||
| 10908 | local $tracelevel = ($tracelevel||0)+1; | ||
| 10909 | $ERRORS = 0; | ||
| 10910 | my $thisrule = $thisparser->{"rules"}{"shline_inter"}; | ||
| 10911 | |||
| 10912 | Parse::RecDescent::_trace(q{Trying rule: [shline_inter]}, | ||
| 10913 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10914 | q{shline_inter}, | ||
| 10915 | $tracelevel) | ||
| 10916 | if defined $::RD_TRACE; | ||
| 10917 | |||
| 10918 | |||
| 10919 | my $err_at = @{$thisparser->{errors}}; | ||
| 10920 | |||
| 10921 | my $score; | ||
| 10922 | my $score_return; | ||
| 10923 | my $_tok; | ||
| 10924 | my $return = undef; | ||
| 10925 | my $_matched=0; | ||
| 10926 | my $commit=0; | ||
| 10927 | my @item = (); | ||
| 10928 | my %item = (); | ||
| 10929 | my $repeating = $_[2]; | ||
| 10930 | my $_noactions = $_[3]; | ||
| 10931 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 10932 | my $_itempos = $_[5]; | ||
| 10933 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 10934 | my $text; | ||
| 10935 | my $lastsep; | ||
| 10936 | my $current_match; | ||
| 10937 | my $expectation = new Parse::RecDescent::Expectation(q{/([^()\\\\"']|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\'([^\\'\\\\]|\\\\\\'|\\\\\\\\|\\\\[^\\'\\\\])*\\')*/}); | ||
| 10938 | $expectation->at($_[1]); | ||
| 10939 | |||
| 10940 | my $thisoffset; | ||
| 10941 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 10942 | |||
| 10943 | my $thiscolumn; | ||
| 10944 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 10945 | |||
| 10946 | my $thisline; | ||
| 10947 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 10948 | |||
| 10949 | |||
| 10950 | |||
| 10951 | while (!$_matched && !$commit) | ||
| 10952 | { | ||
| 10953 | |||
| 10954 | Parse::RecDescent::_trace(q{Trying production: [/([^()\\\\"']|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\'([^\\'\\\\]|\\\\\\'|\\\\\\\\|\\\\[^\\'\\\\])*\\')*/]}, | ||
| 10955 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 10956 | q{shline_inter}, | ||
| 10957 | $tracelevel) | ||
| 10958 | if defined $::RD_TRACE; | ||
| 10959 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 10960 | $text = $_[1]; | ||
| 10961 | my $_savetext; | ||
| 10962 | @item = (q{shline_inter}); | ||
| 10963 | %item = (__RULE__ => q{shline_inter}); | ||
| 10964 | my $repcount = 0; | ||
| 10965 | |||
| 10966 | |||
| 10967 | Parse::RecDescent::_trace(q{Trying terminal: [/([^()\\\\"']|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\'([^\\'\\\\]|\\\\\\'|\\\\\\\\|\\\\[^\\'\\\\])*\\')*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 10968 | q{shline_inter}, | ||
| 10969 | $tracelevel) | ||
| 10970 | if defined $::RD_TRACE; | ||
| 10971 | undef $lastsep; | ||
| 10972 | $expectation->is(q{})->at($text); | ||
| 10973 | |||
| 10974 | |||
| 10975 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:([^()\\"']|\\.|\"([^\"\\]|\\.)*\"|\'([^\'\\]|\\\'|\\\\|\\[^\'\\])*\')*)/) | ||
| 10976 | { | ||
| 10977 | $text = $lastsep . $text if defined $lastsep; | ||
| 10978 | $expectation->failed(); | ||
| 10979 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 10980 | Parse::RecDescent::_tracefirst($text)) | ||
| 10981 | if defined $::RD_TRACE; | ||
| 10982 | |||
| 10983 | last; | ||
| 10984 | } | ||
| 10985 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 10986 | substr($text,0,length($current_match),q{}); | ||
| 10987 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 10988 | . $current_match . q{])}, | ||
| 10989 | Parse::RecDescent::_tracefirst($text)) | ||
| 10990 | if defined $::RD_TRACE; | ||
| 10991 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 10992 | |||
| 10993 | |||
| 10994 | Parse::RecDescent::_trace(q{>>Matched production: [/([^()\\\\"']|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\'([^\\'\\\\]|\\\\\\'|\\\\\\\\|\\\\[^\\'\\\\])*\\')*/]<<}, | ||
| 10995 | Parse::RecDescent::_tracefirst($text), | ||
| 10996 | q{shline_inter}, | ||
| 10997 | $tracelevel) | ||
| 10998 | if defined $::RD_TRACE; | ||
| 10999 | |||
| 11000 | |||
| 11001 | |||
| 11002 | $_matched = 1; | ||
| 11003 | last; | ||
| 11004 | } | ||
| 11005 | |||
| 11006 | |||
| 11007 | unless ( $_matched || defined($score) ) | ||
| 11008 | { | ||
| 11009 | |||
| 11010 | |||
| 11011 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 11012 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 11013 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11014 | q{shline_inter}, | ||
| 11015 | $tracelevel) | ||
| 11016 | if defined $::RD_TRACE; | ||
| 11017 | return undef; | ||
| 11018 | } | ||
| 11019 | if (!defined($return) && defined($score)) | ||
| 11020 | { | ||
| 11021 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 11022 | q{shline_inter}, | ||
| 11023 | $tracelevel) | ||
| 11024 | if defined $::RD_TRACE; | ||
| 11025 | $return = $score_return; | ||
| 11026 | } | ||
| 11027 | splice @{$thisparser->{errors}}, $err_at; | ||
| 11028 | $return = $item[$#item] unless defined $return; | ||
| 11029 | if (defined $::RD_TRACE) | ||
| 11030 | { | ||
| 11031 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 11032 | $return . q{])}, "", | ||
| 11033 | q{shline_inter}, | ||
| 11034 | $tracelevel); | ||
| 11035 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 11036 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 11037 | Parse::RecDescent::_tracefirst($text), | ||
| 11038 | , q{shline_inter}, | ||
| 11039 | $tracelevel) | ||
| 11040 | } | ||
| 11041 | $_[1] = $text; | ||
| 11042 | return $return; | ||
| 11043 | } | ||
| 11044 | |||
| 11045 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 11046 | sub Parse::RecDescent::XML::XSH2::Parser::shline_nosc | ||
| 11047 | { | ||
| 11048 | my $thisparser = $_[0]; | ||
| 11049 | use vars q{$tracelevel}; | ||
| 11050 | local $tracelevel = ($tracelevel||0)+1; | ||
| 11051 | $ERRORS = 0; | ||
| 11052 | my $thisrule = $thisparser->{"rules"}{"shline_nosc"}; | ||
| 11053 | |||
| 11054 | Parse::RecDescent::_trace(q{Trying rule: [shline_nosc]}, | ||
| 11055 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11056 | q{shline_nosc}, | ||
| 11057 | $tracelevel) | ||
| 11058 | if defined $::RD_TRACE; | ||
| 11059 | |||
| 11060 | |||
| 11061 | my $err_at = @{$thisparser->{errors}}; | ||
| 11062 | |||
| 11063 | my $score; | ||
| 11064 | my $score_return; | ||
| 11065 | my $_tok; | ||
| 11066 | my $return = undef; | ||
| 11067 | my $_matched=0; | ||
| 11068 | my $commit=0; | ||
| 11069 | my @item = (); | ||
| 11070 | my %item = (); | ||
| 11071 | my $repeating = $_[2]; | ||
| 11072 | my $_noactions = $_[3]; | ||
| 11073 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 11074 | my $_itempos = $_[5]; | ||
| 11075 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 11076 | my $text; | ||
| 11077 | my $lastsep; | ||
| 11078 | my $current_match; | ||
| 11079 | my $expectation = new Parse::RecDescent::Expectation(q{/([^;()\\\\"'\\|]|\\|[^>]|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\'([^\\'\\\\]|\\\\\\'|\\\\\\\\|\\\\[^\\'\\\\])*\\')*/}); | ||
| 11080 | $expectation->at($_[1]); | ||
| 11081 | |||
| 11082 | my $thisoffset; | ||
| 11083 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 11084 | |||
| 11085 | my $thiscolumn; | ||
| 11086 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 11087 | |||
| 11088 | my $thisline; | ||
| 11089 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 11090 | |||
| 11091 | |||
| 11092 | |||
| 11093 | while (!$_matched && !$commit) | ||
| 11094 | { | ||
| 11095 | |||
| 11096 | Parse::RecDescent::_trace(q{Trying production: [/([^;()\\\\"'\\|]|\\|[^>]|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\'([^\\'\\\\]|\\\\\\'|\\\\\\\\|\\\\[^\\'\\\\])*\\')*/]}, | ||
| 11097 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11098 | q{shline_nosc}, | ||
| 11099 | $tracelevel) | ||
| 11100 | if defined $::RD_TRACE; | ||
| 11101 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 11102 | $text = $_[1]; | ||
| 11103 | my $_savetext; | ||
| 11104 | @item = (q{shline_nosc}); | ||
| 11105 | %item = (__RULE__ => q{shline_nosc}); | ||
| 11106 | my $repcount = 0; | ||
| 11107 | |||
| 11108 | |||
| 11109 | Parse::RecDescent::_trace(q{Trying terminal: [/([^;()\\\\"'\\|]|\\|[^>]|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\'([^\\'\\\\]|\\\\\\'|\\\\\\\\|\\\\[^\\'\\\\])*\\')*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 11110 | q{shline_nosc}, | ||
| 11111 | $tracelevel) | ||
| 11112 | if defined $::RD_TRACE; | ||
| 11113 | undef $lastsep; | ||
| 11114 | $expectation->is(q{})->at($text); | ||
| 11115 | |||
| 11116 | |||
| 11117 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:([^;()\\"'\|]|\|[^>]|\\.|\"([^\"\\]|\\.)*\"|\'([^\'\\]|\\\'|\\\\|\\[^\'\\])*\')*)/) | ||
| 11118 | { | ||
| 11119 | $text = $lastsep . $text if defined $lastsep; | ||
| 11120 | $expectation->failed(); | ||
| 11121 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 11122 | Parse::RecDescent::_tracefirst($text)) | ||
| 11123 | if defined $::RD_TRACE; | ||
| 11124 | |||
| 11125 | last; | ||
| 11126 | } | ||
| 11127 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 11128 | substr($text,0,length($current_match),q{}); | ||
| 11129 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 11130 | . $current_match . q{])}, | ||
| 11131 | Parse::RecDescent::_tracefirst($text)) | ||
| 11132 | if defined $::RD_TRACE; | ||
| 11133 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 11134 | |||
| 11135 | |||
| 11136 | Parse::RecDescent::_trace(q{>>Matched production: [/([^;()\\\\"'\\|]|\\|[^>]|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\'([^\\'\\\\]|\\\\\\'|\\\\\\\\|\\\\[^\\'\\\\])*\\')*/]<<}, | ||
| 11137 | Parse::RecDescent::_tracefirst($text), | ||
| 11138 | q{shline_nosc}, | ||
| 11139 | $tracelevel) | ||
| 11140 | if defined $::RD_TRACE; | ||
| 11141 | |||
| 11142 | |||
| 11143 | |||
| 11144 | $_matched = 1; | ||
| 11145 | last; | ||
| 11146 | } | ||
| 11147 | |||
| 11148 | |||
| 11149 | unless ( $_matched || defined($score) ) | ||
| 11150 | { | ||
| 11151 | |||
| 11152 | |||
| 11153 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 11154 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 11155 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11156 | q{shline_nosc}, | ||
| 11157 | $tracelevel) | ||
| 11158 | if defined $::RD_TRACE; | ||
| 11159 | return undef; | ||
| 11160 | } | ||
| 11161 | if (!defined($return) && defined($score)) | ||
| 11162 | { | ||
| 11163 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 11164 | q{shline_nosc}, | ||
| 11165 | $tracelevel) | ||
| 11166 | if defined $::RD_TRACE; | ||
| 11167 | $return = $score_return; | ||
| 11168 | } | ||
| 11169 | splice @{$thisparser->{errors}}, $err_at; | ||
| 11170 | $return = $item[$#item] unless defined $return; | ||
| 11171 | if (defined $::RD_TRACE) | ||
| 11172 | { | ||
| 11173 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 11174 | $return . q{])}, "", | ||
| 11175 | q{shline_nosc}, | ||
| 11176 | $tracelevel); | ||
| 11177 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 11178 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 11179 | Parse::RecDescent::_tracefirst($text), | ||
| 11180 | , q{shline_nosc}, | ||
| 11181 | $tracelevel) | ||
| 11182 | } | ||
| 11183 | $_[1] = $text; | ||
| 11184 | return $return; | ||
| 11185 | } | ||
| 11186 | |||
| 11187 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 11188 | sub Parse::RecDescent::XML::XSH2::Parser::startrule | ||
| 11189 | { | ||
| 11190 | my $thisparser = $_[0]; | ||
| 11191 | use vars q{$tracelevel}; | ||
| 11192 | local $tracelevel = ($tracelevel||0)+1; | ||
| 11193 | $ERRORS = 0; | ||
| 11194 | my $thisrule = $thisparser->{"rules"}{"startrule"}; | ||
| 11195 | |||
| 11196 | Parse::RecDescent::_trace(q{Trying rule: [startrule]}, | ||
| 11197 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11198 | q{startrule}, | ||
| 11199 | $tracelevel) | ||
| 11200 | if defined $::RD_TRACE; | ||
| 11201 | |||
| 11202 | |||
| 11203 | my $err_at = @{$thisparser->{errors}}; | ||
| 11204 | |||
| 11205 | my $score; | ||
| 11206 | my $score_return; | ||
| 11207 | my $_tok; | ||
| 11208 | my $return = undef; | ||
| 11209 | my $_matched=0; | ||
| 11210 | my $commit=0; | ||
| 11211 | my @item = (); | ||
| 11212 | my %item = (); | ||
| 11213 | my $repeating = $_[2]; | ||
| 11214 | my $_noactions = $_[3]; | ||
| 11215 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 11216 | my $_itempos = $_[5]; | ||
| 11217 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 11218 | my $text; | ||
| 11219 | my $lastsep; | ||
| 11220 | my $current_match; | ||
| 11221 | my $expectation = new Parse::RecDescent::Expectation(q{shell, or complex_command}); | ||
| 11222 | $expectation->at($_[1]); | ||
| 11223 | |||
| 11224 | my $thisoffset; | ||
| 11225 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 11226 | |||
| 11227 | my $thiscolumn; | ||
| 11228 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 11229 | |||
| 11230 | my $thisline; | ||
| 11231 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 11232 | |||
| 11233 | |||
| 11234 | |||
| 11235 | while (!$_matched && !$commit) | ||
| 11236 | { | ||
| 11237 | |||
| 11238 | Parse::RecDescent::_trace(q{Trying production: [shell <commit> eof]}, | ||
| 11239 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11240 | q{startrule}, | ||
| 11241 | $tracelevel) | ||
| 11242 | if defined $::RD_TRACE; | ||
| 11243 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 11244 | $text = $_[1]; | ||
| 11245 | my $_savetext; | ||
| 11246 | @item = (q{startrule}); | ||
| 11247 | %item = (__RULE__ => q{startrule}); | ||
| 11248 | my $repcount = 0; | ||
| 11249 | |||
| 11250 | |||
| 11251 | Parse::RecDescent::_trace(q{Trying subrule: [shell]}, | ||
| 11252 | Parse::RecDescent::_tracefirst($text), | ||
| 11253 | q{startrule}, | ||
| 11254 | $tracelevel) | ||
| 11255 | if defined $::RD_TRACE; | ||
| 11256 | if (1) { no strict qw{refs}; | ||
| 11257 | $expectation->is(q{})->at($text); | ||
| 11258 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::shell($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 11259 | { | ||
| 11260 | |||
| 11261 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [shell]>>}, | ||
| 11262 | Parse::RecDescent::_tracefirst($text), | ||
| 11263 | q{startrule}, | ||
| 11264 | $tracelevel) | ||
| 11265 | if defined $::RD_TRACE; | ||
| 11266 | $expectation->failed(); | ||
| 11267 | last; | ||
| 11268 | } | ||
| 11269 | Parse::RecDescent::_trace(q{>>Matched subrule: [shell]<< (return value: [} | ||
| 11270 | . $_tok . q{]}, | ||
| 11271 | |||
| 11272 | Parse::RecDescent::_tracefirst($text), | ||
| 11273 | q{startrule}, | ||
| 11274 | $tracelevel) | ||
| 11275 | if defined $::RD_TRACE; | ||
| 11276 | $item{q{shell}} = $_tok; | ||
| 11277 | push @item, $_tok; | ||
| 11278 | |||
| 11279 | } | ||
| 11280 | |||
| 11281 | |||
| 11282 | |||
| 11283 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 11284 | Parse::RecDescent::_tracefirst($text), | ||
| 11285 | q{startrule}, | ||
| 11286 | $tracelevel) | ||
| 11287 | if defined $::RD_TRACE; | ||
| 11288 | $_tok = do { $commit = 1 }; | ||
| 11289 | if (defined($_tok)) | ||
| 11290 | { | ||
| 11291 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 11292 | . $_tok . q{])}, | ||
| 11293 | Parse::RecDescent::_tracefirst($text)) | ||
| 11294 | if defined $::RD_TRACE; | ||
| 11295 | } | ||
| 11296 | else | ||
| 11297 | { | ||
| 11298 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 11299 | Parse::RecDescent::_tracefirst($text)) | ||
| 11300 | if defined $::RD_TRACE; | ||
| 11301 | } | ||
| 11302 | |||
| 11303 | last unless defined $_tok; | ||
| 11304 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 11305 | |||
| 11306 | |||
| 11307 | Parse::RecDescent::_trace(q{Trying subrule: [eof]}, | ||
| 11308 | Parse::RecDescent::_tracefirst($text), | ||
| 11309 | q{startrule}, | ||
| 11310 | $tracelevel) | ||
| 11311 | if defined $::RD_TRACE; | ||
| 11312 | if (1) { no strict qw{refs}; | ||
| 11313 | $expectation->is(q{eof})->at($text); | ||
| 11314 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::eof($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 11315 | { | ||
| 11316 | |||
| 11317 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [eof]>>}, | ||
| 11318 | Parse::RecDescent::_tracefirst($text), | ||
| 11319 | q{startrule}, | ||
| 11320 | $tracelevel) | ||
| 11321 | if defined $::RD_TRACE; | ||
| 11322 | $expectation->failed(); | ||
| 11323 | last; | ||
| 11324 | } | ||
| 11325 | Parse::RecDescent::_trace(q{>>Matched subrule: [eof]<< (return value: [} | ||
| 11326 | . $_tok . q{]}, | ||
| 11327 | |||
| 11328 | Parse::RecDescent::_tracefirst($text), | ||
| 11329 | q{startrule}, | ||
| 11330 | $tracelevel) | ||
| 11331 | if defined $::RD_TRACE; | ||
| 11332 | $item{q{eof}} = $_tok; | ||
| 11333 | push @item, $_tok; | ||
| 11334 | |||
| 11335 | } | ||
| 11336 | |||
| 11337 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 11338 | Parse::RecDescent::_tracefirst($text), | ||
| 11339 | q{startrule}, | ||
| 11340 | $tracelevel) | ||
| 11341 | if defined $::RD_TRACE; | ||
| 11342 | |||
| 11343 | |||
| 11344 | $_tok = ($_noactions) ? 0 : do { $item[1] }; | ||
| 11345 | unless (defined $_tok) | ||
| 11346 | { | ||
| 11347 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 11348 | if defined $::RD_TRACE; | ||
| 11349 | last; | ||
| 11350 | } | ||
| 11351 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 11352 | . $_tok . q{])}, | ||
| 11353 | Parse::RecDescent::_tracefirst($text)) | ||
| 11354 | if defined $::RD_TRACE; | ||
| 11355 | push @item, $_tok; | ||
| 11356 | $item{__ACTION1__}=$_tok; | ||
| 11357 | |||
| 11358 | |||
| 11359 | Parse::RecDescent::_trace(q{>>Matched production: [shell <commit> eof]<<}, | ||
| 11360 | Parse::RecDescent::_tracefirst($text), | ||
| 11361 | q{startrule}, | ||
| 11362 | $tracelevel) | ||
| 11363 | if defined $::RD_TRACE; | ||
| 11364 | |||
| 11365 | |||
| 11366 | |||
| 11367 | $_matched = 1; | ||
| 11368 | last; | ||
| 11369 | } | ||
| 11370 | |||
| 11371 | |||
| 11372 | while (!$_matched && !$commit) | ||
| 11373 | { | ||
| 11374 | |||
| 11375 | Parse::RecDescent::_trace(q{Trying production: [complex_command <commit> eof]}, | ||
| 11376 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11377 | q{startrule}, | ||
| 11378 | $tracelevel) | ||
| 11379 | if defined $::RD_TRACE; | ||
| 11380 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 11381 | $text = $_[1]; | ||
| 11382 | my $_savetext; | ||
| 11383 | @item = (q{startrule}); | ||
| 11384 | %item = (__RULE__ => q{startrule}); | ||
| 11385 | my $repcount = 0; | ||
| 11386 | |||
| 11387 | |||
| 11388 | Parse::RecDescent::_trace(q{Trying repeated subrule: [complex_command]}, | ||
| 11389 | Parse::RecDescent::_tracefirst($text), | ||
| 11390 | q{startrule}, | ||
| 11391 | $tracelevel) | ||
| 11392 | if defined $::RD_TRACE; | ||
| 11393 | $expectation->is(q{})->at($text); | ||
| 11394 | |||
| 11395 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::complex_command, 1, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 11396 | { | ||
| 11397 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [complex_command]>>}, | ||
| 11398 | Parse::RecDescent::_tracefirst($text), | ||
| 11399 | q{startrule}, | ||
| 11400 | $tracelevel) | ||
| 11401 | if defined $::RD_TRACE; | ||
| 11402 | last; | ||
| 11403 | } | ||
| 11404 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [complex_command]<< (} | ||
| 11405 | . @$_tok . q{ times)}, | ||
| 11406 | |||
| 11407 | Parse::RecDescent::_tracefirst($text), | ||
| 11408 | q{startrule}, | ||
| 11409 | $tracelevel) | ||
| 11410 | if defined $::RD_TRACE; | ||
| 11411 | $item{q{complex_command(s)}} = $_tok; | ||
| 11412 | push @item, $_tok; | ||
| 11413 | |||
| 11414 | |||
| 11415 | |||
| 11416 | |||
| 11417 | |||
| 11418 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 11419 | Parse::RecDescent::_tracefirst($text), | ||
| 11420 | q{startrule}, | ||
| 11421 | $tracelevel) | ||
| 11422 | if defined $::RD_TRACE; | ||
| 11423 | $_tok = do { $commit = 1 }; | ||
| 11424 | if (defined($_tok)) | ||
| 11425 | { | ||
| 11426 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 11427 | . $_tok . q{])}, | ||
| 11428 | Parse::RecDescent::_tracefirst($text)) | ||
| 11429 | if defined $::RD_TRACE; | ||
| 11430 | } | ||
| 11431 | else | ||
| 11432 | { | ||
| 11433 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 11434 | Parse::RecDescent::_tracefirst($text)) | ||
| 11435 | if defined $::RD_TRACE; | ||
| 11436 | } | ||
| 11437 | |||
| 11438 | last unless defined $_tok; | ||
| 11439 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 11440 | |||
| 11441 | |||
| 11442 | Parse::RecDescent::_trace(q{Trying subrule: [eof]}, | ||
| 11443 | Parse::RecDescent::_tracefirst($text), | ||
| 11444 | q{startrule}, | ||
| 11445 | $tracelevel) | ||
| 11446 | if defined $::RD_TRACE; | ||
| 11447 | if (1) { no strict qw{refs}; | ||
| 11448 | $expectation->is(q{eof})->at($text); | ||
| 11449 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::eof($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 11450 | { | ||
| 11451 | |||
| 11452 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [eof]>>}, | ||
| 11453 | Parse::RecDescent::_tracefirst($text), | ||
| 11454 | q{startrule}, | ||
| 11455 | $tracelevel) | ||
| 11456 | if defined $::RD_TRACE; | ||
| 11457 | $expectation->failed(); | ||
| 11458 | last; | ||
| 11459 | } | ||
| 11460 | Parse::RecDescent::_trace(q{>>Matched subrule: [eof]<< (return value: [} | ||
| 11461 | . $_tok . q{]}, | ||
| 11462 | |||
| 11463 | Parse::RecDescent::_tracefirst($text), | ||
| 11464 | q{startrule}, | ||
| 11465 | $tracelevel) | ||
| 11466 | if defined $::RD_TRACE; | ||
| 11467 | $item{q{eof}} = $_tok; | ||
| 11468 | push @item, $_tok; | ||
| 11469 | |||
| 11470 | } | ||
| 11471 | |||
| 11472 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 11473 | Parse::RecDescent::_tracefirst($text), | ||
| 11474 | q{startrule}, | ||
| 11475 | $tracelevel) | ||
| 11476 | if defined $::RD_TRACE; | ||
| 11477 | |||
| 11478 | |||
| 11479 | $_tok = ($_noactions) ? 0 : do { $item[1] }; | ||
| 11480 | unless (defined $_tok) | ||
| 11481 | { | ||
| 11482 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 11483 | if defined $::RD_TRACE; | ||
| 11484 | last; | ||
| 11485 | } | ||
| 11486 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 11487 | . $_tok . q{])}, | ||
| 11488 | Parse::RecDescent::_tracefirst($text)) | ||
| 11489 | if defined $::RD_TRACE; | ||
| 11490 | push @item, $_tok; | ||
| 11491 | $item{__ACTION1__}=$_tok; | ||
| 11492 | |||
| 11493 | |||
| 11494 | Parse::RecDescent::_trace(q{>>Matched production: [complex_command <commit> eof]<<}, | ||
| 11495 | Parse::RecDescent::_tracefirst($text), | ||
| 11496 | q{startrule}, | ||
| 11497 | $tracelevel) | ||
| 11498 | if defined $::RD_TRACE; | ||
| 11499 | |||
| 11500 | |||
| 11501 | |||
| 11502 | $_matched = 1; | ||
| 11503 | last; | ||
| 11504 | } | ||
| 11505 | |||
| 11506 | |||
| 11507 | unless ( $_matched || defined($score) ) | ||
| 11508 | { | ||
| 11509 | |||
| 11510 | |||
| 11511 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 11512 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 11513 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11514 | q{startrule}, | ||
| 11515 | $tracelevel) | ||
| 11516 | if defined $::RD_TRACE; | ||
| 11517 | return undef; | ||
| 11518 | } | ||
| 11519 | if (!defined($return) && defined($score)) | ||
| 11520 | { | ||
| 11521 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 11522 | q{startrule}, | ||
| 11523 | $tracelevel) | ||
| 11524 | if defined $::RD_TRACE; | ||
| 11525 | $return = $score_return; | ||
| 11526 | } | ||
| 11527 | splice @{$thisparser->{errors}}, $err_at; | ||
| 11528 | $return = $item[$#item] unless defined $return; | ||
| 11529 | if (defined $::RD_TRACE) | ||
| 11530 | { | ||
| 11531 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 11532 | $return . q{])}, "", | ||
| 11533 | q{startrule}, | ||
| 11534 | $tracelevel); | ||
| 11535 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 11536 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 11537 | Parse::RecDescent::_tracefirst($text), | ||
| 11538 | , q{startrule}, | ||
| 11539 | $tracelevel) | ||
| 11540 | } | ||
| 11541 | $_[1] = $text; | ||
| 11542 | return $return; | ||
| 11543 | } | ||
| 11544 | |||
| 11545 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 11546 | sub Parse::RecDescent::XML::XSH2::Parser::statement | ||
| 11547 | { | ||
| 11548 | my $thisparser = $_[0]; | ||
| 11549 | use vars q{$tracelevel}; | ||
| 11550 | local $tracelevel = ($tracelevel||0)+1; | ||
| 11551 | $ERRORS = 0; | ||
| 11552 | my $thisrule = $thisparser->{"rules"}{"statement"}; | ||
| 11553 | |||
| 11554 | Parse::RecDescent::_trace(q{Trying rule: [statement]}, | ||
| 11555 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11556 | q{statement}, | ||
| 11557 | $tracelevel) | ||
| 11558 | if defined $::RD_TRACE; | ||
| 11559 | |||
| 11560 | |||
| 11561 | my $err_at = @{$thisparser->{errors}}; | ||
| 11562 | |||
| 11563 | my $score; | ||
| 11564 | my $score_return; | ||
| 11565 | my $_tok; | ||
| 11566 | my $return = undef; | ||
| 11567 | my $_matched=0; | ||
| 11568 | my $commit=0; | ||
| 11569 | my @item = (); | ||
| 11570 | my %item = (); | ||
| 11571 | my $repeating = $_[2]; | ||
| 11572 | my $_noactions = $_[3]; | ||
| 11573 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 11574 | my $_itempos = $_[5]; | ||
| 11575 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 11576 | my $text; | ||
| 11577 | my $lastsep; | ||
| 11578 | my $current_match; | ||
| 11579 | my $expectation = new Parse::RecDescent::Expectation(q{/(?=\\s*[\}\{;])/, or /(if)\\b/, or /(unless)\\b/, or /(while)\\b/, or /(foreach|for)\\b/, or /(try)\\b/, or /(iterate)\\b/, or /(def|define)\\b/}); | ||
| 11580 | $expectation->at($_[1]); | ||
| 11581 | |||
| 11582 | my $thisoffset; | ||
| 11583 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 11584 | |||
| 11585 | my $thiscolumn; | ||
| 11586 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 11587 | |||
| 11588 | my $thisline; | ||
| 11589 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 11590 | |||
| 11591 | |||
| 11592 | |||
| 11593 | while (!$_matched && !$commit) | ||
| 11594 | { | ||
| 11595 | |||
| 11596 | Parse::RecDescent::_trace(q{Trying production: [/(?=\\s*[\}\{;])/ <commit> <reject>]}, | ||
| 11597 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11598 | q{statement}, | ||
| 11599 | $tracelevel) | ||
| 11600 | if defined $::RD_TRACE; | ||
| 11601 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 11602 | $text = $_[1]; | ||
| 11603 | my $_savetext; | ||
| 11604 | @item = (q{statement}); | ||
| 11605 | %item = (__RULE__ => q{statement}); | ||
| 11606 | my $repcount = 0; | ||
| 11607 | |||
| 11608 | |||
| 11609 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=\\s*[\}\{;])/]}, Parse::RecDescent::_tracefirst($text), | ||
| 11610 | q{statement}, | ||
| 11611 | $tracelevel) | ||
| 11612 | if defined $::RD_TRACE; | ||
| 11613 | undef $lastsep; | ||
| 11614 | $expectation->is(q{})->at($text); | ||
| 11615 | |||
| 11616 | |||
| 11617 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=\s*[}{;]))/) | ||
| 11618 | { | ||
| 11619 | $text = $lastsep . $text if defined $lastsep; | ||
| 11620 | $expectation->failed(); | ||
| 11621 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 11622 | Parse::RecDescent::_tracefirst($text)) | ||
| 11623 | if defined $::RD_TRACE; | ||
| 11624 | |||
| 11625 | last; | ||
| 11626 | } | ||
| 11627 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 11628 | substr($text,0,length($current_match),q{}); | ||
| 11629 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 11630 | . $current_match . q{])}, | ||
| 11631 | Parse::RecDescent::_tracefirst($text)) | ||
| 11632 | if defined $::RD_TRACE; | ||
| 11633 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 11634 | |||
| 11635 | |||
| 11636 | |||
| 11637 | |||
| 11638 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 11639 | Parse::RecDescent::_tracefirst($text), | ||
| 11640 | q{statement}, | ||
| 11641 | $tracelevel) | ||
| 11642 | if defined $::RD_TRACE; | ||
| 11643 | $_tok = do { $commit = 1 }; | ||
| 11644 | if (defined($_tok)) | ||
| 11645 | { | ||
| 11646 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 11647 | . $_tok . q{])}, | ||
| 11648 | Parse::RecDescent::_tracefirst($text)) | ||
| 11649 | if defined $::RD_TRACE; | ||
| 11650 | } | ||
| 11651 | else | ||
| 11652 | { | ||
| 11653 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 11654 | Parse::RecDescent::_tracefirst($text)) | ||
| 11655 | if defined $::RD_TRACE; | ||
| 11656 | } | ||
| 11657 | |||
| 11658 | last unless defined $_tok; | ||
| 11659 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 11660 | |||
| 11661 | |||
| 11662 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 11663 | Parse::RecDescent::_tracefirst($text), | ||
| 11664 | q{statement}, | ||
| 11665 | $tracelevel) | ||
| 11666 | if defined $::RD_TRACE; | ||
| 11667 | undef $return; | ||
| 11668 | |||
| 11669 | |||
| 11670 | $_tok = undef; | ||
| 11671 | |||
| 11672 | last unless defined $_tok; | ||
| 11673 | |||
| 11674 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=\\s*[\}\{;])/ <commit> <reject>]<<}, | ||
| 11675 | Parse::RecDescent::_tracefirst($text), | ||
| 11676 | q{statement}, | ||
| 11677 | $tracelevel) | ||
| 11678 | if defined $::RD_TRACE; | ||
| 11679 | |||
| 11680 | |||
| 11681 | |||
| 11682 | $_matched = 1; | ||
| 11683 | last; | ||
| 11684 | } | ||
| 11685 | |||
| 11686 | |||
| 11687 | while (!$_matched && !$commit) | ||
| 11688 | { | ||
| 11689 | |||
| 11690 | Parse::RecDescent::_trace(q{Trying production: [/(if)\\b/ <commit> exp block elsif_block else_block]}, | ||
| 11691 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11692 | q{statement}, | ||
| 11693 | $tracelevel) | ||
| 11694 | if defined $::RD_TRACE; | ||
| 11695 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 11696 | $text = $_[1]; | ||
| 11697 | my $_savetext; | ||
| 11698 | @item = (q{statement}); | ||
| 11699 | %item = (__RULE__ => q{statement}); | ||
| 11700 | my $repcount = 0; | ||
| 11701 | |||
| 11702 | |||
| 11703 | Parse::RecDescent::_trace(q{Trying terminal: [/(if)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 11704 | q{statement}, | ||
| 11705 | $tracelevel) | ||
| 11706 | if defined $::RD_TRACE; | ||
| 11707 | undef $lastsep; | ||
| 11708 | $expectation->is(q{})->at($text); | ||
| 11709 | |||
| 11710 | |||
| 11711 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(if)\b)/) | ||
| 11712 | { | ||
| 11713 | $text = $lastsep . $text if defined $lastsep; | ||
| 11714 | $expectation->failed(); | ||
| 11715 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 11716 | Parse::RecDescent::_tracefirst($text)) | ||
| 11717 | if defined $::RD_TRACE; | ||
| 11718 | |||
| 11719 | last; | ||
| 11720 | } | ||
| 11721 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 11722 | substr($text,0,length($current_match),q{}); | ||
| 11723 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 11724 | . $current_match . q{])}, | ||
| 11725 | Parse::RecDescent::_tracefirst($text)) | ||
| 11726 | if defined $::RD_TRACE; | ||
| 11727 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 11728 | |||
| 11729 | |||
| 11730 | |||
| 11731 | |||
| 11732 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 11733 | Parse::RecDescent::_tracefirst($text), | ||
| 11734 | q{statement}, | ||
| 11735 | $tracelevel) | ||
| 11736 | if defined $::RD_TRACE; | ||
| 11737 | $_tok = do { $commit = 1 }; | ||
| 11738 | if (defined($_tok)) | ||
| 11739 | { | ||
| 11740 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 11741 | . $_tok . q{])}, | ||
| 11742 | Parse::RecDescent::_tracefirst($text)) | ||
| 11743 | if defined $::RD_TRACE; | ||
| 11744 | } | ||
| 11745 | else | ||
| 11746 | { | ||
| 11747 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 11748 | Parse::RecDescent::_tracefirst($text)) | ||
| 11749 | if defined $::RD_TRACE; | ||
| 11750 | } | ||
| 11751 | |||
| 11752 | last unless defined $_tok; | ||
| 11753 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 11754 | |||
| 11755 | |||
| 11756 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 11757 | Parse::RecDescent::_tracefirst($text), | ||
| 11758 | q{statement}, | ||
| 11759 | $tracelevel) | ||
| 11760 | if defined $::RD_TRACE; | ||
| 11761 | if (1) { no strict qw{refs}; | ||
| 11762 | $expectation->is(q{exp})->at($text); | ||
| 11763 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 11764 | { | ||
| 11765 | |||
| 11766 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 11767 | Parse::RecDescent::_tracefirst($text), | ||
| 11768 | q{statement}, | ||
| 11769 | $tracelevel) | ||
| 11770 | if defined $::RD_TRACE; | ||
| 11771 | $expectation->failed(); | ||
| 11772 | last; | ||
| 11773 | } | ||
| 11774 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 11775 | . $_tok . q{]}, | ||
| 11776 | |||
| 11777 | Parse::RecDescent::_tracefirst($text), | ||
| 11778 | q{statement}, | ||
| 11779 | $tracelevel) | ||
| 11780 | if defined $::RD_TRACE; | ||
| 11781 | $item{q{exp}} = $_tok; | ||
| 11782 | push @item, $_tok; | ||
| 11783 | |||
| 11784 | } | ||
| 11785 | |||
| 11786 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 11787 | Parse::RecDescent::_tracefirst($text), | ||
| 11788 | q{statement}, | ||
| 11789 | $tracelevel) | ||
| 11790 | if defined $::RD_TRACE; | ||
| 11791 | if (1) { no strict qw{refs}; | ||
| 11792 | $expectation->is(q{block})->at($text); | ||
| 11793 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 11794 | { | ||
| 11795 | |||
| 11796 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 11797 | Parse::RecDescent::_tracefirst($text), | ||
| 11798 | q{statement}, | ||
| 11799 | $tracelevel) | ||
| 11800 | if defined $::RD_TRACE; | ||
| 11801 | $expectation->failed(); | ||
| 11802 | last; | ||
| 11803 | } | ||
| 11804 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 11805 | . $_tok . q{]}, | ||
| 11806 | |||
| 11807 | Parse::RecDescent::_tracefirst($text), | ||
| 11808 | q{statement}, | ||
| 11809 | $tracelevel) | ||
| 11810 | if defined $::RD_TRACE; | ||
| 11811 | $item{q{block}} = $_tok; | ||
| 11812 | push @item, $_tok; | ||
| 11813 | |||
| 11814 | } | ||
| 11815 | |||
| 11816 | Parse::RecDescent::_trace(q{Trying subrule: [elsif_block]}, | ||
| 11817 | Parse::RecDescent::_tracefirst($text), | ||
| 11818 | q{statement}, | ||
| 11819 | $tracelevel) | ||
| 11820 | if defined $::RD_TRACE; | ||
| 11821 | if (1) { no strict qw{refs}; | ||
| 11822 | $expectation->is(q{elsif_block})->at($text); | ||
| 11823 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::elsif_block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 11824 | { | ||
| 11825 | |||
| 11826 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [elsif_block]>>}, | ||
| 11827 | Parse::RecDescent::_tracefirst($text), | ||
| 11828 | q{statement}, | ||
| 11829 | $tracelevel) | ||
| 11830 | if defined $::RD_TRACE; | ||
| 11831 | $expectation->failed(); | ||
| 11832 | last; | ||
| 11833 | } | ||
| 11834 | Parse::RecDescent::_trace(q{>>Matched subrule: [elsif_block]<< (return value: [} | ||
| 11835 | . $_tok . q{]}, | ||
| 11836 | |||
| 11837 | Parse::RecDescent::_tracefirst($text), | ||
| 11838 | q{statement}, | ||
| 11839 | $tracelevel) | ||
| 11840 | if defined $::RD_TRACE; | ||
| 11841 | $item{q{elsif_block}} = $_tok; | ||
| 11842 | push @item, $_tok; | ||
| 11843 | |||
| 11844 | } | ||
| 11845 | |||
| 11846 | Parse::RecDescent::_trace(q{Trying subrule: [else_block]}, | ||
| 11847 | Parse::RecDescent::_tracefirst($text), | ||
| 11848 | q{statement}, | ||
| 11849 | $tracelevel) | ||
| 11850 | if defined $::RD_TRACE; | ||
| 11851 | if (1) { no strict qw{refs}; | ||
| 11852 | $expectation->is(q{else_block})->at($text); | ||
| 11853 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::else_block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 11854 | { | ||
| 11855 | |||
| 11856 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [else_block]>>}, | ||
| 11857 | Parse::RecDescent::_tracefirst($text), | ||
| 11858 | q{statement}, | ||
| 11859 | $tracelevel) | ||
| 11860 | if defined $::RD_TRACE; | ||
| 11861 | $expectation->failed(); | ||
| 11862 | last; | ||
| 11863 | } | ||
| 11864 | Parse::RecDescent::_trace(q{>>Matched subrule: [else_block]<< (return value: [} | ||
| 11865 | . $_tok . q{]}, | ||
| 11866 | |||
| 11867 | Parse::RecDescent::_tracefirst($text), | ||
| 11868 | q{statement}, | ||
| 11869 | $tracelevel) | ||
| 11870 | if defined $::RD_TRACE; | ||
| 11871 | $item{q{else_block}} = $_tok; | ||
| 11872 | push @item, $_tok; | ||
| 11873 | |||
| 11874 | } | ||
| 11875 | |||
| 11876 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 11877 | Parse::RecDescent::_tracefirst($text), | ||
| 11878 | q{statement}, | ||
| 11879 | $tracelevel) | ||
| 11880 | if defined $::RD_TRACE; | ||
| 11881 | |||
| 11882 | |||
| 11883 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'if_statement',[$item[3],$item[4]],@{$item[5]},@{$item[6]}] }; | ||
| 11884 | unless (defined $_tok) | ||
| 11885 | { | ||
| 11886 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 11887 | if defined $::RD_TRACE; | ||
| 11888 | last; | ||
| 11889 | } | ||
| 11890 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 11891 | . $_tok . q{])}, | ||
| 11892 | Parse::RecDescent::_tracefirst($text)) | ||
| 11893 | if defined $::RD_TRACE; | ||
| 11894 | push @item, $_tok; | ||
| 11895 | $item{__ACTION1__}=$_tok; | ||
| 11896 | |||
| 11897 | |||
| 11898 | Parse::RecDescent::_trace(q{>>Matched production: [/(if)\\b/ <commit> exp block elsif_block else_block]<<}, | ||
| 11899 | Parse::RecDescent::_tracefirst($text), | ||
| 11900 | q{statement}, | ||
| 11901 | $tracelevel) | ||
| 11902 | if defined $::RD_TRACE; | ||
| 11903 | |||
| 11904 | |||
| 11905 | |||
| 11906 | $_matched = 1; | ||
| 11907 | last; | ||
| 11908 | } | ||
| 11909 | |||
| 11910 | |||
| 11911 | while (!$_matched && !$commit) | ||
| 11912 | { | ||
| 11913 | |||
| 11914 | Parse::RecDescent::_trace(q{Trying production: [/(unless)\\b/ <commit> exp block else_block]}, | ||
| 11915 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 11916 | q{statement}, | ||
| 11917 | $tracelevel) | ||
| 11918 | if defined $::RD_TRACE; | ||
| 11919 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 11920 | $text = $_[1]; | ||
| 11921 | my $_savetext; | ||
| 11922 | @item = (q{statement}); | ||
| 11923 | %item = (__RULE__ => q{statement}); | ||
| 11924 | my $repcount = 0; | ||
| 11925 | |||
| 11926 | |||
| 11927 | Parse::RecDescent::_trace(q{Trying terminal: [/(unless)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 11928 | q{statement}, | ||
| 11929 | $tracelevel) | ||
| 11930 | if defined $::RD_TRACE; | ||
| 11931 | undef $lastsep; | ||
| 11932 | $expectation->is(q{})->at($text); | ||
| 11933 | |||
| 11934 | |||
| 11935 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(unless)\b)/) | ||
| 11936 | { | ||
| 11937 | $text = $lastsep . $text if defined $lastsep; | ||
| 11938 | $expectation->failed(); | ||
| 11939 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 11940 | Parse::RecDescent::_tracefirst($text)) | ||
| 11941 | if defined $::RD_TRACE; | ||
| 11942 | |||
| 11943 | last; | ||
| 11944 | } | ||
| 11945 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 11946 | substr($text,0,length($current_match),q{}); | ||
| 11947 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 11948 | . $current_match . q{])}, | ||
| 11949 | Parse::RecDescent::_tracefirst($text)) | ||
| 11950 | if defined $::RD_TRACE; | ||
| 11951 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 11952 | |||
| 11953 | |||
| 11954 | |||
| 11955 | |||
| 11956 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 11957 | Parse::RecDescent::_tracefirst($text), | ||
| 11958 | q{statement}, | ||
| 11959 | $tracelevel) | ||
| 11960 | if defined $::RD_TRACE; | ||
| 11961 | $_tok = do { $commit = 1 }; | ||
| 11962 | if (defined($_tok)) | ||
| 11963 | { | ||
| 11964 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 11965 | . $_tok . q{])}, | ||
| 11966 | Parse::RecDescent::_tracefirst($text)) | ||
| 11967 | if defined $::RD_TRACE; | ||
| 11968 | } | ||
| 11969 | else | ||
| 11970 | { | ||
| 11971 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 11972 | Parse::RecDescent::_tracefirst($text)) | ||
| 11973 | if defined $::RD_TRACE; | ||
| 11974 | } | ||
| 11975 | |||
| 11976 | last unless defined $_tok; | ||
| 11977 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 11978 | |||
| 11979 | |||
| 11980 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 11981 | Parse::RecDescent::_tracefirst($text), | ||
| 11982 | q{statement}, | ||
| 11983 | $tracelevel) | ||
| 11984 | if defined $::RD_TRACE; | ||
| 11985 | if (1) { no strict qw{refs}; | ||
| 11986 | $expectation->is(q{exp})->at($text); | ||
| 11987 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 11988 | { | ||
| 11989 | |||
| 11990 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 11991 | Parse::RecDescent::_tracefirst($text), | ||
| 11992 | q{statement}, | ||
| 11993 | $tracelevel) | ||
| 11994 | if defined $::RD_TRACE; | ||
| 11995 | $expectation->failed(); | ||
| 11996 | last; | ||
| 11997 | } | ||
| 11998 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 11999 | . $_tok . q{]}, | ||
| 12000 | |||
| 12001 | Parse::RecDescent::_tracefirst($text), | ||
| 12002 | q{statement}, | ||
| 12003 | $tracelevel) | ||
| 12004 | if defined $::RD_TRACE; | ||
| 12005 | $item{q{exp}} = $_tok; | ||
| 12006 | push @item, $_tok; | ||
| 12007 | |||
| 12008 | } | ||
| 12009 | |||
| 12010 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 12011 | Parse::RecDescent::_tracefirst($text), | ||
| 12012 | q{statement}, | ||
| 12013 | $tracelevel) | ||
| 12014 | if defined $::RD_TRACE; | ||
| 12015 | if (1) { no strict qw{refs}; | ||
| 12016 | $expectation->is(q{block})->at($text); | ||
| 12017 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12018 | { | ||
| 12019 | |||
| 12020 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 12021 | Parse::RecDescent::_tracefirst($text), | ||
| 12022 | q{statement}, | ||
| 12023 | $tracelevel) | ||
| 12024 | if defined $::RD_TRACE; | ||
| 12025 | $expectation->failed(); | ||
| 12026 | last; | ||
| 12027 | } | ||
| 12028 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 12029 | . $_tok . q{]}, | ||
| 12030 | |||
| 12031 | Parse::RecDescent::_tracefirst($text), | ||
| 12032 | q{statement}, | ||
| 12033 | $tracelevel) | ||
| 12034 | if defined $::RD_TRACE; | ||
| 12035 | $item{q{block}} = $_tok; | ||
| 12036 | push @item, $_tok; | ||
| 12037 | |||
| 12038 | } | ||
| 12039 | |||
| 12040 | Parse::RecDescent::_trace(q{Trying repeated subrule: [else_block]}, | ||
| 12041 | Parse::RecDescent::_tracefirst($text), | ||
| 12042 | q{statement}, | ||
| 12043 | $tracelevel) | ||
| 12044 | if defined $::RD_TRACE; | ||
| 12045 | $expectation->is(q{else_block})->at($text); | ||
| 12046 | |||
| 12047 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::else_block, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 12048 | { | ||
| 12049 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [else_block]>>}, | ||
| 12050 | Parse::RecDescent::_tracefirst($text), | ||
| 12051 | q{statement}, | ||
| 12052 | $tracelevel) | ||
| 12053 | if defined $::RD_TRACE; | ||
| 12054 | last; | ||
| 12055 | } | ||
| 12056 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [else_block]<< (} | ||
| 12057 | . @$_tok . q{ times)}, | ||
| 12058 | |||
| 12059 | Parse::RecDescent::_tracefirst($text), | ||
| 12060 | q{statement}, | ||
| 12061 | $tracelevel) | ||
| 12062 | if defined $::RD_TRACE; | ||
| 12063 | $item{q{else_block(?)}} = $_tok; | ||
| 12064 | push @item, $_tok; | ||
| 12065 | |||
| 12066 | |||
| 12067 | |||
| 12068 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 12069 | Parse::RecDescent::_tracefirst($text), | ||
| 12070 | q{statement}, | ||
| 12071 | $tracelevel) | ||
| 12072 | if defined $::RD_TRACE; | ||
| 12073 | |||
| 12074 | |||
| 12075 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'unless_statement',$item[3],$item[4],@{$item[5]}] }; | ||
| 12076 | unless (defined $_tok) | ||
| 12077 | { | ||
| 12078 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 12079 | if defined $::RD_TRACE; | ||
| 12080 | last; | ||
| 12081 | } | ||
| 12082 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 12083 | . $_tok . q{])}, | ||
| 12084 | Parse::RecDescent::_tracefirst($text)) | ||
| 12085 | if defined $::RD_TRACE; | ||
| 12086 | push @item, $_tok; | ||
| 12087 | $item{__ACTION1__}=$_tok; | ||
| 12088 | |||
| 12089 | |||
| 12090 | Parse::RecDescent::_trace(q{>>Matched production: [/(unless)\\b/ <commit> exp block else_block]<<}, | ||
| 12091 | Parse::RecDescent::_tracefirst($text), | ||
| 12092 | q{statement}, | ||
| 12093 | $tracelevel) | ||
| 12094 | if defined $::RD_TRACE; | ||
| 12095 | |||
| 12096 | |||
| 12097 | |||
| 12098 | $_matched = 1; | ||
| 12099 | last; | ||
| 12100 | } | ||
| 12101 | |||
| 12102 | |||
| 12103 | while (!$_matched && !$commit) | ||
| 12104 | { | ||
| 12105 | |||
| 12106 | Parse::RecDescent::_trace(q{Trying production: [/(while)\\b/ <commit> exp block]}, | ||
| 12107 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 12108 | q{statement}, | ||
| 12109 | $tracelevel) | ||
| 12110 | if defined $::RD_TRACE; | ||
| 12111 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 12112 | $text = $_[1]; | ||
| 12113 | my $_savetext; | ||
| 12114 | @item = (q{statement}); | ||
| 12115 | %item = (__RULE__ => q{statement}); | ||
| 12116 | my $repcount = 0; | ||
| 12117 | |||
| 12118 | |||
| 12119 | Parse::RecDescent::_trace(q{Trying terminal: [/(while)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 12120 | q{statement}, | ||
| 12121 | $tracelevel) | ||
| 12122 | if defined $::RD_TRACE; | ||
| 12123 | undef $lastsep; | ||
| 12124 | $expectation->is(q{})->at($text); | ||
| 12125 | |||
| 12126 | |||
| 12127 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(while)\b)/) | ||
| 12128 | { | ||
| 12129 | $text = $lastsep . $text if defined $lastsep; | ||
| 12130 | $expectation->failed(); | ||
| 12131 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 12132 | Parse::RecDescent::_tracefirst($text)) | ||
| 12133 | if defined $::RD_TRACE; | ||
| 12134 | |||
| 12135 | last; | ||
| 12136 | } | ||
| 12137 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 12138 | substr($text,0,length($current_match),q{}); | ||
| 12139 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 12140 | . $current_match . q{])}, | ||
| 12141 | Parse::RecDescent::_tracefirst($text)) | ||
| 12142 | if defined $::RD_TRACE; | ||
| 12143 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 12144 | |||
| 12145 | |||
| 12146 | |||
| 12147 | |||
| 12148 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 12149 | Parse::RecDescent::_tracefirst($text), | ||
| 12150 | q{statement}, | ||
| 12151 | $tracelevel) | ||
| 12152 | if defined $::RD_TRACE; | ||
| 12153 | $_tok = do { $commit = 1 }; | ||
| 12154 | if (defined($_tok)) | ||
| 12155 | { | ||
| 12156 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 12157 | . $_tok . q{])}, | ||
| 12158 | Parse::RecDescent::_tracefirst($text)) | ||
| 12159 | if defined $::RD_TRACE; | ||
| 12160 | } | ||
| 12161 | else | ||
| 12162 | { | ||
| 12163 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 12164 | Parse::RecDescent::_tracefirst($text)) | ||
| 12165 | if defined $::RD_TRACE; | ||
| 12166 | } | ||
| 12167 | |||
| 12168 | last unless defined $_tok; | ||
| 12169 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 12170 | |||
| 12171 | |||
| 12172 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 12173 | Parse::RecDescent::_tracefirst($text), | ||
| 12174 | q{statement}, | ||
| 12175 | $tracelevel) | ||
| 12176 | if defined $::RD_TRACE; | ||
| 12177 | if (1) { no strict qw{refs}; | ||
| 12178 | $expectation->is(q{exp})->at($text); | ||
| 12179 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12180 | { | ||
| 12181 | |||
| 12182 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 12183 | Parse::RecDescent::_tracefirst($text), | ||
| 12184 | q{statement}, | ||
| 12185 | $tracelevel) | ||
| 12186 | if defined $::RD_TRACE; | ||
| 12187 | $expectation->failed(); | ||
| 12188 | last; | ||
| 12189 | } | ||
| 12190 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 12191 | . $_tok . q{]}, | ||
| 12192 | |||
| 12193 | Parse::RecDescent::_tracefirst($text), | ||
| 12194 | q{statement}, | ||
| 12195 | $tracelevel) | ||
| 12196 | if defined $::RD_TRACE; | ||
| 12197 | $item{q{exp}} = $_tok; | ||
| 12198 | push @item, $_tok; | ||
| 12199 | |||
| 12200 | } | ||
| 12201 | |||
| 12202 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 12203 | Parse::RecDescent::_tracefirst($text), | ||
| 12204 | q{statement}, | ||
| 12205 | $tracelevel) | ||
| 12206 | if defined $::RD_TRACE; | ||
| 12207 | if (1) { no strict qw{refs}; | ||
| 12208 | $expectation->is(q{block})->at($text); | ||
| 12209 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12210 | { | ||
| 12211 | |||
| 12212 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 12213 | Parse::RecDescent::_tracefirst($text), | ||
| 12214 | q{statement}, | ||
| 12215 | $tracelevel) | ||
| 12216 | if defined $::RD_TRACE; | ||
| 12217 | $expectation->failed(); | ||
| 12218 | last; | ||
| 12219 | } | ||
| 12220 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 12221 | . $_tok . q{]}, | ||
| 12222 | |||
| 12223 | Parse::RecDescent::_tracefirst($text), | ||
| 12224 | q{statement}, | ||
| 12225 | $tracelevel) | ||
| 12226 | if defined $::RD_TRACE; | ||
| 12227 | $item{q{block}} = $_tok; | ||
| 12228 | push @item, $_tok; | ||
| 12229 | |||
| 12230 | } | ||
| 12231 | |||
| 12232 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 12233 | Parse::RecDescent::_tracefirst($text), | ||
| 12234 | q{statement}, | ||
| 12235 | $tracelevel) | ||
| 12236 | if defined $::RD_TRACE; | ||
| 12237 | |||
| 12238 | |||
| 12239 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'while_statement',$item[3],$item[4]] }; | ||
| 12240 | unless (defined $_tok) | ||
| 12241 | { | ||
| 12242 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 12243 | if defined $::RD_TRACE; | ||
| 12244 | last; | ||
| 12245 | } | ||
| 12246 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 12247 | . $_tok . q{])}, | ||
| 12248 | Parse::RecDescent::_tracefirst($text)) | ||
| 12249 | if defined $::RD_TRACE; | ||
| 12250 | push @item, $_tok; | ||
| 12251 | $item{__ACTION1__}=$_tok; | ||
| 12252 | |||
| 12253 | |||
| 12254 | Parse::RecDescent::_trace(q{>>Matched production: [/(while)\\b/ <commit> exp block]<<}, | ||
| 12255 | Parse::RecDescent::_tracefirst($text), | ||
| 12256 | q{statement}, | ||
| 12257 | $tracelevel) | ||
| 12258 | if defined $::RD_TRACE; | ||
| 12259 | |||
| 12260 | |||
| 12261 | |||
| 12262 | $_matched = 1; | ||
| 12263 | last; | ||
| 12264 | } | ||
| 12265 | |||
| 12266 | |||
| 12267 | while (!$_matched && !$commit) | ||
| 12268 | { | ||
| 12269 | |||
| 12270 | Parse::RecDescent::_trace(q{Trying production: [/(foreach|for)\\b/ <commit> local_var_in exp block]}, | ||
| 12271 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 12272 | q{statement}, | ||
| 12273 | $tracelevel) | ||
| 12274 | if defined $::RD_TRACE; | ||
| 12275 | my $thisprod = $thisrule->{"prods"}[4]; | ||
| 12276 | $text = $_[1]; | ||
| 12277 | my $_savetext; | ||
| 12278 | @item = (q{statement}); | ||
| 12279 | %item = (__RULE__ => q{statement}); | ||
| 12280 | my $repcount = 0; | ||
| 12281 | |||
| 12282 | |||
| 12283 | Parse::RecDescent::_trace(q{Trying terminal: [/(foreach|for)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 12284 | q{statement}, | ||
| 12285 | $tracelevel) | ||
| 12286 | if defined $::RD_TRACE; | ||
| 12287 | undef $lastsep; | ||
| 12288 | $expectation->is(q{})->at($text); | ||
| 12289 | |||
| 12290 | |||
| 12291 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(foreach|for)\b)/) | ||
| 12292 | { | ||
| 12293 | $text = $lastsep . $text if defined $lastsep; | ||
| 12294 | $expectation->failed(); | ||
| 12295 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 12296 | Parse::RecDescent::_tracefirst($text)) | ||
| 12297 | if defined $::RD_TRACE; | ||
| 12298 | |||
| 12299 | last; | ||
| 12300 | } | ||
| 12301 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 12302 | substr($text,0,length($current_match),q{}); | ||
| 12303 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 12304 | . $current_match . q{])}, | ||
| 12305 | Parse::RecDescent::_tracefirst($text)) | ||
| 12306 | if defined $::RD_TRACE; | ||
| 12307 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 12308 | |||
| 12309 | |||
| 12310 | |||
| 12311 | |||
| 12312 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 12313 | Parse::RecDescent::_tracefirst($text), | ||
| 12314 | q{statement}, | ||
| 12315 | $tracelevel) | ||
| 12316 | if defined $::RD_TRACE; | ||
| 12317 | $_tok = do { $commit = 1 }; | ||
| 12318 | if (defined($_tok)) | ||
| 12319 | { | ||
| 12320 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 12321 | . $_tok . q{])}, | ||
| 12322 | Parse::RecDescent::_tracefirst($text)) | ||
| 12323 | if defined $::RD_TRACE; | ||
| 12324 | } | ||
| 12325 | else | ||
| 12326 | { | ||
| 12327 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 12328 | Parse::RecDescent::_tracefirst($text)) | ||
| 12329 | if defined $::RD_TRACE; | ||
| 12330 | } | ||
| 12331 | |||
| 12332 | last unless defined $_tok; | ||
| 12333 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 12334 | |||
| 12335 | |||
| 12336 | Parse::RecDescent::_trace(q{Trying repeated subrule: [local_var_in]}, | ||
| 12337 | Parse::RecDescent::_tracefirst($text), | ||
| 12338 | q{statement}, | ||
| 12339 | $tracelevel) | ||
| 12340 | if defined $::RD_TRACE; | ||
| 12341 | $expectation->is(q{local_var_in})->at($text); | ||
| 12342 | |||
| 12343 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::local_var_in, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 12344 | { | ||
| 12345 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [local_var_in]>>}, | ||
| 12346 | Parse::RecDescent::_tracefirst($text), | ||
| 12347 | q{statement}, | ||
| 12348 | $tracelevel) | ||
| 12349 | if defined $::RD_TRACE; | ||
| 12350 | last; | ||
| 12351 | } | ||
| 12352 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [local_var_in]<< (} | ||
| 12353 | . @$_tok . q{ times)}, | ||
| 12354 | |||
| 12355 | Parse::RecDescent::_tracefirst($text), | ||
| 12356 | q{statement}, | ||
| 12357 | $tracelevel) | ||
| 12358 | if defined $::RD_TRACE; | ||
| 12359 | $item{q{local_var_in(?)}} = $_tok; | ||
| 12360 | push @item, $_tok; | ||
| 12361 | |||
| 12362 | |||
| 12363 | |||
| 12364 | Parse::RecDescent::_trace(q{Trying subrule: [exp]}, | ||
| 12365 | Parse::RecDescent::_tracefirst($text), | ||
| 12366 | q{statement}, | ||
| 12367 | $tracelevel) | ||
| 12368 | if defined $::RD_TRACE; | ||
| 12369 | if (1) { no strict qw{refs}; | ||
| 12370 | $expectation->is(q{exp})->at($text); | ||
| 12371 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::exp($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12372 | { | ||
| 12373 | |||
| 12374 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [exp]>>}, | ||
| 12375 | Parse::RecDescent::_tracefirst($text), | ||
| 12376 | q{statement}, | ||
| 12377 | $tracelevel) | ||
| 12378 | if defined $::RD_TRACE; | ||
| 12379 | $expectation->failed(); | ||
| 12380 | last; | ||
| 12381 | } | ||
| 12382 | Parse::RecDescent::_trace(q{>>Matched subrule: [exp]<< (return value: [} | ||
| 12383 | . $_tok . q{]}, | ||
| 12384 | |||
| 12385 | Parse::RecDescent::_tracefirst($text), | ||
| 12386 | q{statement}, | ||
| 12387 | $tracelevel) | ||
| 12388 | if defined $::RD_TRACE; | ||
| 12389 | $item{q{exp}} = $_tok; | ||
| 12390 | push @item, $_tok; | ||
| 12391 | |||
| 12392 | } | ||
| 12393 | |||
| 12394 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 12395 | Parse::RecDescent::_tracefirst($text), | ||
| 12396 | q{statement}, | ||
| 12397 | $tracelevel) | ||
| 12398 | if defined $::RD_TRACE; | ||
| 12399 | if (1) { no strict qw{refs}; | ||
| 12400 | $expectation->is(q{block})->at($text); | ||
| 12401 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12402 | { | ||
| 12403 | |||
| 12404 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 12405 | Parse::RecDescent::_tracefirst($text), | ||
| 12406 | q{statement}, | ||
| 12407 | $tracelevel) | ||
| 12408 | if defined $::RD_TRACE; | ||
| 12409 | $expectation->failed(); | ||
| 12410 | last; | ||
| 12411 | } | ||
| 12412 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 12413 | . $_tok . q{]}, | ||
| 12414 | |||
| 12415 | Parse::RecDescent::_tracefirst($text), | ||
| 12416 | q{statement}, | ||
| 12417 | $tracelevel) | ||
| 12418 | if defined $::RD_TRACE; | ||
| 12419 | $item{q{block}} = $_tok; | ||
| 12420 | push @item, $_tok; | ||
| 12421 | |||
| 12422 | } | ||
| 12423 | |||
| 12424 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 12425 | Parse::RecDescent::_tracefirst($text), | ||
| 12426 | q{statement}, | ||
| 12427 | $tracelevel) | ||
| 12428 | if defined $::RD_TRACE; | ||
| 12429 | |||
| 12430 | |||
| 12431 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'foreach_statement',@item[4,5],@{$item[3]}] }; | ||
| 12432 | unless (defined $_tok) | ||
| 12433 | { | ||
| 12434 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 12435 | if defined $::RD_TRACE; | ||
| 12436 | last; | ||
| 12437 | } | ||
| 12438 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 12439 | . $_tok . q{])}, | ||
| 12440 | Parse::RecDescent::_tracefirst($text)) | ||
| 12441 | if defined $::RD_TRACE; | ||
| 12442 | push @item, $_tok; | ||
| 12443 | $item{__ACTION1__}=$_tok; | ||
| 12444 | |||
| 12445 | |||
| 12446 | Parse::RecDescent::_trace(q{>>Matched production: [/(foreach|for)\\b/ <commit> local_var_in exp block]<<}, | ||
| 12447 | Parse::RecDescent::_tracefirst($text), | ||
| 12448 | q{statement}, | ||
| 12449 | $tracelevel) | ||
| 12450 | if defined $::RD_TRACE; | ||
| 12451 | |||
| 12452 | |||
| 12453 | |||
| 12454 | $_matched = 1; | ||
| 12455 | last; | ||
| 12456 | } | ||
| 12457 | |||
| 12458 | |||
| 12459 | while (!$_matched && !$commit) | ||
| 12460 | { | ||
| 12461 | |||
| 12462 | Parse::RecDescent::_trace(q{Trying production: [/(try)\\b/ <commit> block 'catch' local_var block]}, | ||
| 12463 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 12464 | q{statement}, | ||
| 12465 | $tracelevel) | ||
| 12466 | if defined $::RD_TRACE; | ||
| 12467 | my $thisprod = $thisrule->{"prods"}[5]; | ||
| 12468 | $text = $_[1]; | ||
| 12469 | my $_savetext; | ||
| 12470 | @item = (q{statement}); | ||
| 12471 | %item = (__RULE__ => q{statement}); | ||
| 12472 | my $repcount = 0; | ||
| 12473 | |||
| 12474 | |||
| 12475 | Parse::RecDescent::_trace(q{Trying terminal: [/(try)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 12476 | q{statement}, | ||
| 12477 | $tracelevel) | ||
| 12478 | if defined $::RD_TRACE; | ||
| 12479 | undef $lastsep; | ||
| 12480 | $expectation->is(q{})->at($text); | ||
| 12481 | |||
| 12482 | |||
| 12483 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(try)\b)/) | ||
| 12484 | { | ||
| 12485 | $text = $lastsep . $text if defined $lastsep; | ||
| 12486 | $expectation->failed(); | ||
| 12487 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 12488 | Parse::RecDescent::_tracefirst($text)) | ||
| 12489 | if defined $::RD_TRACE; | ||
| 12490 | |||
| 12491 | last; | ||
| 12492 | } | ||
| 12493 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 12494 | substr($text,0,length($current_match),q{}); | ||
| 12495 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 12496 | . $current_match . q{])}, | ||
| 12497 | Parse::RecDescent::_tracefirst($text)) | ||
| 12498 | if defined $::RD_TRACE; | ||
| 12499 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 12500 | |||
| 12501 | |||
| 12502 | |||
| 12503 | |||
| 12504 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 12505 | Parse::RecDescent::_tracefirst($text), | ||
| 12506 | q{statement}, | ||
| 12507 | $tracelevel) | ||
| 12508 | if defined $::RD_TRACE; | ||
| 12509 | $_tok = do { $commit = 1 }; | ||
| 12510 | if (defined($_tok)) | ||
| 12511 | { | ||
| 12512 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 12513 | . $_tok . q{])}, | ||
| 12514 | Parse::RecDescent::_tracefirst($text)) | ||
| 12515 | if defined $::RD_TRACE; | ||
| 12516 | } | ||
| 12517 | else | ||
| 12518 | { | ||
| 12519 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 12520 | Parse::RecDescent::_tracefirst($text)) | ||
| 12521 | if defined $::RD_TRACE; | ||
| 12522 | } | ||
| 12523 | |||
| 12524 | last unless defined $_tok; | ||
| 12525 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 12526 | |||
| 12527 | |||
| 12528 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 12529 | Parse::RecDescent::_tracefirst($text), | ||
| 12530 | q{statement}, | ||
| 12531 | $tracelevel) | ||
| 12532 | if defined $::RD_TRACE; | ||
| 12533 | if (1) { no strict qw{refs}; | ||
| 12534 | $expectation->is(q{block})->at($text); | ||
| 12535 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12536 | { | ||
| 12537 | |||
| 12538 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 12539 | Parse::RecDescent::_tracefirst($text), | ||
| 12540 | q{statement}, | ||
| 12541 | $tracelevel) | ||
| 12542 | if defined $::RD_TRACE; | ||
| 12543 | $expectation->failed(); | ||
| 12544 | last; | ||
| 12545 | } | ||
| 12546 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 12547 | . $_tok . q{]}, | ||
| 12548 | |||
| 12549 | Parse::RecDescent::_tracefirst($text), | ||
| 12550 | q{statement}, | ||
| 12551 | $tracelevel) | ||
| 12552 | if defined $::RD_TRACE; | ||
| 12553 | $item{q{block}} = $_tok; | ||
| 12554 | push @item, $_tok; | ||
| 12555 | |||
| 12556 | } | ||
| 12557 | |||
| 12558 | Parse::RecDescent::_trace(q{Trying terminal: ['catch']}, | ||
| 12559 | Parse::RecDescent::_tracefirst($text), | ||
| 12560 | q{statement}, | ||
| 12561 | $tracelevel) | ||
| 12562 | if defined $::RD_TRACE; | ||
| 12563 | undef $lastsep; | ||
| 12564 | $expectation->is(q{'catch'})->at($text); | ||
| 12565 | |||
| 12566 | |||
| 12567 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\Acatch/) | ||
| 12568 | { | ||
| 12569 | $text = $lastsep . $text if defined $lastsep; | ||
| 12570 | |||
| 12571 | $expectation->failed(); | ||
| 12572 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 12573 | Parse::RecDescent::_tracefirst($text)) | ||
| 12574 | if defined $::RD_TRACE; | ||
| 12575 | last; | ||
| 12576 | } | ||
| 12577 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 12578 | substr($text,0,length($current_match),q{}); | ||
| 12579 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 12580 | . $current_match . q{])}, | ||
| 12581 | Parse::RecDescent::_tracefirst($text)) | ||
| 12582 | if defined $::RD_TRACE; | ||
| 12583 | push @item, $item{__STRING1__}=$current_match; | ||
| 12584 | |||
| 12585 | |||
| 12586 | Parse::RecDescent::_trace(q{Trying repeated subrule: [local_var]}, | ||
| 12587 | Parse::RecDescent::_tracefirst($text), | ||
| 12588 | q{statement}, | ||
| 12589 | $tracelevel) | ||
| 12590 | if defined $::RD_TRACE; | ||
| 12591 | $expectation->is(q{local_var})->at($text); | ||
| 12592 | |||
| 12593 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::local_var, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 12594 | { | ||
| 12595 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [local_var]>>}, | ||
| 12596 | Parse::RecDescent::_tracefirst($text), | ||
| 12597 | q{statement}, | ||
| 12598 | $tracelevel) | ||
| 12599 | if defined $::RD_TRACE; | ||
| 12600 | last; | ||
| 12601 | } | ||
| 12602 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [local_var]<< (} | ||
| 12603 | . @$_tok . q{ times)}, | ||
| 12604 | |||
| 12605 | Parse::RecDescent::_tracefirst($text), | ||
| 12606 | q{statement}, | ||
| 12607 | $tracelevel) | ||
| 12608 | if defined $::RD_TRACE; | ||
| 12609 | $item{q{local_var(?)}} = $_tok; | ||
| 12610 | push @item, $_tok; | ||
| 12611 | |||
| 12612 | |||
| 12613 | |||
| 12614 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 12615 | Parse::RecDescent::_tracefirst($text), | ||
| 12616 | q{statement}, | ||
| 12617 | $tracelevel) | ||
| 12618 | if defined $::RD_TRACE; | ||
| 12619 | if (1) { no strict qw{refs}; | ||
| 12620 | $expectation->is(q{block})->at($text); | ||
| 12621 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12622 | { | ||
| 12623 | |||
| 12624 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 12625 | Parse::RecDescent::_tracefirst($text), | ||
| 12626 | q{statement}, | ||
| 12627 | $tracelevel) | ||
| 12628 | if defined $::RD_TRACE; | ||
| 12629 | $expectation->failed(); | ||
| 12630 | last; | ||
| 12631 | } | ||
| 12632 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 12633 | . $_tok . q{]}, | ||
| 12634 | |||
| 12635 | Parse::RecDescent::_tracefirst($text), | ||
| 12636 | q{statement}, | ||
| 12637 | $tracelevel) | ||
| 12638 | if defined $::RD_TRACE; | ||
| 12639 | $item{q{block}} = $_tok; | ||
| 12640 | push @item, $_tok; | ||
| 12641 | |||
| 12642 | } | ||
| 12643 | |||
| 12644 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 12645 | Parse::RecDescent::_tracefirst($text), | ||
| 12646 | q{statement}, | ||
| 12647 | $tracelevel) | ||
| 12648 | if defined $::RD_TRACE; | ||
| 12649 | |||
| 12650 | |||
| 12651 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'try_catch',$item[3],$item[6],@{$item[5]}] }; | ||
| 12652 | unless (defined $_tok) | ||
| 12653 | { | ||
| 12654 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 12655 | if defined $::RD_TRACE; | ||
| 12656 | last; | ||
| 12657 | } | ||
| 12658 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 12659 | . $_tok . q{])}, | ||
| 12660 | Parse::RecDescent::_tracefirst($text)) | ||
| 12661 | if defined $::RD_TRACE; | ||
| 12662 | push @item, $_tok; | ||
| 12663 | $item{__ACTION1__}=$_tok; | ||
| 12664 | |||
| 12665 | |||
| 12666 | Parse::RecDescent::_trace(q{>>Matched production: [/(try)\\b/ <commit> block 'catch' local_var block]<<}, | ||
| 12667 | Parse::RecDescent::_tracefirst($text), | ||
| 12668 | q{statement}, | ||
| 12669 | $tracelevel) | ||
| 12670 | if defined $::RD_TRACE; | ||
| 12671 | |||
| 12672 | |||
| 12673 | |||
| 12674 | $_matched = 1; | ||
| 12675 | last; | ||
| 12676 | } | ||
| 12677 | |||
| 12678 | |||
| 12679 | while (!$_matched && !$commit) | ||
| 12680 | { | ||
| 12681 | |||
| 12682 | Parse::RecDescent::_trace(q{Trying production: [/(iterate)\\b/ <commit> xpstep block]}, | ||
| 12683 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 12684 | q{statement}, | ||
| 12685 | $tracelevel) | ||
| 12686 | if defined $::RD_TRACE; | ||
| 12687 | my $thisprod = $thisrule->{"prods"}[6]; | ||
| 12688 | $text = $_[1]; | ||
| 12689 | my $_savetext; | ||
| 12690 | @item = (q{statement}); | ||
| 12691 | %item = (__RULE__ => q{statement}); | ||
| 12692 | my $repcount = 0; | ||
| 12693 | |||
| 12694 | |||
| 12695 | Parse::RecDescent::_trace(q{Trying terminal: [/(iterate)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 12696 | q{statement}, | ||
| 12697 | $tracelevel) | ||
| 12698 | if defined $::RD_TRACE; | ||
| 12699 | undef $lastsep; | ||
| 12700 | $expectation->is(q{})->at($text); | ||
| 12701 | |||
| 12702 | |||
| 12703 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(iterate)\b)/) | ||
| 12704 | { | ||
| 12705 | $text = $lastsep . $text if defined $lastsep; | ||
| 12706 | $expectation->failed(); | ||
| 12707 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 12708 | Parse::RecDescent::_tracefirst($text)) | ||
| 12709 | if defined $::RD_TRACE; | ||
| 12710 | |||
| 12711 | last; | ||
| 12712 | } | ||
| 12713 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 12714 | substr($text,0,length($current_match),q{}); | ||
| 12715 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 12716 | . $current_match . q{])}, | ||
| 12717 | Parse::RecDescent::_tracefirst($text)) | ||
| 12718 | if defined $::RD_TRACE; | ||
| 12719 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 12720 | |||
| 12721 | |||
| 12722 | |||
| 12723 | |||
| 12724 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 12725 | Parse::RecDescent::_tracefirst($text), | ||
| 12726 | q{statement}, | ||
| 12727 | $tracelevel) | ||
| 12728 | if defined $::RD_TRACE; | ||
| 12729 | $_tok = do { $commit = 1 }; | ||
| 12730 | if (defined($_tok)) | ||
| 12731 | { | ||
| 12732 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 12733 | . $_tok . q{])}, | ||
| 12734 | Parse::RecDescent::_tracefirst($text)) | ||
| 12735 | if defined $::RD_TRACE; | ||
| 12736 | } | ||
| 12737 | else | ||
| 12738 | { | ||
| 12739 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 12740 | Parse::RecDescent::_tracefirst($text)) | ||
| 12741 | if defined $::RD_TRACE; | ||
| 12742 | } | ||
| 12743 | |||
| 12744 | last unless defined $_tok; | ||
| 12745 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 12746 | |||
| 12747 | |||
| 12748 | Parse::RecDescent::_trace(q{Trying subrule: [xpstep]}, | ||
| 12749 | Parse::RecDescent::_tracefirst($text), | ||
| 12750 | q{statement}, | ||
| 12751 | $tracelevel) | ||
| 12752 | if defined $::RD_TRACE; | ||
| 12753 | if (1) { no strict qw{refs}; | ||
| 12754 | $expectation->is(q{xpstep})->at($text); | ||
| 12755 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpstep($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12756 | { | ||
| 12757 | |||
| 12758 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpstep]>>}, | ||
| 12759 | Parse::RecDescent::_tracefirst($text), | ||
| 12760 | q{statement}, | ||
| 12761 | $tracelevel) | ||
| 12762 | if defined $::RD_TRACE; | ||
| 12763 | $expectation->failed(); | ||
| 12764 | last; | ||
| 12765 | } | ||
| 12766 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpstep]<< (return value: [} | ||
| 12767 | . $_tok . q{]}, | ||
| 12768 | |||
| 12769 | Parse::RecDescent::_tracefirst($text), | ||
| 12770 | q{statement}, | ||
| 12771 | $tracelevel) | ||
| 12772 | if defined $::RD_TRACE; | ||
| 12773 | $item{q{xpstep}} = $_tok; | ||
| 12774 | push @item, $_tok; | ||
| 12775 | |||
| 12776 | } | ||
| 12777 | |||
| 12778 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 12779 | Parse::RecDescent::_tracefirst($text), | ||
| 12780 | q{statement}, | ||
| 12781 | $tracelevel) | ||
| 12782 | if defined $::RD_TRACE; | ||
| 12783 | if (1) { no strict qw{refs}; | ||
| 12784 | $expectation->is(q{block})->at($text); | ||
| 12785 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12786 | { | ||
| 12787 | |||
| 12788 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 12789 | Parse::RecDescent::_tracefirst($text), | ||
| 12790 | q{statement}, | ||
| 12791 | $tracelevel) | ||
| 12792 | if defined $::RD_TRACE; | ||
| 12793 | $expectation->failed(); | ||
| 12794 | last; | ||
| 12795 | } | ||
| 12796 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 12797 | . $_tok . q{]}, | ||
| 12798 | |||
| 12799 | Parse::RecDescent::_tracefirst($text), | ||
| 12800 | q{statement}, | ||
| 12801 | $tracelevel) | ||
| 12802 | if defined $::RD_TRACE; | ||
| 12803 | $item{q{block}} = $_tok; | ||
| 12804 | push @item, $_tok; | ||
| 12805 | |||
| 12806 | } | ||
| 12807 | |||
| 12808 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 12809 | Parse::RecDescent::_tracefirst($text), | ||
| 12810 | q{statement}, | ||
| 12811 | $tracelevel) | ||
| 12812 | if defined $::RD_TRACE; | ||
| 12813 | |||
| 12814 | |||
| 12815 | $_tok = ($_noactions) ? 0 : do { [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'iterate',$item[4],@{$item[3]}] }; | ||
| 12816 | unless (defined $_tok) | ||
| 12817 | { | ||
| 12818 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 12819 | if defined $::RD_TRACE; | ||
| 12820 | last; | ||
| 12821 | } | ||
| 12822 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 12823 | . $_tok . q{])}, | ||
| 12824 | Parse::RecDescent::_tracefirst($text)) | ||
| 12825 | if defined $::RD_TRACE; | ||
| 12826 | push @item, $_tok; | ||
| 12827 | $item{__ACTION1__}=$_tok; | ||
| 12828 | |||
| 12829 | |||
| 12830 | Parse::RecDescent::_trace(q{>>Matched production: [/(iterate)\\b/ <commit> xpstep block]<<}, | ||
| 12831 | Parse::RecDescent::_tracefirst($text), | ||
| 12832 | q{statement}, | ||
| 12833 | $tracelevel) | ||
| 12834 | if defined $::RD_TRACE; | ||
| 12835 | |||
| 12836 | |||
| 12837 | |||
| 12838 | $_matched = 1; | ||
| 12839 | last; | ||
| 12840 | } | ||
| 12841 | |||
| 12842 | |||
| 12843 | while (!$_matched && !$commit) | ||
| 12844 | { | ||
| 12845 | |||
| 12846 | Parse::RecDescent::_trace(q{Trying production: [/(def|define)\\b/ <commit> ID variable block]}, | ||
| 12847 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 12848 | q{statement}, | ||
| 12849 | $tracelevel) | ||
| 12850 | if defined $::RD_TRACE; | ||
| 12851 | my $thisprod = $thisrule->{"prods"}[7]; | ||
| 12852 | $text = $_[1]; | ||
| 12853 | my $_savetext; | ||
| 12854 | @item = (q{statement}); | ||
| 12855 | %item = (__RULE__ => q{statement}); | ||
| 12856 | my $repcount = 0; | ||
| 12857 | |||
| 12858 | |||
| 12859 | Parse::RecDescent::_trace(q{Trying terminal: [/(def|define)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 12860 | q{statement}, | ||
| 12861 | $tracelevel) | ||
| 12862 | if defined $::RD_TRACE; | ||
| 12863 | undef $lastsep; | ||
| 12864 | $expectation->is(q{})->at($text); | ||
| 12865 | |||
| 12866 | |||
| 12867 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(def|define)\b)/) | ||
| 12868 | { | ||
| 12869 | $text = $lastsep . $text if defined $lastsep; | ||
| 12870 | $expectation->failed(); | ||
| 12871 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 12872 | Parse::RecDescent::_tracefirst($text)) | ||
| 12873 | if defined $::RD_TRACE; | ||
| 12874 | |||
| 12875 | last; | ||
| 12876 | } | ||
| 12877 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 12878 | substr($text,0,length($current_match),q{}); | ||
| 12879 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 12880 | . $current_match . q{])}, | ||
| 12881 | Parse::RecDescent::_tracefirst($text)) | ||
| 12882 | if defined $::RD_TRACE; | ||
| 12883 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 12884 | |||
| 12885 | |||
| 12886 | |||
| 12887 | |||
| 12888 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 12889 | Parse::RecDescent::_tracefirst($text), | ||
| 12890 | q{statement}, | ||
| 12891 | $tracelevel) | ||
| 12892 | if defined $::RD_TRACE; | ||
| 12893 | $_tok = do { $commit = 1 }; | ||
| 12894 | if (defined($_tok)) | ||
| 12895 | { | ||
| 12896 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 12897 | . $_tok . q{])}, | ||
| 12898 | Parse::RecDescent::_tracefirst($text)) | ||
| 12899 | if defined $::RD_TRACE; | ||
| 12900 | } | ||
| 12901 | else | ||
| 12902 | { | ||
| 12903 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 12904 | Parse::RecDescent::_tracefirst($text)) | ||
| 12905 | if defined $::RD_TRACE; | ||
| 12906 | } | ||
| 12907 | |||
| 12908 | last unless defined $_tok; | ||
| 12909 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 12910 | |||
| 12911 | |||
| 12912 | Parse::RecDescent::_trace(q{Trying subrule: [ID]}, | ||
| 12913 | Parse::RecDescent::_tracefirst($text), | ||
| 12914 | q{statement}, | ||
| 12915 | $tracelevel) | ||
| 12916 | if defined $::RD_TRACE; | ||
| 12917 | if (1) { no strict qw{refs}; | ||
| 12918 | $expectation->is(q{ID})->at($text); | ||
| 12919 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::ID($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 12920 | { | ||
| 12921 | |||
| 12922 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [ID]>>}, | ||
| 12923 | Parse::RecDescent::_tracefirst($text), | ||
| 12924 | q{statement}, | ||
| 12925 | $tracelevel) | ||
| 12926 | if defined $::RD_TRACE; | ||
| 12927 | $expectation->failed(); | ||
| 12928 | last; | ||
| 12929 | } | ||
| 12930 | Parse::RecDescent::_trace(q{>>Matched subrule: [ID]<< (return value: [} | ||
| 12931 | . $_tok . q{]}, | ||
| 12932 | |||
| 12933 | Parse::RecDescent::_tracefirst($text), | ||
| 12934 | q{statement}, | ||
| 12935 | $tracelevel) | ||
| 12936 | if defined $::RD_TRACE; | ||
| 12937 | $item{q{ID}} = $_tok; | ||
| 12938 | push @item, $_tok; | ||
| 12939 | |||
| 12940 | } | ||
| 12941 | |||
| 12942 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 12943 | Parse::RecDescent::_tracefirst($text), | ||
| 12944 | q{statement}, | ||
| 12945 | $tracelevel) | ||
| 12946 | if defined $::RD_TRACE; | ||
| 12947 | |||
| 12948 | |||
| 12949 | $_tok = ($_noactions) ? 0 : do { XML::XSH2::Functions::is_command($item[3])?undef:1 }; | ||
| 12950 | unless (defined $_tok) | ||
| 12951 | { | ||
| 12952 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 12953 | if defined $::RD_TRACE; | ||
| 12954 | last; | ||
| 12955 | } | ||
| 12956 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 12957 | . $_tok . q{])}, | ||
| 12958 | Parse::RecDescent::_tracefirst($text)) | ||
| 12959 | if defined $::RD_TRACE; | ||
| 12960 | push @item, $_tok; | ||
| 12961 | $item{__ACTION1__}=$_tok; | ||
| 12962 | |||
| 12963 | |||
| 12964 | Parse::RecDescent::_trace(q{Trying repeated subrule: [variable]}, | ||
| 12965 | Parse::RecDescent::_tracefirst($text), | ||
| 12966 | q{statement}, | ||
| 12967 | $tracelevel) | ||
| 12968 | if defined $::RD_TRACE; | ||
| 12969 | $expectation->is(q{variable})->at($text); | ||
| 12970 | |||
| 12971 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::variable, 0, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 12972 | { | ||
| 12973 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [variable]>>}, | ||
| 12974 | Parse::RecDescent::_tracefirst($text), | ||
| 12975 | q{statement}, | ||
| 12976 | $tracelevel) | ||
| 12977 | if defined $::RD_TRACE; | ||
| 12978 | last; | ||
| 12979 | } | ||
| 12980 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [variable]<< (} | ||
| 12981 | . @$_tok . q{ times)}, | ||
| 12982 | |||
| 12983 | Parse::RecDescent::_tracefirst($text), | ||
| 12984 | q{statement}, | ||
| 12985 | $tracelevel) | ||
| 12986 | if defined $::RD_TRACE; | ||
| 12987 | $item{q{variable(s?)}} = $_tok; | ||
| 12988 | push @item, $_tok; | ||
| 12989 | |||
| 12990 | |||
| 12991 | |||
| 12992 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 12993 | Parse::RecDescent::_tracefirst($text), | ||
| 12994 | q{statement}, | ||
| 12995 | $tracelevel) | ||
| 12996 | if defined $::RD_TRACE; | ||
| 12997 | if (1) { no strict qw{refs}; | ||
| 12998 | $expectation->is(q{block})->at($text); | ||
| 12999 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 13000 | { | ||
| 13001 | |||
| 13002 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 13003 | Parse::RecDescent::_tracefirst($text), | ||
| 13004 | q{statement}, | ||
| 13005 | $tracelevel) | ||
| 13006 | if defined $::RD_TRACE; | ||
| 13007 | $expectation->failed(); | ||
| 13008 | last; | ||
| 13009 | } | ||
| 13010 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 13011 | . $_tok . q{]}, | ||
| 13012 | |||
| 13013 | Parse::RecDescent::_tracefirst($text), | ||
| 13014 | q{statement}, | ||
| 13015 | $tracelevel) | ||
| 13016 | if defined $::RD_TRACE; | ||
| 13017 | $item{q{block}} = $_tok; | ||
| 13018 | push @item, $_tok; | ||
| 13019 | |||
| 13020 | } | ||
| 13021 | |||
| 13022 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 13023 | Parse::RecDescent::_tracefirst($text), | ||
| 13024 | q{statement}, | ||
| 13025 | $tracelevel) | ||
| 13026 | if defined $::RD_TRACE; | ||
| 13027 | |||
| 13028 | |||
| 13029 | $_tok = ($_noactions) ? 0 : do { | ||
| 13030 | [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'def',$item[3],$item[6],$item[5]] | ||
| 13031 | }; | ||
| 13032 | unless (defined $_tok) | ||
| 13033 | { | ||
| 13034 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 13035 | if defined $::RD_TRACE; | ||
| 13036 | last; | ||
| 13037 | } | ||
| 13038 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 13039 | . $_tok . q{])}, | ||
| 13040 | Parse::RecDescent::_tracefirst($text)) | ||
| 13041 | if defined $::RD_TRACE; | ||
| 13042 | push @item, $_tok; | ||
| 13043 | $item{__ACTION2__}=$_tok; | ||
| 13044 | |||
| 13045 | |||
| 13046 | Parse::RecDescent::_trace(q{>>Matched production: [/(def|define)\\b/ <commit> ID variable block]<<}, | ||
| 13047 | Parse::RecDescent::_tracefirst($text), | ||
| 13048 | q{statement}, | ||
| 13049 | $tracelevel) | ||
| 13050 | if defined $::RD_TRACE; | ||
| 13051 | |||
| 13052 | |||
| 13053 | |||
| 13054 | $_matched = 1; | ||
| 13055 | last; | ||
| 13056 | } | ||
| 13057 | |||
| 13058 | |||
| 13059 | unless ( $_matched || defined($score) ) | ||
| 13060 | { | ||
| 13061 | |||
| 13062 | |||
| 13063 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 13064 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 13065 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13066 | q{statement}, | ||
| 13067 | $tracelevel) | ||
| 13068 | if defined $::RD_TRACE; | ||
| 13069 | return undef; | ||
| 13070 | } | ||
| 13071 | if (!defined($return) && defined($score)) | ||
| 13072 | { | ||
| 13073 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 13074 | q{statement}, | ||
| 13075 | $tracelevel) | ||
| 13076 | if defined $::RD_TRACE; | ||
| 13077 | $return = $score_return; | ||
| 13078 | } | ||
| 13079 | splice @{$thisparser->{errors}}, $err_at; | ||
| 13080 | $return = $item[$#item] unless defined $return; | ||
| 13081 | if (defined $::RD_TRACE) | ||
| 13082 | { | ||
| 13083 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 13084 | $return . q{])}, "", | ||
| 13085 | q{statement}, | ||
| 13086 | $tracelevel); | ||
| 13087 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 13088 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 13089 | Parse::RecDescent::_tracefirst($text), | ||
| 13090 | , q{statement}, | ||
| 13091 | $tracelevel) | ||
| 13092 | } | ||
| 13093 | $_[1] = $text; | ||
| 13094 | return $return; | ||
| 13095 | } | ||
| 13096 | |||
| 13097 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 13098 | sub Parse::RecDescent::XML::XSH2::Parser::stream_select | ||
| 13099 | { | ||
| 13100 | my $thisparser = $_[0]; | ||
| 13101 | use vars q{$tracelevel}; | ||
| 13102 | local $tracelevel = ($tracelevel||0)+1; | ||
| 13103 | $ERRORS = 0; | ||
| 13104 | my $thisrule = $thisparser->{"rules"}{"stream_select"}; | ||
| 13105 | |||
| 13106 | Parse::RecDescent::_trace(q{Trying rule: [stream_select]}, | ||
| 13107 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13108 | q{stream_select}, | ||
| 13109 | $tracelevel) | ||
| 13110 | if defined $::RD_TRACE; | ||
| 13111 | |||
| 13112 | |||
| 13113 | my $err_at = @{$thisparser->{errors}}; | ||
| 13114 | |||
| 13115 | my $score; | ||
| 13116 | my $score_return; | ||
| 13117 | my $_tok; | ||
| 13118 | my $return = undef; | ||
| 13119 | my $_matched=0; | ||
| 13120 | my $commit=0; | ||
| 13121 | my @item = (); | ||
| 13122 | my %item = (); | ||
| 13123 | my $repeating = $_[2]; | ||
| 13124 | my $_noactions = $_[3]; | ||
| 13125 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 13126 | my $_itempos = $_[5]; | ||
| 13127 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 13128 | my $text; | ||
| 13129 | my $lastsep; | ||
| 13130 | my $current_match; | ||
| 13131 | my $expectation = new Parse::RecDescent::Expectation(q{/select\\s/}); | ||
| 13132 | $expectation->at($_[1]); | ||
| 13133 | |||
| 13134 | my $thisoffset; | ||
| 13135 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 13136 | |||
| 13137 | my $thiscolumn; | ||
| 13138 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 13139 | |||
| 13140 | my $thisline; | ||
| 13141 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 13142 | |||
| 13143 | |||
| 13144 | |||
| 13145 | while (!$_matched && !$commit) | ||
| 13146 | { | ||
| 13147 | |||
| 13148 | Parse::RecDescent::_trace(q{Trying production: [/select\\s/ xpath block]}, | ||
| 13149 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13150 | q{stream_select}, | ||
| 13151 | $tracelevel) | ||
| 13152 | if defined $::RD_TRACE; | ||
| 13153 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 13154 | $text = $_[1]; | ||
| 13155 | my $_savetext; | ||
| 13156 | @item = (q{stream_select}); | ||
| 13157 | %item = (__RULE__ => q{stream_select}); | ||
| 13158 | my $repcount = 0; | ||
| 13159 | |||
| 13160 | |||
| 13161 | Parse::RecDescent::_trace(q{Trying terminal: [/select\\s/]}, Parse::RecDescent::_tracefirst($text), | ||
| 13162 | q{stream_select}, | ||
| 13163 | $tracelevel) | ||
| 13164 | if defined $::RD_TRACE; | ||
| 13165 | undef $lastsep; | ||
| 13166 | $expectation->is(q{})->at($text); | ||
| 13167 | |||
| 13168 | |||
| 13169 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:select\s)/) | ||
| 13170 | { | ||
| 13171 | $text = $lastsep . $text if defined $lastsep; | ||
| 13172 | $expectation->failed(); | ||
| 13173 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 13174 | Parse::RecDescent::_tracefirst($text)) | ||
| 13175 | if defined $::RD_TRACE; | ||
| 13176 | |||
| 13177 | last; | ||
| 13178 | } | ||
| 13179 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 13180 | substr($text,0,length($current_match),q{}); | ||
| 13181 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 13182 | . $current_match . q{])}, | ||
| 13183 | Parse::RecDescent::_tracefirst($text)) | ||
| 13184 | if defined $::RD_TRACE; | ||
| 13185 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 13186 | |||
| 13187 | |||
| 13188 | Parse::RecDescent::_trace(q{Trying subrule: [xpath]}, | ||
| 13189 | Parse::RecDescent::_tracefirst($text), | ||
| 13190 | q{stream_select}, | ||
| 13191 | $tracelevel) | ||
| 13192 | if defined $::RD_TRACE; | ||
| 13193 | if (1) { no strict qw{refs}; | ||
| 13194 | $expectation->is(q{xpath})->at($text); | ||
| 13195 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpath($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 13196 | { | ||
| 13197 | |||
| 13198 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpath]>>}, | ||
| 13199 | Parse::RecDescent::_tracefirst($text), | ||
| 13200 | q{stream_select}, | ||
| 13201 | $tracelevel) | ||
| 13202 | if defined $::RD_TRACE; | ||
| 13203 | $expectation->failed(); | ||
| 13204 | last; | ||
| 13205 | } | ||
| 13206 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpath]<< (return value: [} | ||
| 13207 | . $_tok . q{]}, | ||
| 13208 | |||
| 13209 | Parse::RecDescent::_tracefirst($text), | ||
| 13210 | q{stream_select}, | ||
| 13211 | $tracelevel) | ||
| 13212 | if defined $::RD_TRACE; | ||
| 13213 | $item{q{xpath}} = $_tok; | ||
| 13214 | push @item, $_tok; | ||
| 13215 | |||
| 13216 | } | ||
| 13217 | |||
| 13218 | Parse::RecDescent::_trace(q{Trying subrule: [block]}, | ||
| 13219 | Parse::RecDescent::_tracefirst($text), | ||
| 13220 | q{stream_select}, | ||
| 13221 | $tracelevel) | ||
| 13222 | if defined $::RD_TRACE; | ||
| 13223 | if (1) { no strict qw{refs}; | ||
| 13224 | $expectation->is(q{block})->at($text); | ||
| 13225 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::block($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 13226 | { | ||
| 13227 | |||
| 13228 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [block]>>}, | ||
| 13229 | Parse::RecDescent::_tracefirst($text), | ||
| 13230 | q{stream_select}, | ||
| 13231 | $tracelevel) | ||
| 13232 | if defined $::RD_TRACE; | ||
| 13233 | $expectation->failed(); | ||
| 13234 | last; | ||
| 13235 | } | ||
| 13236 | Parse::RecDescent::_trace(q{>>Matched subrule: [block]<< (return value: [} | ||
| 13237 | . $_tok . q{]}, | ||
| 13238 | |||
| 13239 | Parse::RecDescent::_tracefirst($text), | ||
| 13240 | q{stream_select}, | ||
| 13241 | $tracelevel) | ||
| 13242 | if defined $::RD_TRACE; | ||
| 13243 | $item{q{block}} = $_tok; | ||
| 13244 | push @item, $_tok; | ||
| 13245 | |||
| 13246 | } | ||
| 13247 | |||
| 13248 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 13249 | Parse::RecDescent::_tracefirst($text), | ||
| 13250 | q{stream_select}, | ||
| 13251 | $tracelevel) | ||
| 13252 | if defined $::RD_TRACE; | ||
| 13253 | |||
| 13254 | |||
| 13255 | $_tok = ($_noactions) ? 0 : do { [$item[2],$item[3]] }; | ||
| 13256 | unless (defined $_tok) | ||
| 13257 | { | ||
| 13258 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 13259 | if defined $::RD_TRACE; | ||
| 13260 | last; | ||
| 13261 | } | ||
| 13262 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 13263 | . $_tok . q{])}, | ||
| 13264 | Parse::RecDescent::_tracefirst($text)) | ||
| 13265 | if defined $::RD_TRACE; | ||
| 13266 | push @item, $_tok; | ||
| 13267 | $item{__ACTION1__}=$_tok; | ||
| 13268 | |||
| 13269 | |||
| 13270 | Parse::RecDescent::_trace(q{>>Matched production: [/select\\s/ xpath block]<<}, | ||
| 13271 | Parse::RecDescent::_tracefirst($text), | ||
| 13272 | q{stream_select}, | ||
| 13273 | $tracelevel) | ||
| 13274 | if defined $::RD_TRACE; | ||
| 13275 | |||
| 13276 | |||
| 13277 | |||
| 13278 | $_matched = 1; | ||
| 13279 | last; | ||
| 13280 | } | ||
| 13281 | |||
| 13282 | |||
| 13283 | unless ( $_matched || defined($score) ) | ||
| 13284 | { | ||
| 13285 | |||
| 13286 | |||
| 13287 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 13288 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 13289 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13290 | q{stream_select}, | ||
| 13291 | $tracelevel) | ||
| 13292 | if defined $::RD_TRACE; | ||
| 13293 | return undef; | ||
| 13294 | } | ||
| 13295 | if (!defined($return) && defined($score)) | ||
| 13296 | { | ||
| 13297 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 13298 | q{stream_select}, | ||
| 13299 | $tracelevel) | ||
| 13300 | if defined $::RD_TRACE; | ||
| 13301 | $return = $score_return; | ||
| 13302 | } | ||
| 13303 | splice @{$thisparser->{errors}}, $err_at; | ||
| 13304 | $return = $item[$#item] unless defined $return; | ||
| 13305 | if (defined $::RD_TRACE) | ||
| 13306 | { | ||
| 13307 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 13308 | $return . q{])}, "", | ||
| 13309 | q{stream_select}, | ||
| 13310 | $tracelevel); | ||
| 13311 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 13312 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 13313 | Parse::RecDescent::_tracefirst($text), | ||
| 13314 | , q{stream_select}, | ||
| 13315 | $tracelevel) | ||
| 13316 | } | ||
| 13317 | $_[1] = $text; | ||
| 13318 | return $return; | ||
| 13319 | } | ||
| 13320 | |||
| 13321 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 13322 | sub Parse::RecDescent::XML::XSH2::Parser::trail | ||
| 13323 | { | ||
| 13324 | my $thisparser = $_[0]; | ||
| 13325 | use vars q{$tracelevel}; | ||
| 13326 | local $tracelevel = ($tracelevel||0)+1; | ||
| 13327 | $ERRORS = 0; | ||
| 13328 | my $thisrule = $thisparser->{"rules"}{"trail"}; | ||
| 13329 | |||
| 13330 | Parse::RecDescent::_trace(q{Trying rule: [trail]}, | ||
| 13331 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13332 | q{trail}, | ||
| 13333 | $tracelevel) | ||
| 13334 | if defined $::RD_TRACE; | ||
| 13335 | |||
| 13336 | |||
| 13337 | my $err_at = @{$thisparser->{errors}}; | ||
| 13338 | |||
| 13339 | my $score; | ||
| 13340 | my $score_return; | ||
| 13341 | my $_tok; | ||
| 13342 | my $return = undef; | ||
| 13343 | my $_matched=0; | ||
| 13344 | my $commit=0; | ||
| 13345 | my @item = (); | ||
| 13346 | my %item = (); | ||
| 13347 | my $repeating = $_[2]; | ||
| 13348 | my $_noactions = $_[3]; | ||
| 13349 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 13350 | my $_itempos = $_[5]; | ||
| 13351 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 13352 | my $text; | ||
| 13353 | my $lastsep; | ||
| 13354 | my $current_match; | ||
| 13355 | my $expectation = new Parse::RecDescent::Expectation(q{/(?=\\s*[\};]|\\s*\\Z)/, or '|>', or '|'}); | ||
| 13356 | $expectation->at($_[1]); | ||
| 13357 | |||
| 13358 | my $thisoffset; | ||
| 13359 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 13360 | |||
| 13361 | my $thiscolumn; | ||
| 13362 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 13363 | |||
| 13364 | my $thisline; | ||
| 13365 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 13366 | |||
| 13367 | |||
| 13368 | |||
| 13369 | while (!$_matched && !$commit) | ||
| 13370 | { | ||
| 13371 | |||
| 13372 | Parse::RecDescent::_trace(q{Trying production: [/(?=\\s*[\};]|\\s*\\Z)/ <commit> <reject>]}, | ||
| 13373 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13374 | q{trail}, | ||
| 13375 | $tracelevel) | ||
| 13376 | if defined $::RD_TRACE; | ||
| 13377 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 13378 | $text = $_[1]; | ||
| 13379 | my $_savetext; | ||
| 13380 | @item = (q{trail}); | ||
| 13381 | %item = (__RULE__ => q{trail}); | ||
| 13382 | my $repcount = 0; | ||
| 13383 | |||
| 13384 | |||
| 13385 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=\\s*[\};]|\\s*\\Z)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 13386 | q{trail}, | ||
| 13387 | $tracelevel) | ||
| 13388 | if defined $::RD_TRACE; | ||
| 13389 | undef $lastsep; | ||
| 13390 | $expectation->is(q{})->at($text); | ||
| 13391 | |||
| 13392 | |||
| 13393 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=\s*[};]|\s*\Z))/) | ||
| 13394 | { | ||
| 13395 | $text = $lastsep . $text if defined $lastsep; | ||
| 13396 | $expectation->failed(); | ||
| 13397 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 13398 | Parse::RecDescent::_tracefirst($text)) | ||
| 13399 | if defined $::RD_TRACE; | ||
| 13400 | |||
| 13401 | last; | ||
| 13402 | } | ||
| 13403 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 13404 | substr($text,0,length($current_match),q{}); | ||
| 13405 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 13406 | . $current_match . q{])}, | ||
| 13407 | Parse::RecDescent::_tracefirst($text)) | ||
| 13408 | if defined $::RD_TRACE; | ||
| 13409 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 13410 | |||
| 13411 | |||
| 13412 | |||
| 13413 | |||
| 13414 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 13415 | Parse::RecDescent::_tracefirst($text), | ||
| 13416 | q{trail}, | ||
| 13417 | $tracelevel) | ||
| 13418 | if defined $::RD_TRACE; | ||
| 13419 | $_tok = do { $commit = 1 }; | ||
| 13420 | if (defined($_tok)) | ||
| 13421 | { | ||
| 13422 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 13423 | . $_tok . q{])}, | ||
| 13424 | Parse::RecDescent::_tracefirst($text)) | ||
| 13425 | if defined $::RD_TRACE; | ||
| 13426 | } | ||
| 13427 | else | ||
| 13428 | { | ||
| 13429 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 13430 | Parse::RecDescent::_tracefirst($text)) | ||
| 13431 | if defined $::RD_TRACE; | ||
| 13432 | } | ||
| 13433 | |||
| 13434 | last unless defined $_tok; | ||
| 13435 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 13436 | |||
| 13437 | |||
| 13438 | Parse::RecDescent::_trace(q{>>Rejecting production<< (found <reject>)}, | ||
| 13439 | Parse::RecDescent::_tracefirst($text), | ||
| 13440 | q{trail}, | ||
| 13441 | $tracelevel) | ||
| 13442 | if defined $::RD_TRACE; | ||
| 13443 | undef $return; | ||
| 13444 | |||
| 13445 | |||
| 13446 | $_tok = undef; | ||
| 13447 | |||
| 13448 | last unless defined $_tok; | ||
| 13449 | |||
| 13450 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=\\s*[\};]|\\s*\\Z)/ <commit> <reject>]<<}, | ||
| 13451 | Parse::RecDescent::_tracefirst($text), | ||
| 13452 | q{trail}, | ||
| 13453 | $tracelevel) | ||
| 13454 | if defined $::RD_TRACE; | ||
| 13455 | |||
| 13456 | |||
| 13457 | |||
| 13458 | $_matched = 1; | ||
| 13459 | last; | ||
| 13460 | } | ||
| 13461 | |||
| 13462 | |||
| 13463 | while (!$_matched && !$commit) | ||
| 13464 | { | ||
| 13465 | |||
| 13466 | Parse::RecDescent::_trace(q{Trying production: ['|>' <commit> variable]}, | ||
| 13467 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13468 | q{trail}, | ||
| 13469 | $tracelevel) | ||
| 13470 | if defined $::RD_TRACE; | ||
| 13471 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 13472 | $text = $_[1]; | ||
| 13473 | my $_savetext; | ||
| 13474 | @item = (q{trail}); | ||
| 13475 | %item = (__RULE__ => q{trail}); | ||
| 13476 | my $repcount = 0; | ||
| 13477 | |||
| 13478 | |||
| 13479 | Parse::RecDescent::_trace(q{Trying terminal: ['|>']}, | ||
| 13480 | Parse::RecDescent::_tracefirst($text), | ||
| 13481 | q{trail}, | ||
| 13482 | $tracelevel) | ||
| 13483 | if defined $::RD_TRACE; | ||
| 13484 | undef $lastsep; | ||
| 13485 | $expectation->is(q{})->at($text); | ||
| 13486 | |||
| 13487 | |||
| 13488 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\|\>/) | ||
| 13489 | { | ||
| 13490 | $text = $lastsep . $text if defined $lastsep; | ||
| 13491 | |||
| 13492 | $expectation->failed(); | ||
| 13493 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 13494 | Parse::RecDescent::_tracefirst($text)) | ||
| 13495 | if defined $::RD_TRACE; | ||
| 13496 | last; | ||
| 13497 | } | ||
| 13498 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 13499 | substr($text,0,length($current_match),q{}); | ||
| 13500 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 13501 | . $current_match . q{])}, | ||
| 13502 | Parse::RecDescent::_tracefirst($text)) | ||
| 13503 | if defined $::RD_TRACE; | ||
| 13504 | push @item, $item{__STRING1__}=$current_match; | ||
| 13505 | |||
| 13506 | |||
| 13507 | |||
| 13508 | |||
| 13509 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 13510 | Parse::RecDescent::_tracefirst($text), | ||
| 13511 | q{trail}, | ||
| 13512 | $tracelevel) | ||
| 13513 | if defined $::RD_TRACE; | ||
| 13514 | $_tok = do { $commit = 1 }; | ||
| 13515 | if (defined($_tok)) | ||
| 13516 | { | ||
| 13517 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 13518 | . $_tok . q{])}, | ||
| 13519 | Parse::RecDescent::_tracefirst($text)) | ||
| 13520 | if defined $::RD_TRACE; | ||
| 13521 | } | ||
| 13522 | else | ||
| 13523 | { | ||
| 13524 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 13525 | Parse::RecDescent::_tracefirst($text)) | ||
| 13526 | if defined $::RD_TRACE; | ||
| 13527 | } | ||
| 13528 | |||
| 13529 | last unless defined $_tok; | ||
| 13530 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 13531 | |||
| 13532 | |||
| 13533 | Parse::RecDescent::_trace(q{Trying subrule: [variable]}, | ||
| 13534 | Parse::RecDescent::_tracefirst($text), | ||
| 13535 | q{trail}, | ||
| 13536 | $tracelevel) | ||
| 13537 | if defined $::RD_TRACE; | ||
| 13538 | if (1) { no strict qw{refs}; | ||
| 13539 | $expectation->is(q{variable})->at($text); | ||
| 13540 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::variable($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 13541 | { | ||
| 13542 | |||
| 13543 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [variable]>>}, | ||
| 13544 | Parse::RecDescent::_tracefirst($text), | ||
| 13545 | q{trail}, | ||
| 13546 | $tracelevel) | ||
| 13547 | if defined $::RD_TRACE; | ||
| 13548 | $expectation->failed(); | ||
| 13549 | last; | ||
| 13550 | } | ||
| 13551 | Parse::RecDescent::_trace(q{>>Matched subrule: [variable]<< (return value: [} | ||
| 13552 | . $_tok . q{]}, | ||
| 13553 | |||
| 13554 | Parse::RecDescent::_tracefirst($text), | ||
| 13555 | q{trail}, | ||
| 13556 | $tracelevel) | ||
| 13557 | if defined $::RD_TRACE; | ||
| 13558 | $item{q{variable}} = $_tok; | ||
| 13559 | push @item, $_tok; | ||
| 13560 | |||
| 13561 | } | ||
| 13562 | |||
| 13563 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 13564 | Parse::RecDescent::_tracefirst($text), | ||
| 13565 | q{trail}, | ||
| 13566 | $tracelevel) | ||
| 13567 | if defined $::RD_TRACE; | ||
| 13568 | |||
| 13569 | |||
| 13570 | $_tok = ($_noactions) ? 0 : do { ['var',$item[3]] }; | ||
| 13571 | unless (defined $_tok) | ||
| 13572 | { | ||
| 13573 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 13574 | if defined $::RD_TRACE; | ||
| 13575 | last; | ||
| 13576 | } | ||
| 13577 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 13578 | . $_tok . q{])}, | ||
| 13579 | Parse::RecDescent::_tracefirst($text)) | ||
| 13580 | if defined $::RD_TRACE; | ||
| 13581 | push @item, $_tok; | ||
| 13582 | $item{__ACTION1__}=$_tok; | ||
| 13583 | |||
| 13584 | |||
| 13585 | Parse::RecDescent::_trace(q{>>Matched production: ['|>' <commit> variable]<<}, | ||
| 13586 | Parse::RecDescent::_tracefirst($text), | ||
| 13587 | q{trail}, | ||
| 13588 | $tracelevel) | ||
| 13589 | if defined $::RD_TRACE; | ||
| 13590 | |||
| 13591 | |||
| 13592 | |||
| 13593 | $_matched = 1; | ||
| 13594 | last; | ||
| 13595 | } | ||
| 13596 | |||
| 13597 | |||
| 13598 | while (!$_matched && !$commit) | ||
| 13599 | { | ||
| 13600 | |||
| 13601 | Parse::RecDescent::_trace(q{Trying production: ['|' <commit> shline]}, | ||
| 13602 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13603 | q{trail}, | ||
| 13604 | $tracelevel) | ||
| 13605 | if defined $::RD_TRACE; | ||
| 13606 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 13607 | $text = $_[1]; | ||
| 13608 | my $_savetext; | ||
| 13609 | @item = (q{trail}); | ||
| 13610 | %item = (__RULE__ => q{trail}); | ||
| 13611 | my $repcount = 0; | ||
| 13612 | |||
| 13613 | |||
| 13614 | Parse::RecDescent::_trace(q{Trying terminal: ['|']}, | ||
| 13615 | Parse::RecDescent::_tracefirst($text), | ||
| 13616 | q{trail}, | ||
| 13617 | $tracelevel) | ||
| 13618 | if defined $::RD_TRACE; | ||
| 13619 | undef $lastsep; | ||
| 13620 | $expectation->is(q{})->at($text); | ||
| 13621 | |||
| 13622 | |||
| 13623 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\|/) | ||
| 13624 | { | ||
| 13625 | $text = $lastsep . $text if defined $lastsep; | ||
| 13626 | |||
| 13627 | $expectation->failed(); | ||
| 13628 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 13629 | Parse::RecDescent::_tracefirst($text)) | ||
| 13630 | if defined $::RD_TRACE; | ||
| 13631 | last; | ||
| 13632 | } | ||
| 13633 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 13634 | substr($text,0,length($current_match),q{}); | ||
| 13635 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 13636 | . $current_match . q{])}, | ||
| 13637 | Parse::RecDescent::_tracefirst($text)) | ||
| 13638 | if defined $::RD_TRACE; | ||
| 13639 | push @item, $item{__STRING1__}=$current_match; | ||
| 13640 | |||
| 13641 | |||
| 13642 | |||
| 13643 | |||
| 13644 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 13645 | Parse::RecDescent::_tracefirst($text), | ||
| 13646 | q{trail}, | ||
| 13647 | $tracelevel) | ||
| 13648 | if defined $::RD_TRACE; | ||
| 13649 | $_tok = do { $commit = 1 }; | ||
| 13650 | if (defined($_tok)) | ||
| 13651 | { | ||
| 13652 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 13653 | . $_tok . q{])}, | ||
| 13654 | Parse::RecDescent::_tracefirst($text)) | ||
| 13655 | if defined $::RD_TRACE; | ||
| 13656 | } | ||
| 13657 | else | ||
| 13658 | { | ||
| 13659 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 13660 | Parse::RecDescent::_tracefirst($text)) | ||
| 13661 | if defined $::RD_TRACE; | ||
| 13662 | } | ||
| 13663 | |||
| 13664 | last unless defined $_tok; | ||
| 13665 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 13666 | |||
| 13667 | |||
| 13668 | Parse::RecDescent::_trace(q{Trying subrule: [shline]}, | ||
| 13669 | Parse::RecDescent::_tracefirst($text), | ||
| 13670 | q{trail}, | ||
| 13671 | $tracelevel) | ||
| 13672 | if defined $::RD_TRACE; | ||
| 13673 | if (1) { no strict qw{refs}; | ||
| 13674 | $expectation->is(q{shline})->at($text); | ||
| 13675 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::shline($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 13676 | { | ||
| 13677 | |||
| 13678 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [shline]>>}, | ||
| 13679 | Parse::RecDescent::_tracefirst($text), | ||
| 13680 | q{trail}, | ||
| 13681 | $tracelevel) | ||
| 13682 | if defined $::RD_TRACE; | ||
| 13683 | $expectation->failed(); | ||
| 13684 | last; | ||
| 13685 | } | ||
| 13686 | Parse::RecDescent::_trace(q{>>Matched subrule: [shline]<< (return value: [} | ||
| 13687 | . $_tok . q{]}, | ||
| 13688 | |||
| 13689 | Parse::RecDescent::_tracefirst($text), | ||
| 13690 | q{trail}, | ||
| 13691 | $tracelevel) | ||
| 13692 | if defined $::RD_TRACE; | ||
| 13693 | $item{q{shline}} = $_tok; | ||
| 13694 | push @item, $_tok; | ||
| 13695 | |||
| 13696 | } | ||
| 13697 | |||
| 13698 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 13699 | Parse::RecDescent::_tracefirst($text), | ||
| 13700 | q{trail}, | ||
| 13701 | $tracelevel) | ||
| 13702 | if defined $::RD_TRACE; | ||
| 13703 | |||
| 13704 | |||
| 13705 | $_tok = ($_noactions) ? 0 : do { ['pipe',$item[3]] }; | ||
| 13706 | unless (defined $_tok) | ||
| 13707 | { | ||
| 13708 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 13709 | if defined $::RD_TRACE; | ||
| 13710 | last; | ||
| 13711 | } | ||
| 13712 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 13713 | . $_tok . q{])}, | ||
| 13714 | Parse::RecDescent::_tracefirst($text)) | ||
| 13715 | if defined $::RD_TRACE; | ||
| 13716 | push @item, $_tok; | ||
| 13717 | $item{__ACTION1__}=$_tok; | ||
| 13718 | |||
| 13719 | |||
| 13720 | Parse::RecDescent::_trace(q{>>Matched production: ['|' <commit> shline]<<}, | ||
| 13721 | Parse::RecDescent::_tracefirst($text), | ||
| 13722 | q{trail}, | ||
| 13723 | $tracelevel) | ||
| 13724 | if defined $::RD_TRACE; | ||
| 13725 | |||
| 13726 | |||
| 13727 | |||
| 13728 | $_matched = 1; | ||
| 13729 | last; | ||
| 13730 | } | ||
| 13731 | |||
| 13732 | |||
| 13733 | unless ( $_matched || defined($score) ) | ||
| 13734 | { | ||
| 13735 | |||
| 13736 | |||
| 13737 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 13738 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 13739 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13740 | q{trail}, | ||
| 13741 | $tracelevel) | ||
| 13742 | if defined $::RD_TRACE; | ||
| 13743 | return undef; | ||
| 13744 | } | ||
| 13745 | if (!defined($return) && defined($score)) | ||
| 13746 | { | ||
| 13747 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 13748 | q{trail}, | ||
| 13749 | $tracelevel) | ||
| 13750 | if defined $::RD_TRACE; | ||
| 13751 | $return = $score_return; | ||
| 13752 | } | ||
| 13753 | splice @{$thisparser->{errors}}, $err_at; | ||
| 13754 | $return = $item[$#item] unless defined $return; | ||
| 13755 | if (defined $::RD_TRACE) | ||
| 13756 | { | ||
| 13757 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 13758 | $return . q{])}, "", | ||
| 13759 | q{trail}, | ||
| 13760 | $tracelevel); | ||
| 13761 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 13762 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 13763 | Parse::RecDescent::_tracefirst($text), | ||
| 13764 | , q{trail}, | ||
| 13765 | $tracelevel) | ||
| 13766 | } | ||
| 13767 | $_[1] = $text; | ||
| 13768 | return $return; | ||
| 13769 | } | ||
| 13770 | |||
| 13771 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 13772 | sub Parse::RecDescent::XML::XSH2::Parser::undef | ||
| 13773 | { | ||
| 13774 | my $thisparser = $_[0]; | ||
| 13775 | use vars q{$tracelevel}; | ||
| 13776 | local $tracelevel = ($tracelevel||0)+1; | ||
| 13777 | $ERRORS = 0; | ||
| 13778 | my $thisrule = $thisparser->{"rules"}{"undef"}; | ||
| 13779 | |||
| 13780 | Parse::RecDescent::_trace(q{Trying rule: [undef]}, | ||
| 13781 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13782 | q{undef}, | ||
| 13783 | $tracelevel) | ||
| 13784 | if defined $::RD_TRACE; | ||
| 13785 | |||
| 13786 | |||
| 13787 | my $err_at = @{$thisparser->{errors}}; | ||
| 13788 | |||
| 13789 | my $score; | ||
| 13790 | my $score_return; | ||
| 13791 | my $_tok; | ||
| 13792 | my $return = undef; | ||
| 13793 | my $_matched=0; | ||
| 13794 | my $commit=0; | ||
| 13795 | my @item = (); | ||
| 13796 | my %item = (); | ||
| 13797 | my $repeating = $_[2]; | ||
| 13798 | my $_noactions = $_[3]; | ||
| 13799 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 13800 | my $_itempos = $_[5]; | ||
| 13801 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 13802 | my $text; | ||
| 13803 | my $lastsep; | ||
| 13804 | my $current_match; | ||
| 13805 | my $expectation = new Parse::RecDescent::Expectation(q{/(undef|undefine)\\b/}); | ||
| 13806 | $expectation->at($_[1]); | ||
| 13807 | |||
| 13808 | my $thisoffset; | ||
| 13809 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 13810 | |||
| 13811 | my $thiscolumn; | ||
| 13812 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 13813 | |||
| 13814 | my $thisline; | ||
| 13815 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 13816 | |||
| 13817 | |||
| 13818 | |||
| 13819 | while (!$_matched && !$commit) | ||
| 13820 | { | ||
| 13821 | |||
| 13822 | Parse::RecDescent::_trace(q{Trying production: [/(undef|undefine)\\b/ <commit> /\\$?[a-zA-Z_][a-zA-Z0-9_]*/]}, | ||
| 13823 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13824 | q{undef}, | ||
| 13825 | $tracelevel) | ||
| 13826 | if defined $::RD_TRACE; | ||
| 13827 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 13828 | $text = $_[1]; | ||
| 13829 | my $_savetext; | ||
| 13830 | @item = (q{undef}); | ||
| 13831 | %item = (__RULE__ => q{undef}); | ||
| 13832 | my $repcount = 0; | ||
| 13833 | |||
| 13834 | |||
| 13835 | Parse::RecDescent::_trace(q{Trying terminal: [/(undef|undefine)\\b/]}, Parse::RecDescent::_tracefirst($text), | ||
| 13836 | q{undef}, | ||
| 13837 | $tracelevel) | ||
| 13838 | if defined $::RD_TRACE; | ||
| 13839 | undef $lastsep; | ||
| 13840 | $expectation->is(q{})->at($text); | ||
| 13841 | |||
| 13842 | |||
| 13843 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(undef|undefine)\b)/) | ||
| 13844 | { | ||
| 13845 | $text = $lastsep . $text if defined $lastsep; | ||
| 13846 | $expectation->failed(); | ||
| 13847 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 13848 | Parse::RecDescent::_tracefirst($text)) | ||
| 13849 | if defined $::RD_TRACE; | ||
| 13850 | |||
| 13851 | last; | ||
| 13852 | } | ||
| 13853 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 13854 | substr($text,0,length($current_match),q{}); | ||
| 13855 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 13856 | . $current_match . q{])}, | ||
| 13857 | Parse::RecDescent::_tracefirst($text)) | ||
| 13858 | if defined $::RD_TRACE; | ||
| 13859 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 13860 | |||
| 13861 | |||
| 13862 | |||
| 13863 | |||
| 13864 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 13865 | Parse::RecDescent::_tracefirst($text), | ||
| 13866 | q{undef}, | ||
| 13867 | $tracelevel) | ||
| 13868 | if defined $::RD_TRACE; | ||
| 13869 | $_tok = do { $commit = 1 }; | ||
| 13870 | if (defined($_tok)) | ||
| 13871 | { | ||
| 13872 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 13873 | . $_tok . q{])}, | ||
| 13874 | Parse::RecDescent::_tracefirst($text)) | ||
| 13875 | if defined $::RD_TRACE; | ||
| 13876 | } | ||
| 13877 | else | ||
| 13878 | { | ||
| 13879 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 13880 | Parse::RecDescent::_tracefirst($text)) | ||
| 13881 | if defined $::RD_TRACE; | ||
| 13882 | } | ||
| 13883 | |||
| 13884 | last unless defined $_tok; | ||
| 13885 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 13886 | |||
| 13887 | |||
| 13888 | Parse::RecDescent::_trace(q{Trying terminal: [/\\$?[a-zA-Z_][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 13889 | q{undef}, | ||
| 13890 | $tracelevel) | ||
| 13891 | if defined $::RD_TRACE; | ||
| 13892 | undef $lastsep; | ||
| 13893 | $expectation->is(q{/\\$?[a-zA-Z_][a-zA-Z0-9_]*/})->at($text); | ||
| 13894 | |||
| 13895 | |||
| 13896 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\$?[a-zA-Z_][a-zA-Z0-9_]*)/) | ||
| 13897 | { | ||
| 13898 | $text = $lastsep . $text if defined $lastsep; | ||
| 13899 | $expectation->failed(); | ||
| 13900 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 13901 | Parse::RecDescent::_tracefirst($text)) | ||
| 13902 | if defined $::RD_TRACE; | ||
| 13903 | |||
| 13904 | last; | ||
| 13905 | } | ||
| 13906 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 13907 | substr($text,0,length($current_match),q{}); | ||
| 13908 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 13909 | . $current_match . q{])}, | ||
| 13910 | Parse::RecDescent::_tracefirst($text)) | ||
| 13911 | if defined $::RD_TRACE; | ||
| 13912 | push @item, $item{__PATTERN2__}=$current_match; | ||
| 13913 | |||
| 13914 | |||
| 13915 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 13916 | Parse::RecDescent::_tracefirst($text), | ||
| 13917 | q{undef}, | ||
| 13918 | $tracelevel) | ||
| 13919 | if defined $::RD_TRACE; | ||
| 13920 | |||
| 13921 | |||
| 13922 | $_tok = ($_noactions) ? 0 : do { | ||
| 13923 | [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,'undefine',$item[3]]; | ||
| 13924 | }; | ||
| 13925 | unless (defined $_tok) | ||
| 13926 | { | ||
| 13927 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 13928 | if defined $::RD_TRACE; | ||
| 13929 | last; | ||
| 13930 | } | ||
| 13931 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 13932 | . $_tok . q{])}, | ||
| 13933 | Parse::RecDescent::_tracefirst($text)) | ||
| 13934 | if defined $::RD_TRACE; | ||
| 13935 | push @item, $_tok; | ||
| 13936 | $item{__ACTION1__}=$_tok; | ||
| 13937 | |||
| 13938 | |||
| 13939 | Parse::RecDescent::_trace(q{>>Matched production: [/(undef|undefine)\\b/ <commit> /\\$?[a-zA-Z_][a-zA-Z0-9_]*/]<<}, | ||
| 13940 | Parse::RecDescent::_tracefirst($text), | ||
| 13941 | q{undef}, | ||
| 13942 | $tracelevel) | ||
| 13943 | if defined $::RD_TRACE; | ||
| 13944 | |||
| 13945 | |||
| 13946 | |||
| 13947 | $_matched = 1; | ||
| 13948 | last; | ||
| 13949 | } | ||
| 13950 | |||
| 13951 | |||
| 13952 | unless ( $_matched || defined($score) ) | ||
| 13953 | { | ||
| 13954 | |||
| 13955 | |||
| 13956 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 13957 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 13958 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 13959 | q{undef}, | ||
| 13960 | $tracelevel) | ||
| 13961 | if defined $::RD_TRACE; | ||
| 13962 | return undef; | ||
| 13963 | } | ||
| 13964 | if (!defined($return) && defined($score)) | ||
| 13965 | { | ||
| 13966 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 13967 | q{undef}, | ||
| 13968 | $tracelevel) | ||
| 13969 | if defined $::RD_TRACE; | ||
| 13970 | $return = $score_return; | ||
| 13971 | } | ||
| 13972 | splice @{$thisparser->{errors}}, $err_at; | ||
| 13973 | $return = $item[$#item] unless defined $return; | ||
| 13974 | if (defined $::RD_TRACE) | ||
| 13975 | { | ||
| 13976 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 13977 | $return . q{])}, "", | ||
| 13978 | q{undef}, | ||
| 13979 | $tracelevel); | ||
| 13980 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 13981 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 13982 | Parse::RecDescent::_tracefirst($text), | ||
| 13983 | , q{undef}, | ||
| 13984 | $tracelevel) | ||
| 13985 | } | ||
| 13986 | $_[1] = $text; | ||
| 13987 | return $return; | ||
| 13988 | } | ||
| 13989 | |||
| 13990 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 13991 | sub Parse::RecDescent::XML::XSH2::Parser::variable | ||
| 13992 | { | ||
| 13993 | my $thisparser = $_[0]; | ||
| 13994 | use vars q{$tracelevel}; | ||
| 13995 | local $tracelevel = ($tracelevel||0)+1; | ||
| 13996 | $ERRORS = 0; | ||
| 13997 | my $thisrule = $thisparser->{"rules"}{"variable"}; | ||
| 13998 | |||
| 13999 | Parse::RecDescent::_trace(q{Trying rule: [variable]}, | ||
| 14000 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14001 | q{variable}, | ||
| 14002 | $tracelevel) | ||
| 14003 | if defined $::RD_TRACE; | ||
| 14004 | |||
| 14005 | |||
| 14006 | my $err_at = @{$thisparser->{errors}}; | ||
| 14007 | |||
| 14008 | my $score; | ||
| 14009 | my $score_return; | ||
| 14010 | my $_tok; | ||
| 14011 | my $return = undef; | ||
| 14012 | my $_matched=0; | ||
| 14013 | my $commit=0; | ||
| 14014 | my @item = (); | ||
| 14015 | my %item = (); | ||
| 14016 | my $repeating = $_[2]; | ||
| 14017 | my $_noactions = $_[3]; | ||
| 14018 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 14019 | my $_itempos = $_[5]; | ||
| 14020 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 14021 | my $text; | ||
| 14022 | my $lastsep; | ||
| 14023 | my $current_match; | ||
| 14024 | my $expectation = new Parse::RecDescent::Expectation(q{/\\$[a-zA-Z_][a-zA-Z0-9_]*/}); | ||
| 14025 | $expectation->at($_[1]); | ||
| 14026 | |||
| 14027 | my $thisoffset; | ||
| 14028 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 14029 | |||
| 14030 | my $thiscolumn; | ||
| 14031 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 14032 | |||
| 14033 | my $thisline; | ||
| 14034 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 14035 | |||
| 14036 | |||
| 14037 | |||
| 14038 | while (!$_matched && !$commit) | ||
| 14039 | { | ||
| 14040 | |||
| 14041 | Parse::RecDescent::_trace(q{Trying production: [/\\$[a-zA-Z_][a-zA-Z0-9_]*/]}, | ||
| 14042 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14043 | q{variable}, | ||
| 14044 | $tracelevel) | ||
| 14045 | if defined $::RD_TRACE; | ||
| 14046 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 14047 | $text = $_[1]; | ||
| 14048 | my $_savetext; | ||
| 14049 | @item = (q{variable}); | ||
| 14050 | %item = (__RULE__ => q{variable}); | ||
| 14051 | my $repcount = 0; | ||
| 14052 | |||
| 14053 | |||
| 14054 | Parse::RecDescent::_trace(q{Trying terminal: [/\\$[a-zA-Z_][a-zA-Z0-9_]*/]}, Parse::RecDescent::_tracefirst($text), | ||
| 14055 | q{variable}, | ||
| 14056 | $tracelevel) | ||
| 14057 | if defined $::RD_TRACE; | ||
| 14058 | undef $lastsep; | ||
| 14059 | $expectation->is(q{})->at($text); | ||
| 14060 | |||
| 14061 | |||
| 14062 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:\$[a-zA-Z_][a-zA-Z0-9_]*)/) | ||
| 14063 | { | ||
| 14064 | $text = $lastsep . $text if defined $lastsep; | ||
| 14065 | $expectation->failed(); | ||
| 14066 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 14067 | Parse::RecDescent::_tracefirst($text)) | ||
| 14068 | if defined $::RD_TRACE; | ||
| 14069 | |||
| 14070 | last; | ||
| 14071 | } | ||
| 14072 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 14073 | substr($text,0,length($current_match),q{}); | ||
| 14074 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 14075 | . $current_match . q{])}, | ||
| 14076 | Parse::RecDescent::_tracefirst($text)) | ||
| 14077 | if defined $::RD_TRACE; | ||
| 14078 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 14079 | |||
| 14080 | |||
| 14081 | Parse::RecDescent::_trace(q{>>Matched production: [/\\$[a-zA-Z_][a-zA-Z0-9_]*/]<<}, | ||
| 14082 | Parse::RecDescent::_tracefirst($text), | ||
| 14083 | q{variable}, | ||
| 14084 | $tracelevel) | ||
| 14085 | if defined $::RD_TRACE; | ||
| 14086 | |||
| 14087 | |||
| 14088 | |||
| 14089 | $_matched = 1; | ||
| 14090 | last; | ||
| 14091 | } | ||
| 14092 | |||
| 14093 | |||
| 14094 | unless ( $_matched || defined($score) ) | ||
| 14095 | { | ||
| 14096 | |||
| 14097 | |||
| 14098 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 14099 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 14100 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14101 | q{variable}, | ||
| 14102 | $tracelevel) | ||
| 14103 | if defined $::RD_TRACE; | ||
| 14104 | return undef; | ||
| 14105 | } | ||
| 14106 | if (!defined($return) && defined($score)) | ||
| 14107 | { | ||
| 14108 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 14109 | q{variable}, | ||
| 14110 | $tracelevel) | ||
| 14111 | if defined $::RD_TRACE; | ||
| 14112 | $return = $score_return; | ||
| 14113 | } | ||
| 14114 | splice @{$thisparser->{errors}}, $err_at; | ||
| 14115 | $return = $item[$#item] unless defined $return; | ||
| 14116 | if (defined $::RD_TRACE) | ||
| 14117 | { | ||
| 14118 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 14119 | $return . q{])}, "", | ||
| 14120 | q{variable}, | ||
| 14121 | $tracelevel); | ||
| 14122 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 14123 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 14124 | Parse::RecDescent::_tracefirst($text), | ||
| 14125 | , q{variable}, | ||
| 14126 | $tracelevel) | ||
| 14127 | } | ||
| 14128 | $_[1] = $text; | ||
| 14129 | return $return; | ||
| 14130 | } | ||
| 14131 | |||
| 14132 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 14133 | sub Parse::RecDescent::XML::XSH2::Parser::xpath | ||
| 14134 | { | ||
| 14135 | my $thisparser = $_[0]; | ||
| 14136 | use vars q{$tracelevel}; | ||
| 14137 | local $tracelevel = ($tracelevel||0)+1; | ||
| 14138 | $ERRORS = 0; | ||
| 14139 | my $thisrule = $thisparser->{"rules"}{"xpath"}; | ||
| 14140 | |||
| 14141 | Parse::RecDescent::_trace(q{Trying rule: [xpath]}, | ||
| 14142 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14143 | q{xpath}, | ||
| 14144 | $tracelevel) | ||
| 14145 | if defined $::RD_TRACE; | ||
| 14146 | |||
| 14147 | |||
| 14148 | my $err_at = @{$thisparser->{errors}}; | ||
| 14149 | |||
| 14150 | my $score; | ||
| 14151 | my $score_return; | ||
| 14152 | my $_tok; | ||
| 14153 | my $return = undef; | ||
| 14154 | my $_matched=0; | ||
| 14155 | my $commit=0; | ||
| 14156 | my @item = (); | ||
| 14157 | my %item = (); | ||
| 14158 | my $repeating = $_[2]; | ||
| 14159 | my $_noactions = $_[3]; | ||
| 14160 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 14161 | my $_itempos = $_[5]; | ||
| 14162 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 14163 | my $text; | ||
| 14164 | my $lastsep; | ||
| 14165 | my $current_match; | ||
| 14166 | my $expectation = new Parse::RecDescent::Expectation(q{/(?=['"])/, or xpsimple}); | ||
| 14167 | $expectation->at($_[1]); | ||
| 14168 | |||
| 14169 | my $thisoffset; | ||
| 14170 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 14171 | |||
| 14172 | my $thiscolumn; | ||
| 14173 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 14174 | |||
| 14175 | my $thisline; | ||
| 14176 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 14177 | |||
| 14178 | |||
| 14179 | |||
| 14180 | while (!$_matched && !$commit) | ||
| 14181 | { | ||
| 14182 | |||
| 14183 | Parse::RecDescent::_trace(q{Trying production: [/(?=['"])/ <commit> xpstring]}, | ||
| 14184 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14185 | q{xpath}, | ||
| 14186 | $tracelevel) | ||
| 14187 | if defined $::RD_TRACE; | ||
| 14188 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 14189 | $text = $_[1]; | ||
| 14190 | my $_savetext; | ||
| 14191 | @item = (q{xpath}); | ||
| 14192 | %item = (__RULE__ => q{xpath}); | ||
| 14193 | my $repcount = 0; | ||
| 14194 | |||
| 14195 | |||
| 14196 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=['"])/]}, Parse::RecDescent::_tracefirst($text), | ||
| 14197 | q{xpath}, | ||
| 14198 | $tracelevel) | ||
| 14199 | if defined $::RD_TRACE; | ||
| 14200 | undef $lastsep; | ||
| 14201 | $expectation->is(q{})->at($text); | ||
| 14202 | |||
| 14203 | |||
| 14204 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=['"]))/) | ||
| 14205 | { | ||
| 14206 | $text = $lastsep . $text if defined $lastsep; | ||
| 14207 | $expectation->failed(); | ||
| 14208 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 14209 | Parse::RecDescent::_tracefirst($text)) | ||
| 14210 | if defined $::RD_TRACE; | ||
| 14211 | |||
| 14212 | last; | ||
| 14213 | } | ||
| 14214 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 14215 | substr($text,0,length($current_match),q{}); | ||
| 14216 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 14217 | . $current_match . q{])}, | ||
| 14218 | Parse::RecDescent::_tracefirst($text)) | ||
| 14219 | if defined $::RD_TRACE; | ||
| 14220 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 14221 | |||
| 14222 | |||
| 14223 | |||
| 14224 | |||
| 14225 | Parse::RecDescent::_trace(q{Trying directive: [<commit>]}, | ||
| 14226 | Parse::RecDescent::_tracefirst($text), | ||
| 14227 | q{xpath}, | ||
| 14228 | $tracelevel) | ||
| 14229 | if defined $::RD_TRACE; | ||
| 14230 | $_tok = do { $commit = 1 }; | ||
| 14231 | if (defined($_tok)) | ||
| 14232 | { | ||
| 14233 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 14234 | . $_tok . q{])}, | ||
| 14235 | Parse::RecDescent::_tracefirst($text)) | ||
| 14236 | if defined $::RD_TRACE; | ||
| 14237 | } | ||
| 14238 | else | ||
| 14239 | { | ||
| 14240 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 14241 | Parse::RecDescent::_tracefirst($text)) | ||
| 14242 | if defined $::RD_TRACE; | ||
| 14243 | } | ||
| 14244 | |||
| 14245 | last unless defined $_tok; | ||
| 14246 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 14247 | |||
| 14248 | |||
| 14249 | Parse::RecDescent::_trace(q{Trying subrule: [xpstring]}, | ||
| 14250 | Parse::RecDescent::_tracefirst($text), | ||
| 14251 | q{xpath}, | ||
| 14252 | $tracelevel) | ||
| 14253 | if defined $::RD_TRACE; | ||
| 14254 | if (1) { no strict qw{refs}; | ||
| 14255 | $expectation->is(q{xpstring})->at($text); | ||
| 14256 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpstring($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 14257 | { | ||
| 14258 | |||
| 14259 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpstring]>>}, | ||
| 14260 | Parse::RecDescent::_tracefirst($text), | ||
| 14261 | q{xpath}, | ||
| 14262 | $tracelevel) | ||
| 14263 | if defined $::RD_TRACE; | ||
| 14264 | $expectation->failed(); | ||
| 14265 | last; | ||
| 14266 | } | ||
| 14267 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpstring]<< (return value: [} | ||
| 14268 | . $_tok . q{]}, | ||
| 14269 | |||
| 14270 | Parse::RecDescent::_tracefirst($text), | ||
| 14271 | q{xpath}, | ||
| 14272 | $tracelevel) | ||
| 14273 | if defined $::RD_TRACE; | ||
| 14274 | $item{q{xpstring}} = $_tok; | ||
| 14275 | push @item, $_tok; | ||
| 14276 | |||
| 14277 | } | ||
| 14278 | |||
| 14279 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 14280 | Parse::RecDescent::_tracefirst($text), | ||
| 14281 | q{xpath}, | ||
| 14282 | $tracelevel) | ||
| 14283 | if defined $::RD_TRACE; | ||
| 14284 | |||
| 14285 | |||
| 14286 | $_tok = ($_noactions) ? 0 : do { $item[3] }; | ||
| 14287 | unless (defined $_tok) | ||
| 14288 | { | ||
| 14289 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 14290 | if defined $::RD_TRACE; | ||
| 14291 | last; | ||
| 14292 | } | ||
| 14293 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 14294 | . $_tok . q{])}, | ||
| 14295 | Parse::RecDescent::_tracefirst($text)) | ||
| 14296 | if defined $::RD_TRACE; | ||
| 14297 | push @item, $_tok; | ||
| 14298 | $item{__ACTION1__}=$_tok; | ||
| 14299 | |||
| 14300 | |||
| 14301 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=['"])/ <commit> xpstring]<<}, | ||
| 14302 | Parse::RecDescent::_tracefirst($text), | ||
| 14303 | q{xpath}, | ||
| 14304 | $tracelevel) | ||
| 14305 | if defined $::RD_TRACE; | ||
| 14306 | |||
| 14307 | |||
| 14308 | |||
| 14309 | $_matched = 1; | ||
| 14310 | last; | ||
| 14311 | } | ||
| 14312 | |||
| 14313 | |||
| 14314 | while (!$_matched && !$commit) | ||
| 14315 | { | ||
| 14316 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 14317 | Parse::RecDescent::_trace(q{Trying production: [xpsimple <skip:""> xpcont]}, | ||
| 14318 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14319 | q{xpath}, | ||
| 14320 | $tracelevel) | ||
| 14321 | if defined $::RD_TRACE; | ||
| 14322 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 14323 | $text = $_[1]; | ||
| 14324 | my $_savetext; | ||
| 14325 | @item = (q{xpath}); | ||
| 14326 | %item = (__RULE__ => q{xpath}); | ||
| 14327 | my $repcount = 0; | ||
| 14328 | |||
| 14329 | |||
| 14330 | Parse::RecDescent::_trace(q{Trying subrule: [xpsimple]}, | ||
| 14331 | Parse::RecDescent::_tracefirst($text), | ||
| 14332 | q{xpath}, | ||
| 14333 | $tracelevel) | ||
| 14334 | if defined $::RD_TRACE; | ||
| 14335 | if (1) { no strict qw{refs}; | ||
| 14336 | $expectation->is(q{})->at($text); | ||
| 14337 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpsimple($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 14338 | { | ||
| 14339 | |||
| 14340 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpsimple]>>}, | ||
| 14341 | Parse::RecDescent::_tracefirst($text), | ||
| 14342 | q{xpath}, | ||
| 14343 | $tracelevel) | ||
| 14344 | if defined $::RD_TRACE; | ||
| 14345 | $expectation->failed(); | ||
| 14346 | last; | ||
| 14347 | } | ||
| 14348 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpsimple]<< (return value: [} | ||
| 14349 | . $_tok . q{]}, | ||
| 14350 | |||
| 14351 | Parse::RecDescent::_tracefirst($text), | ||
| 14352 | q{xpath}, | ||
| 14353 | $tracelevel) | ||
| 14354 | if defined $::RD_TRACE; | ||
| 14355 | $item{q{xpsimple}} = $_tok; | ||
| 14356 | push @item, $_tok; | ||
| 14357 | |||
| 14358 | } | ||
| 14359 | |||
| 14360 | |||
| 14361 | |||
| 14362 | Parse::RecDescent::_trace(q{Trying directive: [<skip:"">]}, | ||
| 14363 | Parse::RecDescent::_tracefirst($text), | ||
| 14364 | q{xpath}, | ||
| 14365 | $tracelevel) | ||
| 14366 | if defined $::RD_TRACE; | ||
| 14367 | $_tok = do { my $oldskip = $skip; $skip=""; $oldskip }; | ||
| 14368 | if (defined($_tok)) | ||
| 14369 | { | ||
| 14370 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 14371 | . $_tok . q{])}, | ||
| 14372 | Parse::RecDescent::_tracefirst($text)) | ||
| 14373 | if defined $::RD_TRACE; | ||
| 14374 | } | ||
| 14375 | else | ||
| 14376 | { | ||
| 14377 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 14378 | Parse::RecDescent::_tracefirst($text)) | ||
| 14379 | if defined $::RD_TRACE; | ||
| 14380 | } | ||
| 14381 | |||
| 14382 | last unless defined $_tok; | ||
| 14383 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 14384 | |||
| 14385 | |||
| 14386 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpcont]}, | ||
| 14387 | Parse::RecDescent::_tracefirst($text), | ||
| 14388 | q{xpath}, | ||
| 14389 | $tracelevel) | ||
| 14390 | if defined $::RD_TRACE; | ||
| 14391 | $expectation->is(q{xpcont})->at($text); | ||
| 14392 | |||
| 14393 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::xpcont, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 14394 | { | ||
| 14395 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpcont]>>}, | ||
| 14396 | Parse::RecDescent::_tracefirst($text), | ||
| 14397 | q{xpath}, | ||
| 14398 | $tracelevel) | ||
| 14399 | if defined $::RD_TRACE; | ||
| 14400 | last; | ||
| 14401 | } | ||
| 14402 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpcont]<< (} | ||
| 14403 | . @$_tok . q{ times)}, | ||
| 14404 | |||
| 14405 | Parse::RecDescent::_tracefirst($text), | ||
| 14406 | q{xpath}, | ||
| 14407 | $tracelevel) | ||
| 14408 | if defined $::RD_TRACE; | ||
| 14409 | $item{q{xpcont(?)}} = $_tok; | ||
| 14410 | push @item, $_tok; | ||
| 14411 | |||
| 14412 | |||
| 14413 | |||
| 14414 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 14415 | Parse::RecDescent::_tracefirst($text), | ||
| 14416 | q{xpath}, | ||
| 14417 | $tracelevel) | ||
| 14418 | if defined $::RD_TRACE; | ||
| 14419 | |||
| 14420 | |||
| 14421 | $_tok = ($_noactions) ? 0 : do { $item[1].join("",@{$item[3]}) }; | ||
| 14422 | unless (defined $_tok) | ||
| 14423 | { | ||
| 14424 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 14425 | if defined $::RD_TRACE; | ||
| 14426 | last; | ||
| 14427 | } | ||
| 14428 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 14429 | . $_tok . q{])}, | ||
| 14430 | Parse::RecDescent::_tracefirst($text)) | ||
| 14431 | if defined $::RD_TRACE; | ||
| 14432 | push @item, $_tok; | ||
| 14433 | $item{__ACTION1__}=$_tok; | ||
| 14434 | |||
| 14435 | |||
| 14436 | Parse::RecDescent::_trace(q{>>Matched production: [xpsimple <skip:""> xpcont]<<}, | ||
| 14437 | Parse::RecDescent::_tracefirst($text), | ||
| 14438 | q{xpath}, | ||
| 14439 | $tracelevel) | ||
| 14440 | if defined $::RD_TRACE; | ||
| 14441 | |||
| 14442 | |||
| 14443 | |||
| 14444 | $_matched = 1; | ||
| 14445 | last; | ||
| 14446 | } | ||
| 14447 | |||
| 14448 | |||
| 14449 | while (!$_matched) | ||
| 14450 | { | ||
| 14451 | |||
| 14452 | Parse::RecDescent::_trace(q{Trying production: [<error...>]}, | ||
| 14453 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14454 | q{xpath}, | ||
| 14455 | $tracelevel) | ||
| 14456 | if defined $::RD_TRACE; | ||
| 14457 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 14458 | |||
| 14459 | my $_savetext; | ||
| 14460 | @item = (q{xpath}); | ||
| 14461 | %item = (__RULE__ => q{xpath}); | ||
| 14462 | my $repcount = 0; | ||
| 14463 | |||
| 14464 | |||
| 14465 | |||
| 14466 | |||
| 14467 | Parse::RecDescent::_trace(q{Trying directive: [<error...>]}, | ||
| 14468 | Parse::RecDescent::_tracefirst($text), | ||
| 14469 | q{xpath}, | ||
| 14470 | $tracelevel) | ||
| 14471 | if defined $::RD_TRACE; | ||
| 14472 | $_tok = do { if (1) { do {push @{$thisparser->{errors}}, [qq{expected XPath, but got "}.substr($text,0,40).qq{ ..."},$thisline];} unless $_noactions; undef } else {0} }; | ||
| 14473 | if (defined($_tok)) | ||
| 14474 | { | ||
| 14475 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 14476 | . $_tok . q{])}, | ||
| 14477 | Parse::RecDescent::_tracefirst($text)) | ||
| 14478 | if defined $::RD_TRACE; | ||
| 14479 | } | ||
| 14480 | else | ||
| 14481 | { | ||
| 14482 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 14483 | Parse::RecDescent::_tracefirst($text)) | ||
| 14484 | if defined $::RD_TRACE; | ||
| 14485 | } | ||
| 14486 | |||
| 14487 | last unless defined $_tok; | ||
| 14488 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 14489 | |||
| 14490 | |||
| 14491 | Parse::RecDescent::_trace(q{>>Matched production: [<error...>]<<}, | ||
| 14492 | Parse::RecDescent::_tracefirst($text), | ||
| 14493 | q{xpath}, | ||
| 14494 | $tracelevel) | ||
| 14495 | if defined $::RD_TRACE; | ||
| 14496 | |||
| 14497 | |||
| 14498 | |||
| 14499 | $_matched = 1; | ||
| 14500 | last; | ||
| 14501 | } | ||
| 14502 | |||
| 14503 | |||
| 14504 | unless ( $_matched || defined($score) ) | ||
| 14505 | { | ||
| 14506 | |||
| 14507 | |||
| 14508 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 14509 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 14510 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14511 | q{xpath}, | ||
| 14512 | $tracelevel) | ||
| 14513 | if defined $::RD_TRACE; | ||
| 14514 | return undef; | ||
| 14515 | } | ||
| 14516 | if (!defined($return) && defined($score)) | ||
| 14517 | { | ||
| 14518 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 14519 | q{xpath}, | ||
| 14520 | $tracelevel) | ||
| 14521 | if defined $::RD_TRACE; | ||
| 14522 | $return = $score_return; | ||
| 14523 | } | ||
| 14524 | splice @{$thisparser->{errors}}, $err_at; | ||
| 14525 | $return = $item[$#item] unless defined $return; | ||
| 14526 | if (defined $::RD_TRACE) | ||
| 14527 | { | ||
| 14528 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 14529 | $return . q{])}, "", | ||
| 14530 | q{xpath}, | ||
| 14531 | $tracelevel); | ||
| 14532 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 14533 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 14534 | Parse::RecDescent::_tracefirst($text), | ||
| 14535 | , q{xpath}, | ||
| 14536 | $tracelevel) | ||
| 14537 | } | ||
| 14538 | $_[1] = $text; | ||
| 14539 | return $return; | ||
| 14540 | } | ||
| 14541 | |||
| 14542 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 14543 | sub Parse::RecDescent::XML::XSH2::Parser::xpaxis | ||
| 14544 | { | ||
| 14545 | my $thisparser = $_[0]; | ||
| 14546 | use vars q{$tracelevel}; | ||
| 14547 | local $tracelevel = ($tracelevel||0)+1; | ||
| 14548 | $ERRORS = 0; | ||
| 14549 | my $thisrule = $thisparser->{"rules"}{"xpaxis"}; | ||
| 14550 | |||
| 14551 | Parse::RecDescent::_trace(q{Trying rule: [xpaxis]}, | ||
| 14552 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14553 | q{xpaxis}, | ||
| 14554 | $tracelevel) | ||
| 14555 | if defined $::RD_TRACE; | ||
| 14556 | |||
| 14557 | |||
| 14558 | my $err_at = @{$thisparser->{errors}}; | ||
| 14559 | |||
| 14560 | my $score; | ||
| 14561 | my $score_return; | ||
| 14562 | my $_tok; | ||
| 14563 | my $return = undef; | ||
| 14564 | my $_matched=0; | ||
| 14565 | my $commit=0; | ||
| 14566 | my @item = (); | ||
| 14567 | my %item = (); | ||
| 14568 | my $repeating = $_[2]; | ||
| 14569 | my $_noactions = $_[3]; | ||
| 14570 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 14571 | my $_itempos = $_[5]; | ||
| 14572 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 14573 | my $text; | ||
| 14574 | my $lastsep; | ||
| 14575 | my $current_match; | ||
| 14576 | my $expectation = new Parse::RecDescent::Expectation(q{/[-a-z]+::/}); | ||
| 14577 | $expectation->at($_[1]); | ||
| 14578 | |||
| 14579 | my $thisoffset; | ||
| 14580 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 14581 | |||
| 14582 | my $thiscolumn; | ||
| 14583 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 14584 | |||
| 14585 | my $thisline; | ||
| 14586 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 14587 | |||
| 14588 | |||
| 14589 | |||
| 14590 | while (!$_matched && !$commit) | ||
| 14591 | { | ||
| 14592 | |||
| 14593 | Parse::RecDescent::_trace(q{Trying production: [/[-a-z]+::/]}, | ||
| 14594 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14595 | q{xpaxis}, | ||
| 14596 | $tracelevel) | ||
| 14597 | if defined $::RD_TRACE; | ||
| 14598 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 14599 | $text = $_[1]; | ||
| 14600 | my $_savetext; | ||
| 14601 | @item = (q{xpaxis}); | ||
| 14602 | %item = (__RULE__ => q{xpaxis}); | ||
| 14603 | my $repcount = 0; | ||
| 14604 | |||
| 14605 | |||
| 14606 | Parse::RecDescent::_trace(q{Trying terminal: [/[-a-z]+::/]}, Parse::RecDescent::_tracefirst($text), | ||
| 14607 | q{xpaxis}, | ||
| 14608 | $tracelevel) | ||
| 14609 | if defined $::RD_TRACE; | ||
| 14610 | undef $lastsep; | ||
| 14611 | $expectation->is(q{})->at($text); | ||
| 14612 | |||
| 14613 | |||
| 14614 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:[-a-z]+::)/) | ||
| 14615 | { | ||
| 14616 | $text = $lastsep . $text if defined $lastsep; | ||
| 14617 | $expectation->failed(); | ||
| 14618 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 14619 | Parse::RecDescent::_tracefirst($text)) | ||
| 14620 | if defined $::RD_TRACE; | ||
| 14621 | |||
| 14622 | last; | ||
| 14623 | } | ||
| 14624 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 14625 | substr($text,0,length($current_match),q{}); | ||
| 14626 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 14627 | . $current_match . q{])}, | ||
| 14628 | Parse::RecDescent::_tracefirst($text)) | ||
| 14629 | if defined $::RD_TRACE; | ||
| 14630 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 14631 | |||
| 14632 | |||
| 14633 | Parse::RecDescent::_trace(q{>>Matched production: [/[-a-z]+::/]<<}, | ||
| 14634 | Parse::RecDescent::_tracefirst($text), | ||
| 14635 | q{xpaxis}, | ||
| 14636 | $tracelevel) | ||
| 14637 | if defined $::RD_TRACE; | ||
| 14638 | |||
| 14639 | |||
| 14640 | |||
| 14641 | $_matched = 1; | ||
| 14642 | last; | ||
| 14643 | } | ||
| 14644 | |||
| 14645 | |||
| 14646 | unless ( $_matched || defined($score) ) | ||
| 14647 | { | ||
| 14648 | |||
| 14649 | |||
| 14650 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 14651 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 14652 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14653 | q{xpaxis}, | ||
| 14654 | $tracelevel) | ||
| 14655 | if defined $::RD_TRACE; | ||
| 14656 | return undef; | ||
| 14657 | } | ||
| 14658 | if (!defined($return) && defined($score)) | ||
| 14659 | { | ||
| 14660 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 14661 | q{xpaxis}, | ||
| 14662 | $tracelevel) | ||
| 14663 | if defined $::RD_TRACE; | ||
| 14664 | $return = $score_return; | ||
| 14665 | } | ||
| 14666 | splice @{$thisparser->{errors}}, $err_at; | ||
| 14667 | $return = $item[$#item] unless defined $return; | ||
| 14668 | if (defined $::RD_TRACE) | ||
| 14669 | { | ||
| 14670 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 14671 | $return . q{])}, "", | ||
| 14672 | q{xpaxis}, | ||
| 14673 | $tracelevel); | ||
| 14674 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 14675 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 14676 | Parse::RecDescent::_tracefirst($text), | ||
| 14677 | , q{xpaxis}, | ||
| 14678 | $tracelevel) | ||
| 14679 | } | ||
| 14680 | $_[1] = $text; | ||
| 14681 | return $return; | ||
| 14682 | } | ||
| 14683 | |||
| 14684 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 14685 | sub Parse::RecDescent::XML::XSH2::Parser::xpbracket | ||
| 14686 | { | ||
| 14687 | my $thisparser = $_[0]; | ||
| 14688 | use vars q{$tracelevel}; | ||
| 14689 | local $tracelevel = ($tracelevel||0)+1; | ||
| 14690 | $ERRORS = 0; | ||
| 14691 | my $thisrule = $thisparser->{"rules"}{"xpbracket"}; | ||
| 14692 | |||
| 14693 | Parse::RecDescent::_trace(q{Trying rule: [xpbracket]}, | ||
| 14694 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14695 | q{xpbracket}, | ||
| 14696 | $tracelevel) | ||
| 14697 | if defined $::RD_TRACE; | ||
| 14698 | |||
| 14699 | |||
| 14700 | my $err_at = @{$thisparser->{errors}}; | ||
| 14701 | |||
| 14702 | my $score; | ||
| 14703 | my $score_return; | ||
| 14704 | my $_tok; | ||
| 14705 | my $return = undef; | ||
| 14706 | my $_matched=0; | ||
| 14707 | my $commit=0; | ||
| 14708 | my @item = (); | ||
| 14709 | my %item = (); | ||
| 14710 | my $repeating = $_[2]; | ||
| 14711 | my $_noactions = $_[3]; | ||
| 14712 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 14713 | my $_itempos = $_[5]; | ||
| 14714 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 14715 | my $text; | ||
| 14716 | my $lastsep; | ||
| 14717 | my $current_match; | ||
| 14718 | my $expectation = new Parse::RecDescent::Expectation(q{'('}); | ||
| 14719 | $expectation->at($_[1]); | ||
| 14720 | |||
| 14721 | my $thisoffset; | ||
| 14722 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 14723 | |||
| 14724 | my $thiscolumn; | ||
| 14725 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 14726 | |||
| 14727 | my $thisline; | ||
| 14728 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 14729 | |||
| 14730 | |||
| 14731 | |||
| 14732 | while (!$_matched && !$commit) | ||
| 14733 | { | ||
| 14734 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 14735 | Parse::RecDescent::_trace(q{Trying production: ['(' <skip:""> xpinter ')']}, | ||
| 14736 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14737 | q{xpbracket}, | ||
| 14738 | $tracelevel) | ||
| 14739 | if defined $::RD_TRACE; | ||
| 14740 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 14741 | $text = $_[1]; | ||
| 14742 | my $_savetext; | ||
| 14743 | @item = (q{xpbracket}); | ||
| 14744 | %item = (__RULE__ => q{xpbracket}); | ||
| 14745 | my $repcount = 0; | ||
| 14746 | |||
| 14747 | |||
| 14748 | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||
| 14749 | Parse::RecDescent::_tracefirst($text), | ||
| 14750 | q{xpbracket}, | ||
| 14751 | $tracelevel) | ||
| 14752 | if defined $::RD_TRACE; | ||
| 14753 | undef $lastsep; | ||
| 14754 | $expectation->is(q{})->at($text); | ||
| 14755 | |||
| 14756 | |||
| 14757 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\(/) | ||
| 14758 | { | ||
| 14759 | $text = $lastsep . $text if defined $lastsep; | ||
| 14760 | |||
| 14761 | $expectation->failed(); | ||
| 14762 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 14763 | Parse::RecDescent::_tracefirst($text)) | ||
| 14764 | if defined $::RD_TRACE; | ||
| 14765 | last; | ||
| 14766 | } | ||
| 14767 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 14768 | substr($text,0,length($current_match),q{}); | ||
| 14769 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 14770 | . $current_match . q{])}, | ||
| 14771 | Parse::RecDescent::_tracefirst($text)) | ||
| 14772 | if defined $::RD_TRACE; | ||
| 14773 | push @item, $item{__STRING1__}=$current_match; | ||
| 14774 | |||
| 14775 | |||
| 14776 | |||
| 14777 | |||
| 14778 | Parse::RecDescent::_trace(q{Trying directive: [<skip:"">]}, | ||
| 14779 | Parse::RecDescent::_tracefirst($text), | ||
| 14780 | q{xpbracket}, | ||
| 14781 | $tracelevel) | ||
| 14782 | if defined $::RD_TRACE; | ||
| 14783 | $_tok = do { my $oldskip = $skip; $skip=""; $oldskip }; | ||
| 14784 | if (defined($_tok)) | ||
| 14785 | { | ||
| 14786 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 14787 | . $_tok . q{])}, | ||
| 14788 | Parse::RecDescent::_tracefirst($text)) | ||
| 14789 | if defined $::RD_TRACE; | ||
| 14790 | } | ||
| 14791 | else | ||
| 14792 | { | ||
| 14793 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 14794 | Parse::RecDescent::_tracefirst($text)) | ||
| 14795 | if defined $::RD_TRACE; | ||
| 14796 | } | ||
| 14797 | |||
| 14798 | last unless defined $_tok; | ||
| 14799 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 14800 | |||
| 14801 | |||
| 14802 | Parse::RecDescent::_trace(q{Trying subrule: [xpinter]}, | ||
| 14803 | Parse::RecDescent::_tracefirst($text), | ||
| 14804 | q{xpbracket}, | ||
| 14805 | $tracelevel) | ||
| 14806 | if defined $::RD_TRACE; | ||
| 14807 | if (1) { no strict qw{refs}; | ||
| 14808 | $expectation->is(q{xpinter})->at($text); | ||
| 14809 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpinter($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 14810 | { | ||
| 14811 | |||
| 14812 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpinter]>>}, | ||
| 14813 | Parse::RecDescent::_tracefirst($text), | ||
| 14814 | q{xpbracket}, | ||
| 14815 | $tracelevel) | ||
| 14816 | if defined $::RD_TRACE; | ||
| 14817 | $expectation->failed(); | ||
| 14818 | last; | ||
| 14819 | } | ||
| 14820 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpinter]<< (return value: [} | ||
| 14821 | . $_tok . q{]}, | ||
| 14822 | |||
| 14823 | Parse::RecDescent::_tracefirst($text), | ||
| 14824 | q{xpbracket}, | ||
| 14825 | $tracelevel) | ||
| 14826 | if defined $::RD_TRACE; | ||
| 14827 | $item{q{xpinter}} = $_tok; | ||
| 14828 | push @item, $_tok; | ||
| 14829 | |||
| 14830 | } | ||
| 14831 | |||
| 14832 | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||
| 14833 | Parse::RecDescent::_tracefirst($text), | ||
| 14834 | q{xpbracket}, | ||
| 14835 | $tracelevel) | ||
| 14836 | if defined $::RD_TRACE; | ||
| 14837 | undef $lastsep; | ||
| 14838 | $expectation->is(q{')'})->at($text); | ||
| 14839 | |||
| 14840 | |||
| 14841 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\)/) | ||
| 14842 | { | ||
| 14843 | $text = $lastsep . $text if defined $lastsep; | ||
| 14844 | |||
| 14845 | $expectation->failed(); | ||
| 14846 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 14847 | Parse::RecDescent::_tracefirst($text)) | ||
| 14848 | if defined $::RD_TRACE; | ||
| 14849 | last; | ||
| 14850 | } | ||
| 14851 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 14852 | substr($text,0,length($current_match),q{}); | ||
| 14853 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 14854 | . $current_match . q{])}, | ||
| 14855 | Parse::RecDescent::_tracefirst($text)) | ||
| 14856 | if defined $::RD_TRACE; | ||
| 14857 | push @item, $item{__STRING2__}=$current_match; | ||
| 14858 | |||
| 14859 | |||
| 14860 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 14861 | Parse::RecDescent::_tracefirst($text), | ||
| 14862 | q{xpbracket}, | ||
| 14863 | $tracelevel) | ||
| 14864 | if defined $::RD_TRACE; | ||
| 14865 | |||
| 14866 | |||
| 14867 | $_tok = ($_noactions) ? 0 : do { "($item[3])" }; | ||
| 14868 | unless (defined $_tok) | ||
| 14869 | { | ||
| 14870 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 14871 | if defined $::RD_TRACE; | ||
| 14872 | last; | ||
| 14873 | } | ||
| 14874 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 14875 | . $_tok . q{])}, | ||
| 14876 | Parse::RecDescent::_tracefirst($text)) | ||
| 14877 | if defined $::RD_TRACE; | ||
| 14878 | push @item, $_tok; | ||
| 14879 | $item{__ACTION1__}=$_tok; | ||
| 14880 | |||
| 14881 | |||
| 14882 | Parse::RecDescent::_trace(q{>>Matched production: ['(' <skip:""> xpinter ')']<<}, | ||
| 14883 | Parse::RecDescent::_tracefirst($text), | ||
| 14884 | q{xpbracket}, | ||
| 14885 | $tracelevel) | ||
| 14886 | if defined $::RD_TRACE; | ||
| 14887 | |||
| 14888 | |||
| 14889 | |||
| 14890 | $_matched = 1; | ||
| 14891 | last; | ||
| 14892 | } | ||
| 14893 | |||
| 14894 | |||
| 14895 | unless ( $_matched || defined($score) ) | ||
| 14896 | { | ||
| 14897 | |||
| 14898 | |||
| 14899 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 14900 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 14901 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14902 | q{xpbracket}, | ||
| 14903 | $tracelevel) | ||
| 14904 | if defined $::RD_TRACE; | ||
| 14905 | return undef; | ||
| 14906 | } | ||
| 14907 | if (!defined($return) && defined($score)) | ||
| 14908 | { | ||
| 14909 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 14910 | q{xpbracket}, | ||
| 14911 | $tracelevel) | ||
| 14912 | if defined $::RD_TRACE; | ||
| 14913 | $return = $score_return; | ||
| 14914 | } | ||
| 14915 | splice @{$thisparser->{errors}}, $err_at; | ||
| 14916 | $return = $item[$#item] unless defined $return; | ||
| 14917 | if (defined $::RD_TRACE) | ||
| 14918 | { | ||
| 14919 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 14920 | $return . q{])}, "", | ||
| 14921 | q{xpbracket}, | ||
| 14922 | $tracelevel); | ||
| 14923 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 14924 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 14925 | Parse::RecDescent::_tracefirst($text), | ||
| 14926 | , q{xpbracket}, | ||
| 14927 | $tracelevel) | ||
| 14928 | } | ||
| 14929 | $_[1] = $text; | ||
| 14930 | return $return; | ||
| 14931 | } | ||
| 14932 | |||
| 14933 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 14934 | sub Parse::RecDescent::XML::XSH2::Parser::xpbrackets | ||
| 14935 | { | ||
| 14936 | my $thisparser = $_[0]; | ||
| 14937 | use vars q{$tracelevel}; | ||
| 14938 | local $tracelevel = ($tracelevel||0)+1; | ||
| 14939 | $ERRORS = 0; | ||
| 14940 | my $thisrule = $thisparser->{"rules"}{"xpbrackets"}; | ||
| 14941 | |||
| 14942 | Parse::RecDescent::_trace(q{Trying rule: [xpbrackets]}, | ||
| 14943 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14944 | q{xpbrackets}, | ||
| 14945 | $tracelevel) | ||
| 14946 | if defined $::RD_TRACE; | ||
| 14947 | |||
| 14948 | |||
| 14949 | my $err_at = @{$thisparser->{errors}}; | ||
| 14950 | |||
| 14951 | my $score; | ||
| 14952 | my $score_return; | ||
| 14953 | my $_tok; | ||
| 14954 | my $return = undef; | ||
| 14955 | my $_matched=0; | ||
| 14956 | my $commit=0; | ||
| 14957 | my @item = (); | ||
| 14958 | my %item = (); | ||
| 14959 | my $repeating = $_[2]; | ||
| 14960 | my $_noactions = $_[3]; | ||
| 14961 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 14962 | my $_itempos = $_[5]; | ||
| 14963 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 14964 | my $text; | ||
| 14965 | my $lastsep; | ||
| 14966 | my $current_match; | ||
| 14967 | my $expectation = new Parse::RecDescent::Expectation(q{/(?=\\()/}); | ||
| 14968 | $expectation->at($_[1]); | ||
| 14969 | |||
| 14970 | my $thisoffset; | ||
| 14971 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 14972 | |||
| 14973 | my $thiscolumn; | ||
| 14974 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 14975 | |||
| 14976 | my $thisline; | ||
| 14977 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 14978 | |||
| 14979 | |||
| 14980 | |||
| 14981 | while (!$_matched && !$commit) | ||
| 14982 | { | ||
| 14983 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 14984 | Parse::RecDescent::_trace(q{Trying production: [/(?=\\()/ xpbracket <skip:""> xpfilters]}, | ||
| 14985 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 14986 | q{xpbrackets}, | ||
| 14987 | $tracelevel) | ||
| 14988 | if defined $::RD_TRACE; | ||
| 14989 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 14990 | $text = $_[1]; | ||
| 14991 | my $_savetext; | ||
| 14992 | @item = (q{xpbrackets}); | ||
| 14993 | %item = (__RULE__ => q{xpbrackets}); | ||
| 14994 | my $repcount = 0; | ||
| 14995 | |||
| 14996 | |||
| 14997 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=\\()/]}, Parse::RecDescent::_tracefirst($text), | ||
| 14998 | q{xpbrackets}, | ||
| 14999 | $tracelevel) | ||
| 15000 | if defined $::RD_TRACE; | ||
| 15001 | undef $lastsep; | ||
| 15002 | $expectation->is(q{})->at($text); | ||
| 15003 | |||
| 15004 | |||
| 15005 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=\())/) | ||
| 15006 | { | ||
| 15007 | $text = $lastsep . $text if defined $lastsep; | ||
| 15008 | $expectation->failed(); | ||
| 15009 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 15010 | Parse::RecDescent::_tracefirst($text)) | ||
| 15011 | if defined $::RD_TRACE; | ||
| 15012 | |||
| 15013 | last; | ||
| 15014 | } | ||
| 15015 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 15016 | substr($text,0,length($current_match),q{}); | ||
| 15017 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 15018 | . $current_match . q{])}, | ||
| 15019 | Parse::RecDescent::_tracefirst($text)) | ||
| 15020 | if defined $::RD_TRACE; | ||
| 15021 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 15022 | |||
| 15023 | |||
| 15024 | Parse::RecDescent::_trace(q{Trying subrule: [xpbracket]}, | ||
| 15025 | Parse::RecDescent::_tracefirst($text), | ||
| 15026 | q{xpbrackets}, | ||
| 15027 | $tracelevel) | ||
| 15028 | if defined $::RD_TRACE; | ||
| 15029 | if (1) { no strict qw{refs}; | ||
| 15030 | $expectation->is(q{xpbracket})->at($text); | ||
| 15031 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpbracket($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 15032 | { | ||
| 15033 | |||
| 15034 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpbracket]>>}, | ||
| 15035 | Parse::RecDescent::_tracefirst($text), | ||
| 15036 | q{xpbrackets}, | ||
| 15037 | $tracelevel) | ||
| 15038 | if defined $::RD_TRACE; | ||
| 15039 | $expectation->failed(); | ||
| 15040 | last; | ||
| 15041 | } | ||
| 15042 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpbracket]<< (return value: [} | ||
| 15043 | . $_tok . q{]}, | ||
| 15044 | |||
| 15045 | Parse::RecDescent::_tracefirst($text), | ||
| 15046 | q{xpbrackets}, | ||
| 15047 | $tracelevel) | ||
| 15048 | if defined $::RD_TRACE; | ||
| 15049 | $item{q{xpbracket}} = $_tok; | ||
| 15050 | push @item, $_tok; | ||
| 15051 | |||
| 15052 | } | ||
| 15053 | |||
| 15054 | |||
| 15055 | |||
| 15056 | Parse::RecDescent::_trace(q{Trying directive: [<skip:"">]}, | ||
| 15057 | Parse::RecDescent::_tracefirst($text), | ||
| 15058 | q{xpbrackets}, | ||
| 15059 | $tracelevel) | ||
| 15060 | if defined $::RD_TRACE; | ||
| 15061 | $_tok = do { my $oldskip = $skip; $skip=""; $oldskip }; | ||
| 15062 | if (defined($_tok)) | ||
| 15063 | { | ||
| 15064 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 15065 | . $_tok . q{])}, | ||
| 15066 | Parse::RecDescent::_tracefirst($text)) | ||
| 15067 | if defined $::RD_TRACE; | ||
| 15068 | } | ||
| 15069 | else | ||
| 15070 | { | ||
| 15071 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 15072 | Parse::RecDescent::_tracefirst($text)) | ||
| 15073 | if defined $::RD_TRACE; | ||
| 15074 | } | ||
| 15075 | |||
| 15076 | last unless defined $_tok; | ||
| 15077 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 15078 | |||
| 15079 | |||
| 15080 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpfilters]}, | ||
| 15081 | Parse::RecDescent::_tracefirst($text), | ||
| 15082 | q{xpbrackets}, | ||
| 15083 | $tracelevel) | ||
| 15084 | if defined $::RD_TRACE; | ||
| 15085 | $expectation->is(q{xpfilters})->at($text); | ||
| 15086 | |||
| 15087 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::xpfilters, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 15088 | { | ||
| 15089 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpfilters]>>}, | ||
| 15090 | Parse::RecDescent::_tracefirst($text), | ||
| 15091 | q{xpbrackets}, | ||
| 15092 | $tracelevel) | ||
| 15093 | if defined $::RD_TRACE; | ||
| 15094 | last; | ||
| 15095 | } | ||
| 15096 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpfilters]<< (} | ||
| 15097 | . @$_tok . q{ times)}, | ||
| 15098 | |||
| 15099 | Parse::RecDescent::_tracefirst($text), | ||
| 15100 | q{xpbrackets}, | ||
| 15101 | $tracelevel) | ||
| 15102 | if defined $::RD_TRACE; | ||
| 15103 | $item{q{xpfilters(?)}} = $_tok; | ||
| 15104 | push @item, $_tok; | ||
| 15105 | |||
| 15106 | |||
| 15107 | |||
| 15108 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 15109 | Parse::RecDescent::_tracefirst($text), | ||
| 15110 | q{xpbrackets}, | ||
| 15111 | $tracelevel) | ||
| 15112 | if defined $::RD_TRACE; | ||
| 15113 | |||
| 15114 | |||
| 15115 | $_tok = ($_noactions) ? 0 : do { join "",$item[2],@{$item[4]} }; | ||
| 15116 | unless (defined $_tok) | ||
| 15117 | { | ||
| 15118 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 15119 | if defined $::RD_TRACE; | ||
| 15120 | last; | ||
| 15121 | } | ||
| 15122 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 15123 | . $_tok . q{])}, | ||
| 15124 | Parse::RecDescent::_tracefirst($text)) | ||
| 15125 | if defined $::RD_TRACE; | ||
| 15126 | push @item, $_tok; | ||
| 15127 | $item{__ACTION1__}=$_tok; | ||
| 15128 | |||
| 15129 | |||
| 15130 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=\\()/ xpbracket <skip:""> xpfilters]<<}, | ||
| 15131 | Parse::RecDescent::_tracefirst($text), | ||
| 15132 | q{xpbrackets}, | ||
| 15133 | $tracelevel) | ||
| 15134 | if defined $::RD_TRACE; | ||
| 15135 | |||
| 15136 | |||
| 15137 | |||
| 15138 | $_matched = 1; | ||
| 15139 | last; | ||
| 15140 | } | ||
| 15141 | |||
| 15142 | |||
| 15143 | unless ( $_matched || defined($score) ) | ||
| 15144 | { | ||
| 15145 | |||
| 15146 | |||
| 15147 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 15148 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 15149 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15150 | q{xpbrackets}, | ||
| 15151 | $tracelevel) | ||
| 15152 | if defined $::RD_TRACE; | ||
| 15153 | return undef; | ||
| 15154 | } | ||
| 15155 | if (!defined($return) && defined($score)) | ||
| 15156 | { | ||
| 15157 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 15158 | q{xpbrackets}, | ||
| 15159 | $tracelevel) | ||
| 15160 | if defined $::RD_TRACE; | ||
| 15161 | $return = $score_return; | ||
| 15162 | } | ||
| 15163 | splice @{$thisparser->{errors}}, $err_at; | ||
| 15164 | $return = $item[$#item] unless defined $return; | ||
| 15165 | if (defined $::RD_TRACE) | ||
| 15166 | { | ||
| 15167 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 15168 | $return . q{])}, "", | ||
| 15169 | q{xpbrackets}, | ||
| 15170 | $tracelevel); | ||
| 15171 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 15172 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 15173 | Parse::RecDescent::_tracefirst($text), | ||
| 15174 | , q{xpbrackets}, | ||
| 15175 | $tracelevel) | ||
| 15176 | } | ||
| 15177 | $_[1] = $text; | ||
| 15178 | return $return; | ||
| 15179 | } | ||
| 15180 | |||
| 15181 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 15182 | sub Parse::RecDescent::XML::XSH2::Parser::xpcont | ||
| 15183 | { | ||
| 15184 | my $thisparser = $_[0]; | ||
| 15185 | use vars q{$tracelevel}; | ||
| 15186 | local $tracelevel = ($tracelevel||0)+1; | ||
| 15187 | $ERRORS = 0; | ||
| 15188 | my $thisrule = $thisparser->{"rules"}{"xpcont"}; | ||
| 15189 | |||
| 15190 | Parse::RecDescent::_trace(q{Trying rule: [xpcont]}, | ||
| 15191 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15192 | q{xpcont}, | ||
| 15193 | $tracelevel) | ||
| 15194 | if defined $::RD_TRACE; | ||
| 15195 | |||
| 15196 | |||
| 15197 | my $err_at = @{$thisparser->{errors}}; | ||
| 15198 | |||
| 15199 | my $score; | ||
| 15200 | my $score_return; | ||
| 15201 | my $_tok; | ||
| 15202 | my $return = undef; | ||
| 15203 | my $_matched=0; | ||
| 15204 | my $commit=0; | ||
| 15205 | my @item = (); | ||
| 15206 | my %item = (); | ||
| 15207 | my $repeating = $_[2]; | ||
| 15208 | my $_noactions = $_[3]; | ||
| 15209 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 15210 | my $_itempos = $_[5]; | ||
| 15211 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 15212 | my $text; | ||
| 15213 | my $lastsep; | ||
| 15214 | my $current_match; | ||
| 15215 | my $expectation = new Parse::RecDescent::Expectation(q{xpfilters, or xpbrackets, or xpath}); | ||
| 15216 | $expectation->at($_[1]); | ||
| 15217 | |||
| 15218 | my $thisoffset; | ||
| 15219 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 15220 | |||
| 15221 | my $thiscolumn; | ||
| 15222 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 15223 | |||
| 15224 | my $thisline; | ||
| 15225 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 15226 | |||
| 15227 | |||
| 15228 | |||
| 15229 | while (!$_matched && !$commit) | ||
| 15230 | { | ||
| 15231 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 15232 | Parse::RecDescent::_trace(q{Trying production: [xpfilters, or xpbrackets <skip:""> xpath]}, | ||
| 15233 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15234 | q{xpcont}, | ||
| 15235 | $tracelevel) | ||
| 15236 | if defined $::RD_TRACE; | ||
| 15237 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 15238 | $text = $_[1]; | ||
| 15239 | my $_savetext; | ||
| 15240 | @item = (q{xpcont}); | ||
| 15241 | %item = (__RULE__ => q{xpcont}); | ||
| 15242 | my $repcount = 0; | ||
| 15243 | |||
| 15244 | |||
| 15245 | Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_xpcont]}, | ||
| 15246 | Parse::RecDescent::_tracefirst($text), | ||
| 15247 | q{xpcont}, | ||
| 15248 | $tracelevel) | ||
| 15249 | if defined $::RD_TRACE; | ||
| 15250 | if (1) { no strict qw{refs}; | ||
| 15251 | $expectation->is(q{})->at($text); | ||
| 15252 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_1_of_rule_xpcont($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 15253 | { | ||
| 15254 | |||
| 15255 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [_alternation_1_of_production_1_of_rule_xpcont]>>}, | ||
| 15256 | Parse::RecDescent::_tracefirst($text), | ||
| 15257 | q{xpcont}, | ||
| 15258 | $tracelevel) | ||
| 15259 | if defined $::RD_TRACE; | ||
| 15260 | $expectation->failed(); | ||
| 15261 | last; | ||
| 15262 | } | ||
| 15263 | Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_xpcont]<< (return value: [} | ||
| 15264 | . $_tok . q{]}, | ||
| 15265 | |||
| 15266 | Parse::RecDescent::_tracefirst($text), | ||
| 15267 | q{xpcont}, | ||
| 15268 | $tracelevel) | ||
| 15269 | if defined $::RD_TRACE; | ||
| 15270 | $item{q{_alternation_1_of_production_1_of_rule_xpcont}} = $_tok; | ||
| 15271 | push @item, $_tok; | ||
| 15272 | |||
| 15273 | } | ||
| 15274 | |||
| 15275 | |||
| 15276 | |||
| 15277 | Parse::RecDescent::_trace(q{Trying directive: [<skip:"">]}, | ||
| 15278 | Parse::RecDescent::_tracefirst($text), | ||
| 15279 | q{xpcont}, | ||
| 15280 | $tracelevel) | ||
| 15281 | if defined $::RD_TRACE; | ||
| 15282 | $_tok = do { my $oldskip = $skip; $skip=""; $oldskip }; | ||
| 15283 | if (defined($_tok)) | ||
| 15284 | { | ||
| 15285 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 15286 | . $_tok . q{])}, | ||
| 15287 | Parse::RecDescent::_tracefirst($text)) | ||
| 15288 | if defined $::RD_TRACE; | ||
| 15289 | } | ||
| 15290 | else | ||
| 15291 | { | ||
| 15292 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 15293 | Parse::RecDescent::_tracefirst($text)) | ||
| 15294 | if defined $::RD_TRACE; | ||
| 15295 | } | ||
| 15296 | |||
| 15297 | last unless defined $_tok; | ||
| 15298 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 15299 | |||
| 15300 | |||
| 15301 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpath]}, | ||
| 15302 | Parse::RecDescent::_tracefirst($text), | ||
| 15303 | q{xpcont}, | ||
| 15304 | $tracelevel) | ||
| 15305 | if defined $::RD_TRACE; | ||
| 15306 | $expectation->is(q{xpath})->at($text); | ||
| 15307 | |||
| 15308 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::xpath, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 15309 | { | ||
| 15310 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpath]>>}, | ||
| 15311 | Parse::RecDescent::_tracefirst($text), | ||
| 15312 | q{xpcont}, | ||
| 15313 | $tracelevel) | ||
| 15314 | if defined $::RD_TRACE; | ||
| 15315 | last; | ||
| 15316 | } | ||
| 15317 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpath]<< (} | ||
| 15318 | . @$_tok . q{ times)}, | ||
| 15319 | |||
| 15320 | Parse::RecDescent::_tracefirst($text), | ||
| 15321 | q{xpcont}, | ||
| 15322 | $tracelevel) | ||
| 15323 | if defined $::RD_TRACE; | ||
| 15324 | $item{q{xpath(?)}} = $_tok; | ||
| 15325 | push @item, $_tok; | ||
| 15326 | |||
| 15327 | |||
| 15328 | |||
| 15329 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 15330 | Parse::RecDescent::_tracefirst($text), | ||
| 15331 | q{xpcont}, | ||
| 15332 | $tracelevel) | ||
| 15333 | if defined $::RD_TRACE; | ||
| 15334 | |||
| 15335 | |||
| 15336 | $_tok = ($_noactions) ? 0 : do { $item[1].join("",@{$item[3]}) }; | ||
| 15337 | unless (defined $_tok) | ||
| 15338 | { | ||
| 15339 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 15340 | if defined $::RD_TRACE; | ||
| 15341 | last; | ||
| 15342 | } | ||
| 15343 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 15344 | . $_tok . q{])}, | ||
| 15345 | Parse::RecDescent::_tracefirst($text)) | ||
| 15346 | if defined $::RD_TRACE; | ||
| 15347 | push @item, $_tok; | ||
| 15348 | $item{__ACTION1__}=$_tok; | ||
| 15349 | |||
| 15350 | |||
| 15351 | Parse::RecDescent::_trace(q{>>Matched production: [xpfilters, or xpbrackets <skip:""> xpath]<<}, | ||
| 15352 | Parse::RecDescent::_tracefirst($text), | ||
| 15353 | q{xpcont}, | ||
| 15354 | $tracelevel) | ||
| 15355 | if defined $::RD_TRACE; | ||
| 15356 | |||
| 15357 | |||
| 15358 | |||
| 15359 | $_matched = 1; | ||
| 15360 | last; | ||
| 15361 | } | ||
| 15362 | |||
| 15363 | |||
| 15364 | while (!$_matched && !$commit) | ||
| 15365 | { | ||
| 15366 | |||
| 15367 | Parse::RecDescent::_trace(q{Trying production: [xpath]}, | ||
| 15368 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15369 | q{xpcont}, | ||
| 15370 | $tracelevel) | ||
| 15371 | if defined $::RD_TRACE; | ||
| 15372 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 15373 | $text = $_[1]; | ||
| 15374 | my $_savetext; | ||
| 15375 | @item = (q{xpcont}); | ||
| 15376 | %item = (__RULE__ => q{xpcont}); | ||
| 15377 | my $repcount = 0; | ||
| 15378 | |||
| 15379 | |||
| 15380 | Parse::RecDescent::_trace(q{Trying subrule: [xpath]}, | ||
| 15381 | Parse::RecDescent::_tracefirst($text), | ||
| 15382 | q{xpcont}, | ||
| 15383 | $tracelevel) | ||
| 15384 | if defined $::RD_TRACE; | ||
| 15385 | if (1) { no strict qw{refs}; | ||
| 15386 | $expectation->is(q{})->at($text); | ||
| 15387 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpath($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 15388 | { | ||
| 15389 | |||
| 15390 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpath]>>}, | ||
| 15391 | Parse::RecDescent::_tracefirst($text), | ||
| 15392 | q{xpcont}, | ||
| 15393 | $tracelevel) | ||
| 15394 | if defined $::RD_TRACE; | ||
| 15395 | $expectation->failed(); | ||
| 15396 | last; | ||
| 15397 | } | ||
| 15398 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpath]<< (return value: [} | ||
| 15399 | . $_tok . q{]}, | ||
| 15400 | |||
| 15401 | Parse::RecDescent::_tracefirst($text), | ||
| 15402 | q{xpcont}, | ||
| 15403 | $tracelevel) | ||
| 15404 | if defined $::RD_TRACE; | ||
| 15405 | $item{q{xpath}} = $_tok; | ||
| 15406 | push @item, $_tok; | ||
| 15407 | |||
| 15408 | } | ||
| 15409 | |||
| 15410 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 15411 | Parse::RecDescent::_tracefirst($text), | ||
| 15412 | q{xpcont}, | ||
| 15413 | $tracelevel) | ||
| 15414 | if defined $::RD_TRACE; | ||
| 15415 | |||
| 15416 | |||
| 15417 | $_tok = ($_noactions) ? 0 : do { $item[1] }; | ||
| 15418 | unless (defined $_tok) | ||
| 15419 | { | ||
| 15420 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 15421 | if defined $::RD_TRACE; | ||
| 15422 | last; | ||
| 15423 | } | ||
| 15424 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 15425 | . $_tok . q{])}, | ||
| 15426 | Parse::RecDescent::_tracefirst($text)) | ||
| 15427 | if defined $::RD_TRACE; | ||
| 15428 | push @item, $_tok; | ||
| 15429 | $item{__ACTION1__}=$_tok; | ||
| 15430 | |||
| 15431 | |||
| 15432 | Parse::RecDescent::_trace(q{>>Matched production: [xpath]<<}, | ||
| 15433 | Parse::RecDescent::_tracefirst($text), | ||
| 15434 | q{xpcont}, | ||
| 15435 | $tracelevel) | ||
| 15436 | if defined $::RD_TRACE; | ||
| 15437 | |||
| 15438 | |||
| 15439 | |||
| 15440 | $_matched = 1; | ||
| 15441 | last; | ||
| 15442 | } | ||
| 15443 | |||
| 15444 | |||
| 15445 | unless ( $_matched || defined($score) ) | ||
| 15446 | { | ||
| 15447 | |||
| 15448 | |||
| 15449 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 15450 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 15451 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15452 | q{xpcont}, | ||
| 15453 | $tracelevel) | ||
| 15454 | if defined $::RD_TRACE; | ||
| 15455 | return undef; | ||
| 15456 | } | ||
| 15457 | if (!defined($return) && defined($score)) | ||
| 15458 | { | ||
| 15459 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 15460 | q{xpcont}, | ||
| 15461 | $tracelevel) | ||
| 15462 | if defined $::RD_TRACE; | ||
| 15463 | $return = $score_return; | ||
| 15464 | } | ||
| 15465 | splice @{$thisparser->{errors}}, $err_at; | ||
| 15466 | $return = $item[$#item] unless defined $return; | ||
| 15467 | if (defined $::RD_TRACE) | ||
| 15468 | { | ||
| 15469 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 15470 | $return . q{])}, "", | ||
| 15471 | q{xpcont}, | ||
| 15472 | $tracelevel); | ||
| 15473 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 15474 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 15475 | Parse::RecDescent::_tracefirst($text), | ||
| 15476 | , q{xpcont}, | ||
| 15477 | $tracelevel) | ||
| 15478 | } | ||
| 15479 | $_[1] = $text; | ||
| 15480 | return $return; | ||
| 15481 | } | ||
| 15482 | |||
| 15483 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 15484 | sub Parse::RecDescent::XML::XSH2::Parser::xpfilter | ||
| 15485 | { | ||
| 15486 | my $thisparser = $_[0]; | ||
| 15487 | use vars q{$tracelevel}; | ||
| 15488 | local $tracelevel = ($tracelevel||0)+1; | ||
| 15489 | $ERRORS = 0; | ||
| 15490 | my $thisrule = $thisparser->{"rules"}{"xpfilter"}; | ||
| 15491 | |||
| 15492 | Parse::RecDescent::_trace(q{Trying rule: [xpfilter]}, | ||
| 15493 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15494 | q{xpfilter}, | ||
| 15495 | $tracelevel) | ||
| 15496 | if defined $::RD_TRACE; | ||
| 15497 | |||
| 15498 | |||
| 15499 | my $err_at = @{$thisparser->{errors}}; | ||
| 15500 | |||
| 15501 | my $score; | ||
| 15502 | my $score_return; | ||
| 15503 | my $_tok; | ||
| 15504 | my $return = undef; | ||
| 15505 | my $_matched=0; | ||
| 15506 | my $commit=0; | ||
| 15507 | my @item = (); | ||
| 15508 | my %item = (); | ||
| 15509 | my $repeating = $_[2]; | ||
| 15510 | my $_noactions = $_[3]; | ||
| 15511 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 15512 | my $_itempos = $_[5]; | ||
| 15513 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 15514 | my $text; | ||
| 15515 | my $lastsep; | ||
| 15516 | my $current_match; | ||
| 15517 | my $expectation = new Parse::RecDescent::Expectation(q{'['}); | ||
| 15518 | $expectation->at($_[1]); | ||
| 15519 | |||
| 15520 | my $thisoffset; | ||
| 15521 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 15522 | |||
| 15523 | my $thiscolumn; | ||
| 15524 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 15525 | |||
| 15526 | my $thisline; | ||
| 15527 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 15528 | |||
| 15529 | |||
| 15530 | |||
| 15531 | while (!$_matched && !$commit) | ||
| 15532 | { | ||
| 15533 | |||
| 15534 | Parse::RecDescent::_trace(q{Trying production: ['[' xpinter ']']}, | ||
| 15535 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15536 | q{xpfilter}, | ||
| 15537 | $tracelevel) | ||
| 15538 | if defined $::RD_TRACE; | ||
| 15539 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 15540 | $text = $_[1]; | ||
| 15541 | my $_savetext; | ||
| 15542 | @item = (q{xpfilter}); | ||
| 15543 | %item = (__RULE__ => q{xpfilter}); | ||
| 15544 | my $repcount = 0; | ||
| 15545 | |||
| 15546 | |||
| 15547 | Parse::RecDescent::_trace(q{Trying terminal: ['[']}, | ||
| 15548 | Parse::RecDescent::_tracefirst($text), | ||
| 15549 | q{xpfilter}, | ||
| 15550 | $tracelevel) | ||
| 15551 | if defined $::RD_TRACE; | ||
| 15552 | undef $lastsep; | ||
| 15553 | $expectation->is(q{})->at($text); | ||
| 15554 | |||
| 15555 | |||
| 15556 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\[/) | ||
| 15557 | { | ||
| 15558 | $text = $lastsep . $text if defined $lastsep; | ||
| 15559 | |||
| 15560 | $expectation->failed(); | ||
| 15561 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 15562 | Parse::RecDescent::_tracefirst($text)) | ||
| 15563 | if defined $::RD_TRACE; | ||
| 15564 | last; | ||
| 15565 | } | ||
| 15566 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 15567 | substr($text,0,length($current_match),q{}); | ||
| 15568 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 15569 | . $current_match . q{])}, | ||
| 15570 | Parse::RecDescent::_tracefirst($text)) | ||
| 15571 | if defined $::RD_TRACE; | ||
| 15572 | push @item, $item{__STRING1__}=$current_match; | ||
| 15573 | |||
| 15574 | |||
| 15575 | Parse::RecDescent::_trace(q{Trying subrule: [xpinter]}, | ||
| 15576 | Parse::RecDescent::_tracefirst($text), | ||
| 15577 | q{xpfilter}, | ||
| 15578 | $tracelevel) | ||
| 15579 | if defined $::RD_TRACE; | ||
| 15580 | if (1) { no strict qw{refs}; | ||
| 15581 | $expectation->is(q{xpinter})->at($text); | ||
| 15582 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpinter($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 15583 | { | ||
| 15584 | |||
| 15585 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpinter]>>}, | ||
| 15586 | Parse::RecDescent::_tracefirst($text), | ||
| 15587 | q{xpfilter}, | ||
| 15588 | $tracelevel) | ||
| 15589 | if defined $::RD_TRACE; | ||
| 15590 | $expectation->failed(); | ||
| 15591 | last; | ||
| 15592 | } | ||
| 15593 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpinter]<< (return value: [} | ||
| 15594 | . $_tok . q{]}, | ||
| 15595 | |||
| 15596 | Parse::RecDescent::_tracefirst($text), | ||
| 15597 | q{xpfilter}, | ||
| 15598 | $tracelevel) | ||
| 15599 | if defined $::RD_TRACE; | ||
| 15600 | $item{q{xpinter}} = $_tok; | ||
| 15601 | push @item, $_tok; | ||
| 15602 | |||
| 15603 | } | ||
| 15604 | |||
| 15605 | Parse::RecDescent::_trace(q{Trying terminal: [']']}, | ||
| 15606 | Parse::RecDescent::_tracefirst($text), | ||
| 15607 | q{xpfilter}, | ||
| 15608 | $tracelevel) | ||
| 15609 | if defined $::RD_TRACE; | ||
| 15610 | undef $lastsep; | ||
| 15611 | $expectation->is(q{']'})->at($text); | ||
| 15612 | |||
| 15613 | |||
| 15614 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A\]/) | ||
| 15615 | { | ||
| 15616 | $text = $lastsep . $text if defined $lastsep; | ||
| 15617 | |||
| 15618 | $expectation->failed(); | ||
| 15619 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 15620 | Parse::RecDescent::_tracefirst($text)) | ||
| 15621 | if defined $::RD_TRACE; | ||
| 15622 | last; | ||
| 15623 | } | ||
| 15624 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 15625 | substr($text,0,length($current_match),q{}); | ||
| 15626 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 15627 | . $current_match . q{])}, | ||
| 15628 | Parse::RecDescent::_tracefirst($text)) | ||
| 15629 | if defined $::RD_TRACE; | ||
| 15630 | push @item, $item{__STRING2__}=$current_match; | ||
| 15631 | |||
| 15632 | |||
| 15633 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 15634 | Parse::RecDescent::_tracefirst($text), | ||
| 15635 | q{xpfilter}, | ||
| 15636 | $tracelevel) | ||
| 15637 | if defined $::RD_TRACE; | ||
| 15638 | |||
| 15639 | |||
| 15640 | $_tok = ($_noactions) ? 0 : do { "[$item[2]]" }; | ||
| 15641 | unless (defined $_tok) | ||
| 15642 | { | ||
| 15643 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 15644 | if defined $::RD_TRACE; | ||
| 15645 | last; | ||
| 15646 | } | ||
| 15647 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 15648 | . $_tok . q{])}, | ||
| 15649 | Parse::RecDescent::_tracefirst($text)) | ||
| 15650 | if defined $::RD_TRACE; | ||
| 15651 | push @item, $_tok; | ||
| 15652 | $item{__ACTION1__}=$_tok; | ||
| 15653 | |||
| 15654 | |||
| 15655 | Parse::RecDescent::_trace(q{>>Matched production: ['[' xpinter ']']<<}, | ||
| 15656 | Parse::RecDescent::_tracefirst($text), | ||
| 15657 | q{xpfilter}, | ||
| 15658 | $tracelevel) | ||
| 15659 | if defined $::RD_TRACE; | ||
| 15660 | |||
| 15661 | |||
| 15662 | |||
| 15663 | $_matched = 1; | ||
| 15664 | last; | ||
| 15665 | } | ||
| 15666 | |||
| 15667 | |||
| 15668 | unless ( $_matched || defined($score) ) | ||
| 15669 | { | ||
| 15670 | |||
| 15671 | |||
| 15672 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 15673 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 15674 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15675 | q{xpfilter}, | ||
| 15676 | $tracelevel) | ||
| 15677 | if defined $::RD_TRACE; | ||
| 15678 | return undef; | ||
| 15679 | } | ||
| 15680 | if (!defined($return) && defined($score)) | ||
| 15681 | { | ||
| 15682 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 15683 | q{xpfilter}, | ||
| 15684 | $tracelevel) | ||
| 15685 | if defined $::RD_TRACE; | ||
| 15686 | $return = $score_return; | ||
| 15687 | } | ||
| 15688 | splice @{$thisparser->{errors}}, $err_at; | ||
| 15689 | $return = $item[$#item] unless defined $return; | ||
| 15690 | if (defined $::RD_TRACE) | ||
| 15691 | { | ||
| 15692 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 15693 | $return . q{])}, "", | ||
| 15694 | q{xpfilter}, | ||
| 15695 | $tracelevel); | ||
| 15696 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 15697 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 15698 | Parse::RecDescent::_tracefirst($text), | ||
| 15699 | , q{xpfilter}, | ||
| 15700 | $tracelevel) | ||
| 15701 | } | ||
| 15702 | $_[1] = $text; | ||
| 15703 | return $return; | ||
| 15704 | } | ||
| 15705 | |||
| 15706 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 15707 | sub Parse::RecDescent::XML::XSH2::Parser::xpfilters | ||
| 15708 | { | ||
| 15709 | my $thisparser = $_[0]; | ||
| 15710 | use vars q{$tracelevel}; | ||
| 15711 | local $tracelevel = ($tracelevel||0)+1; | ||
| 15712 | $ERRORS = 0; | ||
| 15713 | my $thisrule = $thisparser->{"rules"}{"xpfilters"}; | ||
| 15714 | |||
| 15715 | Parse::RecDescent::_trace(q{Trying rule: [xpfilters]}, | ||
| 15716 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15717 | q{xpfilters}, | ||
| 15718 | $tracelevel) | ||
| 15719 | if defined $::RD_TRACE; | ||
| 15720 | |||
| 15721 | |||
| 15722 | my $err_at = @{$thisparser->{errors}}; | ||
| 15723 | |||
| 15724 | my $score; | ||
| 15725 | my $score_return; | ||
| 15726 | my $_tok; | ||
| 15727 | my $return = undef; | ||
| 15728 | my $_matched=0; | ||
| 15729 | my $commit=0; | ||
| 15730 | my @item = (); | ||
| 15731 | my %item = (); | ||
| 15732 | my $repeating = $_[2]; | ||
| 15733 | my $_noactions = $_[3]; | ||
| 15734 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 15735 | my $_itempos = $_[5]; | ||
| 15736 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 15737 | my $text; | ||
| 15738 | my $lastsep; | ||
| 15739 | my $current_match; | ||
| 15740 | my $expectation = new Parse::RecDescent::Expectation(q{/(?=\\[)/}); | ||
| 15741 | $expectation->at($_[1]); | ||
| 15742 | |||
| 15743 | my $thisoffset; | ||
| 15744 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 15745 | |||
| 15746 | my $thiscolumn; | ||
| 15747 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 15748 | |||
| 15749 | my $thisline; | ||
| 15750 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 15751 | |||
| 15752 | |||
| 15753 | |||
| 15754 | while (!$_matched && !$commit) | ||
| 15755 | { | ||
| 15756 | |||
| 15757 | Parse::RecDescent::_trace(q{Trying production: [/(?=\\[)/ xpfilter]}, | ||
| 15758 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15759 | q{xpfilters}, | ||
| 15760 | $tracelevel) | ||
| 15761 | if defined $::RD_TRACE; | ||
| 15762 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 15763 | $text = $_[1]; | ||
| 15764 | my $_savetext; | ||
| 15765 | @item = (q{xpfilters}); | ||
| 15766 | %item = (__RULE__ => q{xpfilters}); | ||
| 15767 | my $repcount = 0; | ||
| 15768 | |||
| 15769 | |||
| 15770 | Parse::RecDescent::_trace(q{Trying terminal: [/(?=\\[)/]}, Parse::RecDescent::_tracefirst($text), | ||
| 15771 | q{xpfilters}, | ||
| 15772 | $tracelevel) | ||
| 15773 | if defined $::RD_TRACE; | ||
| 15774 | undef $lastsep; | ||
| 15775 | $expectation->is(q{})->at($text); | ||
| 15776 | |||
| 15777 | |||
| 15778 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?=\[))/) | ||
| 15779 | { | ||
| 15780 | $text = $lastsep . $text if defined $lastsep; | ||
| 15781 | $expectation->failed(); | ||
| 15782 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 15783 | Parse::RecDescent::_tracefirst($text)) | ||
| 15784 | if defined $::RD_TRACE; | ||
| 15785 | |||
| 15786 | last; | ||
| 15787 | } | ||
| 15788 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 15789 | substr($text,0,length($current_match),q{}); | ||
| 15790 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 15791 | . $current_match . q{])}, | ||
| 15792 | Parse::RecDescent::_tracefirst($text)) | ||
| 15793 | if defined $::RD_TRACE; | ||
| 15794 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 15795 | |||
| 15796 | |||
| 15797 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpfilter]}, | ||
| 15798 | Parse::RecDescent::_tracefirst($text), | ||
| 15799 | q{xpfilters}, | ||
| 15800 | $tracelevel) | ||
| 15801 | if defined $::RD_TRACE; | ||
| 15802 | $expectation->is(q{xpfilter})->at($text); | ||
| 15803 | |||
| 15804 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::xpfilter, 1, 100000000, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 15805 | { | ||
| 15806 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpfilter]>>}, | ||
| 15807 | Parse::RecDescent::_tracefirst($text), | ||
| 15808 | q{xpfilters}, | ||
| 15809 | $tracelevel) | ||
| 15810 | if defined $::RD_TRACE; | ||
| 15811 | last; | ||
| 15812 | } | ||
| 15813 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpfilter]<< (} | ||
| 15814 | . @$_tok . q{ times)}, | ||
| 15815 | |||
| 15816 | Parse::RecDescent::_tracefirst($text), | ||
| 15817 | q{xpfilters}, | ||
| 15818 | $tracelevel) | ||
| 15819 | if defined $::RD_TRACE; | ||
| 15820 | $item{q{xpfilter(s)}} = $_tok; | ||
| 15821 | push @item, $_tok; | ||
| 15822 | |||
| 15823 | |||
| 15824 | |||
| 15825 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 15826 | Parse::RecDescent::_tracefirst($text), | ||
| 15827 | q{xpfilters}, | ||
| 15828 | $tracelevel) | ||
| 15829 | if defined $::RD_TRACE; | ||
| 15830 | |||
| 15831 | |||
| 15832 | $_tok = ($_noactions) ? 0 : do { join("",@{$item[2]}) }; | ||
| 15833 | unless (defined $_tok) | ||
| 15834 | { | ||
| 15835 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 15836 | if defined $::RD_TRACE; | ||
| 15837 | last; | ||
| 15838 | } | ||
| 15839 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 15840 | . $_tok . q{])}, | ||
| 15841 | Parse::RecDescent::_tracefirst($text)) | ||
| 15842 | if defined $::RD_TRACE; | ||
| 15843 | push @item, $_tok; | ||
| 15844 | $item{__ACTION1__}=$_tok; | ||
| 15845 | |||
| 15846 | |||
| 15847 | Parse::RecDescent::_trace(q{>>Matched production: [/(?=\\[)/ xpfilter]<<}, | ||
| 15848 | Parse::RecDescent::_tracefirst($text), | ||
| 15849 | q{xpfilters}, | ||
| 15850 | $tracelevel) | ||
| 15851 | if defined $::RD_TRACE; | ||
| 15852 | |||
| 15853 | |||
| 15854 | |||
| 15855 | $_matched = 1; | ||
| 15856 | last; | ||
| 15857 | } | ||
| 15858 | |||
| 15859 | |||
| 15860 | unless ( $_matched || defined($score) ) | ||
| 15861 | { | ||
| 15862 | |||
| 15863 | |||
| 15864 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 15865 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 15866 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15867 | q{xpfilters}, | ||
| 15868 | $tracelevel) | ||
| 15869 | if defined $::RD_TRACE; | ||
| 15870 | return undef; | ||
| 15871 | } | ||
| 15872 | if (!defined($return) && defined($score)) | ||
| 15873 | { | ||
| 15874 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 15875 | q{xpfilters}, | ||
| 15876 | $tracelevel) | ||
| 15877 | if defined $::RD_TRACE; | ||
| 15878 | $return = $score_return; | ||
| 15879 | } | ||
| 15880 | splice @{$thisparser->{errors}}, $err_at; | ||
| 15881 | $return = $item[$#item] unless defined $return; | ||
| 15882 | if (defined $::RD_TRACE) | ||
| 15883 | { | ||
| 15884 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 15885 | $return . q{])}, "", | ||
| 15886 | q{xpfilters}, | ||
| 15887 | $tracelevel); | ||
| 15888 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 15889 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 15890 | Parse::RecDescent::_tracefirst($text), | ||
| 15891 | , q{xpfilters}, | ||
| 15892 | $tracelevel) | ||
| 15893 | } | ||
| 15894 | $_[1] = $text; | ||
| 15895 | return $return; | ||
| 15896 | } | ||
| 15897 | |||
| 15898 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 15899 | sub Parse::RecDescent::XML::XSH2::Parser::xpinter | ||
| 15900 | { | ||
| 15901 | my $thisparser = $_[0]; | ||
| 15902 | use vars q{$tracelevel}; | ||
| 15903 | local $tracelevel = ($tracelevel||0)+1; | ||
| 15904 | $ERRORS = 0; | ||
| 15905 | my $thisrule = $thisparser->{"rules"}{"xpinter"}; | ||
| 15906 | |||
| 15907 | Parse::RecDescent::_trace(q{Trying rule: [xpinter]}, | ||
| 15908 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15909 | q{xpinter}, | ||
| 15910 | $tracelevel) | ||
| 15911 | if defined $::RD_TRACE; | ||
| 15912 | |||
| 15913 | |||
| 15914 | my $err_at = @{$thisparser->{errors}}; | ||
| 15915 | |||
| 15916 | my $score; | ||
| 15917 | my $score_return; | ||
| 15918 | my $_tok; | ||
| 15919 | my $return = undef; | ||
| 15920 | my $_matched=0; | ||
| 15921 | my $commit=0; | ||
| 15922 | my @item = (); | ||
| 15923 | my %item = (); | ||
| 15924 | my $repeating = $_[2]; | ||
| 15925 | my $_noactions = $_[3]; | ||
| 15926 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 15927 | my $_itempos = $_[5]; | ||
| 15928 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 15929 | my $text; | ||
| 15930 | my $lastsep; | ||
| 15931 | my $current_match; | ||
| 15932 | my $expectation = new Parse::RecDescent::Expectation(q{xps}); | ||
| 15933 | $expectation->at($_[1]); | ||
| 15934 | |||
| 15935 | my $thisoffset; | ||
| 15936 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 15937 | |||
| 15938 | my $thiscolumn; | ||
| 15939 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 15940 | |||
| 15941 | my $thisline; | ||
| 15942 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 15943 | |||
| 15944 | |||
| 15945 | |||
| 15946 | while (!$_matched && !$commit) | ||
| 15947 | { | ||
| 15948 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 15949 | Parse::RecDescent::_trace(q{Trying production: [xps <skip:""> xpintercont]}, | ||
| 15950 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 15951 | q{xpinter}, | ||
| 15952 | $tracelevel) | ||
| 15953 | if defined $::RD_TRACE; | ||
| 15954 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 15955 | $text = $_[1]; | ||
| 15956 | my $_savetext; | ||
| 15957 | @item = (q{xpinter}); | ||
| 15958 | %item = (__RULE__ => q{xpinter}); | ||
| 15959 | my $repcount = 0; | ||
| 15960 | |||
| 15961 | |||
| 15962 | Parse::RecDescent::_trace(q{Trying subrule: [xps]}, | ||
| 15963 | Parse::RecDescent::_tracefirst($text), | ||
| 15964 | q{xpinter}, | ||
| 15965 | $tracelevel) | ||
| 15966 | if defined $::RD_TRACE; | ||
| 15967 | if (1) { no strict qw{refs}; | ||
| 15968 | $expectation->is(q{})->at($text); | ||
| 15969 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xps($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 15970 | { | ||
| 15971 | |||
| 15972 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xps]>>}, | ||
| 15973 | Parse::RecDescent::_tracefirst($text), | ||
| 15974 | q{xpinter}, | ||
| 15975 | $tracelevel) | ||
| 15976 | if defined $::RD_TRACE; | ||
| 15977 | $expectation->failed(); | ||
| 15978 | last; | ||
| 15979 | } | ||
| 15980 | Parse::RecDescent::_trace(q{>>Matched subrule: [xps]<< (return value: [} | ||
| 15981 | . $_tok . q{]}, | ||
| 15982 | |||
| 15983 | Parse::RecDescent::_tracefirst($text), | ||
| 15984 | q{xpinter}, | ||
| 15985 | $tracelevel) | ||
| 15986 | if defined $::RD_TRACE; | ||
| 15987 | $item{q{xps}} = $_tok; | ||
| 15988 | push @item, $_tok; | ||
| 15989 | |||
| 15990 | } | ||
| 15991 | |||
| 15992 | |||
| 15993 | |||
| 15994 | Parse::RecDescent::_trace(q{Trying directive: [<skip:"">]}, | ||
| 15995 | Parse::RecDescent::_tracefirst($text), | ||
| 15996 | q{xpinter}, | ||
| 15997 | $tracelevel) | ||
| 15998 | if defined $::RD_TRACE; | ||
| 15999 | $_tok = do { my $oldskip = $skip; $skip=""; $oldskip }; | ||
| 16000 | if (defined($_tok)) | ||
| 16001 | { | ||
| 16002 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 16003 | . $_tok . q{])}, | ||
| 16004 | Parse::RecDescent::_tracefirst($text)) | ||
| 16005 | if defined $::RD_TRACE; | ||
| 16006 | } | ||
| 16007 | else | ||
| 16008 | { | ||
| 16009 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 16010 | Parse::RecDescent::_tracefirst($text)) | ||
| 16011 | if defined $::RD_TRACE; | ||
| 16012 | } | ||
| 16013 | |||
| 16014 | last unless defined $_tok; | ||
| 16015 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 16016 | |||
| 16017 | |||
| 16018 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpintercont]}, | ||
| 16019 | Parse::RecDescent::_tracefirst($text), | ||
| 16020 | q{xpinter}, | ||
| 16021 | $tracelevel) | ||
| 16022 | if defined $::RD_TRACE; | ||
| 16023 | $expectation->is(q{xpintercont})->at($text); | ||
| 16024 | |||
| 16025 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::xpintercont, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 16026 | { | ||
| 16027 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpintercont]>>}, | ||
| 16028 | Parse::RecDescent::_tracefirst($text), | ||
| 16029 | q{xpinter}, | ||
| 16030 | $tracelevel) | ||
| 16031 | if defined $::RD_TRACE; | ||
| 16032 | last; | ||
| 16033 | } | ||
| 16034 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpintercont]<< (} | ||
| 16035 | . @$_tok . q{ times)}, | ||
| 16036 | |||
| 16037 | Parse::RecDescent::_tracefirst($text), | ||
| 16038 | q{xpinter}, | ||
| 16039 | $tracelevel) | ||
| 16040 | if defined $::RD_TRACE; | ||
| 16041 | $item{q{xpintercont(?)}} = $_tok; | ||
| 16042 | push @item, $_tok; | ||
| 16043 | |||
| 16044 | |||
| 16045 | |||
| 16046 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 16047 | Parse::RecDescent::_tracefirst($text), | ||
| 16048 | q{xpinter}, | ||
| 16049 | $tracelevel) | ||
| 16050 | if defined $::RD_TRACE; | ||
| 16051 | |||
| 16052 | |||
| 16053 | $_tok = ($_noactions) ? 0 : do { join("",$item[1],@{$item[3]}) }; | ||
| 16054 | unless (defined $_tok) | ||
| 16055 | { | ||
| 16056 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 16057 | if defined $::RD_TRACE; | ||
| 16058 | last; | ||
| 16059 | } | ||
| 16060 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 16061 | . $_tok . q{])}, | ||
| 16062 | Parse::RecDescent::_tracefirst($text)) | ||
| 16063 | if defined $::RD_TRACE; | ||
| 16064 | push @item, $_tok; | ||
| 16065 | $item{__ACTION1__}=$_tok; | ||
| 16066 | |||
| 16067 | |||
| 16068 | Parse::RecDescent::_trace(q{>>Matched production: [xps <skip:""> xpintercont]<<}, | ||
| 16069 | Parse::RecDescent::_tracefirst($text), | ||
| 16070 | q{xpinter}, | ||
| 16071 | $tracelevel) | ||
| 16072 | if defined $::RD_TRACE; | ||
| 16073 | |||
| 16074 | |||
| 16075 | |||
| 16076 | $_matched = 1; | ||
| 16077 | last; | ||
| 16078 | } | ||
| 16079 | |||
| 16080 | |||
| 16081 | unless ( $_matched || defined($score) ) | ||
| 16082 | { | ||
| 16083 | |||
| 16084 | |||
| 16085 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 16086 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 16087 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16088 | q{xpinter}, | ||
| 16089 | $tracelevel) | ||
| 16090 | if defined $::RD_TRACE; | ||
| 16091 | return undef; | ||
| 16092 | } | ||
| 16093 | if (!defined($return) && defined($score)) | ||
| 16094 | { | ||
| 16095 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 16096 | q{xpinter}, | ||
| 16097 | $tracelevel) | ||
| 16098 | if defined $::RD_TRACE; | ||
| 16099 | $return = $score_return; | ||
| 16100 | } | ||
| 16101 | splice @{$thisparser->{errors}}, $err_at; | ||
| 16102 | $return = $item[$#item] unless defined $return; | ||
| 16103 | if (defined $::RD_TRACE) | ||
| 16104 | { | ||
| 16105 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 16106 | $return . q{])}, "", | ||
| 16107 | q{xpinter}, | ||
| 16108 | $tracelevel); | ||
| 16109 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 16110 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 16111 | Parse::RecDescent::_tracefirst($text), | ||
| 16112 | , q{xpinter}, | ||
| 16113 | $tracelevel) | ||
| 16114 | } | ||
| 16115 | $_[1] = $text; | ||
| 16116 | return $return; | ||
| 16117 | } | ||
| 16118 | |||
| 16119 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 16120 | sub Parse::RecDescent::XML::XSH2::Parser::xpintercont | ||
| 16121 | { | ||
| 16122 | my $thisparser = $_[0]; | ||
| 16123 | use vars q{$tracelevel}; | ||
| 16124 | local $tracelevel = ($tracelevel||0)+1; | ||
| 16125 | $ERRORS = 0; | ||
| 16126 | my $thisrule = $thisparser->{"rules"}{"xpintercont"}; | ||
| 16127 | |||
| 16128 | Parse::RecDescent::_trace(q{Trying rule: [xpintercont]}, | ||
| 16129 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16130 | q{xpintercont}, | ||
| 16131 | $tracelevel) | ||
| 16132 | if defined $::RD_TRACE; | ||
| 16133 | |||
| 16134 | |||
| 16135 | my $err_at = @{$thisparser->{errors}}; | ||
| 16136 | |||
| 16137 | my $score; | ||
| 16138 | my $score_return; | ||
| 16139 | my $_tok; | ||
| 16140 | my $return = undef; | ||
| 16141 | my $_matched=0; | ||
| 16142 | my $commit=0; | ||
| 16143 | my @item = (); | ||
| 16144 | my %item = (); | ||
| 16145 | my $repeating = $_[2]; | ||
| 16146 | my $_noactions = $_[3]; | ||
| 16147 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 16148 | my $_itempos = $_[5]; | ||
| 16149 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 16150 | my $text; | ||
| 16151 | my $lastsep; | ||
| 16152 | my $current_match; | ||
| 16153 | my $expectation = new Parse::RecDescent::Expectation(q{xpfilters, or xpbrackets}); | ||
| 16154 | $expectation->at($_[1]); | ||
| 16155 | |||
| 16156 | my $thisoffset; | ||
| 16157 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 16158 | |||
| 16159 | my $thiscolumn; | ||
| 16160 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 16161 | |||
| 16162 | my $thisline; | ||
| 16163 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 16164 | |||
| 16165 | |||
| 16166 | |||
| 16167 | while (!$_matched && !$commit) | ||
| 16168 | { | ||
| 16169 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 16170 | Parse::RecDescent::_trace(q{Trying production: [xpfilters, or xpbrackets <skip:""> xpinter]}, | ||
| 16171 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16172 | q{xpintercont}, | ||
| 16173 | $tracelevel) | ||
| 16174 | if defined $::RD_TRACE; | ||
| 16175 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 16176 | $text = $_[1]; | ||
| 16177 | my $_savetext; | ||
| 16178 | @item = (q{xpintercont}); | ||
| 16179 | %item = (__RULE__ => q{xpintercont}); | ||
| 16180 | my $repcount = 0; | ||
| 16181 | |||
| 16182 | |||
| 16183 | Parse::RecDescent::_trace(q{Trying subrule: [_alternation_1_of_production_1_of_rule_xpintercont]}, | ||
| 16184 | Parse::RecDescent::_tracefirst($text), | ||
| 16185 | q{xpintercont}, | ||
| 16186 | $tracelevel) | ||
| 16187 | if defined $::RD_TRACE; | ||
| 16188 | if (1) { no strict qw{refs}; | ||
| 16189 | $expectation->is(q{})->at($text); | ||
| 16190 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::_alternation_1_of_production_1_of_rule_xpintercont($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 16191 | { | ||
| 16192 | |||
| 16193 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [_alternation_1_of_production_1_of_rule_xpintercont]>>}, | ||
| 16194 | Parse::RecDescent::_tracefirst($text), | ||
| 16195 | q{xpintercont}, | ||
| 16196 | $tracelevel) | ||
| 16197 | if defined $::RD_TRACE; | ||
| 16198 | $expectation->failed(); | ||
| 16199 | last; | ||
| 16200 | } | ||
| 16201 | Parse::RecDescent::_trace(q{>>Matched subrule: [_alternation_1_of_production_1_of_rule_xpintercont]<< (return value: [} | ||
| 16202 | . $_tok . q{]}, | ||
| 16203 | |||
| 16204 | Parse::RecDescent::_tracefirst($text), | ||
| 16205 | q{xpintercont}, | ||
| 16206 | $tracelevel) | ||
| 16207 | if defined $::RD_TRACE; | ||
| 16208 | $item{q{_alternation_1_of_production_1_of_rule_xpintercont}} = $_tok; | ||
| 16209 | push @item, $_tok; | ||
| 16210 | |||
| 16211 | } | ||
| 16212 | |||
| 16213 | |||
| 16214 | |||
| 16215 | Parse::RecDescent::_trace(q{Trying directive: [<skip:"">]}, | ||
| 16216 | Parse::RecDescent::_tracefirst($text), | ||
| 16217 | q{xpintercont}, | ||
| 16218 | $tracelevel) | ||
| 16219 | if defined $::RD_TRACE; | ||
| 16220 | $_tok = do { my $oldskip = $skip; $skip=""; $oldskip }; | ||
| 16221 | if (defined($_tok)) | ||
| 16222 | { | ||
| 16223 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 16224 | . $_tok . q{])}, | ||
| 16225 | Parse::RecDescent::_tracefirst($text)) | ||
| 16226 | if defined $::RD_TRACE; | ||
| 16227 | } | ||
| 16228 | else | ||
| 16229 | { | ||
| 16230 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 16231 | Parse::RecDescent::_tracefirst($text)) | ||
| 16232 | if defined $::RD_TRACE; | ||
| 16233 | } | ||
| 16234 | |||
| 16235 | last unless defined $_tok; | ||
| 16236 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 16237 | |||
| 16238 | |||
| 16239 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpinter]}, | ||
| 16240 | Parse::RecDescent::_tracefirst($text), | ||
| 16241 | q{xpintercont}, | ||
| 16242 | $tracelevel) | ||
| 16243 | if defined $::RD_TRACE; | ||
| 16244 | $expectation->is(q{xpinter})->at($text); | ||
| 16245 | |||
| 16246 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::xpinter, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 16247 | { | ||
| 16248 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpinter]>>}, | ||
| 16249 | Parse::RecDescent::_tracefirst($text), | ||
| 16250 | q{xpintercont}, | ||
| 16251 | $tracelevel) | ||
| 16252 | if defined $::RD_TRACE; | ||
| 16253 | last; | ||
| 16254 | } | ||
| 16255 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpinter]<< (} | ||
| 16256 | . @$_tok . q{ times)}, | ||
| 16257 | |||
| 16258 | Parse::RecDescent::_tracefirst($text), | ||
| 16259 | q{xpintercont}, | ||
| 16260 | $tracelevel) | ||
| 16261 | if defined $::RD_TRACE; | ||
| 16262 | $item{q{xpinter(?)}} = $_tok; | ||
| 16263 | push @item, $_tok; | ||
| 16264 | |||
| 16265 | |||
| 16266 | |||
| 16267 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 16268 | Parse::RecDescent::_tracefirst($text), | ||
| 16269 | q{xpintercont}, | ||
| 16270 | $tracelevel) | ||
| 16271 | if defined $::RD_TRACE; | ||
| 16272 | |||
| 16273 | |||
| 16274 | $_tok = ($_noactions) ? 0 : do { join("",$item[1],@{$item[3]}) }; | ||
| 16275 | unless (defined $_tok) | ||
| 16276 | { | ||
| 16277 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 16278 | if defined $::RD_TRACE; | ||
| 16279 | last; | ||
| 16280 | } | ||
| 16281 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 16282 | . $_tok . q{])}, | ||
| 16283 | Parse::RecDescent::_tracefirst($text)) | ||
| 16284 | if defined $::RD_TRACE; | ||
| 16285 | push @item, $_tok; | ||
| 16286 | $item{__ACTION1__}=$_tok; | ||
| 16287 | |||
| 16288 | |||
| 16289 | Parse::RecDescent::_trace(q{>>Matched production: [xpfilters, or xpbrackets <skip:""> xpinter]<<}, | ||
| 16290 | Parse::RecDescent::_tracefirst($text), | ||
| 16291 | q{xpintercont}, | ||
| 16292 | $tracelevel) | ||
| 16293 | if defined $::RD_TRACE; | ||
| 16294 | |||
| 16295 | |||
| 16296 | |||
| 16297 | $_matched = 1; | ||
| 16298 | last; | ||
| 16299 | } | ||
| 16300 | |||
| 16301 | |||
| 16302 | unless ( $_matched || defined($score) ) | ||
| 16303 | { | ||
| 16304 | |||
| 16305 | |||
| 16306 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 16307 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 16308 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16309 | q{xpintercont}, | ||
| 16310 | $tracelevel) | ||
| 16311 | if defined $::RD_TRACE; | ||
| 16312 | return undef; | ||
| 16313 | } | ||
| 16314 | if (!defined($return) && defined($score)) | ||
| 16315 | { | ||
| 16316 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 16317 | q{xpintercont}, | ||
| 16318 | $tracelevel) | ||
| 16319 | if defined $::RD_TRACE; | ||
| 16320 | $return = $score_return; | ||
| 16321 | } | ||
| 16322 | splice @{$thisparser->{errors}}, $err_at; | ||
| 16323 | $return = $item[$#item] unless defined $return; | ||
| 16324 | if (defined $::RD_TRACE) | ||
| 16325 | { | ||
| 16326 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 16327 | $return . q{])}, "", | ||
| 16328 | q{xpintercont}, | ||
| 16329 | $tracelevel); | ||
| 16330 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 16331 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 16332 | Parse::RecDescent::_tracefirst($text), | ||
| 16333 | , q{xpintercont}, | ||
| 16334 | $tracelevel) | ||
| 16335 | } | ||
| 16336 | $_[1] = $text; | ||
| 16337 | return $return; | ||
| 16338 | } | ||
| 16339 | |||
| 16340 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 16341 | sub Parse::RecDescent::XML::XSH2::Parser::xplocationstep | ||
| 16342 | { | ||
| 16343 | my $thisparser = $_[0]; | ||
| 16344 | use vars q{$tracelevel}; | ||
| 16345 | local $tracelevel = ($tracelevel||0)+1; | ||
| 16346 | $ERRORS = 0; | ||
| 16347 | my $thisrule = $thisparser->{"rules"}{"xplocationstep"}; | ||
| 16348 | |||
| 16349 | Parse::RecDescent::_trace(q{Trying rule: [xplocationstep]}, | ||
| 16350 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16351 | q{xplocationstep}, | ||
| 16352 | $tracelevel) | ||
| 16353 | if defined $::RD_TRACE; | ||
| 16354 | |||
| 16355 | |||
| 16356 | my $err_at = @{$thisparser->{errors}}; | ||
| 16357 | |||
| 16358 | my $score; | ||
| 16359 | my $score_return; | ||
| 16360 | my $_tok; | ||
| 16361 | my $return = undef; | ||
| 16362 | my $_matched=0; | ||
| 16363 | my $commit=0; | ||
| 16364 | my @item = (); | ||
| 16365 | my %item = (); | ||
| 16366 | my $repeating = $_[2]; | ||
| 16367 | my $_noactions = $_[3]; | ||
| 16368 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 16369 | my $_itempos = $_[5]; | ||
| 16370 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 16371 | my $text; | ||
| 16372 | my $lastsep; | ||
| 16373 | my $current_match; | ||
| 16374 | my $expectation = new Parse::RecDescent::Expectation(q{xpaxis}); | ||
| 16375 | $expectation->at($_[1]); | ||
| 16376 | |||
| 16377 | my $thisoffset; | ||
| 16378 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 16379 | |||
| 16380 | my $thiscolumn; | ||
| 16381 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 16382 | |||
| 16383 | my $thisline; | ||
| 16384 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 16385 | |||
| 16386 | |||
| 16387 | |||
| 16388 | while (!$_matched && !$commit) | ||
| 16389 | { | ||
| 16390 | |||
| 16391 | Parse::RecDescent::_trace(q{Trying production: [xpaxis xpnodetest]}, | ||
| 16392 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16393 | q{xplocationstep}, | ||
| 16394 | $tracelevel) | ||
| 16395 | if defined $::RD_TRACE; | ||
| 16396 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 16397 | $text = $_[1]; | ||
| 16398 | my $_savetext; | ||
| 16399 | @item = (q{xplocationstep}); | ||
| 16400 | %item = (__RULE__ => q{xplocationstep}); | ||
| 16401 | my $repcount = 0; | ||
| 16402 | |||
| 16403 | |||
| 16404 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpaxis]}, | ||
| 16405 | Parse::RecDescent::_tracefirst($text), | ||
| 16406 | q{xplocationstep}, | ||
| 16407 | $tracelevel) | ||
| 16408 | if defined $::RD_TRACE; | ||
| 16409 | $expectation->is(q{})->at($text); | ||
| 16410 | |||
| 16411 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::xpaxis, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 16412 | { | ||
| 16413 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpaxis]>>}, | ||
| 16414 | Parse::RecDescent::_tracefirst($text), | ||
| 16415 | q{xplocationstep}, | ||
| 16416 | $tracelevel) | ||
| 16417 | if defined $::RD_TRACE; | ||
| 16418 | last; | ||
| 16419 | } | ||
| 16420 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpaxis]<< (} | ||
| 16421 | . @$_tok . q{ times)}, | ||
| 16422 | |||
| 16423 | Parse::RecDescent::_tracefirst($text), | ||
| 16424 | q{xplocationstep}, | ||
| 16425 | $tracelevel) | ||
| 16426 | if defined $::RD_TRACE; | ||
| 16427 | $item{q{xpaxis(?)}} = $_tok; | ||
| 16428 | push @item, $_tok; | ||
| 16429 | |||
| 16430 | |||
| 16431 | |||
| 16432 | Parse::RecDescent::_trace(q{Trying subrule: [xpnodetest]}, | ||
| 16433 | Parse::RecDescent::_tracefirst($text), | ||
| 16434 | q{xplocationstep}, | ||
| 16435 | $tracelevel) | ||
| 16436 | if defined $::RD_TRACE; | ||
| 16437 | if (1) { no strict qw{refs}; | ||
| 16438 | $expectation->is(q{xpnodetest})->at($text); | ||
| 16439 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpnodetest($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 16440 | { | ||
| 16441 | |||
| 16442 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpnodetest]>>}, | ||
| 16443 | Parse::RecDescent::_tracefirst($text), | ||
| 16444 | q{xplocationstep}, | ||
| 16445 | $tracelevel) | ||
| 16446 | if defined $::RD_TRACE; | ||
| 16447 | $expectation->failed(); | ||
| 16448 | last; | ||
| 16449 | } | ||
| 16450 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpnodetest]<< (return value: [} | ||
| 16451 | . $_tok . q{]}, | ||
| 16452 | |||
| 16453 | Parse::RecDescent::_tracefirst($text), | ||
| 16454 | q{xplocationstep}, | ||
| 16455 | $tracelevel) | ||
| 16456 | if defined $::RD_TRACE; | ||
| 16457 | $item{q{xpnodetest}} = $_tok; | ||
| 16458 | push @item, $_tok; | ||
| 16459 | |||
| 16460 | } | ||
| 16461 | |||
| 16462 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 16463 | Parse::RecDescent::_tracefirst($text), | ||
| 16464 | q{xplocationstep}, | ||
| 16465 | $tracelevel) | ||
| 16466 | if defined $::RD_TRACE; | ||
| 16467 | |||
| 16468 | |||
| 16469 | $_tok = ($_noactions) ? 0 : do { [ (@{$item[1]} ? $item[1][0] : 'child::'),$item[3] ] }; | ||
| 16470 | unless (defined $_tok) | ||
| 16471 | { | ||
| 16472 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 16473 | if defined $::RD_TRACE; | ||
| 16474 | last; | ||
| 16475 | } | ||
| 16476 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 16477 | . $_tok . q{])}, | ||
| 16478 | Parse::RecDescent::_tracefirst($text)) | ||
| 16479 | if defined $::RD_TRACE; | ||
| 16480 | push @item, $_tok; | ||
| 16481 | $item{__ACTION1__}=$_tok; | ||
| 16482 | |||
| 16483 | |||
| 16484 | Parse::RecDescent::_trace(q{>>Matched production: [xpaxis xpnodetest]<<}, | ||
| 16485 | Parse::RecDescent::_tracefirst($text), | ||
| 16486 | q{xplocationstep}, | ||
| 16487 | $tracelevel) | ||
| 16488 | if defined $::RD_TRACE; | ||
| 16489 | |||
| 16490 | |||
| 16491 | |||
| 16492 | $_matched = 1; | ||
| 16493 | last; | ||
| 16494 | } | ||
| 16495 | |||
| 16496 | |||
| 16497 | unless ( $_matched || defined($score) ) | ||
| 16498 | { | ||
| 16499 | |||
| 16500 | |||
| 16501 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 16502 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 16503 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16504 | q{xplocationstep}, | ||
| 16505 | $tracelevel) | ||
| 16506 | if defined $::RD_TRACE; | ||
| 16507 | return undef; | ||
| 16508 | } | ||
| 16509 | if (!defined($return) && defined($score)) | ||
| 16510 | { | ||
| 16511 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 16512 | q{xplocationstep}, | ||
| 16513 | $tracelevel) | ||
| 16514 | if defined $::RD_TRACE; | ||
| 16515 | $return = $score_return; | ||
| 16516 | } | ||
| 16517 | splice @{$thisparser->{errors}}, $err_at; | ||
| 16518 | $return = $item[$#item] unless defined $return; | ||
| 16519 | if (defined $::RD_TRACE) | ||
| 16520 | { | ||
| 16521 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 16522 | $return . q{])}, "", | ||
| 16523 | q{xplocationstep}, | ||
| 16524 | $tracelevel); | ||
| 16525 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 16526 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 16527 | Parse::RecDescent::_tracefirst($text), | ||
| 16528 | , q{xplocationstep}, | ||
| 16529 | $tracelevel) | ||
| 16530 | } | ||
| 16531 | $_[1] = $text; | ||
| 16532 | return $return; | ||
| 16533 | } | ||
| 16534 | |||
| 16535 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 16536 | sub Parse::RecDescent::XML::XSH2::Parser::xpnodetest | ||
| 16537 | { | ||
| 16538 | my $thisparser = $_[0]; | ||
| 16539 | use vars q{$tracelevel}; | ||
| 16540 | local $tracelevel = ($tracelevel||0)+1; | ||
| 16541 | $ERRORS = 0; | ||
| 16542 | my $thisrule = $thisparser->{"rules"}{"xpnodetest"}; | ||
| 16543 | |||
| 16544 | Parse::RecDescent::_trace(q{Trying rule: [xpnodetest]}, | ||
| 16545 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16546 | q{xpnodetest}, | ||
| 16547 | $tracelevel) | ||
| 16548 | if defined $::RD_TRACE; | ||
| 16549 | |||
| 16550 | |||
| 16551 | my $err_at = @{$thisparser->{errors}}; | ||
| 16552 | |||
| 16553 | my $score; | ||
| 16554 | my $score_return; | ||
| 16555 | my $_tok; | ||
| 16556 | my $return = undef; | ||
| 16557 | my $_matched=0; | ||
| 16558 | my $commit=0; | ||
| 16559 | my @item = (); | ||
| 16560 | my %item = (); | ||
| 16561 | my $repeating = $_[2]; | ||
| 16562 | my $_noactions = $_[3]; | ||
| 16563 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 16564 | my $_itempos = $_[5]; | ||
| 16565 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 16566 | my $text; | ||
| 16567 | my $lastsep; | ||
| 16568 | my $current_match; | ||
| 16569 | my $expectation = new Parse::RecDescent::Expectation(q{/node\\(\\)|text\\(\\)|comment\\(\\)|processing-instruction\\(\\s*(?:"[^"]*"\\s*|'[^'*]'\\s*)?\\)|[^\\(\\[\\/\\"\\'\\&\\;\\s]+/}); | ||
| 16570 | $expectation->at($_[1]); | ||
| 16571 | |||
| 16572 | my $thisoffset; | ||
| 16573 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 16574 | |||
| 16575 | my $thiscolumn; | ||
| 16576 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 16577 | |||
| 16578 | my $thisline; | ||
| 16579 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 16580 | |||
| 16581 | |||
| 16582 | |||
| 16583 | while (!$_matched && !$commit) | ||
| 16584 | { | ||
| 16585 | |||
| 16586 | Parse::RecDescent::_trace(q{Trying production: [/node\\(\\)|text\\(\\)|comment\\(\\)|processing-instruction\\(\\s*(?:"[^"]*"\\s*|'[^'*]'\\s*)?\\)|[^\\(\\[\\/\\"\\'\\&\\;\\s]+/]}, | ||
| 16587 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16588 | q{xpnodetest}, | ||
| 16589 | $tracelevel) | ||
| 16590 | if defined $::RD_TRACE; | ||
| 16591 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 16592 | $text = $_[1]; | ||
| 16593 | my $_savetext; | ||
| 16594 | @item = (q{xpnodetest}); | ||
| 16595 | %item = (__RULE__ => q{xpnodetest}); | ||
| 16596 | my $repcount = 0; | ||
| 16597 | |||
| 16598 | |||
| 16599 | Parse::RecDescent::_trace(q{Trying terminal: [/node\\(\\)|text\\(\\)|comment\\(\\)|processing-instruction\\(\\s*(?:"[^"]*"\\s*|'[^'*]'\\s*)?\\)|[^\\(\\[\\/\\"\\'\\&\\;\\s]+/]}, Parse::RecDescent::_tracefirst($text), | ||
| 16600 | q{xpnodetest}, | ||
| 16601 | $tracelevel) | ||
| 16602 | if defined $::RD_TRACE; | ||
| 16603 | undef $lastsep; | ||
| 16604 | $expectation->is(q{})->at($text); | ||
| 16605 | |||
| 16606 | |||
| 16607 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:node\(\)|text\(\)|comment\(\)|processing-instruction\(\s*(?:"[^"]*"\s*|'[^'*]'\s*)?\)|[^\(\[\/\"\'\&\;\s]+)/) | ||
| 16608 | { | ||
| 16609 | $text = $lastsep . $text if defined $lastsep; | ||
| 16610 | $expectation->failed(); | ||
| 16611 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 16612 | Parse::RecDescent::_tracefirst($text)) | ||
| 16613 | if defined $::RD_TRACE; | ||
| 16614 | |||
| 16615 | last; | ||
| 16616 | } | ||
| 16617 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 16618 | substr($text,0,length($current_match),q{}); | ||
| 16619 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 16620 | . $current_match . q{])}, | ||
| 16621 | Parse::RecDescent::_tracefirst($text)) | ||
| 16622 | if defined $::RD_TRACE; | ||
| 16623 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 16624 | |||
| 16625 | |||
| 16626 | Parse::RecDescent::_trace(q{>>Matched production: [/node\\(\\)|text\\(\\)|comment\\(\\)|processing-instruction\\(\\s*(?:"[^"]*"\\s*|'[^'*]'\\s*)?\\)|[^\\(\\[\\/\\"\\'\\&\\;\\s]+/]<<}, | ||
| 16627 | Parse::RecDescent::_tracefirst($text), | ||
| 16628 | q{xpnodetest}, | ||
| 16629 | $tracelevel) | ||
| 16630 | if defined $::RD_TRACE; | ||
| 16631 | |||
| 16632 | |||
| 16633 | |||
| 16634 | $_matched = 1; | ||
| 16635 | last; | ||
| 16636 | } | ||
| 16637 | |||
| 16638 | |||
| 16639 | unless ( $_matched || defined($score) ) | ||
| 16640 | { | ||
| 16641 | |||
| 16642 | |||
| 16643 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 16644 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 16645 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16646 | q{xpnodetest}, | ||
| 16647 | $tracelevel) | ||
| 16648 | if defined $::RD_TRACE; | ||
| 16649 | return undef; | ||
| 16650 | } | ||
| 16651 | if (!defined($return) && defined($score)) | ||
| 16652 | { | ||
| 16653 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 16654 | q{xpnodetest}, | ||
| 16655 | $tracelevel) | ||
| 16656 | if defined $::RD_TRACE; | ||
| 16657 | $return = $score_return; | ||
| 16658 | } | ||
| 16659 | splice @{$thisparser->{errors}}, $err_at; | ||
| 16660 | $return = $item[$#item] unless defined $return; | ||
| 16661 | if (defined $::RD_TRACE) | ||
| 16662 | { | ||
| 16663 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 16664 | $return . q{])}, "", | ||
| 16665 | q{xpnodetest}, | ||
| 16666 | $tracelevel); | ||
| 16667 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 16668 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 16669 | Parse::RecDescent::_tracefirst($text), | ||
| 16670 | , q{xpnodetest}, | ||
| 16671 | $tracelevel) | ||
| 16672 | } | ||
| 16673 | $_[1] = $text; | ||
| 16674 | return $return; | ||
| 16675 | } | ||
| 16676 | |||
| 16677 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 16678 | sub Parse::RecDescent::XML::XSH2::Parser::xps | ||
| 16679 | { | ||
| 16680 | my $thisparser = $_[0]; | ||
| 16681 | use vars q{$tracelevel}; | ||
| 16682 | local $tracelevel = ($tracelevel||0)+1; | ||
| 16683 | $ERRORS = 0; | ||
| 16684 | my $thisrule = $thisparser->{"rules"}{"xps"}; | ||
| 16685 | |||
| 16686 | Parse::RecDescent::_trace(q{Trying rule: [xps]}, | ||
| 16687 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16688 | q{xps}, | ||
| 16689 | $tracelevel) | ||
| 16690 | if defined $::RD_TRACE; | ||
| 16691 | |||
| 16692 | |||
| 16693 | my $err_at = @{$thisparser->{errors}}; | ||
| 16694 | |||
| 16695 | my $score; | ||
| 16696 | my $score_return; | ||
| 16697 | my $_tok; | ||
| 16698 | my $return = undef; | ||
| 16699 | my $_matched=0; | ||
| 16700 | my $commit=0; | ||
| 16701 | my @item = (); | ||
| 16702 | my %item = (); | ||
| 16703 | my $repeating = $_[2]; | ||
| 16704 | my $_noactions = $_[3]; | ||
| 16705 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 16706 | my $_itempos = $_[5]; | ||
| 16707 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 16708 | my $text; | ||
| 16709 | my $lastsep; | ||
| 16710 | my $current_match; | ||
| 16711 | my $expectation = new Parse::RecDescent::Expectation(q{/(?: [^\\$\\[\\]()'"\};]+ | | ||
| 16712 | \\$(?!\\\{) | | ||
| 16713 | \\$\\\{ (?:\\$?[a-zA-Z_][a-zA-Z0-9_]* | | ||
| 16714 | \\\{.*?\\\} | | ||
| 16715 | \\(.+?\\) | ||
| 16716 | ) | ||
| 16717 | \\\} | | ||
| 16718 | '(?:\\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\)) \\\} | | ||
| 16719 | \\$(?!\\\{) | [^\\$'] | ||
| 16720 | )*' | | ||
| 16721 | "(?:\\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\)) \\\} | | ||
| 16722 | \\$(?!\\\{) | [^\\$"] | ||
| 16723 | )*" | ||
| 16724 | )*/x}); | ||
| 16725 | $expectation->at($_[1]); | ||
| 16726 | |||
| 16727 | my $thisoffset; | ||
| 16728 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 16729 | |||
| 16730 | my $thiscolumn; | ||
| 16731 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 16732 | |||
| 16733 | my $thisline; | ||
| 16734 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 16735 | |||
| 16736 | |||
| 16737 | |||
| 16738 | while (!$_matched && !$commit) | ||
| 16739 | { | ||
| 16740 | |||
| 16741 | Parse::RecDescent::_trace(q{Trying production: [/(?: [^\\$\\[\\]()'"\};]+ | | ||
| 16742 | \\$(?!\\\{) | | ||
| 16743 | \\$\\\{ (?:\\$?[a-zA-Z_][a-zA-Z0-9_]* | | ||
| 16744 | \\\{.*?\\\} | | ||
| 16745 | \\(.+?\\) | ||
| 16746 | ) | ||
| 16747 | \\\} | | ||
| 16748 | '(?:\\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\)) \\\} | | ||
| 16749 | \\$(?!\\\{) | [^\\$'] | ||
| 16750 | )*' | | ||
| 16751 | "(?:\\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\)) \\\} | | ||
| 16752 | \\$(?!\\\{) | [^\\$"] | ||
| 16753 | )*" | ||
| 16754 | )*/x]}, | ||
| 16755 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16756 | q{xps}, | ||
| 16757 | $tracelevel) | ||
| 16758 | if defined $::RD_TRACE; | ||
| 16759 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 16760 | $text = $_[1]; | ||
| 16761 | my $_savetext; | ||
| 16762 | @item = (q{xps}); | ||
| 16763 | %item = (__RULE__ => q{xps}); | ||
| 16764 | my $repcount = 0; | ||
| 16765 | |||
| 16766 | |||
| 16767 | Parse::RecDescent::_trace(q{Trying terminal: [/(?: [^\\$\\[\\]()'"\};]+ | | ||
| 16768 | \\$(?!\\\{) | | ||
| 16769 | \\$\\\{ (?:\\$?[a-zA-Z_][a-zA-Z0-9_]* | | ||
| 16770 | \\\{.*?\\\} | | ||
| 16771 | \\(.+?\\) | ||
| 16772 | ) | ||
| 16773 | \\\} | | ||
| 16774 | '(?:\\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\)) \\\} | | ||
| 16775 | \\$(?!\\\{) | [^\\$'] | ||
| 16776 | )*' | | ||
| 16777 | "(?:\\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\)) \\\} | | ||
| 16778 | \\$(?!\\\{) | [^\\$"] | ||
| 16779 | )*" | ||
| 16780 | )*/x]}, Parse::RecDescent::_tracefirst($text), | ||
| 16781 | q{xps}, | ||
| 16782 | $tracelevel) | ||
| 16783 | if defined $::RD_TRACE; | ||
| 16784 | undef $lastsep; | ||
| 16785 | $expectation->is(q{})->at($text); | ||
| 16786 | |||
| 16787 | |||
| 16788 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?: [^\$\[\]()'"};]+ | | ||
| 16789 | \$(?!\{) | | ||
| 16790 | \$\{ (?:\$?[a-zA-Z_][a-zA-Z0-9_]* | | ||
| 16791 | \{.*?\} | | ||
| 16792 | \(.+?\) | ||
| 16793 | ) | ||
| 16794 | \} | | ||
| 16795 | '(?:\$\{ (?: \$?[a-zA-Z_][a-zA-Z0-9_]* | \{.*?\} | \(.+?\)) \} | | ||
| 16796 | \$(?!\{) | [^\$'] | ||
| 16797 | )*' | | ||
| 16798 | "(?:\$\{ (?: \$?[a-zA-Z_][a-zA-Z0-9_]* | \{.*?\} | \(.+?\)) \} | | ||
| 16799 | \$(?!\{) | [^\$"] | ||
| 16800 | )*" | ||
| 16801 | )*)/x) | ||
| 16802 | { | ||
| 16803 | $text = $lastsep . $text if defined $lastsep; | ||
| 16804 | $expectation->failed(); | ||
| 16805 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 16806 | Parse::RecDescent::_tracefirst($text)) | ||
| 16807 | if defined $::RD_TRACE; | ||
| 16808 | |||
| 16809 | last; | ||
| 16810 | } | ||
| 16811 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 16812 | substr($text,0,length($current_match),q{}); | ||
| 16813 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 16814 | . $current_match . q{])}, | ||
| 16815 | Parse::RecDescent::_tracefirst($text)) | ||
| 16816 | if defined $::RD_TRACE; | ||
| 16817 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 16818 | |||
| 16819 | |||
| 16820 | Parse::RecDescent::_trace(q{>>Matched production: [/(?: [^\\$\\[\\]()'"\};]+ | | ||
| 16821 | \\$(?!\\\{) | | ||
| 16822 | \\$\\\{ (?:\\$?[a-zA-Z_][a-zA-Z0-9_]* | | ||
| 16823 | \\\{.*?\\\} | | ||
| 16824 | \\(.+?\\) | ||
| 16825 | ) | ||
| 16826 | \\\} | | ||
| 16827 | '(?:\\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\)) \\\} | | ||
| 16828 | \\$(?!\\\{) | [^\\$'] | ||
| 16829 | )*' | | ||
| 16830 | "(?:\\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\)) \\\} | | ||
| 16831 | \\$(?!\\\{) | [^\\$"] | ||
| 16832 | )*" | ||
| 16833 | )*/x]<<}, | ||
| 16834 | Parse::RecDescent::_tracefirst($text), | ||
| 16835 | q{xps}, | ||
| 16836 | $tracelevel) | ||
| 16837 | if defined $::RD_TRACE; | ||
| 16838 | |||
| 16839 | |||
| 16840 | |||
| 16841 | $_matched = 1; | ||
| 16842 | last; | ||
| 16843 | } | ||
| 16844 | |||
| 16845 | |||
| 16846 | unless ( $_matched || defined($score) ) | ||
| 16847 | { | ||
| 16848 | |||
| 16849 | |||
| 16850 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 16851 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 16852 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16853 | q{xps}, | ||
| 16854 | $tracelevel) | ||
| 16855 | if defined $::RD_TRACE; | ||
| 16856 | return undef; | ||
| 16857 | } | ||
| 16858 | if (!defined($return) && defined($score)) | ||
| 16859 | { | ||
| 16860 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 16861 | q{xps}, | ||
| 16862 | $tracelevel) | ||
| 16863 | if defined $::RD_TRACE; | ||
| 16864 | $return = $score_return; | ||
| 16865 | } | ||
| 16866 | splice @{$thisparser->{errors}}, $err_at; | ||
| 16867 | $return = $item[$#item] unless defined $return; | ||
| 16868 | if (defined $::RD_TRACE) | ||
| 16869 | { | ||
| 16870 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 16871 | $return . q{])}, "", | ||
| 16872 | q{xps}, | ||
| 16873 | $tracelevel); | ||
| 16874 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 16875 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 16876 | Parse::RecDescent::_tracefirst($text), | ||
| 16877 | , q{xps}, | ||
| 16878 | $tracelevel) | ||
| 16879 | } | ||
| 16880 | $_[1] = $text; | ||
| 16881 | return $return; | ||
| 16882 | } | ||
| 16883 | |||
| 16884 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 16885 | sub Parse::RecDescent::XML::XSH2::Parser::xpsimple | ||
| 16886 | { | ||
| 16887 | my $thisparser = $_[0]; | ||
| 16888 | use vars q{$tracelevel}; | ||
| 16889 | local $tracelevel = ($tracelevel||0)+1; | ||
| 16890 | $ERRORS = 0; | ||
| 16891 | my $thisrule = $thisparser->{"rules"}{"xpsimple"}; | ||
| 16892 | |||
| 16893 | Parse::RecDescent::_trace(q{Trying rule: [xpsimple]}, | ||
| 16894 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16895 | q{xpsimple}, | ||
| 16896 | $tracelevel) | ||
| 16897 | if defined $::RD_TRACE; | ||
| 16898 | |||
| 16899 | |||
| 16900 | my $err_at = @{$thisparser->{errors}}; | ||
| 16901 | |||
| 16902 | my $score; | ||
| 16903 | my $score_return; | ||
| 16904 | my $_tok; | ||
| 16905 | my $return = undef; | ||
| 16906 | my $_matched=0; | ||
| 16907 | my $commit=0; | ||
| 16908 | my @item = (); | ||
| 16909 | my %item = (); | ||
| 16910 | my $repeating = $_[2]; | ||
| 16911 | my $_noactions = $_[3]; | ||
| 16912 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 16913 | my $_itempos = $_[5]; | ||
| 16914 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 16915 | my $text; | ||
| 16916 | my $lastsep; | ||
| 16917 | my $current_match; | ||
| 16918 | my $expectation = new Parse::RecDescent::Expectation(q{/(?: | ||
| 16919 | \\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\) ) \\\} | | ||
| 16920 | \\$(?!\\\{) | | ||
| 16921 | [^-:\\$\\[\\]\{\}|"'\\ \\s();] | | ||
| 16922 | -[^-\\[\\]\{\}|"'\\ \\s();] | ||
| 16923 | ) | ||
| 16924 | (?: | ||
| 16925 | \\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\) ) \\\} | | ||
| 16926 | \\$(?!\\\{) | | ||
| 16927 | [^\\[\\]\\$\{\}|"'\\ \\s();] | ||
| 16928 | )*/x, or xpbrackets}); | ||
| 16929 | $expectation->at($_[1]); | ||
| 16930 | |||
| 16931 | my $thisoffset; | ||
| 16932 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 16933 | |||
| 16934 | my $thiscolumn; | ||
| 16935 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 16936 | |||
| 16937 | my $thisline; | ||
| 16938 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 16939 | |||
| 16940 | |||
| 16941 | |||
| 16942 | while (!$_matched && !$commit) | ||
| 16943 | { | ||
| 16944 | |||
| 16945 | Parse::RecDescent::_trace(q{Trying production: [/(?: | ||
| 16946 | \\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\) ) \\\} | | ||
| 16947 | \\$(?!\\\{) | | ||
| 16948 | [^-:\\$\\[\\]\{\}|"'\\ \\s();] | | ||
| 16949 | -[^-\\[\\]\{\}|"'\\ \\s();] | ||
| 16950 | ) | ||
| 16951 | (?: | ||
| 16952 | \\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\) ) \\\} | | ||
| 16953 | \\$(?!\\\{) | | ||
| 16954 | [^\\[\\]\\$\{\}|"'\\ \\s();] | ||
| 16955 | )*/x]}, | ||
| 16956 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 16957 | q{xpsimple}, | ||
| 16958 | $tracelevel) | ||
| 16959 | if defined $::RD_TRACE; | ||
| 16960 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 16961 | $text = $_[1]; | ||
| 16962 | my $_savetext; | ||
| 16963 | @item = (q{xpsimple}); | ||
| 16964 | %item = (__RULE__ => q{xpsimple}); | ||
| 16965 | my $repcount = 0; | ||
| 16966 | |||
| 16967 | |||
| 16968 | Parse::RecDescent::_trace(q{Trying terminal: [/(?: | ||
| 16969 | \\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\) ) \\\} | | ||
| 16970 | \\$(?!\\\{) | | ||
| 16971 | [^-:\\$\\[\\]\{\}|"'\\ \\s();] | | ||
| 16972 | -[^-\\[\\]\{\}|"'\\ \\s();] | ||
| 16973 | ) | ||
| 16974 | (?: | ||
| 16975 | \\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\) ) \\\} | | ||
| 16976 | \\$(?!\\\{) | | ||
| 16977 | [^\\[\\]\\$\{\}|"'\\ \\s();] | ||
| 16978 | )*/x]}, Parse::RecDescent::_tracefirst($text), | ||
| 16979 | q{xpsimple}, | ||
| 16980 | $tracelevel) | ||
| 16981 | if defined $::RD_TRACE; | ||
| 16982 | undef $lastsep; | ||
| 16983 | $expectation->is(q{})->at($text); | ||
| 16984 | |||
| 16985 | |||
| 16986 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:(?: | ||
| 16987 | \$\{ (?: \$?[a-zA-Z_][a-zA-Z0-9_]* | \{.*?\} | \(.+?\) ) \} | | ||
| 16988 | \$(?!\{) | | ||
| 16989 | [^-:\$\[\]{}|"'\ \s();] | | ||
| 16990 | -[^-\[\]{}|"'\ \s();] | ||
| 16991 | ) | ||
| 16992 | (?: | ||
| 16993 | \$\{ (?: \$?[a-zA-Z_][a-zA-Z0-9_]* | \{.*?\} | \(.+?\) ) \} | | ||
| 16994 | \$(?!\{) | | ||
| 16995 | [^\[\]\${}|"'\ \s();] | ||
| 16996 | )*)/x) | ||
| 16997 | { | ||
| 16998 | $text = $lastsep . $text if defined $lastsep; | ||
| 16999 | $expectation->failed(); | ||
| 17000 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 17001 | Parse::RecDescent::_tracefirst($text)) | ||
| 17002 | if defined $::RD_TRACE; | ||
| 17003 | |||
| 17004 | last; | ||
| 17005 | } | ||
| 17006 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 17007 | substr($text,0,length($current_match),q{}); | ||
| 17008 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 17009 | . $current_match . q{])}, | ||
| 17010 | Parse::RecDescent::_tracefirst($text)) | ||
| 17011 | if defined $::RD_TRACE; | ||
| 17012 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 17013 | |||
| 17014 | |||
| 17015 | Parse::RecDescent::_trace(q{>>Matched production: [/(?: | ||
| 17016 | \\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\) ) \\\} | | ||
| 17017 | \\$(?!\\\{) | | ||
| 17018 | [^-:\\$\\[\\]\{\}|"'\\ \\s();] | | ||
| 17019 | -[^-\\[\\]\{\}|"'\\ \\s();] | ||
| 17020 | ) | ||
| 17021 | (?: | ||
| 17022 | \\$\\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\{.*?\\\} | \\(.+?\\) ) \\\} | | ||
| 17023 | \\$(?!\\\{) | | ||
| 17024 | [^\\[\\]\\$\{\}|"'\\ \\s();] | ||
| 17025 | )*/x]<<}, | ||
| 17026 | Parse::RecDescent::_tracefirst($text), | ||
| 17027 | q{xpsimple}, | ||
| 17028 | $tracelevel) | ||
| 17029 | if defined $::RD_TRACE; | ||
| 17030 | |||
| 17031 | |||
| 17032 | |||
| 17033 | $_matched = 1; | ||
| 17034 | last; | ||
| 17035 | } | ||
| 17036 | |||
| 17037 | |||
| 17038 | while (!$_matched && !$commit) | ||
| 17039 | { | ||
| 17040 | |||
| 17041 | Parse::RecDescent::_trace(q{Trying production: [xpbrackets]}, | ||
| 17042 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 17043 | q{xpsimple}, | ||
| 17044 | $tracelevel) | ||
| 17045 | if defined $::RD_TRACE; | ||
| 17046 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 17047 | $text = $_[1]; | ||
| 17048 | my $_savetext; | ||
| 17049 | @item = (q{xpsimple}); | ||
| 17050 | %item = (__RULE__ => q{xpsimple}); | ||
| 17051 | my $repcount = 0; | ||
| 17052 | |||
| 17053 | |||
| 17054 | Parse::RecDescent::_trace(q{Trying subrule: [xpbrackets]}, | ||
| 17055 | Parse::RecDescent::_tracefirst($text), | ||
| 17056 | q{xpsimple}, | ||
| 17057 | $tracelevel) | ||
| 17058 | if defined $::RD_TRACE; | ||
| 17059 | if (1) { no strict qw{refs}; | ||
| 17060 | $expectation->is(q{})->at($text); | ||
| 17061 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xpbrackets($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 17062 | { | ||
| 17063 | |||
| 17064 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpbrackets]>>}, | ||
| 17065 | Parse::RecDescent::_tracefirst($text), | ||
| 17066 | q{xpsimple}, | ||
| 17067 | $tracelevel) | ||
| 17068 | if defined $::RD_TRACE; | ||
| 17069 | $expectation->failed(); | ||
| 17070 | last; | ||
| 17071 | } | ||
| 17072 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpbrackets]<< (return value: [} | ||
| 17073 | . $_tok . q{]}, | ||
| 17074 | |||
| 17075 | Parse::RecDescent::_tracefirst($text), | ||
| 17076 | q{xpsimple}, | ||
| 17077 | $tracelevel) | ||
| 17078 | if defined $::RD_TRACE; | ||
| 17079 | $item{q{xpbrackets}} = $_tok; | ||
| 17080 | push @item, $_tok; | ||
| 17081 | |||
| 17082 | } | ||
| 17083 | |||
| 17084 | Parse::RecDescent::_trace(q{>>Matched production: [xpbrackets]<<}, | ||
| 17085 | Parse::RecDescent::_tracefirst($text), | ||
| 17086 | q{xpsimple}, | ||
| 17087 | $tracelevel) | ||
| 17088 | if defined $::RD_TRACE; | ||
| 17089 | |||
| 17090 | |||
| 17091 | |||
| 17092 | $_matched = 1; | ||
| 17093 | last; | ||
| 17094 | } | ||
| 17095 | |||
| 17096 | |||
| 17097 | unless ( $_matched || defined($score) ) | ||
| 17098 | { | ||
| 17099 | |||
| 17100 | |||
| 17101 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 17102 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 17103 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 17104 | q{xpsimple}, | ||
| 17105 | $tracelevel) | ||
| 17106 | if defined $::RD_TRACE; | ||
| 17107 | return undef; | ||
| 17108 | } | ||
| 17109 | if (!defined($return) && defined($score)) | ||
| 17110 | { | ||
| 17111 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 17112 | q{xpsimple}, | ||
| 17113 | $tracelevel) | ||
| 17114 | if defined $::RD_TRACE; | ||
| 17115 | $return = $score_return; | ||
| 17116 | } | ||
| 17117 | splice @{$thisparser->{errors}}, $err_at; | ||
| 17118 | $return = $item[$#item] unless defined $return; | ||
| 17119 | if (defined $::RD_TRACE) | ||
| 17120 | { | ||
| 17121 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 17122 | $return . q{])}, "", | ||
| 17123 | q{xpsimple}, | ||
| 17124 | $tracelevel); | ||
| 17125 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 17126 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 17127 | Parse::RecDescent::_tracefirst($text), | ||
| 17128 | , q{xpsimple}, | ||
| 17129 | $tracelevel) | ||
| 17130 | } | ||
| 17131 | $_[1] = $text; | ||
| 17132 | return $return; | ||
| 17133 | } | ||
| 17134 | |||
| 17135 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 17136 | sub Parse::RecDescent::XML::XSH2::Parser::xpstep | ||
| 17137 | { | ||
| 17138 | my $thisparser = $_[0]; | ||
| 17139 | use vars q{$tracelevel}; | ||
| 17140 | local $tracelevel = ($tracelevel||0)+1; | ||
| 17141 | $ERRORS = 0; | ||
| 17142 | my $thisrule = $thisparser->{"rules"}{"xpstep"}; | ||
| 17143 | |||
| 17144 | Parse::RecDescent::_trace(q{Trying rule: [xpstep]}, | ||
| 17145 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 17146 | q{xpstep}, | ||
| 17147 | $tracelevel) | ||
| 17148 | if defined $::RD_TRACE; | ||
| 17149 | |||
| 17150 | |||
| 17151 | my $err_at = @{$thisparser->{errors}}; | ||
| 17152 | |||
| 17153 | my $score; | ||
| 17154 | my $score_return; | ||
| 17155 | my $_tok; | ||
| 17156 | my $return = undef; | ||
| 17157 | my $_matched=0; | ||
| 17158 | my $commit=0; | ||
| 17159 | my @item = (); | ||
| 17160 | my %item = (); | ||
| 17161 | my $repeating = $_[2]; | ||
| 17162 | my $_noactions = $_[3]; | ||
| 17163 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 17164 | my $_itempos = $_[5]; | ||
| 17165 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 17166 | my $text; | ||
| 17167 | my $lastsep; | ||
| 17168 | my $current_match; | ||
| 17169 | my $expectation = new Parse::RecDescent::Expectation(q{xplocationstep}); | ||
| 17170 | $expectation->at($_[1]); | ||
| 17171 | |||
| 17172 | my $thisoffset; | ||
| 17173 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 17174 | |||
| 17175 | my $thiscolumn; | ||
| 17176 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 17177 | |||
| 17178 | my $thisline; | ||
| 17179 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 17180 | |||
| 17181 | |||
| 17182 | |||
| 17183 | while (!$_matched && !$commit) | ||
| 17184 | { | ||
| 17185 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 17186 | Parse::RecDescent::_trace(q{Trying production: [xplocationstep <skip:""> xpfilter]}, | ||
| 17187 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 17188 | q{xpstep}, | ||
| 17189 | $tracelevel) | ||
| 17190 | if defined $::RD_TRACE; | ||
| 17191 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 17192 | $text = $_[1]; | ||
| 17193 | my $_savetext; | ||
| 17194 | @item = (q{xpstep}); | ||
| 17195 | %item = (__RULE__ => q{xpstep}); | ||
| 17196 | my $repcount = 0; | ||
| 17197 | |||
| 17198 | |||
| 17199 | Parse::RecDescent::_trace(q{Trying subrule: [xplocationstep]}, | ||
| 17200 | Parse::RecDescent::_tracefirst($text), | ||
| 17201 | q{xpstep}, | ||
| 17202 | $tracelevel) | ||
| 17203 | if defined $::RD_TRACE; | ||
| 17204 | if (1) { no strict qw{refs}; | ||
| 17205 | $expectation->is(q{})->at($text); | ||
| 17206 | unless (defined ($_tok = Parse::RecDescent::XML::XSH2::Parser::xplocationstep($thisparser,$text,$repeating,$_noactions,sub { \@arg },undef))) | ||
| 17207 | { | ||
| 17208 | |||
| 17209 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xplocationstep]>>}, | ||
| 17210 | Parse::RecDescent::_tracefirst($text), | ||
| 17211 | q{xpstep}, | ||
| 17212 | $tracelevel) | ||
| 17213 | if defined $::RD_TRACE; | ||
| 17214 | $expectation->failed(); | ||
| 17215 | last; | ||
| 17216 | } | ||
| 17217 | Parse::RecDescent::_trace(q{>>Matched subrule: [xplocationstep]<< (return value: [} | ||
| 17218 | . $_tok . q{]}, | ||
| 17219 | |||
| 17220 | Parse::RecDescent::_tracefirst($text), | ||
| 17221 | q{xpstep}, | ||
| 17222 | $tracelevel) | ||
| 17223 | if defined $::RD_TRACE; | ||
| 17224 | $item{q{xplocationstep}} = $_tok; | ||
| 17225 | push @item, $_tok; | ||
| 17226 | |||
| 17227 | } | ||
| 17228 | |||
| 17229 | |||
| 17230 | |||
| 17231 | Parse::RecDescent::_trace(q{Trying directive: [<skip:"">]}, | ||
| 17232 | Parse::RecDescent::_tracefirst($text), | ||
| 17233 | q{xpstep}, | ||
| 17234 | $tracelevel) | ||
| 17235 | if defined $::RD_TRACE; | ||
| 17236 | $_tok = do { my $oldskip = $skip; $skip=""; $oldskip }; | ||
| 17237 | if (defined($_tok)) | ||
| 17238 | { | ||
| 17239 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 17240 | . $_tok . q{])}, | ||
| 17241 | Parse::RecDescent::_tracefirst($text)) | ||
| 17242 | if defined $::RD_TRACE; | ||
| 17243 | } | ||
| 17244 | else | ||
| 17245 | { | ||
| 17246 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 17247 | Parse::RecDescent::_tracefirst($text)) | ||
| 17248 | if defined $::RD_TRACE; | ||
| 17249 | } | ||
| 17250 | |||
| 17251 | last unless defined $_tok; | ||
| 17252 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 17253 | |||
| 17254 | |||
| 17255 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpfilter]}, | ||
| 17256 | Parse::RecDescent::_tracefirst($text), | ||
| 17257 | q{xpstep}, | ||
| 17258 | $tracelevel) | ||
| 17259 | if defined $::RD_TRACE; | ||
| 17260 | $expectation->is(q{xpfilter})->at($text); | ||
| 17261 | |||
| 17262 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::XML::XSH2::Parser::xpfilter, 0, 1, $_noactions,$expectation,sub { \@arg },undef))) | ||
| 17263 | { | ||
| 17264 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpfilter]>>}, | ||
| 17265 | Parse::RecDescent::_tracefirst($text), | ||
| 17266 | q{xpstep}, | ||
| 17267 | $tracelevel) | ||
| 17268 | if defined $::RD_TRACE; | ||
| 17269 | last; | ||
| 17270 | } | ||
| 17271 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpfilter]<< (} | ||
| 17272 | . @$_tok . q{ times)}, | ||
| 17273 | |||
| 17274 | Parse::RecDescent::_tracefirst($text), | ||
| 17275 | q{xpstep}, | ||
| 17276 | $tracelevel) | ||
| 17277 | if defined $::RD_TRACE; | ||
| 17278 | $item{q{xpfilter(?)}} = $_tok; | ||
| 17279 | push @item, $_tok; | ||
| 17280 | |||
| 17281 | |||
| 17282 | |||
| 17283 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 17284 | Parse::RecDescent::_tracefirst($text), | ||
| 17285 | q{xpstep}, | ||
| 17286 | $tracelevel) | ||
| 17287 | if defined $::RD_TRACE; | ||
| 17288 | |||
| 17289 | |||
| 17290 | $_tok = ($_noactions) ? 0 : do { [ @{$item[1]}, @{$item[3]}] }; | ||
| 17291 | unless (defined $_tok) | ||
| 17292 | { | ||
| 17293 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 17294 | if defined $::RD_TRACE; | ||
| 17295 | last; | ||
| 17296 | } | ||
| 17297 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 17298 | . $_tok . q{])}, | ||
| 17299 | Parse::RecDescent::_tracefirst($text)) | ||
| 17300 | if defined $::RD_TRACE; | ||
| 17301 | push @item, $_tok; | ||
| 17302 | $item{__ACTION1__}=$_tok; | ||
| 17303 | |||
| 17304 | |||
| 17305 | Parse::RecDescent::_trace(q{>>Matched production: [xplocationstep <skip:""> xpfilter]<<}, | ||
| 17306 | Parse::RecDescent::_tracefirst($text), | ||
| 17307 | q{xpstep}, | ||
| 17308 | $tracelevel) | ||
| 17309 | if defined $::RD_TRACE; | ||
| 17310 | |||
| 17311 | |||
| 17312 | |||
| 17313 | $_matched = 1; | ||
| 17314 | last; | ||
| 17315 | } | ||
| 17316 | |||
| 17317 | |||
| 17318 | unless ( $_matched || defined($score) ) | ||
| 17319 | { | ||
| 17320 | |||
| 17321 | |||
| 17322 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 17323 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 17324 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 17325 | q{xpstep}, | ||
| 17326 | $tracelevel) | ||
| 17327 | if defined $::RD_TRACE; | ||
| 17328 | return undef; | ||
| 17329 | } | ||
| 17330 | if (!defined($return) && defined($score)) | ||
| 17331 | { | ||
| 17332 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 17333 | q{xpstep}, | ||
| 17334 | $tracelevel) | ||
| 17335 | if defined $::RD_TRACE; | ||
| 17336 | $return = $score_return; | ||
| 17337 | } | ||
| 17338 | splice @{$thisparser->{errors}}, $err_at; | ||
| 17339 | $return = $item[$#item] unless defined $return; | ||
| 17340 | if (defined $::RD_TRACE) | ||
| 17341 | { | ||
| 17342 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 17343 | $return . q{])}, "", | ||
| 17344 | q{xpstep}, | ||
| 17345 | $tracelevel); | ||
| 17346 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 17347 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 17348 | Parse::RecDescent::_tracefirst($text), | ||
| 17349 | , q{xpstep}, | ||
| 17350 | $tracelevel) | ||
| 17351 | } | ||
| 17352 | $_[1] = $text; | ||
| 17353 | return $return; | ||
| 17354 | } | ||
| 17355 | |||
| 17356 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args, $_itempos) | ||
| 17357 | sub Parse::RecDescent::XML::XSH2::Parser::xpstring | ||
| 17358 | { | ||
| 17359 | my $thisparser = $_[0]; | ||
| 17360 | use vars q{$tracelevel}; | ||
| 17361 | local $tracelevel = ($tracelevel||0)+1; | ||
| 17362 | $ERRORS = 0; | ||
| 17363 | my $thisrule = $thisparser->{"rules"}{"xpstring"}; | ||
| 17364 | |||
| 17365 | Parse::RecDescent::_trace(q{Trying rule: [xpstring]}, | ||
| 17366 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 17367 | q{xpstring}, | ||
| 17368 | $tracelevel) | ||
| 17369 | if defined $::RD_TRACE; | ||
| 17370 | |||
| 17371 | |||
| 17372 | my $err_at = @{$thisparser->{errors}}; | ||
| 17373 | |||
| 17374 | my $score; | ||
| 17375 | my $score_return; | ||
| 17376 | my $_tok; | ||
| 17377 | my $return = undef; | ||
| 17378 | my $_matched=0; | ||
| 17379 | my $commit=0; | ||
| 17380 | my @item = (); | ||
| 17381 | my %item = (); | ||
| 17382 | my $repeating = $_[2]; | ||
| 17383 | my $_noactions = $_[3]; | ||
| 17384 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 17385 | my $_itempos = $_[5]; | ||
| 17386 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 17387 | my $text; | ||
| 17388 | my $lastsep; | ||
| 17389 | my $current_match; | ||
| 17390 | my $expectation = new Parse::RecDescent::Expectation(q{/'(?:\\$\\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\{.*?\\\}|\\(.+?\\))\\\}|\\$(?!\\\{)|[^\\$'])*' | | ||
| 17391 | "(?:\\$\\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\{.*?\\\}|\\(.+?\\))\\\}|\\$(?!\\\{)|[^\\$"])*"/x}); | ||
| 17392 | $expectation->at($_[1]); | ||
| 17393 | |||
| 17394 | my $thisoffset; | ||
| 17395 | tie $thisoffset, q{Parse::RecDescent::OffsetCounter}, \$text, $thisparser; | ||
| 17396 | |||
| 17397 | my $thiscolumn; | ||
| 17398 | tie $thiscolumn, q{Parse::RecDescent::ColCounter}, \$text, $thisparser; | ||
| 17399 | |||
| 17400 | my $thisline; | ||
| 17401 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 17402 | |||
| 17403 | |||
| 17404 | |||
| 17405 | while (!$_matched && !$commit) | ||
| 17406 | { | ||
| 17407 | |||
| 17408 | Parse::RecDescent::_trace(q{Trying production: [/'(?:\\$\\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\{.*?\\\}|\\(.+?\\))\\\}|\\$(?!\\\{)|[^\\$'])*' | | ||
| 17409 | "(?:\\$\\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\{.*?\\\}|\\(.+?\\))\\\}|\\$(?!\\\{)|[^\\$"])*"/x]}, | ||
| 17410 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 17411 | q{xpstring}, | ||
| 17412 | $tracelevel) | ||
| 17413 | if defined $::RD_TRACE; | ||
| 17414 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 17415 | $text = $_[1]; | ||
| 17416 | my $_savetext; | ||
| 17417 | @item = (q{xpstring}); | ||
| 17418 | %item = (__RULE__ => q{xpstring}); | ||
| 17419 | my $repcount = 0; | ||
| 17420 | |||
| 17421 | |||
| 17422 | Parse::RecDescent::_trace(q{Trying terminal: [/'(?:\\$\\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\{.*?\\\}|\\(.+?\\))\\\}|\\$(?!\\\{)|[^\\$'])*' | | ||
| 17423 | "(?:\\$\\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\{.*?\\\}|\\(.+?\\))\\\}|\\$(?!\\\{)|[^\\$"])*"/x]}, Parse::RecDescent::_tracefirst($text), | ||
| 17424 | q{xpstring}, | ||
| 17425 | $tracelevel) | ||
| 17426 | if defined $::RD_TRACE; | ||
| 17427 | undef $lastsep; | ||
| 17428 | $expectation->is(q{})->at($text); | ||
| 17429 | |||
| 17430 | |||
| 17431 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ m/\A(?:'(?:\$\{(?:\$?[a-zA-Z_][a-zA-Z0-9_]*|\{.*?\}|\(.+?\))\}|\$(?!\{)|[^\$'])*' | | ||
| 17432 | "(?:\$\{(?:\$?[a-zA-Z_][a-zA-Z0-9_]*|\{.*?\}|\(.+?\))\}|\$(?!\{)|[^\$"])*")/x) | ||
| 17433 | { | ||
| 17434 | $text = $lastsep . $text if defined $lastsep; | ||
| 17435 | $expectation->failed(); | ||
| 17436 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 17437 | Parse::RecDescent::_tracefirst($text)) | ||
| 17438 | if defined $::RD_TRACE; | ||
| 17439 | |||
| 17440 | last; | ||
| 17441 | } | ||
| 17442 | $current_match = substr($text, $-[0], $+[0] - $-[0]); | ||
| 17443 | substr($text,0,length($current_match),q{}); | ||
| 17444 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 17445 | . $current_match . q{])}, | ||
| 17446 | Parse::RecDescent::_tracefirst($text)) | ||
| 17447 | if defined $::RD_TRACE; | ||
| 17448 | push @item, $item{__PATTERN1__}=$current_match; | ||
| 17449 | |||
| 17450 | |||
| 17451 | Parse::RecDescent::_trace(q{>>Matched production: [/'(?:\\$\\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\{.*?\\\}|\\(.+?\\))\\\}|\\$(?!\\\{)|[^\\$'])*' | | ||
| 17452 | "(?:\\$\\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\{.*?\\\}|\\(.+?\\))\\\}|\\$(?!\\\{)|[^\\$"])*"/x]<<}, | ||
| 17453 | Parse::RecDescent::_tracefirst($text), | ||
| 17454 | q{xpstring}, | ||
| 17455 | $tracelevel) | ||
| 17456 | if defined $::RD_TRACE; | ||
| 17457 | |||
| 17458 | |||
| 17459 | |||
| 17460 | $_matched = 1; | ||
| 17461 | last; | ||
| 17462 | } | ||
| 17463 | |||
| 17464 | |||
| 17465 | unless ( $_matched || defined($score) ) | ||
| 17466 | { | ||
| 17467 | |||
| 17468 | |||
| 17469 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 17470 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 17471 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 17472 | q{xpstring}, | ||
| 17473 | $tracelevel) | ||
| 17474 | if defined $::RD_TRACE; | ||
| 17475 | return undef; | ||
| 17476 | } | ||
| 17477 | if (!defined($return) && defined($score)) | ||
| 17478 | { | ||
| 17479 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 17480 | q{xpstring}, | ||
| 17481 | $tracelevel) | ||
| 17482 | if defined $::RD_TRACE; | ||
| 17483 | $return = $score_return; | ||
| 17484 | } | ||
| 17485 | splice @{$thisparser->{errors}}, $err_at; | ||
| 17486 | $return = $item[$#item] unless defined $return; | ||
| 17487 | if (defined $::RD_TRACE) | ||
| 17488 | { | ||
| 17489 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 17490 | $return . q{])}, "", | ||
| 17491 | q{xpstring}, | ||
| 17492 | $tracelevel); | ||
| 17493 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 17494 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 17495 | Parse::RecDescent::_tracefirst($text), | ||
| 17496 | , q{xpstring}, | ||
| 17497 | $tracelevel) | ||
| 17498 | } | ||
| 17499 | $_[1] = $text; | ||
| 17500 | return $return; | ||
| 17501 | } | ||
| 17502 | } | ||
| 17503 | package XML::XSH2::Parser; sub new { my $self = bless( { | ||
| 17504 | '_AUTOACTION' => undef, | ||
| 17505 | '_AUTOTREE' => undef, | ||
| 17506 | '_check' => { | ||
| 17507 | 'itempos' => !!0, | ||
| 17508 | 'prevcolumn' => !!0, | ||
| 17509 | 'prevline' => !!0, | ||
| 17510 | 'prevoffset' => !!0, | ||
| 17511 | 'thiscolumn' => !!1, | ||
| 17512 | 'thisoffset' => !!1 | ||
| 17513 | }, | ||
| 17514 | 'localvars' => '', | ||
| 17515 | 'namespace' => 'Parse::RecDescent::XML::XSH2::Parser', | ||
| 17516 | 'rules' => { | ||
| 17517 | 'ID' => bless( { | ||
| 17518 | 'calls' => [], | ||
| 17519 | 'changed' => 0, | ||
| 17520 | 'impcount' => 0, | ||
| 17521 | 'line' => 169, | ||
| 17522 | 'name' => 'ID', | ||
| 17523 | 'opcount' => 0, | ||
| 17524 | 'prods' => [ | ||
| 17525 | bless( { | ||
| 17526 | 'actcount' => 0, | ||
| 17527 | 'dircount' => 0, | ||
| 17528 | 'error' => undef, | ||
| 17529 | 'items' => [ | ||
| 17530 | bless( { | ||
| 17531 | 'description' => '/[a-zA-Z_][a-zA-Z0-9_]*/', | ||
| 17532 | 'hashname' => '__PATTERN1__', | ||
| 17533 | 'ldelim' => '/', | ||
| 17534 | 'line' => 170, | ||
| 17535 | 'lookahead' => 0, | ||
| 17536 | 'mod' => '', | ||
| 17537 | 'pattern' => '[a-zA-Z_][a-zA-Z0-9_]*', | ||
| 17538 | 'rdelim' => '/' | ||
| 17539 | }, 'Parse::RecDescent::Token' ) | ||
| 17540 | ], | ||
| 17541 | 'line' => undef, | ||
| 17542 | 'number' => 0, | ||
| 17543 | 'patcount' => 1, | ||
| 17544 | 'strcount' => 0, | ||
| 17545 | 'uncommit' => undef | ||
| 17546 | }, 'Parse::RecDescent::Production' ) | ||
| 17547 | ], | ||
| 17548 | 'vars' => '' | ||
| 17549 | }, 'Parse::RecDescent::Rule' ), | ||
| 17550 | '_alternation_1_of_production_10_of_rule_command' => bless( { | ||
| 17551 | 'calls' => [ | ||
| 17552 | '_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command' | ||
| 17553 | ], | ||
| 17554 | 'changed' => 0, | ||
| 17555 | 'impcount' => 1, | ||
| 17556 | 'line' => 439, | ||
| 17557 | 'name' => '_alternation_1_of_production_10_of_rule_command', | ||
| 17558 | 'opcount' => 0, | ||
| 17559 | 'prods' => [ | ||
| 17560 | bless( { | ||
| 17561 | 'actcount' => 1, | ||
| 17562 | 'dircount' => 0, | ||
| 17563 | 'error' => undef, | ||
| 17564 | 'items' => [ | ||
| 17565 | bless( { | ||
| 17566 | 'argcode' => undef, | ||
| 17567 | 'expected' => '/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/', | ||
| 17568 | 'line' => 446, | ||
| 17569 | 'lookahead' => 0, | ||
| 17570 | 'matchrule' => 0, | ||
| 17571 | 'max' => 100000000, | ||
| 17572 | 'min' => 0, | ||
| 17573 | 'repspec' => 's?', | ||
| 17574 | 'subrule' => '_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command' | ||
| 17575 | }, 'Parse::RecDescent::Repetition' ), | ||
| 17576 | bless( { | ||
| 17577 | 'code' => '{ [ map { @$_ } @{$item[1]} ] }', | ||
| 17578 | 'hashname' => '__ACTION1__', | ||
| 17579 | 'line' => 446, | ||
| 17580 | 'lookahead' => 0 | ||
| 17581 | }, 'Parse::RecDescent::Action' ) | ||
| 17582 | ], | ||
| 17583 | 'line' => undef, | ||
| 17584 | 'number' => 0, | ||
| 17585 | 'patcount' => 0, | ||
| 17586 | 'strcount' => 0, | ||
| 17587 | 'uncommit' => undef | ||
| 17588 | }, 'Parse::RecDescent::Production' ) | ||
| 17589 | ], | ||
| 17590 | 'vars' => '' | ||
| 17591 | }, 'Parse::RecDescent::Rule' ), | ||
| 17592 | '_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command' => bless( { | ||
| 17593 | 'calls' => [ | ||
| 17594 | 'filename', | ||
| 17595 | 'exp', | ||
| 17596 | 'enc_string' | ||
| 17597 | ], | ||
| 17598 | 'changed' => 0, | ||
| 17599 | 'impcount' => 0, | ||
| 17600 | 'line' => 440, | ||
| 17601 | 'name' => '_alternation_1_of_production_1_of_rule__alternation_1_of_production_10_of_rule_command', | ||
| 17602 | 'opcount' => 0, | ||
| 17603 | 'prods' => [ | ||
| 17604 | bless( { | ||
| 17605 | 'actcount' => 1, | ||
| 17606 | 'dircount' => 0, | ||
| 17607 | 'error' => undef, | ||
| 17608 | 'items' => [ | ||
| 17609 | bless( { | ||
| 17610 | 'description' => '/--input-file|:f/', | ||
| 17611 | 'hashname' => '__PATTERN1__', | ||
| 17612 | 'ldelim' => '/', | ||
| 17613 | 'line' => 440, | ||
| 17614 | 'lookahead' => 0, | ||
| 17615 | 'mod' => '', | ||
| 17616 | 'pattern' => '--input-file|:f', | ||
| 17617 | 'rdelim' => '/' | ||
| 17618 | }, 'Parse::RecDescent::Token' ), | ||
| 17619 | bless( { | ||
| 17620 | 'argcode' => undef, | ||
| 17621 | 'implicit' => undef, | ||
| 17622 | 'line' => 440, | ||
| 17623 | 'lookahead' => 0, | ||
| 17624 | 'matchrule' => 0, | ||
| 17625 | 'subrule' => 'filename' | ||
| 17626 | }, 'Parse::RecDescent::Subrule' ), | ||
| 17627 | bless( { | ||
| 17628 | 'code' => '{ [ \'string/input-file\' => $item[2] ] }', | ||
| 17629 | 'hashname' => '__ACTION1__', | ||
| 17630 | 'line' => 440, | ||
| 17631 | 'lookahead' => 0 | ||
| 17632 | }, 'Parse::RecDescent::Action' ) | ||
| 17633 | ], | ||
| 17634 | 'line' => undef, | ||
| 17635 | 'number' => 0, | ||
| 17636 | 'patcount' => 1, | ||
| 17637 | 'strcount' => 0, | ||
| 17638 | 'uncommit' => undef | ||
| 17639 | }, 'Parse::RecDescent::Production' ), | ||
| 17640 | bless( { | ||
| 17641 | 'actcount' => 1, | ||
| 17642 | 'dircount' => 0, | ||
| 17643 | 'error' => undef, | ||
| 17644 | 'items' => [ | ||
| 17645 | bless( { | ||
| 17646 | 'description' => '/--input-pipe|:p/', | ||
| 17647 | 'hashname' => '__PATTERN1__', | ||
| 17648 | 'ldelim' => '/', | ||
| 17649 | 'line' => 441, | ||
| 17650 | 'lookahead' => 0, | ||
| 17651 | 'mod' => '', | ||
| 17652 | 'pattern' => '--input-pipe|:p', | ||
| 17653 | 'rdelim' => '/' | ||
| 17654 | }, 'Parse::RecDescent::Token' ), | ||
| 17655 | bless( { | ||
| 17656 | 'argcode' => undef, | ||
| 17657 | 'implicit' => undef, | ||
| 17658 | 'line' => 441, | ||
| 17659 | 'lookahead' => 0, | ||
| 17660 | 'matchrule' => 0, | ||
| 17661 | 'subrule' => 'filename' | ||
| 17662 | }, 'Parse::RecDescent::Subrule' ), | ||
| 17663 | bless( { | ||
| 17664 | 'code' => '{ [ \'string/input-pipe\' => $item[2] ] }', | ||
| 17665 | 'hashname' => '__ACTION1__', | ||
| 17666 | 'line' => 441, | ||
| 17667 | 'lookahead' => 0 | ||
| 17668 | }, 'Parse::RecDescent::Action' ) | ||
| 17669 | ], | ||
| 17670 | 'line' => 441, | ||
| 17671 | 'number' => 1, | ||
| 17672 | 'patcount' => 1, | ||
| 17673 | 'strcount' => 0, | ||
| 17674 | 'uncommit' => undef | ||
| 17675 | }, 'Parse::RecDescent::Production' ), | ||
| 17676 | bless( { | ||
| 17677 | 'actcount' => 1, | ||
| 17678 | 'dircount' => 0, | ||
| 17679 | 'error' => undef, | ||
| 17680 | 'items' => [ | ||
| 17681 | bless( { | ||
| 17682 | 'description' => '/--input-string|:s/', | ||
| 17683 | 'hashname' => '__PATTERN1__', | ||
| 17684 | 'ldelim' => '/', | ||
| 17685 | 'line' => 442, | ||
| 17686 | 'lookahead' => 0, | ||
| 17687 | 'mod' => '', | ||
| 17688 | 'pattern' => '--input-string|:s', | ||
| 17689 | 'rdelim' => '/' | ||
| 17690 | }, 'Parse::RecDescent::Token' ), | ||
| 17691 | bless( { | ||
| 17692 | 'argcode' => undef, | ||
| 17693 | 'implicit' => undef, | ||
| 17694 | 'line' => 442, | ||
| 17695 | 'lookahead' => 0, | ||
| 17696 | 'matchrule' => 0, | ||
| 17697 | 'subrule' => 'exp' | ||
| 17698 | }, 'Parse::RecDescent::Subrule' ), | ||
| 17699 | bless( { | ||
| 17700 | 'code' => '{ [ \'exp/input-string\' => $item[2] ] }', | ||
| 17701 | 'hashname' => '__ACTION1__', | ||
| 17702 | 'line' => 442, | ||
| 17703 | 'lookahead' => 0 | ||
| 17704 | }, 'Parse::RecDescent::Action' ) | ||
| 17705 | ], | ||
| 17706 | 'line' => 442, | ||
| 17707 | 'number' => 2, | ||
| 17708 | 'patcount' => 1, | ||
| 17709 | 'strcount' => 0, | ||
| 17710 | 'uncommit' => undef | ||
| 17711 | }, 'Parse::RecDescent::Production' ), | ||
| 17712 | bless( { | ||
| 17713 | 'actcount' => 1, | ||
| 17714 | 'dircount' => 0, | ||
| 17715 | 'error' => undef, | ||
| 17716 | 'items' => [ | ||
| 17717 | bless( { | ||
| 17718 | 'description' => '/--output-file|:F/', | ||
| 17719 | 'hashname' => '__PATTERN1__', | ||
| 17720 | 'ldelim' => '/', | ||
| 17721 | 'line' => 443, | ||
| 17722 | 'lookahead' => 0, | ||
| 17723 | 'mod' => '', | ||
| 17724 | 'pattern' => '--output-file|:F', | ||
| 17725 | 'rdelim' => '/' | ||
| 17726 | }, 'Parse::RecDescent::Token' ), | ||
| 17727 | bless( { | ||
| 17728 | 'argcode' => undef, | ||
| 17729 | 'implicit' => undef, | ||
| 17730 | 'line' => 443, | ||
| 17731 | 'lookahead' => 0, | ||
| 17732 | 'matchrule' => 0, | ||
| 17733 | 'subrule' => 'filename' | ||
| 17734 | }, 'Parse::RecDescent::Subrule' ), | ||
| 17735 | bless( { | ||
| 17736 | 'code' => '{ [ \'string/output-file\' => $item[2] ] }', | ||
| 17737 | 'hashname' => '__ACTION1__', | ||
| 17738 | 'line' => 443, | ||
| 17739 | 'lookahead' => 0 | ||
| 17740 | }, 'Parse::RecDescent::Action' ) | ||
| 17741 | ], | ||
| 17742 | 'line' => 443, | ||
| 17743 | 'number' => 3, | ||
| 17744 | 'patcount' => 1, | ||
| 17745 | 'strcount' => 0, | ||
| 17746 | 'uncommit' => undef | ||
| 17747 | }, 'Parse::RecDescent::Production' ), | ||
| 17748 | bless( { | ||
| 17749 | 'actcount' => 1, | ||
| 17750 | 'dircount' => 0, | ||
| 17751 | 'error' => undef, | ||
| 17752 | 'items' => [ | ||
| 17753 | bless( { | ||
| 17754 | 'description' => '/--output-encoding|:E/', | ||
| 17755 | 'hashname' => '__PATTERN1__', | ||
| 17756 | 'ldelim' => '/', | ||
| 17757 | 'line' => 444, | ||
| 17758 | 'lookahead' => 0, | ||
| 17759 | 'mod' => '', | ||
| 17760 | 'pattern' => '--output-encoding|:E', | ||
| 17761 | 'rdelim' => '/' | ||
| 17762 | }, 'Parse::RecDescent::Token' ), | ||
| 17763 | bless( { | ||
| 17764 | 'argcode' => undef, | ||
| 17765 | 'implicit' => undef, | ||
| 17766 | 'line' => 444, | ||
| 17767 | 'lookahead' => 0, | ||
| 17768 | 'matchrule' => 0, | ||
| 17769 | 'subrule' => 'enc_string' | ||
| 17770 | }, 'Parse::RecDescent::Subrule' ), | ||
| 17771 | bless( { | ||
| 17772 | 'code' => '{ [ \'string/output-encoding\' => $item[2] ] }', | ||
| 17773 | 'hashname' => '__ACTION1__', | ||
| 17774 | 'line' => 444, | ||
| 17775 | 'lookahead' => 0 | ||
| 17776 | }, 'Parse::RecDescent::Action' ) | ||
| 17777 | ], | ||
| 17778 | 'line' => 444, | ||
| 17779 | 'number' => 4, | ||
| 17780 | 'patcount' => 1, | ||
| 17781 | 'strcount' => 0, | ||
| 17782 | 'uncommit' => undef | ||
| 17783 | }, 'Parse::RecDescent::Production' ), | ||
| 17784 | bless( { | ||
| 17785 | 'actcount' => 1, | ||
| 17786 | 'dircount' => 0, | ||
| 17787 | 'error' => undef, | ||
| 17788 | 'items' => [ | ||
| 17789 | bless( { | ||
| 17790 | 'description' => '/--output-pipe|:P/', | ||
| 17791 | 'hashname' => '__PATTERN1__', | ||
| 17792 | 'ldelim' => '/', | ||
| 17793 | 'line' => 445, | ||
| 17794 | 'lookahead' => 0, | ||
| 17795 | 'mod' => '', | ||
| 17796 | 'pattern' => '--output-pipe|:P', | ||
| 17797 | 'rdelim' => '/' | ||
| 17798 | }, 'Parse::RecDescent::Token' ), | ||
| 17799 | bless( { | ||
| 17800 | 'argcode' => undef, | ||
| 17801 | 'implicit' => undef, | ||
| 17802 | 'line' => 445, | ||
| 17803 | 'lookahead' => 0, | ||
| 17804 | 'matchrule' => 0, | ||
| 17805 | 'subrule' => 'filename' | ||
| 17806 | }, 'Parse::RecDescent::Subrule' ), | ||
| 17807 | bless( { | ||
| 17808 | 'code' => '{ [ \'string/output-pipe\' => $item[2] ] }', | ||
| 17809 | 'hashname' => '__ACTION1__', | ||
| 17810 | 'line' => 445, | ||
| 17811 | 'lookahead' => 0 | ||
| 17812 | }, 'Parse::RecDescent::Action' ) | ||
| 17813 | ], | ||
| 17814 | 'line' => 445, | ||
| 17815 | 'number' => 5, | ||
| 17816 | 'patcount' => 1, | ||
| 17817 | 'strcount' => 0, | ||
| 17818 | 'uncommit' => undef | ||
| 17819 | }, 'Parse::RecDescent::Production' ), | ||
| 17820 | bless( { | ||
| 17821 | 'actcount' => 1, | ||
| 17822 | 'dircount' => 0, | ||
| 17823 | 'error' => undef, | ||
| 17824 | 'items' => [ | ||
| 17825 | bless( { | ||
| 17826 | 'description' => '/--output-string|:S/', | ||
| 17827 | 'hashname' => '__PATTERN1__', | ||
| 17828 | 'ldelim' => '/', | ||
| 17829 | 'line' => 446, | ||
| 17830 | 'lookahead' => 0, | ||
| 17831 | 'mod' => '', | ||
| 17832 | 'pattern' => '--output-string|:S', | ||
| 17833 | 'rdelim' => '/' | ||
| 17834 | }, 'Parse::RecDescent::Token' ), | ||
| 17835 | bless( { | ||
| 17836 | 'code' => '{ [ \'/output-string\' => 1 ] }', | ||
| 17837 | 'hashname' => '__ACTION1__', | ||
| 17838 | 'line' => 446, | ||
| 17839 | 'lookahead' => 0 | ||
| 17840 | }, 'Parse::RecDescent::Action' ) | ||
| 17841 | ], | ||
| 17842 | 'line' => 446, | ||
| 17843 | 'number' => 6, | ||
| 17844 | 'patcount' => 1, | ||
| 17845 | 'strcount' => 0, | ||
| 17846 | 'uncommit' => undef | ||
| 17847 | }, 'Parse::RecDescent::Production' ) | ||
| 17848 | ], | ||
| 17849 | 'vars' => '' | ||
| 17850 | }, 'Parse::RecDescent::Rule' ), | ||
| 17851 | '_alternation_1_of_production_1_of_rule_local_var' => bless( { | ||
| 17852 | 'calls' => [], | ||
| 17853 | 'changed' => 0, | ||
| 17854 | 'impcount' => 0, | ||
| 17855 | 'line' => 446, | ||
| 17856 | 'name' => '_alternation_1_of_production_1_of_rule_local_var', | ||
| 17857 | 'opcount' => 0, | ||
| 17858 | 'prods' => [ | ||
| 17859 | bless( { | ||
| 17860 | 'actcount' => 0, | ||
| 17861 | 'dircount' => 0, | ||
| 17862 | 'error' => undef, | ||
| 17863 | 'items' => [ | ||
| 17864 | bless( { | ||
| 17865 | 'description' => '/(local|my)\\\\s/', | ||
| 17866 | 'hashname' => '__PATTERN1__', | ||
| 17867 | 'ldelim' => '/', | ||
| 17868 | 'line' => 446, | ||
| 17869 | 'lookahead' => 0, | ||
| 17870 | 'mod' => '', | ||
| 17871 | 'pattern' => '(local|my)\\s', | ||
| 17872 | 'rdelim' => '/' | ||
| 17873 | }, 'Parse::RecDescent::Token' ) | ||
| 17874 | ], | ||
| 17875 | 'line' => undef, | ||
| 17876 | 'number' => 0, | ||
| 17877 | 'patcount' => 1, | ||
| 17878 | 'strcount' => 0, | ||
| 17879 | 'uncommit' => undef | ||
| 17880 | }, 'Parse::RecDescent::Production' ) | ||
| 17881 | ], | ||
| 17882 | 'vars' => '' | ||
| 17883 | }, 'Parse::RecDescent::Rule' ), | ||
| 17884 | '_alternation_1_of_production_1_of_rule_xpcont' => bless( { | ||
| 17885 | 'calls' => [ | ||
| 17886 | 'xpfilters', | ||
| 17887 | 'xpbrackets' | ||
| 17888 | ], | ||
| 17889 | 'changed' => 0, | ||
| 17890 | 'impcount' => 0, | ||
| 17891 | 'line' => 445, | ||
| 17892 | 'name' => '_alternation_1_of_production_1_of_rule_xpcont', | ||
| 17893 | 'opcount' => 0, | ||
| 17894 | 'prods' => [ | ||
| 17895 | bless( { | ||
| 17896 | 'actcount' => 0, | ||
| 17897 | 'dircount' => 0, | ||
| 17898 | 'error' => undef, | ||
| 17899 | 'items' => [ | ||
| 17900 | bless( { | ||
| 17901 | 'argcode' => undef, | ||
| 17902 | 'implicit' => undef, | ||
| 17903 | 'line' => 445, | ||
| 17904 | 'lookahead' => 0, | ||
| 17905 | 'matchrule' => 0, | ||
| 17906 | 'subrule' => 'xpfilters' | ||
| 17907 | }, 'Parse::RecDescent::Subrule' ) | ||
| 17908 | ], | ||
| 17909 | 'line' => undef, | ||
| 17910 | 'number' => 0, | ||
| 17911 | 'patcount' => 0, | ||
| 17912 | 'strcount' => 0, | ||
| 17913 | 'uncommit' => undef | ||
| 17914 | }, 'Parse::RecDescent::Production' ), | ||
| 17915 | bless( { | ||
| 17916 | 'actcount' => 0, | ||
| 17917 | 'dircount' => 0, | ||
| 17918 | 'error' => undef, | ||
| 17919 | 'items' => [ | ||
| 17920 | bless( { | ||
| 17921 | 'argcode' => undef, | ||
| 17922 | 'implicit' => undef, | ||
| 17923 | 'line' => 446, | ||
| 17924 | 'lookahead' => 0, | ||
| 17925 | 'matchrule' => 0, | ||
| 17926 | 'subrule' => 'xpbrackets' | ||
| 17927 | }, 'Parse::RecDescent::Subrule' ) | ||
| 17928 | ], | ||
| 17929 | 'line' => 446, | ||
| 17930 | 'number' => 1, | ||
| 17931 | 'patcount' => 0, | ||
| 17932 | 'strcount' => 0, | ||
| 17933 | 'uncommit' => undef | ||
| 17934 | }, 'Parse::RecDescent::Production' ) | ||
| 17935 | ], | ||
| 17936 | 'vars' => '' | ||
| 17937 | }, 'Parse::RecDescent::Rule' ), | ||
| 17938 | '_alternation_1_of_production_1_of_rule_xpintercont' => bless( { | ||
| 17939 | 'calls' => [ | ||
| 17940 | 'xpfilters', | ||
| 17941 | 'xpbrackets' | ||
| 17942 | ], | ||
| 17943 | 'changed' => 0, | ||
| 17944 | 'impcount' => 0, | ||
| 17945 | 'line' => 445, | ||
| 17946 | 'name' => '_alternation_1_of_production_1_of_rule_xpintercont', | ||
| 17947 | 'opcount' => 0, | ||
| 17948 | 'prods' => [ | ||
| 17949 | bless( { | ||
| 17950 | 'actcount' => 0, | ||
| 17951 | 'dircount' => 0, | ||
| 17952 | 'error' => undef, | ||
| 17953 | 'items' => [ | ||
| 17954 | bless( { | ||
| 17955 | 'argcode' => undef, | ||
| 17956 | 'implicit' => undef, | ||
| 17957 | 'line' => 445, | ||
| 17958 | 'lookahead' => 0, | ||
| 17959 | 'matchrule' => 0, | ||
| 17960 | 'subrule' => 'xpfilters' | ||
| 17961 | }, 'Parse::RecDescent::Subrule' ) | ||
| 17962 | ], | ||
| 17963 | 'line' => undef, | ||
| 17964 | 'number' => 0, | ||
| 17965 | 'patcount' => 0, | ||
| 17966 | 'strcount' => 0, | ||
| 17967 | 'uncommit' => undef | ||
| 17968 | }, 'Parse::RecDescent::Production' ), | ||
| 17969 | bless( { | ||
| 17970 | 'actcount' => 0, | ||
| 17971 | 'dircount' => 0, | ||
| 17972 | 'error' => undef, | ||
| 17973 | 'items' => [ | ||
| 17974 | bless( { | ||
| 17975 | 'argcode' => undef, | ||
| 17976 | 'implicit' => undef, | ||
| 17977 | 'line' => 446, | ||
| 17978 | 'lookahead' => 0, | ||
| 17979 | 'matchrule' => 0, | ||
| 17980 | 'subrule' => 'xpbrackets' | ||
| 17981 | }, 'Parse::RecDescent::Subrule' ) | ||
| 17982 | ], | ||
| 17983 | 'line' => 446, | ||
| 17984 | 'number' => 1, | ||
| 17985 | 'patcount' => 0, | ||
| 17986 | 'strcount' => 0, | ||
| 17987 | 'uncommit' => undef | ||
| 17988 | }, 'Parse::RecDescent::Production' ) | ||
| 17989 | ], | ||
| 17990 | 'vars' => '' | ||
| 17991 | }, 'Parse::RecDescent::Rule' ), | ||
| 17992 | '_alternation_1_of_production_2_of_rule_command' => bless( { | ||
| 17993 | 'calls' => [ | ||
| 17994 | 'loose_exp', | ||
| 17995 | 'command' | ||
| 17996 | ], | ||
| 17997 | 'changed' => 0, | ||
| 17998 | 'impcount' => 0, | ||
| 17999 | 'line' => 441, | ||
| 18000 | 'name' => '_alternation_1_of_production_2_of_rule_command', | ||
| 18001 | 'opcount' => 0, | ||
| 18002 | 'prods' => [ | ||
| 18003 | bless( { | ||
| 18004 | 'actcount' => 1, | ||
| 18005 | 'dircount' => 1, | ||
| 18006 | 'error' => undef, | ||
| 18007 | 'items' => [ | ||
| 18008 | bless( { | ||
| 18009 | 'description' => '/(?:[\\\\-\\\\+\\\\*\\\\/%x.]|\\\\|\\\\||\\\\&\\\\&)?=/', | ||
| 18010 | 'hashname' => '__PATTERN1__', | ||
| 18011 | 'ldelim' => '/', | ||
| 18012 | 'line' => 441, | ||
| 18013 | 'lookahead' => 0, | ||
| 18014 | 'mod' => '', | ||
| 18015 | 'pattern' => '(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?=', | ||
| 18016 | 'rdelim' => '/' | ||
| 18017 | }, 'Parse::RecDescent::Token' ), | ||
| 18018 | bless( { | ||
| 18019 | 'code' => '$commit = 1', | ||
| 18020 | 'hashname' => '__DIRECTIVE1__', | ||
| 18021 | 'line' => 441, | ||
| 18022 | 'lookahead' => 0, | ||
| 18023 | 'name' => '<commit>' | ||
| 18024 | }, 'Parse::RecDescent::Directive' ), | ||
| 18025 | bless( { | ||
| 18026 | 'argcode' => undef, | ||
| 18027 | 'implicit' => undef, | ||
| 18028 | 'line' => 441, | ||
| 18029 | 'lookahead' => 0, | ||
| 18030 | 'matchrule' => 0, | ||
| 18031 | 'subrule' => 'loose_exp' | ||
| 18032 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18033 | bless( { | ||
| 18034 | 'code' => '{ [\'xpath_assign\',$item[3],$item[1]] }', | ||
| 18035 | 'hashname' => '__ACTION1__', | ||
| 18036 | 'line' => 442, | ||
| 18037 | 'lookahead' => 0 | ||
| 18038 | }, 'Parse::RecDescent::Action' ) | ||
| 18039 | ], | ||
| 18040 | 'line' => undef, | ||
| 18041 | 'number' => 0, | ||
| 18042 | 'patcount' => 1, | ||
| 18043 | 'strcount' => 0, | ||
| 18044 | 'uncommit' => undef | ||
| 18045 | }, 'Parse::RecDescent::Production' ), | ||
| 18046 | bless( { | ||
| 18047 | 'actcount' => 1, | ||
| 18048 | 'dircount' => 0, | ||
| 18049 | 'error' => undef, | ||
| 18050 | 'items' => [ | ||
| 18051 | bless( { | ||
| 18052 | 'description' => '/\\\\s*(?:[\\\\-\\\\+\\\\*\\\\/%x.]|\\\\|\\\\||\\\\&\\\\&)?:=/', | ||
| 18053 | 'hashname' => '__PATTERN1__', | ||
| 18054 | 'ldelim' => '/', | ||
| 18055 | 'line' => 444, | ||
| 18056 | 'lookahead' => 0, | ||
| 18057 | 'mod' => '', | ||
| 18058 | 'pattern' => '\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:=', | ||
| 18059 | 'rdelim' => '/' | ||
| 18060 | }, 'Parse::RecDescent::Token' ), | ||
| 18061 | bless( { | ||
| 18062 | 'argcode' => undef, | ||
| 18063 | 'implicit' => undef, | ||
| 18064 | 'line' => 444, | ||
| 18065 | 'lookahead' => 0, | ||
| 18066 | 'matchrule' => 0, | ||
| 18067 | 'subrule' => 'command' | ||
| 18068 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18069 | bless( { | ||
| 18070 | 'code' => '{ [\'command_assign\',$item[2],$item[1]] }', | ||
| 18071 | 'hashname' => '__ACTION1__', | ||
| 18072 | 'line' => 445, | ||
| 18073 | 'lookahead' => 0 | ||
| 18074 | }, 'Parse::RecDescent::Action' ) | ||
| 18075 | ], | ||
| 18076 | 'line' => 444, | ||
| 18077 | 'number' => 1, | ||
| 18078 | 'patcount' => 1, | ||
| 18079 | 'strcount' => 0, | ||
| 18080 | 'uncommit' => undef | ||
| 18081 | }, 'Parse::RecDescent::Production' ) | ||
| 18082 | ], | ||
| 18083 | 'vars' => '' | ||
| 18084 | }, 'Parse::RecDescent::Rule' ), | ||
| 18085 | 'block' => bless( { | ||
| 18086 | 'calls' => [ | ||
| 18087 | 'complex_command' | ||
| 18088 | ], | ||
| 18089 | 'changed' => 0, | ||
| 18090 | 'impcount' => 0, | ||
| 18091 | 'line' => 130, | ||
| 18092 | 'name' => 'block', | ||
| 18093 | 'opcount' => 0, | ||
| 18094 | 'prods' => [ | ||
| 18095 | bless( { | ||
| 18096 | 'actcount' => 1, | ||
| 18097 | 'dircount' => 1, | ||
| 18098 | 'error' => undef, | ||
| 18099 | 'items' => [ | ||
| 18100 | bless( { | ||
| 18101 | 'description' => '\'\\{\'', | ||
| 18102 | 'hashname' => '__STRING1__', | ||
| 18103 | 'line' => 131, | ||
| 18104 | 'lookahead' => 0, | ||
| 18105 | 'pattern' => '{' | ||
| 18106 | }, 'Parse::RecDescent::Literal' ), | ||
| 18107 | bless( { | ||
| 18108 | 'code' => '$commit = 1', | ||
| 18109 | 'hashname' => '__DIRECTIVE1__', | ||
| 18110 | 'line' => 131, | ||
| 18111 | 'lookahead' => 0, | ||
| 18112 | 'name' => '<commit>' | ||
| 18113 | }, 'Parse::RecDescent::Directive' ), | ||
| 18114 | bless( { | ||
| 18115 | 'argcode' => undef, | ||
| 18116 | 'expected' => undef, | ||
| 18117 | 'line' => 131, | ||
| 18118 | 'lookahead' => 0, | ||
| 18119 | 'matchrule' => 0, | ||
| 18120 | 'max' => 100000000, | ||
| 18121 | 'min' => 1, | ||
| 18122 | 'repspec' => 's', | ||
| 18123 | 'subrule' => 'complex_command' | ||
| 18124 | }, 'Parse::RecDescent::Repetition' ), | ||
| 18125 | bless( { | ||
| 18126 | 'description' => '\'\\}\'', | ||
| 18127 | 'hashname' => '__STRING2__', | ||
| 18128 | 'line' => 131, | ||
| 18129 | 'lookahead' => 0, | ||
| 18130 | 'pattern' => '}' | ||
| 18131 | }, 'Parse::RecDescent::Literal' ), | ||
| 18132 | bless( { | ||
| 18133 | 'code' => '{ [grep ref,@{$item[3]}] }', | ||
| 18134 | 'hashname' => '__ACTION1__', | ||
| 18135 | 'line' => 132, | ||
| 18136 | 'lookahead' => 0 | ||
| 18137 | }, 'Parse::RecDescent::Action' ) | ||
| 18138 | ], | ||
| 18139 | 'line' => undef, | ||
| 18140 | 'number' => 0, | ||
| 18141 | 'patcount' => 0, | ||
| 18142 | 'strcount' => 2, | ||
| 18143 | 'uncommit' => undef | ||
| 18144 | }, 'Parse::RecDescent::Production' ) | ||
| 18145 | ], | ||
| 18146 | 'vars' => '' | ||
| 18147 | }, 'Parse::RecDescent::Rule' ), | ||
| 18148 | 'command' => bless( { | ||
| 18149 | 'calls' => [ | ||
| 18150 | 'variable', | ||
| 18151 | '_alternation_1_of_production_2_of_rule_command', | ||
| 18152 | 'block', | ||
| 18153 | 'exp', | ||
| 18154 | 'command', | ||
| 18155 | 'local_var_in', | ||
| 18156 | '_alternation_1_of_production_10_of_rule_command', | ||
| 18157 | 'stream_select', | ||
| 18158 | 'exp_or_opt' | ||
| 18159 | ], | ||
| 18160 | 'changed' => 0, | ||
| 18161 | 'impcount' => 0, | ||
| 18162 | 'line' => 1, | ||
| 18163 | 'name' => 'command', | ||
| 18164 | 'opcount' => 0, | ||
| 18165 | 'prods' => [ | ||
| 18166 | bless( { | ||
| 18167 | 'actcount' => 0, | ||
| 18168 | 'dircount' => 2, | ||
| 18169 | 'error' => undef, | ||
| 18170 | 'items' => [ | ||
| 18171 | bless( { | ||
| 18172 | 'description' => '/(?=\\\\s*[\\}\\{;]|\\\\s*\\\\Z)/', | ||
| 18173 | 'hashname' => '__PATTERN1__', | ||
| 18174 | 'ldelim' => '/', | ||
| 18175 | 'line' => 4, | ||
| 18176 | 'lookahead' => 0, | ||
| 18177 | 'mod' => '', | ||
| 18178 | 'pattern' => '(?=\\s*[}{;]|\\s*\\Z)', | ||
| 18179 | 'rdelim' => '/' | ||
| 18180 | }, 'Parse::RecDescent::Token' ), | ||
| 18181 | bless( { | ||
| 18182 | 'code' => '$commit = 1', | ||
| 18183 | 'hashname' => '__DIRECTIVE1__', | ||
| 18184 | 'line' => 4, | ||
| 18185 | 'lookahead' => 0, | ||
| 18186 | 'name' => '<commit>' | ||
| 18187 | }, 'Parse::RecDescent::Directive' ), | ||
| 18188 | bless( { | ||
| 18189 | 'hashname' => '__DIRECTIVE2__', | ||
| 18190 | 'line' => 4, | ||
| 18191 | 'lookahead' => 0, | ||
| 18192 | 'name' => '<reject>' | ||
| 18193 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 18194 | ], | ||
| 18195 | 'line' => undef, | ||
| 18196 | 'number' => 0, | ||
| 18197 | 'patcount' => 1, | ||
| 18198 | 'strcount' => 0, | ||
| 18199 | 'uncommit' => undef | ||
| 18200 | }, 'Parse::RecDescent::Production' ), | ||
| 18201 | bless( { | ||
| 18202 | 'actcount' => 1, | ||
| 18203 | 'dircount' => 1, | ||
| 18204 | 'error' => undef, | ||
| 18205 | 'items' => [ | ||
| 18206 | bless( { | ||
| 18207 | 'description' => '/assign\\\\b|(?:local\\\\b|my\\\\b)?(?=\\\\s*\\\\$[a-zA-Z_][a-zA-Z0-9_]*\\\\s*\\\\s*(?:[\\\\-\\\\+\\\\*\\\\/%x.]|\\\\|\\\\||\\\\&\\\\&)?:?=)/', | ||
| 18208 | 'hashname' => '__PATTERN1__', | ||
| 18209 | 'ldelim' => '/', | ||
| 18210 | 'line' => 5, | ||
| 18211 | 'lookahead' => 0, | ||
| 18212 | 'mod' => '', | ||
| 18213 | 'pattern' => 'assign\\b|(?:local\\b|my\\b)?(?=\\s*\\$[a-zA-Z_][a-zA-Z0-9_]*\\s*\\s*(?:[\\-\\+\\*\\/%x.]|\\|\\||\\&\\&)?:?=)', | ||
| 18214 | 'rdelim' => '/' | ||
| 18215 | }, 'Parse::RecDescent::Token' ), | ||
| 18216 | bless( { | ||
| 18217 | 'code' => '$commit = 1', | ||
| 18218 | 'hashname' => '__DIRECTIVE1__', | ||
| 18219 | 'line' => 5, | ||
| 18220 | 'lookahead' => 0, | ||
| 18221 | 'name' => '<commit>' | ||
| 18222 | }, 'Parse::RecDescent::Directive' ), | ||
| 18223 | bless( { | ||
| 18224 | 'argcode' => undef, | ||
| 18225 | 'implicit' => undef, | ||
| 18226 | 'line' => 5, | ||
| 18227 | 'lookahead' => 0, | ||
| 18228 | 'matchrule' => 0, | ||
| 18229 | 'subrule' => 'variable' | ||
| 18230 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18231 | bless( { | ||
| 18232 | 'argcode' => undef, | ||
| 18233 | 'implicit' => '/(?:[\\\\-\\\\+\\\\*\\\\/%x.]|\\\\|\\\\||\\\\&\\\\&)?=/, or /\\\\s*(?:[\\\\-\\\\+\\\\*\\\\/%x.]|\\\\|\\\\||\\\\&\\\\&)?:=/', | ||
| 18234 | 'line' => 12, | ||
| 18235 | 'lookahead' => 0, | ||
| 18236 | 'matchrule' => 0, | ||
| 18237 | 'subrule' => '_alternation_1_of_production_2_of_rule_command' | ||
| 18238 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18239 | bless( { | ||
| 18240 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,@{$item[4]},$item[1],$item[3]] }', | ||
| 18241 | 'hashname' => '__ACTION1__', | ||
| 18242 | 'line' => 13, | ||
| 18243 | 'lookahead' => 0 | ||
| 18244 | }, 'Parse::RecDescent::Action' ) | ||
| 18245 | ], | ||
| 18246 | 'line' => 5, | ||
| 18247 | 'number' => 1, | ||
| 18248 | 'patcount' => 1, | ||
| 18249 | 'strcount' => 0, | ||
| 18250 | 'uncommit' => undef | ||
| 18251 | }, 'Parse::RecDescent::Production' ), | ||
| 18252 | bless( { | ||
| 18253 | 'actcount' => 1, | ||
| 18254 | 'dircount' => 0, | ||
| 18255 | 'error' => undef, | ||
| 18256 | 'items' => [ | ||
| 18257 | bless( { | ||
| 18258 | 'description' => '/(my)\\\\b/', | ||
| 18259 | 'hashname' => '__PATTERN1__', | ||
| 18260 | 'ldelim' => '/', | ||
| 18261 | 'line' => 15, | ||
| 18262 | 'lookahead' => 0, | ||
| 18263 | 'mod' => '', | ||
| 18264 | 'pattern' => '(my)\\b', | ||
| 18265 | 'rdelim' => '/' | ||
| 18266 | }, 'Parse::RecDescent::Token' ), | ||
| 18267 | bless( { | ||
| 18268 | 'argcode' => undef, | ||
| 18269 | 'expected' => undef, | ||
| 18270 | 'line' => 15, | ||
| 18271 | 'lookahead' => 0, | ||
| 18272 | 'matchrule' => 0, | ||
| 18273 | 'max' => 100000000, | ||
| 18274 | 'min' => 1, | ||
| 18275 | 'repspec' => 's', | ||
| 18276 | 'subrule' => 'variable' | ||
| 18277 | }, 'Parse::RecDescent::Repetition' ), | ||
| 18278 | bless( { | ||
| 18279 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'store_lex_variables\',0,@{$item[2]}] }', | ||
| 18280 | 'hashname' => '__ACTION1__', | ||
| 18281 | 'line' => 16, | ||
| 18282 | 'lookahead' => 0 | ||
| 18283 | }, 'Parse::RecDescent::Action' ) | ||
| 18284 | ], | ||
| 18285 | 'line' => 15, | ||
| 18286 | 'number' => 2, | ||
| 18287 | 'patcount' => 1, | ||
| 18288 | 'strcount' => 0, | ||
| 18289 | 'uncommit' => undef | ||
| 18290 | }, 'Parse::RecDescent::Production' ), | ||
| 18291 | bless( { | ||
| 18292 | 'actcount' => 1, | ||
| 18293 | 'dircount' => 0, | ||
| 18294 | 'error' => undef, | ||
| 18295 | 'items' => [ | ||
| 18296 | bless( { | ||
| 18297 | 'description' => '/(local)\\\\b/', | ||
| 18298 | 'hashname' => '__PATTERN1__', | ||
| 18299 | 'ldelim' => '/', | ||
| 18300 | 'line' => 18, | ||
| 18301 | 'lookahead' => 0, | ||
| 18302 | 'mod' => '', | ||
| 18303 | 'pattern' => '(local)\\b', | ||
| 18304 | 'rdelim' => '/' | ||
| 18305 | }, 'Parse::RecDescent::Token' ), | ||
| 18306 | bless( { | ||
| 18307 | 'argcode' => undef, | ||
| 18308 | 'expected' => undef, | ||
| 18309 | 'line' => 18, | ||
| 18310 | 'lookahead' => 0, | ||
| 18311 | 'matchrule' => 0, | ||
| 18312 | 'max' => 100000000, | ||
| 18313 | 'min' => 1, | ||
| 18314 | 'repspec' => 's', | ||
| 18315 | 'subrule' => 'variable' | ||
| 18316 | }, 'Parse::RecDescent::Repetition' ), | ||
| 18317 | bless( { | ||
| 18318 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'make_local\',@{$item[2]}] }', | ||
| 18319 | 'hashname' => '__ACTION1__', | ||
| 18320 | 'line' => 19, | ||
| 18321 | 'lookahead' => 0 | ||
| 18322 | }, 'Parse::RecDescent::Action' ) | ||
| 18323 | ], | ||
| 18324 | 'line' => 18, | ||
| 18325 | 'number' => 3, | ||
| 18326 | 'patcount' => 1, | ||
| 18327 | 'strcount' => 0, | ||
| 18328 | 'uncommit' => undef | ||
| 18329 | }, 'Parse::RecDescent::Production' ), | ||
| 18330 | bless( { | ||
| 18331 | 'actcount' => 1, | ||
| 18332 | 'dircount' => 1, | ||
| 18333 | 'error' => undef, | ||
| 18334 | 'items' => [ | ||
| 18335 | bless( { | ||
| 18336 | 'description' => '/(do)\\\\b/', | ||
| 18337 | 'hashname' => '__PATTERN1__', | ||
| 18338 | 'ldelim' => '/', | ||
| 18339 | 'line' => 21, | ||
| 18340 | 'lookahead' => 0, | ||
| 18341 | 'mod' => '', | ||
| 18342 | 'pattern' => '(do)\\b', | ||
| 18343 | 'rdelim' => '/' | ||
| 18344 | }, 'Parse::RecDescent::Token' ), | ||
| 18345 | bless( { | ||
| 18346 | 'code' => '$commit = 1', | ||
| 18347 | 'hashname' => '__DIRECTIVE1__', | ||
| 18348 | 'line' => 21, | ||
| 18349 | 'lookahead' => 0, | ||
| 18350 | 'name' => '<commit>' | ||
| 18351 | }, 'Parse::RecDescent::Directive' ), | ||
| 18352 | bless( { | ||
| 18353 | 'argcode' => undef, | ||
| 18354 | 'implicit' => undef, | ||
| 18355 | 'line' => 21, | ||
| 18356 | 'lookahead' => 0, | ||
| 18357 | 'matchrule' => 0, | ||
| 18358 | 'subrule' => 'block' | ||
| 18359 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18360 | bless( { | ||
| 18361 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'run_commands\',$item[3],0] }', | ||
| 18362 | 'hashname' => '__ACTION1__', | ||
| 18363 | 'line' => 22, | ||
| 18364 | 'lookahead' => 0 | ||
| 18365 | }, 'Parse::RecDescent::Action' ) | ||
| 18366 | ], | ||
| 18367 | 'line' => 21, | ||
| 18368 | 'number' => 4, | ||
| 18369 | 'patcount' => 1, | ||
| 18370 | 'strcount' => 0, | ||
| 18371 | 'uncommit' => undef | ||
| 18372 | }, 'Parse::RecDescent::Production' ), | ||
| 18373 | bless( { | ||
| 18374 | 'actcount' => 1, | ||
| 18375 | 'dircount' => 1, | ||
| 18376 | 'error' => undef, | ||
| 18377 | 'items' => [ | ||
| 18378 | bless( { | ||
| 18379 | 'description' => '/(if)\\\\b/', | ||
| 18380 | 'hashname' => '__PATTERN1__', | ||
| 18381 | 'ldelim' => '/', | ||
| 18382 | 'line' => 24, | ||
| 18383 | 'lookahead' => 0, | ||
| 18384 | 'mod' => '', | ||
| 18385 | 'pattern' => '(if)\\b', | ||
| 18386 | 'rdelim' => '/' | ||
| 18387 | }, 'Parse::RecDescent::Token' ), | ||
| 18388 | bless( { | ||
| 18389 | 'code' => '$commit = 1', | ||
| 18390 | 'hashname' => '__DIRECTIVE1__', | ||
| 18391 | 'line' => 24, | ||
| 18392 | 'lookahead' => 0, | ||
| 18393 | 'name' => '<commit>' | ||
| 18394 | }, 'Parse::RecDescent::Directive' ), | ||
| 18395 | bless( { | ||
| 18396 | 'argcode' => undef, | ||
| 18397 | 'implicit' => undef, | ||
| 18398 | 'line' => 24, | ||
| 18399 | 'lookahead' => 0, | ||
| 18400 | 'matchrule' => 0, | ||
| 18401 | 'subrule' => 'exp' | ||
| 18402 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18403 | bless( { | ||
| 18404 | 'argcode' => undef, | ||
| 18405 | 'implicit' => undef, | ||
| 18406 | 'line' => 24, | ||
| 18407 | 'lookahead' => 0, | ||
| 18408 | 'matchrule' => 0, | ||
| 18409 | 'subrule' => 'command' | ||
| 18410 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18411 | bless( { | ||
| 18412 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'if_statement\',[$item[3],[$item[4]]]] }', | ||
| 18413 | 'hashname' => '__ACTION1__', | ||
| 18414 | 'line' => 25, | ||
| 18415 | 'lookahead' => 0 | ||
| 18416 | }, 'Parse::RecDescent::Action' ) | ||
| 18417 | ], | ||
| 18418 | 'line' => 24, | ||
| 18419 | 'number' => 5, | ||
| 18420 | 'patcount' => 1, | ||
| 18421 | 'strcount' => 0, | ||
| 18422 | 'uncommit' => undef | ||
| 18423 | }, 'Parse::RecDescent::Production' ), | ||
| 18424 | bless( { | ||
| 18425 | 'actcount' => 1, | ||
| 18426 | 'dircount' => 1, | ||
| 18427 | 'error' => undef, | ||
| 18428 | 'items' => [ | ||
| 18429 | bless( { | ||
| 18430 | 'description' => '/(unless)\\\\b/', | ||
| 18431 | 'hashname' => '__PATTERN1__', | ||
| 18432 | 'ldelim' => '/', | ||
| 18433 | 'line' => 27, | ||
| 18434 | 'lookahead' => 0, | ||
| 18435 | 'mod' => '', | ||
| 18436 | 'pattern' => '(unless)\\b', | ||
| 18437 | 'rdelim' => '/' | ||
| 18438 | }, 'Parse::RecDescent::Token' ), | ||
| 18439 | bless( { | ||
| 18440 | 'code' => '$commit = 1', | ||
| 18441 | 'hashname' => '__DIRECTIVE1__', | ||
| 18442 | 'line' => 27, | ||
| 18443 | 'lookahead' => 0, | ||
| 18444 | 'name' => '<commit>' | ||
| 18445 | }, 'Parse::RecDescent::Directive' ), | ||
| 18446 | bless( { | ||
| 18447 | 'argcode' => undef, | ||
| 18448 | 'implicit' => undef, | ||
| 18449 | 'line' => 27, | ||
| 18450 | 'lookahead' => 0, | ||
| 18451 | 'matchrule' => 0, | ||
| 18452 | 'subrule' => 'exp' | ||
| 18453 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18454 | bless( { | ||
| 18455 | 'argcode' => undef, | ||
| 18456 | 'implicit' => undef, | ||
| 18457 | 'line' => 27, | ||
| 18458 | 'lookahead' => 0, | ||
| 18459 | 'matchrule' => 0, | ||
| 18460 | 'subrule' => 'command' | ||
| 18461 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18462 | bless( { | ||
| 18463 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'unless_statement\',$item[3],[$item[4]]] }', | ||
| 18464 | 'hashname' => '__ACTION1__', | ||
| 18465 | 'line' => 28, | ||
| 18466 | 'lookahead' => 0 | ||
| 18467 | }, 'Parse::RecDescent::Action' ) | ||
| 18468 | ], | ||
| 18469 | 'line' => 27, | ||
| 18470 | 'number' => 6, | ||
| 18471 | 'patcount' => 1, | ||
| 18472 | 'strcount' => 0, | ||
| 18473 | 'uncommit' => undef | ||
| 18474 | }, 'Parse::RecDescent::Production' ), | ||
| 18475 | bless( { | ||
| 18476 | 'actcount' => 1, | ||
| 18477 | 'dircount' => 1, | ||
| 18478 | 'error' => undef, | ||
| 18479 | 'items' => [ | ||
| 18480 | bless( { | ||
| 18481 | 'description' => '/(while)\\\\b/', | ||
| 18482 | 'hashname' => '__PATTERN1__', | ||
| 18483 | 'ldelim' => '/', | ||
| 18484 | 'line' => 30, | ||
| 18485 | 'lookahead' => 0, | ||
| 18486 | 'mod' => '', | ||
| 18487 | 'pattern' => '(while)\\b', | ||
| 18488 | 'rdelim' => '/' | ||
| 18489 | }, 'Parse::RecDescent::Token' ), | ||
| 18490 | bless( { | ||
| 18491 | 'code' => '$commit = 1', | ||
| 18492 | 'hashname' => '__DIRECTIVE1__', | ||
| 18493 | 'line' => 30, | ||
| 18494 | 'lookahead' => 0, | ||
| 18495 | 'name' => '<commit>' | ||
| 18496 | }, 'Parse::RecDescent::Directive' ), | ||
| 18497 | bless( { | ||
| 18498 | 'argcode' => undef, | ||
| 18499 | 'implicit' => undef, | ||
| 18500 | 'line' => 30, | ||
| 18501 | 'lookahead' => 0, | ||
| 18502 | 'matchrule' => 0, | ||
| 18503 | 'subrule' => 'exp' | ||
| 18504 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18505 | bless( { | ||
| 18506 | 'argcode' => undef, | ||
| 18507 | 'implicit' => undef, | ||
| 18508 | 'line' => 30, | ||
| 18509 | 'lookahead' => 0, | ||
| 18510 | 'matchrule' => 0, | ||
| 18511 | 'subrule' => 'command' | ||
| 18512 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18513 | bless( { | ||
| 18514 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'while_statement\',$item[3],[$item[4]]] }', | ||
| 18515 | 'hashname' => '__ACTION1__', | ||
| 18516 | 'line' => 31, | ||
| 18517 | 'lookahead' => 0 | ||
| 18518 | }, 'Parse::RecDescent::Action' ) | ||
| 18519 | ], | ||
| 18520 | 'line' => 30, | ||
| 18521 | 'number' => 7, | ||
| 18522 | 'patcount' => 1, | ||
| 18523 | 'strcount' => 0, | ||
| 18524 | 'uncommit' => undef | ||
| 18525 | }, 'Parse::RecDescent::Production' ), | ||
| 18526 | bless( { | ||
| 18527 | 'actcount' => 1, | ||
| 18528 | 'dircount' => 1, | ||
| 18529 | 'error' => undef, | ||
| 18530 | 'items' => [ | ||
| 18531 | bless( { | ||
| 18532 | 'description' => '/(foreach|for)\\\\b/', | ||
| 18533 | 'hashname' => '__PATTERN1__', | ||
| 18534 | 'ldelim' => '/', | ||
| 18535 | 'line' => 33, | ||
| 18536 | 'lookahead' => 0, | ||
| 18537 | 'mod' => '', | ||
| 18538 | 'pattern' => '(foreach|for)\\b', | ||
| 18539 | 'rdelim' => '/' | ||
| 18540 | }, 'Parse::RecDescent::Token' ), | ||
| 18541 | bless( { | ||
| 18542 | 'code' => '$commit = 1', | ||
| 18543 | 'hashname' => '__DIRECTIVE1__', | ||
| 18544 | 'line' => 33, | ||
| 18545 | 'lookahead' => 0, | ||
| 18546 | 'name' => '<commit>' | ||
| 18547 | }, 'Parse::RecDescent::Directive' ), | ||
| 18548 | bless( { | ||
| 18549 | 'argcode' => undef, | ||
| 18550 | 'expected' => undef, | ||
| 18551 | 'line' => 33, | ||
| 18552 | 'lookahead' => 0, | ||
| 18553 | 'matchrule' => 0, | ||
| 18554 | 'max' => 1, | ||
| 18555 | 'min' => 0, | ||
| 18556 | 'repspec' => '?', | ||
| 18557 | 'subrule' => 'local_var_in' | ||
| 18558 | }, 'Parse::RecDescent::Repetition' ), | ||
| 18559 | bless( { | ||
| 18560 | 'argcode' => undef, | ||
| 18561 | 'implicit' => undef, | ||
| 18562 | 'line' => 33, | ||
| 18563 | 'lookahead' => 0, | ||
| 18564 | 'matchrule' => 0, | ||
| 18565 | 'subrule' => 'exp' | ||
| 18566 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18567 | bless( { | ||
| 18568 | 'argcode' => undef, | ||
| 18569 | 'implicit' => undef, | ||
| 18570 | 'line' => 33, | ||
| 18571 | 'lookahead' => 0, | ||
| 18572 | 'matchrule' => 0, | ||
| 18573 | 'subrule' => 'command' | ||
| 18574 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18575 | bless( { | ||
| 18576 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'foreach_statement\',$item[4],[$item[5]],@{$item[3]}] }', | ||
| 18577 | 'hashname' => '__ACTION1__', | ||
| 18578 | 'line' => 34, | ||
| 18579 | 'lookahead' => 0 | ||
| 18580 | }, 'Parse::RecDescent::Action' ) | ||
| 18581 | ], | ||
| 18582 | 'line' => 33, | ||
| 18583 | 'number' => 8, | ||
| 18584 | 'patcount' => 1, | ||
| 18585 | 'strcount' => 0, | ||
| 18586 | 'uncommit' => undef | ||
| 18587 | }, 'Parse::RecDescent::Production' ), | ||
| 18588 | bless( { | ||
| 18589 | 'actcount' => 1, | ||
| 18590 | 'dircount' => 1, | ||
| 18591 | 'error' => undef, | ||
| 18592 | 'items' => [ | ||
| 18593 | bless( { | ||
| 18594 | 'description' => '/(stream)\\\\b/', | ||
| 18595 | 'hashname' => '__PATTERN1__', | ||
| 18596 | 'ldelim' => '/', | ||
| 18597 | 'line' => 36, | ||
| 18598 | 'lookahead' => 0, | ||
| 18599 | 'mod' => '', | ||
| 18600 | 'pattern' => '(stream)\\b', | ||
| 18601 | 'rdelim' => '/' | ||
| 18602 | }, 'Parse::RecDescent::Token' ), | ||
| 18603 | bless( { | ||
| 18604 | 'code' => '$commit = 1', | ||
| 18605 | 'hashname' => '__DIRECTIVE1__', | ||
| 18606 | 'line' => 36, | ||
| 18607 | 'lookahead' => 0, | ||
| 18608 | 'name' => '<commit>' | ||
| 18609 | }, 'Parse::RecDescent::Directive' ), | ||
| 18610 | bless( { | ||
| 18611 | 'argcode' => undef, | ||
| 18612 | 'implicit' => '/--input-file|:f/, or /--input-pipe|:p/, or /--input-string|:s/, or /--output-file|:F/, or /--output-encoding|:E/, or /--output-pipe|:P/, or /--output-string|:S/', | ||
| 18613 | 'line' => 45, | ||
| 18614 | 'lookahead' => 0, | ||
| 18615 | 'matchrule' => 0, | ||
| 18616 | 'subrule' => '_alternation_1_of_production_10_of_rule_command' | ||
| 18617 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18618 | bless( { | ||
| 18619 | 'argcode' => undef, | ||
| 18620 | 'expected' => undef, | ||
| 18621 | 'line' => 46, | ||
| 18622 | 'lookahead' => 0, | ||
| 18623 | 'matchrule' => 0, | ||
| 18624 | 'max' => 100000000, | ||
| 18625 | 'min' => 1, | ||
| 18626 | 'repspec' => 's', | ||
| 18627 | 'subrule' => 'stream_select' | ||
| 18628 | }, 'Parse::RecDescent::Repetition' ), | ||
| 18629 | bless( { | ||
| 18630 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'stream_process\',$item[3],$item[4]] }', | ||
| 18631 | 'hashname' => '__ACTION1__', | ||
| 18632 | 'line' => 47, | ||
| 18633 | 'lookahead' => 0 | ||
| 18634 | }, 'Parse::RecDescent::Action' ) | ||
| 18635 | ], | ||
| 18636 | 'line' => 36, | ||
| 18637 | 'number' => 9, | ||
| 18638 | 'patcount' => 1, | ||
| 18639 | 'strcount' => 0, | ||
| 18640 | 'uncommit' => undef | ||
| 18641 | }, 'Parse::RecDescent::Production' ), | ||
| 18642 | bless( { | ||
| 18643 | 'actcount' => 1, | ||
| 18644 | 'dircount' => 1, | ||
| 18645 | 'error' => undef, | ||
| 18646 | 'items' => [ | ||
| 18647 | bless( { | ||
| 18648 | 'description' => '/(undef|undefine)\\\\b/', | ||
| 18649 | 'hashname' => '__PATTERN1__', | ||
| 18650 | 'ldelim' => '/', | ||
| 18651 | 'line' => 49, | ||
| 18652 | 'lookahead' => 0, | ||
| 18653 | 'mod' => '', | ||
| 18654 | 'pattern' => '(undef|undefine)\\b', | ||
| 18655 | 'rdelim' => '/' | ||
| 18656 | }, 'Parse::RecDescent::Token' ), | ||
| 18657 | bless( { | ||
| 18658 | 'code' => '$commit = 1', | ||
| 18659 | 'hashname' => '__DIRECTIVE1__', | ||
| 18660 | 'line' => 49, | ||
| 18661 | 'lookahead' => 0, | ||
| 18662 | 'name' => '<commit>' | ||
| 18663 | }, 'Parse::RecDescent::Directive' ), | ||
| 18664 | bless( { | ||
| 18665 | 'description' => '/\\\\$?[a-zA-Z_][a-zA-Z0-9_]*/', | ||
| 18666 | 'hashname' => '__PATTERN2__', | ||
| 18667 | 'ldelim' => '/', | ||
| 18668 | 'line' => 49, | ||
| 18669 | 'lookahead' => 0, | ||
| 18670 | 'mod' => '', | ||
| 18671 | 'pattern' => '\\$?[a-zA-Z_][a-zA-Z0-9_]*', | ||
| 18672 | 'rdelim' => '/' | ||
| 18673 | }, 'Parse::RecDescent::Token' ), | ||
| 18674 | bless( { | ||
| 18675 | 'code' => '{ | ||
| 18676 | [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'undefine\',$item[3]]; | ||
| 18677 | }', | ||
| 18678 | 'hashname' => '__ACTION1__', | ||
| 18679 | 'line' => 50, | ||
| 18680 | 'lookahead' => 0 | ||
| 18681 | }, 'Parse::RecDescent::Action' ) | ||
| 18682 | ], | ||
| 18683 | 'line' => 49, | ||
| 18684 | 'number' => 10, | ||
| 18685 | 'patcount' => 2, | ||
| 18686 | 'strcount' => 0, | ||
| 18687 | 'uncommit' => undef | ||
| 18688 | }, 'Parse::RecDescent::Production' ), | ||
| 18689 | bless( { | ||
| 18690 | 'actcount' => 1, | ||
| 18691 | 'dircount' => 1, | ||
| 18692 | 'error' => undef, | ||
| 18693 | 'items' => [ | ||
| 18694 | bless( { | ||
| 18695 | 'description' => '/(use)\\\\b/', | ||
| 18696 | 'hashname' => '__PATTERN1__', | ||
| 18697 | 'ldelim' => '/', | ||
| 18698 | 'line' => 54, | ||
| 18699 | 'lookahead' => 0, | ||
| 18700 | 'mod' => '', | ||
| 18701 | 'pattern' => '(use)\\b', | ||
| 18702 | 'rdelim' => '/' | ||
| 18703 | }, 'Parse::RecDescent::Token' ), | ||
| 18704 | bless( { | ||
| 18705 | 'code' => '$commit = 1', | ||
| 18706 | 'hashname' => '__DIRECTIVE1__', | ||
| 18707 | 'line' => 54, | ||
| 18708 | 'lookahead' => 0, | ||
| 18709 | 'name' => '<commit>' | ||
| 18710 | }, 'Parse::RecDescent::Directive' ), | ||
| 18711 | bless( { | ||
| 18712 | 'description' => '/XML::XSH2::(?:Inline|Compile)/', | ||
| 18713 | 'hashname' => '__PATTERN2__', | ||
| 18714 | 'ldelim' => '/', | ||
| 18715 | 'line' => 54, | ||
| 18716 | 'lookahead' => 0, | ||
| 18717 | 'mod' => '', | ||
| 18718 | 'pattern' => 'XML::XSH2::(?:Inline|Compile)', | ||
| 18719 | 'rdelim' => '/' | ||
| 18720 | }, 'Parse::RecDescent::Token' ), | ||
| 18721 | bless( { | ||
| 18722 | 'code' => '{ 1 }', | ||
| 18723 | 'hashname' => '__ACTION1__', | ||
| 18724 | 'line' => 55, | ||
| 18725 | 'lookahead' => 0 | ||
| 18726 | }, 'Parse::RecDescent::Action' ) | ||
| 18727 | ], | ||
| 18728 | 'line' => 54, | ||
| 18729 | 'number' => 11, | ||
| 18730 | 'patcount' => 2, | ||
| 18731 | 'strcount' => 0, | ||
| 18732 | 'uncommit' => undef | ||
| 18733 | }, 'Parse::RecDescent::Production' ), | ||
| 18734 | bless( { | ||
| 18735 | 'actcount' => 1, | ||
| 18736 | 'dircount' => 0, | ||
| 18737 | 'error' => undef, | ||
| 18738 | 'items' => [ | ||
| 18739 | bless( { | ||
| 18740 | 'description' => '/(test-mode|test_mode)/', | ||
| 18741 | 'hashname' => '__PATTERN1__', | ||
| 18742 | 'ldelim' => '/', | ||
| 18743 | 'line' => 57, | ||
| 18744 | 'lookahead' => 0, | ||
| 18745 | 'mod' => '', | ||
| 18746 | 'pattern' => '(test-mode|test_mode)', | ||
| 18747 | 'rdelim' => '/' | ||
| 18748 | }, 'Parse::RecDescent::Token' ), | ||
| 18749 | bless( { | ||
| 18750 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,"test-mode"] }', | ||
| 18751 | 'hashname' => '__ACTION1__', | ||
| 18752 | 'line' => 58, | ||
| 18753 | 'lookahead' => 0 | ||
| 18754 | }, 'Parse::RecDescent::Action' ) | ||
| 18755 | ], | ||
| 18756 | 'line' => 57, | ||
| 18757 | 'number' => 12, | ||
| 18758 | 'patcount' => 1, | ||
| 18759 | 'strcount' => 0, | ||
| 18760 | 'uncommit' => undef | ||
| 18761 | }, 'Parse::RecDescent::Production' ), | ||
| 18762 | bless( { | ||
| 18763 | 'actcount' => 1, | ||
| 18764 | 'dircount' => 0, | ||
| 18765 | 'error' => undef, | ||
| 18766 | 'items' => [ | ||
| 18767 | bless( { | ||
| 18768 | 'description' => '/(run-mode|run_mode)/', | ||
| 18769 | 'hashname' => '__PATTERN1__', | ||
| 18770 | 'ldelim' => '/', | ||
| 18771 | 'line' => 60, | ||
| 18772 | 'lookahead' => 0, | ||
| 18773 | 'mod' => '', | ||
| 18774 | 'pattern' => '(run-mode|run_mode)', | ||
| 18775 | 'rdelim' => '/' | ||
| 18776 | }, 'Parse::RecDescent::Token' ), | ||
| 18777 | bless( { | ||
| 18778 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,"run-mode"] }', | ||
| 18779 | 'hashname' => '__ACTION1__', | ||
| 18780 | 'line' => 61, | ||
| 18781 | 'lookahead' => 0 | ||
| 18782 | }, 'Parse::RecDescent::Action' ) | ||
| 18783 | ], | ||
| 18784 | 'line' => 60, | ||
| 18785 | 'number' => 13, | ||
| 18786 | 'patcount' => 1, | ||
| 18787 | 'strcount' => 0, | ||
| 18788 | 'uncommit' => undef | ||
| 18789 | }, 'Parse::RecDescent::Production' ), | ||
| 18790 | bless( { | ||
| 18791 | 'actcount' => 1, | ||
| 18792 | 'dircount' => 0, | ||
| 18793 | 'error' => undef, | ||
| 18794 | 'items' => [ | ||
| 18795 | bless( { | ||
| 18796 | 'description' => '/(?!(?:iterate|try|def|define)\\\\b)/', | ||
| 18797 | 'hashname' => '__PATTERN1__', | ||
| 18798 | 'ldelim' => '/', | ||
| 18799 | 'line' => 63, | ||
| 18800 | 'lookahead' => 0, | ||
| 18801 | 'mod' => '', | ||
| 18802 | 'pattern' => '(?!(?:iterate|try|def|define)\\b)', | ||
| 18803 | 'rdelim' => '/' | ||
| 18804 | }, 'Parse::RecDescent::Token' ), | ||
| 18805 | bless( { | ||
| 18806 | 'description' => '/\\\\.|[a-zA-Z_][-a-zA-Z0-9_]*/', | ||
| 18807 | 'hashname' => '__PATTERN2__', | ||
| 18808 | 'ldelim' => '/', | ||
| 18809 | 'line' => 63, | ||
| 18810 | 'lookahead' => 0, | ||
| 18811 | 'mod' => '', | ||
| 18812 | 'pattern' => '\\.|[a-zA-Z_][-a-zA-Z0-9_]*', | ||
| 18813 | 'rdelim' => '/' | ||
| 18814 | }, 'Parse::RecDescent::Token' ), | ||
| 18815 | bless( { | ||
| 18816 | 'argcode' => undef, | ||
| 18817 | 'expected' => undef, | ||
| 18818 | 'line' => 63, | ||
| 18819 | 'lookahead' => 0, | ||
| 18820 | 'matchrule' => 0, | ||
| 18821 | 'max' => 100000000, | ||
| 18822 | 'min' => 0, | ||
| 18823 | 'repspec' => 's?', | ||
| 18824 | 'subrule' => 'exp_or_opt' | ||
| 18825 | }, 'Parse::RecDescent::Repetition' ), | ||
| 18826 | bless( { | ||
| 18827 | 'code' => '{ | ||
| 18828 | bless | ||
| 18829 | [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,$item[2],@{$item[3]}], | ||
| 18830 | \'XML::XSH2::Command\' | ||
| 18831 | }', | ||
| 18832 | 'hashname' => '__ACTION1__', | ||
| 18833 | 'line' => 64, | ||
| 18834 | 'lookahead' => 0 | ||
| 18835 | }, 'Parse::RecDescent::Action' ) | ||
| 18836 | ], | ||
| 18837 | 'line' => 63, | ||
| 18838 | 'number' => 14, | ||
| 18839 | 'patcount' => 2, | ||
| 18840 | 'strcount' => 0, | ||
| 18841 | 'uncommit' => undef | ||
| 18842 | }, 'Parse::RecDescent::Production' ) | ||
| 18843 | ], | ||
| 18844 | 'vars' => '' | ||
| 18845 | }, 'Parse::RecDescent::Rule' ), | ||
| 18846 | 'complex_command' => bless( { | ||
| 18847 | 'calls' => [ | ||
| 18848 | 'statement', | ||
| 18849 | 'trail', | ||
| 18850 | 'command' | ||
| 18851 | ], | ||
| 18852 | 'changed' => 0, | ||
| 18853 | 'impcount' => 0, | ||
| 18854 | 'line' => 99, | ||
| 18855 | 'name' => 'complex_command', | ||
| 18856 | 'opcount' => 0, | ||
| 18857 | 'prods' => [ | ||
| 18858 | bless( { | ||
| 18859 | 'actcount' => 0, | ||
| 18860 | 'dircount' => 2, | ||
| 18861 | 'error' => undef, | ||
| 18862 | 'items' => [ | ||
| 18863 | bless( { | ||
| 18864 | 'description' => '/(?=\\\\s*[\\{\\}]|\\\\s*\\\\Z)/', | ||
| 18865 | 'hashname' => '__PATTERN1__', | ||
| 18866 | 'ldelim' => '/', | ||
| 18867 | 'line' => 100, | ||
| 18868 | 'lookahead' => 0, | ||
| 18869 | 'mod' => '', | ||
| 18870 | 'pattern' => '(?=\\s*[{}]|\\s*\\Z)', | ||
| 18871 | 'rdelim' => '/' | ||
| 18872 | }, 'Parse::RecDescent::Token' ), | ||
| 18873 | bless( { | ||
| 18874 | 'code' => '$commit = 1', | ||
| 18875 | 'hashname' => '__DIRECTIVE1__', | ||
| 18876 | 'line' => 100, | ||
| 18877 | 'lookahead' => 0, | ||
| 18878 | 'name' => '<commit>' | ||
| 18879 | }, 'Parse::RecDescent::Directive' ), | ||
| 18880 | bless( { | ||
| 18881 | 'hashname' => '__DIRECTIVE2__', | ||
| 18882 | 'line' => 100, | ||
| 18883 | 'lookahead' => 0, | ||
| 18884 | 'name' => '<reject>' | ||
| 18885 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 18886 | ], | ||
| 18887 | 'line' => undef, | ||
| 18888 | 'number' => 0, | ||
| 18889 | 'patcount' => 1, | ||
| 18890 | 'strcount' => 0, | ||
| 18891 | 'uncommit' => undef | ||
| 18892 | }, 'Parse::RecDescent::Production' ), | ||
| 18893 | bless( { | ||
| 18894 | 'actcount' => 0, | ||
| 18895 | 'dircount' => 1, | ||
| 18896 | 'error' => undef, | ||
| 18897 | 'items' => [ | ||
| 18898 | bless( { | ||
| 18899 | 'description' => '/\\\\s*;/', | ||
| 18900 | 'hashname' => '__PATTERN1__', | ||
| 18901 | 'ldelim' => '/', | ||
| 18902 | 'line' => 101, | ||
| 18903 | 'lookahead' => 0, | ||
| 18904 | 'mod' => '', | ||
| 18905 | 'pattern' => '\\s*;', | ||
| 18906 | 'rdelim' => '/' | ||
| 18907 | }, 'Parse::RecDescent::Token' ), | ||
| 18908 | bless( { | ||
| 18909 | 'code' => '$commit = 1', | ||
| 18910 | 'hashname' => '__DIRECTIVE1__', | ||
| 18911 | 'line' => 101, | ||
| 18912 | 'lookahead' => 0, | ||
| 18913 | 'name' => '<commit>' | ||
| 18914 | }, 'Parse::RecDescent::Directive' ) | ||
| 18915 | ], | ||
| 18916 | 'line' => 101, | ||
| 18917 | 'number' => 1, | ||
| 18918 | 'patcount' => 1, | ||
| 18919 | 'strcount' => 0, | ||
| 18920 | 'uncommit' => undef | ||
| 18921 | }, 'Parse::RecDescent::Production' ), | ||
| 18922 | bless( { | ||
| 18923 | 'actcount' => 1, | ||
| 18924 | 'dircount' => 1, | ||
| 18925 | 'error' => undef, | ||
| 18926 | 'items' => [ | ||
| 18927 | bless( { | ||
| 18928 | 'description' => '/(?=(?:foreach|for|if|unless|iterate|while|try|def|define)\\\\b)/', | ||
| 18929 | 'hashname' => '__PATTERN1__', | ||
| 18930 | 'ldelim' => '/', | ||
| 18931 | 'line' => 102, | ||
| 18932 | 'lookahead' => 0, | ||
| 18933 | 'mod' => '', | ||
| 18934 | 'pattern' => '(?=(?:foreach|for|if|unless|iterate|while|try|def|define)\\b)', | ||
| 18935 | 'rdelim' => '/' | ||
| 18936 | }, 'Parse::RecDescent::Token' ), | ||
| 18937 | bless( { | ||
| 18938 | 'argcode' => undef, | ||
| 18939 | 'implicit' => undef, | ||
| 18940 | 'line' => 102, | ||
| 18941 | 'lookahead' => 0, | ||
| 18942 | 'matchrule' => 0, | ||
| 18943 | 'subrule' => 'statement' | ||
| 18944 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18945 | bless( { | ||
| 18946 | 'code' => '$commit = 1', | ||
| 18947 | 'hashname' => '__DIRECTIVE1__', | ||
| 18948 | 'line' => 102, | ||
| 18949 | 'lookahead' => 0, | ||
| 18950 | 'name' => '<commit>' | ||
| 18951 | }, 'Parse::RecDescent::Directive' ), | ||
| 18952 | bless( { | ||
| 18953 | 'argcode' => undef, | ||
| 18954 | 'expected' => undef, | ||
| 18955 | 'line' => 102, | ||
| 18956 | 'lookahead' => 0, | ||
| 18957 | 'matchrule' => 0, | ||
| 18958 | 'max' => 1, | ||
| 18959 | 'min' => 0, | ||
| 18960 | 'repspec' => '?', | ||
| 18961 | 'subrule' => 'trail' | ||
| 18962 | }, 'Parse::RecDescent::Repetition' ), | ||
| 18963 | bless( { | ||
| 18964 | 'code' => '{ | ||
| 18965 | if (scalar(@{$item[4]})) { | ||
| 18966 | if ($item[4][0][0] eq \'pipe\') { | ||
| 18967 | $return=[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'pipe_command\',[$item[2]],$item[4][0][1]] | ||
| 18968 | } else { | ||
| 18969 | $return=[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'string_pipe_command\',[$item[2]],$item[4][0][1]] | ||
| 18970 | } | ||
| 18971 | } else { | ||
| 18972 | $return=$item[2] | ||
| 18973 | } | ||
| 18974 | }', | ||
| 18975 | 'hashname' => '__ACTION1__', | ||
| 18976 | 'line' => 103, | ||
| 18977 | 'lookahead' => 0 | ||
| 18978 | }, 'Parse::RecDescent::Action' ) | ||
| 18979 | ], | ||
| 18980 | 'line' => 102, | ||
| 18981 | 'number' => 2, | ||
| 18982 | 'patcount' => 1, | ||
| 18983 | 'strcount' => 0, | ||
| 18984 | 'uncommit' => undef | ||
| 18985 | }, 'Parse::RecDescent::Production' ), | ||
| 18986 | bless( { | ||
| 18987 | 'actcount' => 1, | ||
| 18988 | 'dircount' => 1, | ||
| 18989 | 'error' => undef, | ||
| 18990 | 'items' => [ | ||
| 18991 | bless( { | ||
| 18992 | 'argcode' => undef, | ||
| 18993 | 'implicit' => undef, | ||
| 18994 | 'line' => 115, | ||
| 18995 | 'lookahead' => 0, | ||
| 18996 | 'matchrule' => 0, | ||
| 18997 | 'subrule' => 'command' | ||
| 18998 | }, 'Parse::RecDescent::Subrule' ), | ||
| 18999 | bless( { | ||
| 19000 | 'code' => '$commit = 1', | ||
| 19001 | 'hashname' => '__DIRECTIVE1__', | ||
| 19002 | 'line' => 115, | ||
| 19003 | 'lookahead' => 0, | ||
| 19004 | 'name' => '<commit>' | ||
| 19005 | }, 'Parse::RecDescent::Directive' ), | ||
| 19006 | bless( { | ||
| 19007 | 'argcode' => undef, | ||
| 19008 | 'expected' => undef, | ||
| 19009 | 'line' => 115, | ||
| 19010 | 'lookahead' => 0, | ||
| 19011 | 'matchrule' => 0, | ||
| 19012 | 'max' => 1, | ||
| 19013 | 'min' => 0, | ||
| 19014 | 'repspec' => '?', | ||
| 19015 | 'subrule' => 'trail' | ||
| 19016 | }, 'Parse::RecDescent::Repetition' ), | ||
| 19017 | bless( { | ||
| 19018 | 'description' => '/\\\\s*;|(?=\\\\s*\\}|\\\\s*\\\\Z)/', | ||
| 19019 | 'hashname' => '__PATTERN1__', | ||
| 19020 | 'ldelim' => '/', | ||
| 19021 | 'line' => 115, | ||
| 19022 | 'lookahead' => 0, | ||
| 19023 | 'mod' => '', | ||
| 19024 | 'pattern' => '\\s*;|(?=\\s*}|\\s*\\Z)', | ||
| 19025 | 'rdelim' => '/' | ||
| 19026 | }, 'Parse::RecDescent::Token' ), | ||
| 19027 | bless( { | ||
| 19028 | 'code' => '{ | ||
| 19029 | if (scalar(@{$item[3]})) { | ||
| 19030 | if ($item[3][0][0] eq \'pipe\') { | ||
| 19031 | $return=[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'pipe_command\',[$item[1]],$item[3][0][1]] | ||
| 19032 | } else { | ||
| 19033 | $return=[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'string_pipe_command\',[$item[1]],$item[3][0][1]] | ||
| 19034 | } | ||
| 19035 | } else { | ||
| 19036 | $return=$item[1] | ||
| 19037 | } | ||
| 19038 | }', | ||
| 19039 | 'hashname' => '__ACTION1__', | ||
| 19040 | 'line' => 116, | ||
| 19041 | 'lookahead' => 0 | ||
| 19042 | }, 'Parse::RecDescent::Action' ) | ||
| 19043 | ], | ||
| 19044 | 'line' => 115, | ||
| 19045 | 'number' => 3, | ||
| 19046 | 'patcount' => 1, | ||
| 19047 | 'strcount' => 0, | ||
| 19048 | 'uncommit' => undef | ||
| 19049 | }, 'Parse::RecDescent::Production' ), | ||
| 19050 | bless( { | ||
| 19051 | 'actcount' => 0, | ||
| 19052 | 'dircount' => 1, | ||
| 19053 | 'error' => 1, | ||
| 19054 | 'items' => [ | ||
| 19055 | bless( { | ||
| 19056 | 'commitonly' => '', | ||
| 19057 | 'hashname' => '__DIRECTIVE1__', | ||
| 19058 | 'line' => 128, | ||
| 19059 | 'lookahead' => 0, | ||
| 19060 | 'msg' => 'Parse error near: "}.substr($text,0,40).qq{ ..."' | ||
| 19061 | }, 'Parse::RecDescent::Error' ) | ||
| 19062 | ], | ||
| 19063 | 'line' => 128, | ||
| 19064 | 'number' => 4, | ||
| 19065 | 'patcount' => 0, | ||
| 19066 | 'strcount' => 0, | ||
| 19067 | 'uncommit' => 0 | ||
| 19068 | }, 'Parse::RecDescent::Production' ) | ||
| 19069 | ], | ||
| 19070 | 'vars' => '' | ||
| 19071 | }, 'Parse::RecDescent::Rule' ), | ||
| 19072 | 'else_block' => bless( { | ||
| 19073 | 'calls' => [ | ||
| 19074 | 'block' | ||
| 19075 | ], | ||
| 19076 | 'changed' => 0, | ||
| 19077 | 'impcount' => 0, | ||
| 19078 | 'line' => 369, | ||
| 19079 | 'name' => 'else_block', | ||
| 19080 | 'opcount' => 0, | ||
| 19081 | 'prods' => [ | ||
| 19082 | bless( { | ||
| 19083 | 'actcount' => 1, | ||
| 19084 | 'dircount' => 1, | ||
| 19085 | 'error' => undef, | ||
| 19086 | 'items' => [ | ||
| 19087 | bless( { | ||
| 19088 | 'description' => '/(else)\\\\b/', | ||
| 19089 | 'hashname' => '__PATTERN1__', | ||
| 19090 | 'ldelim' => '/', | ||
| 19091 | 'line' => 370, | ||
| 19092 | 'lookahead' => 0, | ||
| 19093 | 'mod' => '', | ||
| 19094 | 'pattern' => '(else)\\b', | ||
| 19095 | 'rdelim' => '/' | ||
| 19096 | }, 'Parse::RecDescent::Token' ), | ||
| 19097 | bless( { | ||
| 19098 | 'code' => '$commit = 1', | ||
| 19099 | 'hashname' => '__DIRECTIVE1__', | ||
| 19100 | 'line' => 370, | ||
| 19101 | 'lookahead' => 0, | ||
| 19102 | 'name' => '<commit>' | ||
| 19103 | }, 'Parse::RecDescent::Directive' ), | ||
| 19104 | bless( { | ||
| 19105 | 'argcode' => undef, | ||
| 19106 | 'implicit' => undef, | ||
| 19107 | 'line' => 370, | ||
| 19108 | 'lookahead' => 0, | ||
| 19109 | 'matchrule' => 0, | ||
| 19110 | 'subrule' => 'block' | ||
| 19111 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19112 | bless( { | ||
| 19113 | 'code' => '{ [[undef,$item[3]]] }', | ||
| 19114 | 'hashname' => '__ACTION1__', | ||
| 19115 | 'line' => 371, | ||
| 19116 | 'lookahead' => 0 | ||
| 19117 | }, 'Parse::RecDescent::Action' ) | ||
| 19118 | ], | ||
| 19119 | 'line' => undef, | ||
| 19120 | 'number' => 0, | ||
| 19121 | 'patcount' => 1, | ||
| 19122 | 'strcount' => 0, | ||
| 19123 | 'uncommit' => undef | ||
| 19124 | }, 'Parse::RecDescent::Production' ), | ||
| 19125 | bless( { | ||
| 19126 | 'actcount' => 1, | ||
| 19127 | 'dircount' => 0, | ||
| 19128 | 'error' => undef, | ||
| 19129 | 'items' => [ | ||
| 19130 | bless( { | ||
| 19131 | 'description' => '/(?!else)/', | ||
| 19132 | 'hashname' => '__PATTERN1__', | ||
| 19133 | 'ldelim' => '/', | ||
| 19134 | 'line' => 373, | ||
| 19135 | 'lookahead' => 0, | ||
| 19136 | 'mod' => '', | ||
| 19137 | 'pattern' => '(?!else)', | ||
| 19138 | 'rdelim' => '/' | ||
| 19139 | }, 'Parse::RecDescent::Token' ), | ||
| 19140 | bless( { | ||
| 19141 | 'code' => '{ [] }', | ||
| 19142 | 'hashname' => '__ACTION1__', | ||
| 19143 | 'line' => 374, | ||
| 19144 | 'lookahead' => 0 | ||
| 19145 | }, 'Parse::RecDescent::Action' ) | ||
| 19146 | ], | ||
| 19147 | 'line' => 373, | ||
| 19148 | 'number' => 1, | ||
| 19149 | 'patcount' => 1, | ||
| 19150 | 'strcount' => 0, | ||
| 19151 | 'uncommit' => undef | ||
| 19152 | }, 'Parse::RecDescent::Production' ), | ||
| 19153 | bless( { | ||
| 19154 | 'actcount' => 0, | ||
| 19155 | 'dircount' => 2, | ||
| 19156 | 'error' => undef, | ||
| 19157 | 'items' => [ | ||
| 19158 | bless( { | ||
| 19159 | 'code' => '$commit=0;1', | ||
| 19160 | 'hashname' => '__DIRECTIVE1__', | ||
| 19161 | 'line' => 376, | ||
| 19162 | 'lookahead' => 0, | ||
| 19163 | 'name' => '<uncommit>' | ||
| 19164 | }, 'Parse::RecDescent::Directive' ), | ||
| 19165 | bless( { | ||
| 19166 | 'commitonly' => '', | ||
| 19167 | 'hashname' => '__DIRECTIVE2__', | ||
| 19168 | 'line' => 376, | ||
| 19169 | 'lookahead' => 0, | ||
| 19170 | 'msg' => 'Parse error near keyword else: "}.substr($text,0,40).qq{ ..."' | ||
| 19171 | }, 'Parse::RecDescent::Error' ) | ||
| 19172 | ], | ||
| 19173 | 'line' => 376, | ||
| 19174 | 'number' => 2, | ||
| 19175 | 'patcount' => 0, | ||
| 19176 | 'strcount' => 0, | ||
| 19177 | 'uncommit' => 1 | ||
| 19178 | }, 'Parse::RecDescent::Production' ) | ||
| 19179 | ], | ||
| 19180 | 'vars' => '' | ||
| 19181 | }, 'Parse::RecDescent::Rule' ), | ||
| 19182 | 'elsif_block' => bless( { | ||
| 19183 | 'calls' => [ | ||
| 19184 | 'exp', | ||
| 19185 | 'block', | ||
| 19186 | 'elsif_block' | ||
| 19187 | ], | ||
| 19188 | 'changed' => 0, | ||
| 19189 | 'impcount' => 0, | ||
| 19190 | 'line' => 360, | ||
| 19191 | 'name' => 'elsif_block', | ||
| 19192 | 'opcount' => 0, | ||
| 19193 | 'prods' => [ | ||
| 19194 | bless( { | ||
| 19195 | 'actcount' => 1, | ||
| 19196 | 'dircount' => 1, | ||
| 19197 | 'error' => undef, | ||
| 19198 | 'items' => [ | ||
| 19199 | bless( { | ||
| 19200 | 'description' => '/(elsif)\\\\b/', | ||
| 19201 | 'hashname' => '__PATTERN1__', | ||
| 19202 | 'ldelim' => '/', | ||
| 19203 | 'line' => 361, | ||
| 19204 | 'lookahead' => 0, | ||
| 19205 | 'mod' => '', | ||
| 19206 | 'pattern' => '(elsif)\\b', | ||
| 19207 | 'rdelim' => '/' | ||
| 19208 | }, 'Parse::RecDescent::Token' ), | ||
| 19209 | bless( { | ||
| 19210 | 'code' => '$commit = 1', | ||
| 19211 | 'hashname' => '__DIRECTIVE1__', | ||
| 19212 | 'line' => 361, | ||
| 19213 | 'lookahead' => 0, | ||
| 19214 | 'name' => '<commit>' | ||
| 19215 | }, 'Parse::RecDescent::Directive' ), | ||
| 19216 | bless( { | ||
| 19217 | 'argcode' => undef, | ||
| 19218 | 'implicit' => undef, | ||
| 19219 | 'line' => 361, | ||
| 19220 | 'lookahead' => 0, | ||
| 19221 | 'matchrule' => 0, | ||
| 19222 | 'subrule' => 'exp' | ||
| 19223 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19224 | bless( { | ||
| 19225 | 'argcode' => undef, | ||
| 19226 | 'implicit' => undef, | ||
| 19227 | 'line' => 361, | ||
| 19228 | 'lookahead' => 0, | ||
| 19229 | 'matchrule' => 0, | ||
| 19230 | 'subrule' => 'block' | ||
| 19231 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19232 | bless( { | ||
| 19233 | 'argcode' => undef, | ||
| 19234 | 'implicit' => undef, | ||
| 19235 | 'line' => 361, | ||
| 19236 | 'lookahead' => 0, | ||
| 19237 | 'matchrule' => 0, | ||
| 19238 | 'subrule' => 'elsif_block' | ||
| 19239 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19240 | bless( { | ||
| 19241 | 'code' => '{ [[$item[3],$item[4]],@{$item[5]}] }', | ||
| 19242 | 'hashname' => '__ACTION1__', | ||
| 19243 | 'line' => 362, | ||
| 19244 | 'lookahead' => 0 | ||
| 19245 | }, 'Parse::RecDescent::Action' ) | ||
| 19246 | ], | ||
| 19247 | 'line' => undef, | ||
| 19248 | 'number' => 0, | ||
| 19249 | 'patcount' => 1, | ||
| 19250 | 'strcount' => 0, | ||
| 19251 | 'uncommit' => undef | ||
| 19252 | }, 'Parse::RecDescent::Production' ), | ||
| 19253 | bless( { | ||
| 19254 | 'actcount' => 1, | ||
| 19255 | 'dircount' => 0, | ||
| 19256 | 'error' => undef, | ||
| 19257 | 'items' => [ | ||
| 19258 | bless( { | ||
| 19259 | 'description' => '/(?!elsif)/', | ||
| 19260 | 'hashname' => '__PATTERN1__', | ||
| 19261 | 'ldelim' => '/', | ||
| 19262 | 'line' => 364, | ||
| 19263 | 'lookahead' => 0, | ||
| 19264 | 'mod' => '', | ||
| 19265 | 'pattern' => '(?!elsif)', | ||
| 19266 | 'rdelim' => '/' | ||
| 19267 | }, 'Parse::RecDescent::Token' ), | ||
| 19268 | bless( { | ||
| 19269 | 'code' => '{ [] }', | ||
| 19270 | 'hashname' => '__ACTION1__', | ||
| 19271 | 'line' => 365, | ||
| 19272 | 'lookahead' => 0 | ||
| 19273 | }, 'Parse::RecDescent::Action' ) | ||
| 19274 | ], | ||
| 19275 | 'line' => 364, | ||
| 19276 | 'number' => 1, | ||
| 19277 | 'patcount' => 1, | ||
| 19278 | 'strcount' => 0, | ||
| 19279 | 'uncommit' => undef | ||
| 19280 | }, 'Parse::RecDescent::Production' ), | ||
| 19281 | bless( { | ||
| 19282 | 'actcount' => 0, | ||
| 19283 | 'dircount' => 2, | ||
| 19284 | 'error' => undef, | ||
| 19285 | 'items' => [ | ||
| 19286 | bless( { | ||
| 19287 | 'code' => '$commit=0;1', | ||
| 19288 | 'hashname' => '__DIRECTIVE1__', | ||
| 19289 | 'line' => 367, | ||
| 19290 | 'lookahead' => 0, | ||
| 19291 | 'name' => '<uncommit>' | ||
| 19292 | }, 'Parse::RecDescent::Directive' ), | ||
| 19293 | bless( { | ||
| 19294 | 'commitonly' => '', | ||
| 19295 | 'hashname' => '__DIRECTIVE2__', | ||
| 19296 | 'line' => 367, | ||
| 19297 | 'lookahead' => 0, | ||
| 19298 | 'msg' => 'Parse error near keyword elsif: "}.substr($text,0,40).qq{ ..."' | ||
| 19299 | }, 'Parse::RecDescent::Error' ) | ||
| 19300 | ], | ||
| 19301 | 'line' => 367, | ||
| 19302 | 'number' => 2, | ||
| 19303 | 'patcount' => 0, | ||
| 19304 | 'strcount' => 0, | ||
| 19305 | 'uncommit' => 1 | ||
| 19306 | }, 'Parse::RecDescent::Production' ) | ||
| 19307 | ], | ||
| 19308 | 'vars' => '' | ||
| 19309 | }, 'Parse::RecDescent::Rule' ), | ||
| 19310 | 'enc_string' => bless( { | ||
| 19311 | 'calls' => [ | ||
| 19312 | 'exp' | ||
| 19313 | ], | ||
| 19314 | 'changed' => 0, | ||
| 19315 | 'impcount' => 0, | ||
| 19316 | 'line' => 166, | ||
| 19317 | 'name' => 'enc_string', | ||
| 19318 | 'opcount' => 0, | ||
| 19319 | 'prods' => [ | ||
| 19320 | bless( { | ||
| 19321 | 'actcount' => 0, | ||
| 19322 | 'dircount' => 0, | ||
| 19323 | 'error' => undef, | ||
| 19324 | 'items' => [ | ||
| 19325 | bless( { | ||
| 19326 | 'argcode' => undef, | ||
| 19327 | 'implicit' => undef, | ||
| 19328 | 'line' => 167, | ||
| 19329 | 'lookahead' => 0, | ||
| 19330 | 'matchrule' => 0, | ||
| 19331 | 'subrule' => 'exp' | ||
| 19332 | }, 'Parse::RecDescent::Subrule' ) | ||
| 19333 | ], | ||
| 19334 | 'line' => undef, | ||
| 19335 | 'number' => 0, | ||
| 19336 | 'patcount' => 0, | ||
| 19337 | 'strcount' => 0, | ||
| 19338 | 'uncommit' => undef | ||
| 19339 | }, 'Parse::RecDescent::Production' ) | ||
| 19340 | ], | ||
| 19341 | 'vars' => '' | ||
| 19342 | }, 'Parse::RecDescent::Rule' ), | ||
| 19343 | 'eof' => bless( { | ||
| 19344 | 'calls' => [], | ||
| 19345 | 'changed' => 0, | ||
| 19346 | 'impcount' => 0, | ||
| 19347 | 'line' => 316, | ||
| 19348 | 'name' => 'eof', | ||
| 19349 | 'opcount' => 0, | ||
| 19350 | 'prods' => [ | ||
| 19351 | bless( { | ||
| 19352 | 'actcount' => 1, | ||
| 19353 | 'dircount' => 0, | ||
| 19354 | 'error' => undef, | ||
| 19355 | 'items' => [ | ||
| 19356 | bless( { | ||
| 19357 | 'description' => '/\\\\Z/', | ||
| 19358 | 'hashname' => '__PATTERN1__', | ||
| 19359 | 'ldelim' => '/', | ||
| 19360 | 'line' => 317, | ||
| 19361 | 'lookahead' => 0, | ||
| 19362 | 'mod' => '', | ||
| 19363 | 'pattern' => '\\Z', | ||
| 19364 | 'rdelim' => '/' | ||
| 19365 | }, 'Parse::RecDescent::Token' ), | ||
| 19366 | bless( { | ||
| 19367 | 'code' => '{ 1; }', | ||
| 19368 | 'hashname' => '__ACTION1__', | ||
| 19369 | 'line' => 318, | ||
| 19370 | 'lookahead' => 0 | ||
| 19371 | }, 'Parse::RecDescent::Action' ) | ||
| 19372 | ], | ||
| 19373 | 'line' => undef, | ||
| 19374 | 'number' => 0, | ||
| 19375 | 'patcount' => 1, | ||
| 19376 | 'strcount' => 0, | ||
| 19377 | 'uncommit' => undef | ||
| 19378 | }, 'Parse::RecDescent::Production' ) | ||
| 19379 | ], | ||
| 19380 | 'vars' => '' | ||
| 19381 | }, 'Parse::RecDescent::Rule' ), | ||
| 19382 | 'exp' => bless( { | ||
| 19383 | 'calls' => [ | ||
| 19384 | 'perl_block', | ||
| 19385 | 'block', | ||
| 19386 | 'inline_doc', | ||
| 19387 | 'xpath' | ||
| 19388 | ], | ||
| 19389 | 'changed' => 0, | ||
| 19390 | 'impcount' => 0, | ||
| 19391 | 'line' => 301, | ||
| 19392 | 'name' => 'exp', | ||
| 19393 | 'opcount' => 0, | ||
| 19394 | 'prods' => [ | ||
| 19395 | bless( { | ||
| 19396 | 'actcount' => 1, | ||
| 19397 | 'dircount' => 0, | ||
| 19398 | 'error' => undef, | ||
| 19399 | 'items' => [ | ||
| 19400 | bless( { | ||
| 19401 | 'description' => '/^(?=\\{)/', | ||
| 19402 | 'hashname' => '__PATTERN1__', | ||
| 19403 | 'ldelim' => '/', | ||
| 19404 | 'line' => 302, | ||
| 19405 | 'lookahead' => 0, | ||
| 19406 | 'mod' => '', | ||
| 19407 | 'pattern' => '^(?={)', | ||
| 19408 | 'rdelim' => '/' | ||
| 19409 | }, 'Parse::RecDescent::Token' ), | ||
| 19410 | bless( { | ||
| 19411 | 'argcode' => undef, | ||
| 19412 | 'implicit' => undef, | ||
| 19413 | 'line' => 302, | ||
| 19414 | 'lookahead' => 0, | ||
| 19415 | 'matchrule' => 0, | ||
| 19416 | 'subrule' => 'perl_block' | ||
| 19417 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19418 | bless( { | ||
| 19419 | 'code' => '{ $item[2] }', | ||
| 19420 | 'hashname' => '__ACTION1__', | ||
| 19421 | 'line' => 303, | ||
| 19422 | 'lookahead' => 0 | ||
| 19423 | }, 'Parse::RecDescent::Action' ) | ||
| 19424 | ], | ||
| 19425 | 'line' => undef, | ||
| 19426 | 'number' => 0, | ||
| 19427 | 'patcount' => 1, | ||
| 19428 | 'strcount' => 0, | ||
| 19429 | 'uncommit' => undef | ||
| 19430 | }, 'Parse::RecDescent::Production' ), | ||
| 19431 | bless( { | ||
| 19432 | 'actcount' => 1, | ||
| 19433 | 'dircount' => 0, | ||
| 19434 | 'error' => undef, | ||
| 19435 | 'items' => [ | ||
| 19436 | bless( { | ||
| 19437 | 'description' => '\'&\'', | ||
| 19438 | 'hashname' => '__STRING1__', | ||
| 19439 | 'line' => 305, | ||
| 19440 | 'lookahead' => 0, | ||
| 19441 | 'pattern' => '&' | ||
| 19442 | }, 'Parse::RecDescent::Literal' ), | ||
| 19443 | bless( { | ||
| 19444 | 'argcode' => undef, | ||
| 19445 | 'implicit' => undef, | ||
| 19446 | 'line' => 305, | ||
| 19447 | 'lookahead' => 0, | ||
| 19448 | 'matchrule' => 0, | ||
| 19449 | 'subrule' => 'block' | ||
| 19450 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19451 | bless( { | ||
| 19452 | 'code' => '{ $item[2] }', | ||
| 19453 | 'hashname' => '__ACTION1__', | ||
| 19454 | 'line' => 306, | ||
| 19455 | 'lookahead' => 0 | ||
| 19456 | }, 'Parse::RecDescent::Action' ) | ||
| 19457 | ], | ||
| 19458 | 'line' => 305, | ||
| 19459 | 'number' => 1, | ||
| 19460 | 'patcount' => 0, | ||
| 19461 | 'strcount' => 1, | ||
| 19462 | 'uncommit' => undef | ||
| 19463 | }, 'Parse::RecDescent::Production' ), | ||
| 19464 | bless( { | ||
| 19465 | 'actcount' => 1, | ||
| 19466 | 'dircount' => 0, | ||
| 19467 | 'error' => undef, | ||
| 19468 | 'items' => [ | ||
| 19469 | bless( { | ||
| 19470 | 'description' => '/^(?=<<)/', | ||
| 19471 | 'hashname' => '__PATTERN1__', | ||
| 19472 | 'ldelim' => '/', | ||
| 19473 | 'line' => 308, | ||
| 19474 | 'lookahead' => 0, | ||
| 19475 | 'mod' => '', | ||
| 19476 | 'pattern' => '^(?=<<)', | ||
| 19477 | 'rdelim' => '/' | ||
| 19478 | }, 'Parse::RecDescent::Token' ), | ||
| 19479 | bless( { | ||
| 19480 | 'argcode' => undef, | ||
| 19481 | 'implicit' => undef, | ||
| 19482 | 'line' => 308, | ||
| 19483 | 'lookahead' => 0, | ||
| 19484 | 'matchrule' => 0, | ||
| 19485 | 'subrule' => 'inline_doc' | ||
| 19486 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19487 | bless( { | ||
| 19488 | 'code' => '{ $item[2] }', | ||
| 19489 | 'hashname' => '__ACTION1__', | ||
| 19490 | 'line' => 309, | ||
| 19491 | 'lookahead' => 0 | ||
| 19492 | }, 'Parse::RecDescent::Action' ) | ||
| 19493 | ], | ||
| 19494 | 'line' => 308, | ||
| 19495 | 'number' => 2, | ||
| 19496 | 'patcount' => 1, | ||
| 19497 | 'strcount' => 0, | ||
| 19498 | 'uncommit' => undef | ||
| 19499 | }, 'Parse::RecDescent::Production' ), | ||
| 19500 | bless( { | ||
| 19501 | 'actcount' => 0, | ||
| 19502 | 'dircount' => 0, | ||
| 19503 | 'error' => undef, | ||
| 19504 | 'items' => [ | ||
| 19505 | bless( { | ||
| 19506 | 'argcode' => undef, | ||
| 19507 | 'implicit' => undef, | ||
| 19508 | 'line' => 311, | ||
| 19509 | 'lookahead' => 0, | ||
| 19510 | 'matchrule' => 0, | ||
| 19511 | 'subrule' => 'xpath' | ||
| 19512 | }, 'Parse::RecDescent::Subrule' ) | ||
| 19513 | ], | ||
| 19514 | 'line' => 311, | ||
| 19515 | 'number' => 3, | ||
| 19516 | 'patcount' => 0, | ||
| 19517 | 'strcount' => 0, | ||
| 19518 | 'uncommit' => undef | ||
| 19519 | }, 'Parse::RecDescent::Production' ) | ||
| 19520 | ], | ||
| 19521 | 'vars' => '' | ||
| 19522 | }, 'Parse::RecDescent::Rule' ), | ||
| 19523 | 'exp_or_opt' => bless( { | ||
| 19524 | 'calls' => [ | ||
| 19525 | 'option', | ||
| 19526 | 'exp' | ||
| 19527 | ], | ||
| 19528 | 'changed' => 0, | ||
| 19529 | 'impcount' => 0, | ||
| 19530 | 'line' => 135, | ||
| 19531 | 'name' => 'exp_or_opt', | ||
| 19532 | 'opcount' => 0, | ||
| 19533 | 'prods' => [ | ||
| 19534 | bless( { | ||
| 19535 | 'actcount' => 0, | ||
| 19536 | 'dircount' => 2, | ||
| 19537 | 'error' => undef, | ||
| 19538 | 'items' => [ | ||
| 19539 | bless( { | ||
| 19540 | 'description' => '/(?=\\\\s*[\\};]|\\\\s*\\\\Z)/', | ||
| 19541 | 'hashname' => '__PATTERN1__', | ||
| 19542 | 'ldelim' => '/', | ||
| 19543 | 'line' => 136, | ||
| 19544 | 'lookahead' => 0, | ||
| 19545 | 'mod' => '', | ||
| 19546 | 'pattern' => '(?=\\s*[};]|\\s*\\Z)', | ||
| 19547 | 'rdelim' => '/' | ||
| 19548 | }, 'Parse::RecDescent::Token' ), | ||
| 19549 | bless( { | ||
| 19550 | 'code' => '$commit = 1', | ||
| 19551 | 'hashname' => '__DIRECTIVE1__', | ||
| 19552 | 'line' => 136, | ||
| 19553 | 'lookahead' => 0, | ||
| 19554 | 'name' => '<commit>' | ||
| 19555 | }, 'Parse::RecDescent::Directive' ), | ||
| 19556 | bless( { | ||
| 19557 | 'hashname' => '__DIRECTIVE2__', | ||
| 19558 | 'line' => 136, | ||
| 19559 | 'lookahead' => 0, | ||
| 19560 | 'name' => '<reject>' | ||
| 19561 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 19562 | ], | ||
| 19563 | 'line' => undef, | ||
| 19564 | 'number' => 0, | ||
| 19565 | 'patcount' => 1, | ||
| 19566 | 'strcount' => 0, | ||
| 19567 | 'uncommit' => undef | ||
| 19568 | }, 'Parse::RecDescent::Production' ), | ||
| 19569 | bless( { | ||
| 19570 | 'actcount' => 0, | ||
| 19571 | 'dircount' => 0, | ||
| 19572 | 'error' => undef, | ||
| 19573 | 'items' => [ | ||
| 19574 | bless( { | ||
| 19575 | 'argcode' => undef, | ||
| 19576 | 'implicit' => undef, | ||
| 19577 | 'line' => 137, | ||
| 19578 | 'lookahead' => 0, | ||
| 19579 | 'matchrule' => 0, | ||
| 19580 | 'subrule' => 'option' | ||
| 19581 | }, 'Parse::RecDescent::Subrule' ) | ||
| 19582 | ], | ||
| 19583 | 'line' => 137, | ||
| 19584 | 'number' => 1, | ||
| 19585 | 'patcount' => 0, | ||
| 19586 | 'strcount' => 0, | ||
| 19587 | 'uncommit' => undef | ||
| 19588 | }, 'Parse::RecDescent::Production' ), | ||
| 19589 | bless( { | ||
| 19590 | 'actcount' => 0, | ||
| 19591 | 'dircount' => 0, | ||
| 19592 | 'error' => undef, | ||
| 19593 | 'items' => [ | ||
| 19594 | bless( { | ||
| 19595 | 'argcode' => undef, | ||
| 19596 | 'implicit' => undef, | ||
| 19597 | 'line' => 138, | ||
| 19598 | 'lookahead' => 0, | ||
| 19599 | 'matchrule' => 0, | ||
| 19600 | 'subrule' => 'exp' | ||
| 19601 | }, 'Parse::RecDescent::Subrule' ) | ||
| 19602 | ], | ||
| 19603 | 'line' => 138, | ||
| 19604 | 'number' => 2, | ||
| 19605 | 'patcount' => 0, | ||
| 19606 | 'strcount' => 0, | ||
| 19607 | 'uncommit' => undef | ||
| 19608 | }, 'Parse::RecDescent::Production' ) | ||
| 19609 | ], | ||
| 19610 | 'vars' => '' | ||
| 19611 | }, 'Parse::RecDescent::Rule' ), | ||
| 19612 | 'filename' => bless( { | ||
| 19613 | 'calls' => [ | ||
| 19614 | 'exp' | ||
| 19615 | ], | ||
| 19616 | 'changed' => 0, | ||
| 19617 | 'impcount' => 0, | ||
| 19618 | 'line' => 172, | ||
| 19619 | 'name' => 'filename', | ||
| 19620 | 'opcount' => 0, | ||
| 19621 | 'prods' => [ | ||
| 19622 | bless( { | ||
| 19623 | 'actcount' => 0, | ||
| 19624 | 'dircount' => 0, | ||
| 19625 | 'error' => undef, | ||
| 19626 | 'items' => [ | ||
| 19627 | bless( { | ||
| 19628 | 'argcode' => undef, | ||
| 19629 | 'implicit' => undef, | ||
| 19630 | 'line' => 173, | ||
| 19631 | 'lookahead' => 0, | ||
| 19632 | 'matchrule' => 0, | ||
| 19633 | 'subrule' => 'exp' | ||
| 19634 | }, 'Parse::RecDescent::Subrule' ) | ||
| 19635 | ], | ||
| 19636 | 'line' => undef, | ||
| 19637 | 'number' => 0, | ||
| 19638 | 'patcount' => 0, | ||
| 19639 | 'strcount' => 0, | ||
| 19640 | 'uncommit' => undef | ||
| 19641 | }, 'Parse::RecDescent::Production' ) | ||
| 19642 | ], | ||
| 19643 | 'vars' => '' | ||
| 19644 | }, 'Parse::RecDescent::Rule' ), | ||
| 19645 | 'inline_doc' => bless( { | ||
| 19646 | 'calls' => [ | ||
| 19647 | 'inline_doc_string' | ||
| 19648 | ], | ||
| 19649 | 'changed' => 0, | ||
| 19650 | 'impcount' => 0, | ||
| 19651 | 'line' => 148, | ||
| 19652 | 'name' => 'inline_doc', | ||
| 19653 | 'opcount' => 0, | ||
| 19654 | 'prods' => [ | ||
| 19655 | bless( { | ||
| 19656 | 'actcount' => 1, | ||
| 19657 | 'dircount' => 1, | ||
| 19658 | 'error' => undef, | ||
| 19659 | 'items' => [ | ||
| 19660 | bless( { | ||
| 19661 | 'description' => '/<</', | ||
| 19662 | 'hashname' => '__PATTERN1__', | ||
| 19663 | 'ldelim' => '/', | ||
| 19664 | 'line' => 149, | ||
| 19665 | 'lookahead' => 0, | ||
| 19666 | 'mod' => '', | ||
| 19667 | 'pattern' => '<<', | ||
| 19668 | 'rdelim' => '/' | ||
| 19669 | }, 'Parse::RecDescent::Token' ), | ||
| 19670 | bless( { | ||
| 19671 | 'argcode' => undef, | ||
| 19672 | 'implicit' => undef, | ||
| 19673 | 'line' => 149, | ||
| 19674 | 'lookahead' => 0, | ||
| 19675 | 'matchrule' => 0, | ||
| 19676 | 'subrule' => 'inline_doc_string' | ||
| 19677 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19678 | bless( { | ||
| 19679 | 'code' => 'my $oldskip = $skip; $skip=""; $oldskip', | ||
| 19680 | 'hashname' => '__DIRECTIVE1__', | ||
| 19681 | 'line' => 149, | ||
| 19682 | 'lookahead' => 0, | ||
| 19683 | 'name' => '<skip:"">' | ||
| 19684 | }, 'Parse::RecDescent::Directive' ), | ||
| 19685 | bless( { | ||
| 19686 | 'description' => '/.*\\\\n/', | ||
| 19687 | 'hashname' => '__PATTERN2__', | ||
| 19688 | 'ldelim' => '/', | ||
| 19689 | 'line' => 149, | ||
| 19690 | 'lookahead' => 0, | ||
| 19691 | 'mod' => '', | ||
| 19692 | 'pattern' => '.*\\n', | ||
| 19693 | 'rdelim' => '/' | ||
| 19694 | }, 'Parse::RecDescent::Token' ), | ||
| 19695 | bless( { | ||
| 19696 | 'description' => '/(.|\\\\n)*?\\\\n$item[2][1]\\\\s*(\\\\n|$)/', | ||
| 19697 | 'hashname' => '__PATTERN3__', | ||
| 19698 | 'ldelim' => '/', | ||
| 19699 | 'line' => 149, | ||
| 19700 | 'lookahead' => 0, | ||
| 19701 | 'mod' => '', | ||
| 19702 | 'pattern' => '(.|\\n)*?\\n$item[2][1]\\s*(\\n|$)', | ||
| 19703 | 'rdelim' => '/' | ||
| 19704 | }, 'Parse::RecDescent::Token' ), | ||
| 19705 | bless( { | ||
| 19706 | 'code' => '{ | ||
| 19707 | $text=$item[4].$text; | ||
| 19708 | local $_=$item[5]; s/\\n$item[2][1]\\s*$//; | ||
| 19709 | my $paren = $item[2][0]; | ||
| 19710 | $paren = \'"\' if $paren eq ""; | ||
| 19711 | if ($paren eq "\'") { | ||
| 19712 | $paren = \'"\'; | ||
| 19713 | s{(\\\\)(.|\\n)|(\\$)}{ (defined($3) and $3 eq \'$\') ? "\\\\\\$" | ||
| 19714 | : ((defined($2) and $2 eq "\\\\") | ||
| 19715 | ? "\\\\\\\\" : ((defined($2) and $2 eq "\'") ? "\'" : ( | ||
| 19716 | (defined($2) and $2 eq \'$\') ? "\\\\\\\\\\\\$2" : | ||
| 19717 | "\\\\\\\\$2"))) }eg; | ||
| 19718 | } "<<".$paren.$_; | ||
| 19719 | }', | ||
| 19720 | 'hashname' => '__ACTION1__', | ||
| 19721 | 'line' => 150, | ||
| 19722 | 'lookahead' => 0 | ||
| 19723 | }, 'Parse::RecDescent::Action' ) | ||
| 19724 | ], | ||
| 19725 | 'line' => undef, | ||
| 19726 | 'number' => 0, | ||
| 19727 | 'patcount' => 3, | ||
| 19728 | 'strcount' => 0, | ||
| 19729 | 'uncommit' => undef | ||
| 19730 | }, 'Parse::RecDescent::Production' ) | ||
| 19731 | ], | ||
| 19732 | 'vars' => '' | ||
| 19733 | }, 'Parse::RecDescent::Rule' ), | ||
| 19734 | 'inline_doc_string' => bless( { | ||
| 19735 | 'calls' => [], | ||
| 19736 | 'changed' => 0, | ||
| 19737 | 'impcount' => 0, | ||
| 19738 | 'line' => 143, | ||
| 19739 | 'name' => 'inline_doc_string', | ||
| 19740 | 'opcount' => 0, | ||
| 19741 | 'prods' => [ | ||
| 19742 | bless( { | ||
| 19743 | 'actcount' => 1, | ||
| 19744 | 'dircount' => 0, | ||
| 19745 | 'error' => undef, | ||
| 19746 | 'items' => [ | ||
| 19747 | bless( { | ||
| 19748 | 'description' => '/\'[a-zA-Z_][a-zA-Z0-9_]*\'|"[a-zA-Z_][a-zA-Z0-9_]*"|\\\\([a-zA-Z_][a-zA-Z0-9_]*\\\\)|\\\\\\{[a-zA-Z_][a-zA-Z0-9_]*\\\\\\}|[a-zA-Z_][a-zA-Z0-9_]*/', | ||
| 19749 | 'hashname' => '__PATTERN1__', | ||
| 19750 | 'ldelim' => '/', | ||
| 19751 | 'line' => 144, | ||
| 19752 | 'lookahead' => 0, | ||
| 19753 | 'mod' => '', | ||
| 19754 | 'pattern' => '\'[a-zA-Z_][a-zA-Z0-9_]*\'|"[a-zA-Z_][a-zA-Z0-9_]*"|\\([a-zA-Z_][a-zA-Z0-9_]*\\)|\\{[a-zA-Z_][a-zA-Z0-9_]*\\}|[a-zA-Z_][a-zA-Z0-9_]*', | ||
| 19755 | 'rdelim' => '/' | ||
| 19756 | }, 'Parse::RecDescent::Token' ), | ||
| 19757 | bless( { | ||
| 19758 | 'code' => '{ [($item[1]=~/^([\'"({])?(.*?)([\'")}])?$/)] }', | ||
| 19759 | 'hashname' => '__ACTION1__', | ||
| 19760 | 'line' => 145, | ||
| 19761 | 'lookahead' => 0 | ||
| 19762 | }, 'Parse::RecDescent::Action' ) | ||
| 19763 | ], | ||
| 19764 | 'line' => undef, | ||
| 19765 | 'number' => 0, | ||
| 19766 | 'patcount' => 1, | ||
| 19767 | 'strcount' => 0, | ||
| 19768 | 'uncommit' => undef | ||
| 19769 | }, 'Parse::RecDescent::Production' ) | ||
| 19770 | ], | ||
| 19771 | 'vars' => '' | ||
| 19772 | }, 'Parse::RecDescent::Rule' ), | ||
| 19773 | 'loc' => bless( { | ||
| 19774 | 'calls' => [], | ||
| 19775 | 'changed' => 0, | ||
| 19776 | 'impcount' => 0, | ||
| 19777 | 'line' => 404, | ||
| 19778 | 'name' => 'loc', | ||
| 19779 | 'opcount' => 0, | ||
| 19780 | 'prods' => [ | ||
| 19781 | bless( { | ||
| 19782 | 'actcount' => 1, | ||
| 19783 | 'dircount' => 0, | ||
| 19784 | 'error' => undef, | ||
| 19785 | 'items' => [ | ||
| 19786 | bless( { | ||
| 19787 | 'description' => '/after\\\\s/', | ||
| 19788 | 'hashname' => '__PATTERN1__', | ||
| 19789 | 'ldelim' => '/', | ||
| 19790 | 'line' => 405, | ||
| 19791 | 'lookahead' => 0, | ||
| 19792 | 'mod' => '', | ||
| 19793 | 'pattern' => 'after\\s', | ||
| 19794 | 'rdelim' => '/' | ||
| 19795 | }, 'Parse::RecDescent::Token' ), | ||
| 19796 | bless( { | ||
| 19797 | 'code' => '{ "after" }', | ||
| 19798 | 'hashname' => '__ACTION1__', | ||
| 19799 | 'line' => 406, | ||
| 19800 | 'lookahead' => 0 | ||
| 19801 | }, 'Parse::RecDescent::Action' ) | ||
| 19802 | ], | ||
| 19803 | 'line' => undef, | ||
| 19804 | 'number' => 0, | ||
| 19805 | 'patcount' => 1, | ||
| 19806 | 'strcount' => 0, | ||
| 19807 | 'uncommit' => undef | ||
| 19808 | }, 'Parse::RecDescent::Production' ), | ||
| 19809 | bless( { | ||
| 19810 | 'actcount' => 1, | ||
| 19811 | 'dircount' => 0, | ||
| 19812 | 'error' => undef, | ||
| 19813 | 'items' => [ | ||
| 19814 | bless( { | ||
| 19815 | 'description' => '/before\\\\s/', | ||
| 19816 | 'hashname' => '__PATTERN1__', | ||
| 19817 | 'ldelim' => '/', | ||
| 19818 | 'line' => 408, | ||
| 19819 | 'lookahead' => 0, | ||
| 19820 | 'mod' => '', | ||
| 19821 | 'pattern' => 'before\\s', | ||
| 19822 | 'rdelim' => '/' | ||
| 19823 | }, 'Parse::RecDescent::Token' ), | ||
| 19824 | bless( { | ||
| 19825 | 'code' => '{ "before" }', | ||
| 19826 | 'hashname' => '__ACTION1__', | ||
| 19827 | 'line' => 409, | ||
| 19828 | 'lookahead' => 0 | ||
| 19829 | }, 'Parse::RecDescent::Action' ) | ||
| 19830 | ], | ||
| 19831 | 'line' => 408, | ||
| 19832 | 'number' => 1, | ||
| 19833 | 'patcount' => 1, | ||
| 19834 | 'strcount' => 0, | ||
| 19835 | 'uncommit' => undef | ||
| 19836 | }, 'Parse::RecDescent::Production' ), | ||
| 19837 | bless( { | ||
| 19838 | 'actcount' => 1, | ||
| 19839 | 'dircount' => 0, | ||
| 19840 | 'error' => undef, | ||
| 19841 | 'items' => [ | ||
| 19842 | bless( { | ||
| 19843 | 'description' => '/(in)?to\\\\s/', | ||
| 19844 | 'hashname' => '__PATTERN1__', | ||
| 19845 | 'ldelim' => '/', | ||
| 19846 | 'line' => 411, | ||
| 19847 | 'lookahead' => 0, | ||
| 19848 | 'mod' => '', | ||
| 19849 | 'pattern' => '(in)?to\\s', | ||
| 19850 | 'rdelim' => '/' | ||
| 19851 | }, 'Parse::RecDescent::Token' ), | ||
| 19852 | bless( { | ||
| 19853 | 'code' => '{ "into" }', | ||
| 19854 | 'hashname' => '__ACTION1__', | ||
| 19855 | 'line' => 412, | ||
| 19856 | 'lookahead' => 0 | ||
| 19857 | }, 'Parse::RecDescent::Action' ) | ||
| 19858 | ], | ||
| 19859 | 'line' => 411, | ||
| 19860 | 'number' => 2, | ||
| 19861 | 'patcount' => 1, | ||
| 19862 | 'strcount' => 0, | ||
| 19863 | 'uncommit' => undef | ||
| 19864 | }, 'Parse::RecDescent::Production' ), | ||
| 19865 | bless( { | ||
| 19866 | 'actcount' => 1, | ||
| 19867 | 'dircount' => 0, | ||
| 19868 | 'error' => undef, | ||
| 19869 | 'items' => [ | ||
| 19870 | bless( { | ||
| 19871 | 'description' => '/(append(ing)?|as\\\\s+(a\\\\s+)child(\\\\s+of)?)\\\\s/', | ||
| 19872 | 'hashname' => '__PATTERN1__', | ||
| 19873 | 'ldelim' => '/', | ||
| 19874 | 'line' => 414, | ||
| 19875 | 'lookahead' => 0, | ||
| 19876 | 'mod' => '', | ||
| 19877 | 'pattern' => '(append(ing)?|as\\s+(a\\s+)child(\\s+of)?)\\s', | ||
| 19878 | 'rdelim' => '/' | ||
| 19879 | }, 'Parse::RecDescent::Token' ), | ||
| 19880 | bless( { | ||
| 19881 | 'code' => '{ "append" }', | ||
| 19882 | 'hashname' => '__ACTION1__', | ||
| 19883 | 'line' => 415, | ||
| 19884 | 'lookahead' => 0 | ||
| 19885 | }, 'Parse::RecDescent::Action' ) | ||
| 19886 | ], | ||
| 19887 | 'line' => 414, | ||
| 19888 | 'number' => 3, | ||
| 19889 | 'patcount' => 1, | ||
| 19890 | 'strcount' => 0, | ||
| 19891 | 'uncommit' => undef | ||
| 19892 | }, 'Parse::RecDescent::Production' ), | ||
| 19893 | bless( { | ||
| 19894 | 'actcount' => 1, | ||
| 19895 | 'dircount' => 0, | ||
| 19896 | 'error' => undef, | ||
| 19897 | 'items' => [ | ||
| 19898 | bless( { | ||
| 19899 | 'description' => '/(prepend(ing)?|(as\\\\s+)(the\\\\s+)first(\\\\s+child(\\\\s+of)?)?)\\\\s/', | ||
| 19900 | 'hashname' => '__PATTERN1__', | ||
| 19901 | 'ldelim' => '/', | ||
| 19902 | 'line' => 417, | ||
| 19903 | 'lookahead' => 0, | ||
| 19904 | 'mod' => '', | ||
| 19905 | 'pattern' => '(prepend(ing)?|(as\\s+)(the\\s+)first(\\s+child(\\s+of)?)?)\\s', | ||
| 19906 | 'rdelim' => '/' | ||
| 19907 | }, 'Parse::RecDescent::Token' ), | ||
| 19908 | bless( { | ||
| 19909 | 'code' => '{ "prepend" }', | ||
| 19910 | 'hashname' => '__ACTION1__', | ||
| 19911 | 'line' => 418, | ||
| 19912 | 'lookahead' => 0 | ||
| 19913 | }, 'Parse::RecDescent::Action' ) | ||
| 19914 | ], | ||
| 19915 | 'line' => 417, | ||
| 19916 | 'number' => 4, | ||
| 19917 | 'patcount' => 1, | ||
| 19918 | 'strcount' => 0, | ||
| 19919 | 'uncommit' => undef | ||
| 19920 | }, 'Parse::RecDescent::Production' ), | ||
| 19921 | bless( { | ||
| 19922 | 'actcount' => 1, | ||
| 19923 | 'dircount' => 0, | ||
| 19924 | 'error' => undef, | ||
| 19925 | 'items' => [ | ||
| 19926 | bless( { | ||
| 19927 | 'description' => '/(replace|instead( of)?)\\\\s/', | ||
| 19928 | 'hashname' => '__PATTERN1__', | ||
| 19929 | 'ldelim' => '/', | ||
| 19930 | 'line' => 420, | ||
| 19931 | 'lookahead' => 0, | ||
| 19932 | 'mod' => '', | ||
| 19933 | 'pattern' => '(replace|instead( of)?)\\s', | ||
| 19934 | 'rdelim' => '/' | ||
| 19935 | }, 'Parse::RecDescent::Token' ), | ||
| 19936 | bless( { | ||
| 19937 | 'code' => '{ "replace" }', | ||
| 19938 | 'hashname' => '__ACTION1__', | ||
| 19939 | 'line' => 421, | ||
| 19940 | 'lookahead' => 0 | ||
| 19941 | }, 'Parse::RecDescent::Action' ) | ||
| 19942 | ], | ||
| 19943 | 'line' => 420, | ||
| 19944 | 'number' => 5, | ||
| 19945 | 'patcount' => 1, | ||
| 19946 | 'strcount' => 0, | ||
| 19947 | 'uncommit' => undef | ||
| 19948 | }, 'Parse::RecDescent::Production' ) | ||
| 19949 | ], | ||
| 19950 | 'vars' => '' | ||
| 19951 | }, 'Parse::RecDescent::Rule' ), | ||
| 19952 | 'local_var' => bless( { | ||
| 19953 | 'calls' => [ | ||
| 19954 | '_alternation_1_of_production_1_of_rule_local_var', | ||
| 19955 | 'variable' | ||
| 19956 | ], | ||
| 19957 | 'changed' => 0, | ||
| 19958 | 'impcount' => 1, | ||
| 19959 | 'line' => 378, | ||
| 19960 | 'name' => 'local_var', | ||
| 19961 | 'opcount' => 0, | ||
| 19962 | 'prods' => [ | ||
| 19963 | bless( { | ||
| 19964 | 'actcount' => 1, | ||
| 19965 | 'dircount' => 0, | ||
| 19966 | 'error' => undef, | ||
| 19967 | 'items' => [ | ||
| 19968 | bless( { | ||
| 19969 | 'argcode' => undef, | ||
| 19970 | 'expected' => '/(local|my)\\\\s/', | ||
| 19971 | 'line' => 380, | ||
| 19972 | 'lookahead' => 0, | ||
| 19973 | 'matchrule' => 0, | ||
| 19974 | 'max' => 1, | ||
| 19975 | 'min' => 0, | ||
| 19976 | 'repspec' => '?', | ||
| 19977 | 'subrule' => '_alternation_1_of_production_1_of_rule_local_var' | ||
| 19978 | }, 'Parse::RecDescent::Repetition' ), | ||
| 19979 | bless( { | ||
| 19980 | 'argcode' => undef, | ||
| 19981 | 'implicit' => undef, | ||
| 19982 | 'line' => 380, | ||
| 19983 | 'lookahead' => 0, | ||
| 19984 | 'matchrule' => 0, | ||
| 19985 | 'subrule' => 'variable' | ||
| 19986 | }, 'Parse::RecDescent::Subrule' ), | ||
| 19987 | bless( { | ||
| 19988 | 'code' => '{ [$item[2],@{$item[1]}] }', | ||
| 19989 | 'hashname' => '__ACTION1__', | ||
| 19990 | 'line' => 381, | ||
| 19991 | 'lookahead' => 0 | ||
| 19992 | }, 'Parse::RecDescent::Action' ) | ||
| 19993 | ], | ||
| 19994 | 'line' => undef, | ||
| 19995 | 'number' => 0, | ||
| 19996 | 'patcount' => 0, | ||
| 19997 | 'strcount' => 0, | ||
| 19998 | 'uncommit' => undef | ||
| 19999 | }, 'Parse::RecDescent::Production' ) | ||
| 20000 | ], | ||
| 20001 | 'vars' => '' | ||
| 20002 | }, 'Parse::RecDescent::Rule' ), | ||
| 20003 | 'local_var_in' => bless( { | ||
| 20004 | 'calls' => [ | ||
| 20005 | 'local_var' | ||
| 20006 | ], | ||
| 20007 | 'changed' => 0, | ||
| 20008 | 'impcount' => 0, | ||
| 20009 | 'line' => 384, | ||
| 20010 | 'name' => 'local_var_in', | ||
| 20011 | 'opcount' => 0, | ||
| 20012 | 'prods' => [ | ||
| 20013 | bless( { | ||
| 20014 | 'actcount' => 1, | ||
| 20015 | 'dircount' => 0, | ||
| 20016 | 'error' => undef, | ||
| 20017 | 'items' => [ | ||
| 20018 | bless( { | ||
| 20019 | 'argcode' => undef, | ||
| 20020 | 'implicit' => undef, | ||
| 20021 | 'line' => 385, | ||
| 20022 | 'lookahead' => 0, | ||
| 20023 | 'matchrule' => 0, | ||
| 20024 | 'subrule' => 'local_var' | ||
| 20025 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20026 | bless( { | ||
| 20027 | 'description' => '\'in\'', | ||
| 20028 | 'hashname' => '__STRING1__', | ||
| 20029 | 'line' => 385, | ||
| 20030 | 'lookahead' => 0, | ||
| 20031 | 'pattern' => 'in' | ||
| 20032 | }, 'Parse::RecDescent::Literal' ), | ||
| 20033 | bless( { | ||
| 20034 | 'code' => '{ $item[1] }', | ||
| 20035 | 'hashname' => '__ACTION1__', | ||
| 20036 | 'line' => 386, | ||
| 20037 | 'lookahead' => 0 | ||
| 20038 | }, 'Parse::RecDescent::Action' ) | ||
| 20039 | ], | ||
| 20040 | 'line' => undef, | ||
| 20041 | 'number' => 0, | ||
| 20042 | 'patcount' => 0, | ||
| 20043 | 'strcount' => 1, | ||
| 20044 | 'uncommit' => undef | ||
| 20045 | }, 'Parse::RecDescent::Production' ) | ||
| 20046 | ], | ||
| 20047 | 'vars' => '' | ||
| 20048 | }, 'Parse::RecDescent::Rule' ), | ||
| 20049 | 'loose_exp' => bless( { | ||
| 20050 | 'calls' => [ | ||
| 20051 | 'perl_block', | ||
| 20052 | 'block', | ||
| 20053 | 'inline_doc', | ||
| 20054 | 'xpinter' | ||
| 20055 | ], | ||
| 20056 | 'changed' => 0, | ||
| 20057 | 'impcount' => 0, | ||
| 20058 | 'line' => 289, | ||
| 20059 | 'name' => 'loose_exp', | ||
| 20060 | 'opcount' => 0, | ||
| 20061 | 'prods' => [ | ||
| 20062 | bless( { | ||
| 20063 | 'actcount' => 1, | ||
| 20064 | 'dircount' => 0, | ||
| 20065 | 'error' => undef, | ||
| 20066 | 'items' => [ | ||
| 20067 | bless( { | ||
| 20068 | 'description' => '/^(?=\\{)/', | ||
| 20069 | 'hashname' => '__PATTERN1__', | ||
| 20070 | 'ldelim' => '/', | ||
| 20071 | 'line' => 290, | ||
| 20072 | 'lookahead' => 0, | ||
| 20073 | 'mod' => '', | ||
| 20074 | 'pattern' => '^(?={)', | ||
| 20075 | 'rdelim' => '/' | ||
| 20076 | }, 'Parse::RecDescent::Token' ), | ||
| 20077 | bless( { | ||
| 20078 | 'argcode' => undef, | ||
| 20079 | 'implicit' => undef, | ||
| 20080 | 'line' => 290, | ||
| 20081 | 'lookahead' => 0, | ||
| 20082 | 'matchrule' => 0, | ||
| 20083 | 'subrule' => 'perl_block' | ||
| 20084 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20085 | bless( { | ||
| 20086 | 'code' => '{ $item[2] }', | ||
| 20087 | 'hashname' => '__ACTION1__', | ||
| 20088 | 'line' => 291, | ||
| 20089 | 'lookahead' => 0 | ||
| 20090 | }, 'Parse::RecDescent::Action' ) | ||
| 20091 | ], | ||
| 20092 | 'line' => undef, | ||
| 20093 | 'number' => 0, | ||
| 20094 | 'patcount' => 1, | ||
| 20095 | 'strcount' => 0, | ||
| 20096 | 'uncommit' => undef | ||
| 20097 | }, 'Parse::RecDescent::Production' ), | ||
| 20098 | bless( { | ||
| 20099 | 'actcount' => 1, | ||
| 20100 | 'dircount' => 0, | ||
| 20101 | 'error' => undef, | ||
| 20102 | 'items' => [ | ||
| 20103 | bless( { | ||
| 20104 | 'description' => '\'&\'', | ||
| 20105 | 'hashname' => '__STRING1__', | ||
| 20106 | 'line' => 293, | ||
| 20107 | 'lookahead' => 0, | ||
| 20108 | 'pattern' => '&' | ||
| 20109 | }, 'Parse::RecDescent::Literal' ), | ||
| 20110 | bless( { | ||
| 20111 | 'argcode' => undef, | ||
| 20112 | 'implicit' => undef, | ||
| 20113 | 'line' => 293, | ||
| 20114 | 'lookahead' => 0, | ||
| 20115 | 'matchrule' => 0, | ||
| 20116 | 'subrule' => 'block' | ||
| 20117 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20118 | bless( { | ||
| 20119 | 'code' => '{ $item[2] }', | ||
| 20120 | 'hashname' => '__ACTION1__', | ||
| 20121 | 'line' => 294, | ||
| 20122 | 'lookahead' => 0 | ||
| 20123 | }, 'Parse::RecDescent::Action' ) | ||
| 20124 | ], | ||
| 20125 | 'line' => 293, | ||
| 20126 | 'number' => 1, | ||
| 20127 | 'patcount' => 0, | ||
| 20128 | 'strcount' => 1, | ||
| 20129 | 'uncommit' => undef | ||
| 20130 | }, 'Parse::RecDescent::Production' ), | ||
| 20131 | bless( { | ||
| 20132 | 'actcount' => 1, | ||
| 20133 | 'dircount' => 0, | ||
| 20134 | 'error' => undef, | ||
| 20135 | 'items' => [ | ||
| 20136 | bless( { | ||
| 20137 | 'description' => '/^(?=<<)/', | ||
| 20138 | 'hashname' => '__PATTERN1__', | ||
| 20139 | 'ldelim' => '/', | ||
| 20140 | 'line' => 296, | ||
| 20141 | 'lookahead' => 0, | ||
| 20142 | 'mod' => '', | ||
| 20143 | 'pattern' => '^(?=<<)', | ||
| 20144 | 'rdelim' => '/' | ||
| 20145 | }, 'Parse::RecDescent::Token' ), | ||
| 20146 | bless( { | ||
| 20147 | 'argcode' => undef, | ||
| 20148 | 'implicit' => undef, | ||
| 20149 | 'line' => 296, | ||
| 20150 | 'lookahead' => 0, | ||
| 20151 | 'matchrule' => 0, | ||
| 20152 | 'subrule' => 'inline_doc' | ||
| 20153 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20154 | bless( { | ||
| 20155 | 'code' => '{ $item[2] }', | ||
| 20156 | 'hashname' => '__ACTION1__', | ||
| 20157 | 'line' => 297, | ||
| 20158 | 'lookahead' => 0 | ||
| 20159 | }, 'Parse::RecDescent::Action' ) | ||
| 20160 | ], | ||
| 20161 | 'line' => 296, | ||
| 20162 | 'number' => 2, | ||
| 20163 | 'patcount' => 1, | ||
| 20164 | 'strcount' => 0, | ||
| 20165 | 'uncommit' => undef | ||
| 20166 | }, 'Parse::RecDescent::Production' ), | ||
| 20167 | bless( { | ||
| 20168 | 'actcount' => 0, | ||
| 20169 | 'dircount' => 0, | ||
| 20170 | 'error' => undef, | ||
| 20171 | 'items' => [ | ||
| 20172 | bless( { | ||
| 20173 | 'argcode' => undef, | ||
| 20174 | 'implicit' => undef, | ||
| 20175 | 'line' => 299, | ||
| 20176 | 'lookahead' => 0, | ||
| 20177 | 'matchrule' => 0, | ||
| 20178 | 'subrule' => 'xpinter' | ||
| 20179 | }, 'Parse::RecDescent::Subrule' ) | ||
| 20180 | ], | ||
| 20181 | 'line' => 299, | ||
| 20182 | 'number' => 3, | ||
| 20183 | 'patcount' => 0, | ||
| 20184 | 'strcount' => 0, | ||
| 20185 | 'uncommit' => undef | ||
| 20186 | }, 'Parse::RecDescent::Production' ) | ||
| 20187 | ], | ||
| 20188 | 'vars' => '' | ||
| 20189 | }, 'Parse::RecDescent::Rule' ), | ||
| 20190 | 'nodename' => bless( { | ||
| 20191 | 'calls' => [ | ||
| 20192 | 'exp' | ||
| 20193 | ], | ||
| 20194 | 'changed' => 0, | ||
| 20195 | 'impcount' => 0, | ||
| 20196 | 'line' => 175, | ||
| 20197 | 'name' => 'nodename', | ||
| 20198 | 'opcount' => 0, | ||
| 20199 | 'prods' => [ | ||
| 20200 | bless( { | ||
| 20201 | 'actcount' => 0, | ||
| 20202 | 'dircount' => 0, | ||
| 20203 | 'error' => undef, | ||
| 20204 | 'items' => [ | ||
| 20205 | bless( { | ||
| 20206 | 'argcode' => undef, | ||
| 20207 | 'implicit' => undef, | ||
| 20208 | 'line' => 176, | ||
| 20209 | 'lookahead' => 0, | ||
| 20210 | 'matchrule' => 0, | ||
| 20211 | 'subrule' => 'exp' | ||
| 20212 | }, 'Parse::RecDescent::Subrule' ) | ||
| 20213 | ], | ||
| 20214 | 'line' => undef, | ||
| 20215 | 'number' => 0, | ||
| 20216 | 'patcount' => 0, | ||
| 20217 | 'strcount' => 0, | ||
| 20218 | 'uncommit' => undef | ||
| 20219 | }, 'Parse::RecDescent::Production' ) | ||
| 20220 | ], | ||
| 20221 | 'vars' => '' | ||
| 20222 | }, 'Parse::RecDescent::Rule' ), | ||
| 20223 | 'nodetype' => bless( { | ||
| 20224 | 'calls' => [], | ||
| 20225 | 'changed' => 0, | ||
| 20226 | 'impcount' => 0, | ||
| 20227 | 'line' => 401, | ||
| 20228 | 'name' => 'nodetype', | ||
| 20229 | 'opcount' => 0, | ||
| 20230 | 'prods' => [ | ||
| 20231 | bless( { | ||
| 20232 | 'actcount' => 0, | ||
| 20233 | 'dircount' => 0, | ||
| 20234 | 'error' => undef, | ||
| 20235 | 'items' => [ | ||
| 20236 | bless( { | ||
| 20237 | 'description' => '/element|attribute|attributes|text|cdata|pi|comment|chunk|entity_reference/', | ||
| 20238 | 'hashname' => '__PATTERN1__', | ||
| 20239 | 'ldelim' => '/', | ||
| 20240 | 'line' => 402, | ||
| 20241 | 'lookahead' => 0, | ||
| 20242 | 'mod' => '', | ||
| 20243 | 'pattern' => 'element|attribute|attributes|text|cdata|pi|comment|chunk|entity_reference', | ||
| 20244 | 'rdelim' => '/' | ||
| 20245 | }, 'Parse::RecDescent::Token' ) | ||
| 20246 | ], | ||
| 20247 | 'line' => undef, | ||
| 20248 | 'number' => 0, | ||
| 20249 | 'patcount' => 1, | ||
| 20250 | 'strcount' => 0, | ||
| 20251 | 'uncommit' => undef | ||
| 20252 | }, 'Parse::RecDescent::Production' ) | ||
| 20253 | ], | ||
| 20254 | 'vars' => '' | ||
| 20255 | }, 'Parse::RecDescent::Rule' ), | ||
| 20256 | 'option' => bless( { | ||
| 20257 | 'calls' => [], | ||
| 20258 | 'changed' => 0, | ||
| 20259 | 'impcount' => 0, | ||
| 20260 | 'line' => 140, | ||
| 20261 | 'name' => 'option', | ||
| 20262 | 'opcount' => 0, | ||
| 20263 | 'prods' => [ | ||
| 20264 | bless( { | ||
| 20265 | 'actcount' => 0, | ||
| 20266 | 'dircount' => 0, | ||
| 20267 | 'error' => undef, | ||
| 20268 | 'items' => [ | ||
| 20269 | bless( { | ||
| 20270 | 'description' => '/:[[:alnum:]]|--[-_[:alnum:]]+/', | ||
| 20271 | 'hashname' => '__PATTERN1__', | ||
| 20272 | 'ldelim' => '/', | ||
| 20273 | 'line' => 141, | ||
| 20274 | 'lookahead' => 0, | ||
| 20275 | 'mod' => '', | ||
| 20276 | 'pattern' => ':[[:alnum:]]|--[-_[:alnum:]]+', | ||
| 20277 | 'rdelim' => '/' | ||
| 20278 | }, 'Parse::RecDescent::Token' ) | ||
| 20279 | ], | ||
| 20280 | 'line' => undef, | ||
| 20281 | 'number' => 0, | ||
| 20282 | 'patcount' => 1, | ||
| 20283 | 'strcount' => 0, | ||
| 20284 | 'uncommit' => undef | ||
| 20285 | }, 'Parse::RecDescent::Production' ) | ||
| 20286 | ], | ||
| 20287 | 'vars' => '' | ||
| 20288 | }, 'Parse::RecDescent::Rule' ), | ||
| 20289 | 'param' => bless( { | ||
| 20290 | 'calls' => [ | ||
| 20291 | 'exp' | ||
| 20292 | ], | ||
| 20293 | 'changed' => 0, | ||
| 20294 | 'impcount' => 0, | ||
| 20295 | 'line' => 396, | ||
| 20296 | 'name' => 'param', | ||
| 20297 | 'opcount' => 0, | ||
| 20298 | 'prods' => [ | ||
| 20299 | bless( { | ||
| 20300 | 'actcount' => 1, | ||
| 20301 | 'dircount' => 0, | ||
| 20302 | 'error' => undef, | ||
| 20303 | 'items' => [ | ||
| 20304 | bless( { | ||
| 20305 | 'description' => '/[^=\\\\s]+/', | ||
| 20306 | 'hashname' => '__PATTERN1__', | ||
| 20307 | 'ldelim' => '/', | ||
| 20308 | 'line' => 397, | ||
| 20309 | 'lookahead' => 0, | ||
| 20310 | 'mod' => '', | ||
| 20311 | 'pattern' => '[^=\\s]+', | ||
| 20312 | 'rdelim' => '/' | ||
| 20313 | }, 'Parse::RecDescent::Token' ), | ||
| 20314 | bless( { | ||
| 20315 | 'description' => '\'=\'', | ||
| 20316 | 'hashname' => '__STRING1__', | ||
| 20317 | 'line' => 397, | ||
| 20318 | 'lookahead' => 0, | ||
| 20319 | 'pattern' => '=' | ||
| 20320 | }, 'Parse::RecDescent::Literal' ), | ||
| 20321 | bless( { | ||
| 20322 | 'argcode' => undef, | ||
| 20323 | 'implicit' => undef, | ||
| 20324 | 'line' => 397, | ||
| 20325 | 'lookahead' => 0, | ||
| 20326 | 'matchrule' => 0, | ||
| 20327 | 'subrule' => 'exp' | ||
| 20328 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20329 | bless( { | ||
| 20330 | 'code' => '{ [$item[1],$item[3]] }', | ||
| 20331 | 'hashname' => '__ACTION1__', | ||
| 20332 | 'line' => 398, | ||
| 20333 | 'lookahead' => 0 | ||
| 20334 | }, 'Parse::RecDescent::Action' ) | ||
| 20335 | ], | ||
| 20336 | 'line' => undef, | ||
| 20337 | 'number' => 0, | ||
| 20338 | 'patcount' => 1, | ||
| 20339 | 'strcount' => 1, | ||
| 20340 | 'uncommit' => undef | ||
| 20341 | }, 'Parse::RecDescent::Production' ) | ||
| 20342 | ], | ||
| 20343 | 'vars' => '' | ||
| 20344 | }, 'Parse::RecDescent::Rule' ), | ||
| 20345 | 'perl_block' => bless( { | ||
| 20346 | 'calls' => [], | ||
| 20347 | 'changed' => 0, | ||
| 20348 | 'impcount' => 0, | ||
| 20349 | 'line' => 271, | ||
| 20350 | 'name' => 'perl_block', | ||
| 20351 | 'opcount' => 0, | ||
| 20352 | 'prods' => [ | ||
| 20353 | bless( { | ||
| 20354 | 'actcount' => 1, | ||
| 20355 | 'dircount' => 1, | ||
| 20356 | 'error' => undef, | ||
| 20357 | 'items' => [ | ||
| 20358 | bless( { | ||
| 20359 | 'code' => '{ $main::myline = $thisline; }', | ||
| 20360 | 'hashname' => '__ACTION1__', | ||
| 20361 | 'line' => 273, | ||
| 20362 | 'lookahead' => 0 | ||
| 20363 | }, 'Parse::RecDescent::Action' ), | ||
| 20364 | bless( { | ||
| 20365 | 'hashname' => '__DIRECTIVE1__', | ||
| 20366 | 'line' => 274, | ||
| 20367 | 'lookahead' => 0, | ||
| 20368 | 'name' => '<reject>' | ||
| 20369 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 20370 | ], | ||
| 20371 | 'line' => undef, | ||
| 20372 | 'number' => 0, | ||
| 20373 | 'patcount' => 0, | ||
| 20374 | 'strcount' => 0, | ||
| 20375 | 'uncommit' => undef | ||
| 20376 | }, 'Parse::RecDescent::Production' ), | ||
| 20377 | bless( { | ||
| 20378 | 'actcount' => 1, | ||
| 20379 | 'dircount' => 1, | ||
| 20380 | 'error' => undef, | ||
| 20381 | 'items' => [ | ||
| 20382 | bless( { | ||
| 20383 | 'code' => '{ $main::myline = $thisline; }', | ||
| 20384 | 'hashname' => '__ACTION1__', | ||
| 20385 | 'line' => 276, | ||
| 20386 | 'lookahead' => 0 | ||
| 20387 | }, 'Parse::RecDescent::Action' ), | ||
| 20388 | bless( { | ||
| 20389 | 'hashname' => '__DIRECTIVE1__', | ||
| 20390 | 'line' => 277, | ||
| 20391 | 'lookahead' => 0, | ||
| 20392 | 'name' => '<reject>' | ||
| 20393 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 20394 | ], | ||
| 20395 | 'line' => 275, | ||
| 20396 | 'number' => 1, | ||
| 20397 | 'patcount' => 0, | ||
| 20398 | 'strcount' => 0, | ||
| 20399 | 'uncommit' => undef | ||
| 20400 | }, 'Parse::RecDescent::Production' ), | ||
| 20401 | bless( { | ||
| 20402 | 'actcount' => 1, | ||
| 20403 | 'dircount' => 1, | ||
| 20404 | 'error' => undef, | ||
| 20405 | 'items' => [ | ||
| 20406 | bless( { | ||
| 20407 | 'code' => 'Text::Balanced::extract_codeblock($text,undef,$skip,\'{}\'); | ||
| 20408 | ', | ||
| 20409 | 'hashname' => '__DIRECTIVE1__', | ||
| 20410 | 'line' => 278, | ||
| 20411 | 'lookahead' => 0, | ||
| 20412 | 'name' => '<perl_codeblock>' | ||
| 20413 | }, 'Parse::RecDescent::Directive' ), | ||
| 20414 | bless( { | ||
| 20415 | 'code' => '{ { | ||
| 20416 | $return=$item[1]; | ||
| 20417 | { | ||
| 20418 | local $^W = 0; # don\'t warn about undefined contants | ||
| 20419 | my $pos="# line $main::myline \\"$XML::XSH2::Functions::SCRIPT\\"\\n"; | ||
| 20420 | $return=~s/^\\{/\\{\\n$pos/; | ||
| 20421 | } | ||
| 20422 | } }', | ||
| 20423 | 'hashname' => '__ACTION1__', | ||
| 20424 | 'line' => 279, | ||
| 20425 | 'lookahead' => 0 | ||
| 20426 | }, 'Parse::RecDescent::Action' ) | ||
| 20427 | ], | ||
| 20428 | 'line' => 278, | ||
| 20429 | 'number' => 2, | ||
| 20430 | 'patcount' => 0, | ||
| 20431 | 'strcount' => 0, | ||
| 20432 | 'uncommit' => undef | ||
| 20433 | }, 'Parse::RecDescent::Production' ) | ||
| 20434 | ], | ||
| 20435 | 'vars' => '' | ||
| 20436 | }, 'Parse::RecDescent::Rule' ), | ||
| 20437 | 'perl_expression' => bless( { | ||
| 20438 | 'calls' => [ | ||
| 20439 | 'exp' | ||
| 20440 | ], | ||
| 20441 | 'changed' => 0, | ||
| 20442 | 'impcount' => 0, | ||
| 20443 | 'line' => 263, | ||
| 20444 | 'name' => 'perl_expression', | ||
| 20445 | 'opcount' => 0, | ||
| 20446 | 'prods' => [ | ||
| 20447 | bless( { | ||
| 20448 | 'actcount' => 1, | ||
| 20449 | 'dircount' => 1, | ||
| 20450 | 'error' => undef, | ||
| 20451 | 'items' => [ | ||
| 20452 | bless( { | ||
| 20453 | 'code' => '{ $main::myline = $thisline; }', | ||
| 20454 | 'hashname' => '__ACTION1__', | ||
| 20455 | 'line' => 265, | ||
| 20456 | 'lookahead' => 0 | ||
| 20457 | }, 'Parse::RecDescent::Action' ), | ||
| 20458 | bless( { | ||
| 20459 | 'hashname' => '__DIRECTIVE1__', | ||
| 20460 | 'line' => 266, | ||
| 20461 | 'lookahead' => 0, | ||
| 20462 | 'name' => '<reject>' | ||
| 20463 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 20464 | ], | ||
| 20465 | 'line' => undef, | ||
| 20466 | 'number' => 0, | ||
| 20467 | 'patcount' => 0, | ||
| 20468 | 'strcount' => 0, | ||
| 20469 | 'uncommit' => undef | ||
| 20470 | }, 'Parse::RecDescent::Production' ), | ||
| 20471 | bless( { | ||
| 20472 | 'actcount' => 1, | ||
| 20473 | 'dircount' => 0, | ||
| 20474 | 'error' => undef, | ||
| 20475 | 'items' => [ | ||
| 20476 | bless( { | ||
| 20477 | 'argcode' => undef, | ||
| 20478 | 'implicit' => undef, | ||
| 20479 | 'line' => 267, | ||
| 20480 | 'lookahead' => 0, | ||
| 20481 | 'matchrule' => 0, | ||
| 20482 | 'subrule' => 'exp' | ||
| 20483 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20484 | bless( { | ||
| 20485 | 'code' => '{ {local $^W=0; "\\n# line $main::myline \\"$XML::XSH2::Functions::SCRIPT\\"\\n".$item[1]} }', | ||
| 20486 | 'hashname' => '__ACTION1__', | ||
| 20487 | 'line' => 268, | ||
| 20488 | 'lookahead' => 0 | ||
| 20489 | }, 'Parse::RecDescent::Action' ) | ||
| 20490 | ], | ||
| 20491 | 'line' => 267, | ||
| 20492 | 'number' => 1, | ||
| 20493 | 'patcount' => 0, | ||
| 20494 | 'strcount' => 0, | ||
| 20495 | 'uncommit' => undef | ||
| 20496 | }, 'Parse::RecDescent::Production' ) | ||
| 20497 | ], | ||
| 20498 | 'vars' => '' | ||
| 20499 | }, 'Parse::RecDescent::Rule' ), | ||
| 20500 | 'shell' => bless( { | ||
| 20501 | 'calls' => [], | ||
| 20502 | 'changed' => 0, | ||
| 20503 | 'impcount' => 0, | ||
| 20504 | 'line' => 354, | ||
| 20505 | 'name' => 'shell', | ||
| 20506 | 'opcount' => 0, | ||
| 20507 | 'prods' => [ | ||
| 20508 | bless( { | ||
| 20509 | 'actcount' => 1, | ||
| 20510 | 'dircount' => 1, | ||
| 20511 | 'error' => undef, | ||
| 20512 | 'items' => [ | ||
| 20513 | bless( { | ||
| 20514 | 'description' => '/!\\\\s*/', | ||
| 20515 | 'hashname' => '__PATTERN1__', | ||
| 20516 | 'ldelim' => '/', | ||
| 20517 | 'line' => 355, | ||
| 20518 | 'lookahead' => 0, | ||
| 20519 | 'mod' => '', | ||
| 20520 | 'pattern' => '!\\s*', | ||
| 20521 | 'rdelim' => '/' | ||
| 20522 | }, 'Parse::RecDescent::Token' ), | ||
| 20523 | bless( { | ||
| 20524 | 'code' => '$commit = 1', | ||
| 20525 | 'hashname' => '__DIRECTIVE1__', | ||
| 20526 | 'line' => 355, | ||
| 20527 | 'lookahead' => 0, | ||
| 20528 | 'name' => '<commit>' | ||
| 20529 | }, 'Parse::RecDescent::Directive' ), | ||
| 20530 | bless( { | ||
| 20531 | 'description' => '/.*/', | ||
| 20532 | 'hashname' => '__PATTERN2__', | ||
| 20533 | 'ldelim' => '/', | ||
| 20534 | 'line' => 355, | ||
| 20535 | 'lookahead' => 0, | ||
| 20536 | 'mod' => '', | ||
| 20537 | 'pattern' => '.*', | ||
| 20538 | 'rdelim' => '/' | ||
| 20539 | }, 'Parse::RecDescent::Token' ), | ||
| 20540 | bless( { | ||
| 20541 | 'code' => '{ [[$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'sh_noev\',$item[3]]] }', | ||
| 20542 | 'hashname' => '__ACTION1__', | ||
| 20543 | 'line' => 356, | ||
| 20544 | 'lookahead' => 0 | ||
| 20545 | }, 'Parse::RecDescent::Action' ) | ||
| 20546 | ], | ||
| 20547 | 'line' => undef, | ||
| 20548 | 'number' => 0, | ||
| 20549 | 'patcount' => 2, | ||
| 20550 | 'strcount' => 0, | ||
| 20551 | 'uncommit' => undef | ||
| 20552 | }, 'Parse::RecDescent::Production' ), | ||
| 20553 | bless( { | ||
| 20554 | 'actcount' => 0, | ||
| 20555 | 'dircount' => 2, | ||
| 20556 | 'error' => 1, | ||
| 20557 | 'items' => [ | ||
| 20558 | bless( { | ||
| 20559 | 'commitonly' => '?', | ||
| 20560 | 'hashname' => '__DIRECTIVE1__', | ||
| 20561 | 'line' => 358, | ||
| 20562 | 'lookahead' => 0, | ||
| 20563 | 'msg' => 'Parse error near: "! }.substr($text,0,40).qq{ ..."' | ||
| 20564 | }, 'Parse::RecDescent::Error' ), | ||
| 20565 | bless( { | ||
| 20566 | 'hashname' => '__DIRECTIVE2__', | ||
| 20567 | 'line' => 358, | ||
| 20568 | 'lookahead' => 0, | ||
| 20569 | 'name' => '<reject>' | ||
| 20570 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 20571 | ], | ||
| 20572 | 'line' => 358, | ||
| 20573 | 'number' => 1, | ||
| 20574 | 'patcount' => 0, | ||
| 20575 | 'strcount' => 0, | ||
| 20576 | 'uncommit' => 0 | ||
| 20577 | }, 'Parse::RecDescent::Production' ) | ||
| 20578 | ], | ||
| 20579 | 'vars' => '' | ||
| 20580 | }, 'Parse::RecDescent::Rule' ), | ||
| 20581 | 'shline' => bless( { | ||
| 20582 | 'calls' => [ | ||
| 20583 | 'shline_nosc', | ||
| 20584 | 'shline_bracket' | ||
| 20585 | ], | ||
| 20586 | 'changed' => 0, | ||
| 20587 | 'impcount' => 0, | ||
| 20588 | 'line' => 349, | ||
| 20589 | 'name' => 'shline', | ||
| 20590 | 'opcount' => 0, | ||
| 20591 | 'prods' => [ | ||
| 20592 | bless( { | ||
| 20593 | 'actcount' => 1, | ||
| 20594 | 'dircount' => 0, | ||
| 20595 | 'error' => undef, | ||
| 20596 | 'items' => [ | ||
| 20597 | bless( { | ||
| 20598 | 'argcode' => undef, | ||
| 20599 | 'implicit' => undef, | ||
| 20600 | 'line' => 350, | ||
| 20601 | 'lookahead' => 0, | ||
| 20602 | 'matchrule' => 0, | ||
| 20603 | 'subrule' => 'shline_nosc' | ||
| 20604 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20605 | bless( { | ||
| 20606 | 'argcode' => undef, | ||
| 20607 | 'expected' => undef, | ||
| 20608 | 'line' => 350, | ||
| 20609 | 'lookahead' => 0, | ||
| 20610 | 'matchrule' => 0, | ||
| 20611 | 'max' => 1, | ||
| 20612 | 'min' => 0, | ||
| 20613 | 'repspec' => '?', | ||
| 20614 | 'subrule' => 'shline_bracket' | ||
| 20615 | }, 'Parse::RecDescent::Repetition' ), | ||
| 20616 | bless( { | ||
| 20617 | 'argcode' => undef, | ||
| 20618 | 'implicit' => undef, | ||
| 20619 | 'line' => 350, | ||
| 20620 | 'lookahead' => 0, | ||
| 20621 | 'matchrule' => 0, | ||
| 20622 | 'subrule' => 'shline_nosc' | ||
| 20623 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20624 | bless( { | ||
| 20625 | 'code' => '{ join("",$item[1],@{$item[2]},$item[3]) }', | ||
| 20626 | 'hashname' => '__ACTION1__', | ||
| 20627 | 'line' => 351, | ||
| 20628 | 'lookahead' => 0 | ||
| 20629 | }, 'Parse::RecDescent::Action' ) | ||
| 20630 | ], | ||
| 20631 | 'line' => undef, | ||
| 20632 | 'number' => 0, | ||
| 20633 | 'patcount' => 0, | ||
| 20634 | 'strcount' => 0, | ||
| 20635 | 'uncommit' => undef | ||
| 20636 | }, 'Parse::RecDescent::Production' ) | ||
| 20637 | ], | ||
| 20638 | 'vars' => '' | ||
| 20639 | }, 'Parse::RecDescent::Rule' ), | ||
| 20640 | 'shline_bracket' => bless( { | ||
| 20641 | 'calls' => [ | ||
| 20642 | 'shline_inter', | ||
| 20643 | 'shline_bracket' | ||
| 20644 | ], | ||
| 20645 | 'changed' => 0, | ||
| 20646 | 'impcount' => 0, | ||
| 20647 | 'line' => 344, | ||
| 20648 | 'name' => 'shline_bracket', | ||
| 20649 | 'opcount' => 0, | ||
| 20650 | 'prods' => [ | ||
| 20651 | bless( { | ||
| 20652 | 'actcount' => 1, | ||
| 20653 | 'dircount' => 0, | ||
| 20654 | 'error' => undef, | ||
| 20655 | 'items' => [ | ||
| 20656 | bless( { | ||
| 20657 | 'description' => '\'(\'', | ||
| 20658 | 'hashname' => '__STRING1__', | ||
| 20659 | 'line' => 345, | ||
| 20660 | 'lookahead' => 0, | ||
| 20661 | 'pattern' => '(' | ||
| 20662 | }, 'Parse::RecDescent::Literal' ), | ||
| 20663 | bless( { | ||
| 20664 | 'argcode' => undef, | ||
| 20665 | 'implicit' => undef, | ||
| 20666 | 'line' => 345, | ||
| 20667 | 'lookahead' => 0, | ||
| 20668 | 'matchrule' => 0, | ||
| 20669 | 'subrule' => 'shline_inter' | ||
| 20670 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20671 | bless( { | ||
| 20672 | 'argcode' => undef, | ||
| 20673 | 'expected' => undef, | ||
| 20674 | 'line' => 345, | ||
| 20675 | 'lookahead' => 0, | ||
| 20676 | 'matchrule' => 0, | ||
| 20677 | 'max' => 1, | ||
| 20678 | 'min' => 0, | ||
| 20679 | 'repspec' => '?', | ||
| 20680 | 'subrule' => 'shline_bracket' | ||
| 20681 | }, 'Parse::RecDescent::Repetition' ), | ||
| 20682 | bless( { | ||
| 20683 | 'argcode' => undef, | ||
| 20684 | 'implicit' => undef, | ||
| 20685 | 'line' => 345, | ||
| 20686 | 'lookahead' => 0, | ||
| 20687 | 'matchrule' => 0, | ||
| 20688 | 'subrule' => 'shline_inter' | ||
| 20689 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20690 | bless( { | ||
| 20691 | 'description' => '\')\'', | ||
| 20692 | 'hashname' => '__STRING2__', | ||
| 20693 | 'line' => 345, | ||
| 20694 | 'lookahead' => 0, | ||
| 20695 | 'pattern' => ')' | ||
| 20696 | }, 'Parse::RecDescent::Literal' ), | ||
| 20697 | bless( { | ||
| 20698 | 'code' => '{ join("",\'(\',$item[2],@{$item[3]},$item[4],\')\') }', | ||
| 20699 | 'hashname' => '__ACTION1__', | ||
| 20700 | 'line' => 346, | ||
| 20701 | 'lookahead' => 0 | ||
| 20702 | }, 'Parse::RecDescent::Action' ) | ||
| 20703 | ], | ||
| 20704 | 'line' => undef, | ||
| 20705 | 'number' => 0, | ||
| 20706 | 'patcount' => 0, | ||
| 20707 | 'strcount' => 2, | ||
| 20708 | 'uncommit' => undef | ||
| 20709 | }, 'Parse::RecDescent::Production' ) | ||
| 20710 | ], | ||
| 20711 | 'vars' => '' | ||
| 20712 | }, 'Parse::RecDescent::Rule' ), | ||
| 20713 | 'shline_inter' => bless( { | ||
| 20714 | 'calls' => [], | ||
| 20715 | 'changed' => 0, | ||
| 20716 | 'impcount' => 0, | ||
| 20717 | 'line' => 341, | ||
| 20718 | 'name' => 'shline_inter', | ||
| 20719 | 'opcount' => 0, | ||
| 20720 | 'prods' => [ | ||
| 20721 | bless( { | ||
| 20722 | 'actcount' => 0, | ||
| 20723 | 'dircount' => 0, | ||
| 20724 | 'error' => undef, | ||
| 20725 | 'items' => [ | ||
| 20726 | bless( { | ||
| 20727 | 'description' => '/([^()\\\\\\\\"\']|\\\\\\\\.|\\\\"([^\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\"|\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\\\\\\'|\\\\\\\\\\\\\\\\|\\\\\\\\[^\\\\\'\\\\\\\\])*\\\\\')*/', | ||
| 20728 | 'hashname' => '__PATTERN1__', | ||
| 20729 | 'ldelim' => '/', | ||
| 20730 | 'line' => 342, | ||
| 20731 | 'lookahead' => 0, | ||
| 20732 | 'mod' => '', | ||
| 20733 | 'pattern' => '([^()\\\\"\']|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\\'([^\\\'\\\\]|\\\\\\\'|\\\\\\\\|\\\\[^\\\'\\\\])*\\\')*', | ||
| 20734 | 'rdelim' => '/' | ||
| 20735 | }, 'Parse::RecDescent::Token' ) | ||
| 20736 | ], | ||
| 20737 | 'line' => undef, | ||
| 20738 | 'number' => 0, | ||
| 20739 | 'patcount' => 1, | ||
| 20740 | 'strcount' => 0, | ||
| 20741 | 'uncommit' => undef | ||
| 20742 | }, 'Parse::RecDescent::Production' ) | ||
| 20743 | ], | ||
| 20744 | 'vars' => '' | ||
| 20745 | }, 'Parse::RecDescent::Rule' ), | ||
| 20746 | 'shline_nosc' => bless( { | ||
| 20747 | 'calls' => [], | ||
| 20748 | 'changed' => 0, | ||
| 20749 | 'impcount' => 0, | ||
| 20750 | 'line' => 338, | ||
| 20751 | 'name' => 'shline_nosc', | ||
| 20752 | 'opcount' => 0, | ||
| 20753 | 'prods' => [ | ||
| 20754 | bless( { | ||
| 20755 | 'actcount' => 0, | ||
| 20756 | 'dircount' => 0, | ||
| 20757 | 'error' => undef, | ||
| 20758 | 'items' => [ | ||
| 20759 | bless( { | ||
| 20760 | 'description' => '/([^;()\\\\\\\\"\'\\\\|]|\\\\|[^>]|\\\\\\\\.|\\\\"([^\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\"|\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\\\\\\'|\\\\\\\\\\\\\\\\|\\\\\\\\[^\\\\\'\\\\\\\\])*\\\\\')*/', | ||
| 20761 | 'hashname' => '__PATTERN1__', | ||
| 20762 | 'ldelim' => '/', | ||
| 20763 | 'line' => 339, | ||
| 20764 | 'lookahead' => 0, | ||
| 20765 | 'mod' => '', | ||
| 20766 | 'pattern' => '([^;()\\\\"\'\\|]|\\|[^>]|\\\\.|\\"([^\\"\\\\]|\\\\.)*\\"|\\\'([^\\\'\\\\]|\\\\\\\'|\\\\\\\\|\\\\[^\\\'\\\\])*\\\')*', | ||
| 20767 | 'rdelim' => '/' | ||
| 20768 | }, 'Parse::RecDescent::Token' ) | ||
| 20769 | ], | ||
| 20770 | 'line' => undef, | ||
| 20771 | 'number' => 0, | ||
| 20772 | 'patcount' => 1, | ||
| 20773 | 'strcount' => 0, | ||
| 20774 | 'uncommit' => undef | ||
| 20775 | }, 'Parse::RecDescent::Production' ) | ||
| 20776 | ], | ||
| 20777 | 'vars' => '' | ||
| 20778 | }, 'Parse::RecDescent::Rule' ), | ||
| 20779 | 'startrule' => bless( { | ||
| 20780 | 'calls' => [ | ||
| 20781 | 'shell', | ||
| 20782 | 'eof', | ||
| 20783 | 'complex_command' | ||
| 20784 | ], | ||
| 20785 | 'changed' => 0, | ||
| 20786 | 'impcount' => 0, | ||
| 20787 | 'line' => 321, | ||
| 20788 | 'name' => 'startrule', | ||
| 20789 | 'opcount' => 0, | ||
| 20790 | 'prods' => [ | ||
| 20791 | bless( { | ||
| 20792 | 'actcount' => 1, | ||
| 20793 | 'dircount' => 1, | ||
| 20794 | 'error' => undef, | ||
| 20795 | 'items' => [ | ||
| 20796 | bless( { | ||
| 20797 | 'argcode' => undef, | ||
| 20798 | 'implicit' => undef, | ||
| 20799 | 'line' => 322, | ||
| 20800 | 'lookahead' => 0, | ||
| 20801 | 'matchrule' => 0, | ||
| 20802 | 'subrule' => 'shell' | ||
| 20803 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20804 | bless( { | ||
| 20805 | 'code' => '$commit = 1', | ||
| 20806 | 'hashname' => '__DIRECTIVE1__', | ||
| 20807 | 'line' => 322, | ||
| 20808 | 'lookahead' => 0, | ||
| 20809 | 'name' => '<commit>' | ||
| 20810 | }, 'Parse::RecDescent::Directive' ), | ||
| 20811 | bless( { | ||
| 20812 | 'argcode' => undef, | ||
| 20813 | 'implicit' => undef, | ||
| 20814 | 'line' => 322, | ||
| 20815 | 'lookahead' => 0, | ||
| 20816 | 'matchrule' => 0, | ||
| 20817 | 'subrule' => 'eof' | ||
| 20818 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20819 | bless( { | ||
| 20820 | 'code' => '{ $item[1] }', | ||
| 20821 | 'hashname' => '__ACTION1__', | ||
| 20822 | 'line' => 323, | ||
| 20823 | 'lookahead' => 0 | ||
| 20824 | }, 'Parse::RecDescent::Action' ) | ||
| 20825 | ], | ||
| 20826 | 'line' => undef, | ||
| 20827 | 'number' => 0, | ||
| 20828 | 'patcount' => 0, | ||
| 20829 | 'strcount' => 0, | ||
| 20830 | 'uncommit' => undef | ||
| 20831 | }, 'Parse::RecDescent::Production' ), | ||
| 20832 | bless( { | ||
| 20833 | 'actcount' => 1, | ||
| 20834 | 'dircount' => 1, | ||
| 20835 | 'error' => undef, | ||
| 20836 | 'items' => [ | ||
| 20837 | bless( { | ||
| 20838 | 'argcode' => undef, | ||
| 20839 | 'expected' => undef, | ||
| 20840 | 'line' => 325, | ||
| 20841 | 'lookahead' => 0, | ||
| 20842 | 'matchrule' => 0, | ||
| 20843 | 'max' => 100000000, | ||
| 20844 | 'min' => 1, | ||
| 20845 | 'repspec' => 's', | ||
| 20846 | 'subrule' => 'complex_command' | ||
| 20847 | }, 'Parse::RecDescent::Repetition' ), | ||
| 20848 | bless( { | ||
| 20849 | 'code' => '$commit = 1', | ||
| 20850 | 'hashname' => '__DIRECTIVE1__', | ||
| 20851 | 'line' => 325, | ||
| 20852 | 'lookahead' => 0, | ||
| 20853 | 'name' => '<commit>' | ||
| 20854 | }, 'Parse::RecDescent::Directive' ), | ||
| 20855 | bless( { | ||
| 20856 | 'argcode' => undef, | ||
| 20857 | 'implicit' => undef, | ||
| 20858 | 'line' => 325, | ||
| 20859 | 'lookahead' => 0, | ||
| 20860 | 'matchrule' => 0, | ||
| 20861 | 'subrule' => 'eof' | ||
| 20862 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20863 | bless( { | ||
| 20864 | 'code' => '{ $item[1] }', | ||
| 20865 | 'hashname' => '__ACTION1__', | ||
| 20866 | 'line' => 326, | ||
| 20867 | 'lookahead' => 0 | ||
| 20868 | }, 'Parse::RecDescent::Action' ) | ||
| 20869 | ], | ||
| 20870 | 'line' => 325, | ||
| 20871 | 'number' => 1, | ||
| 20872 | 'patcount' => 0, | ||
| 20873 | 'strcount' => 0, | ||
| 20874 | 'uncommit' => undef | ||
| 20875 | }, 'Parse::RecDescent::Production' ) | ||
| 20876 | ], | ||
| 20877 | 'vars' => '' | ||
| 20878 | }, 'Parse::RecDescent::Rule' ), | ||
| 20879 | 'statement' => bless( { | ||
| 20880 | 'calls' => [ | ||
| 20881 | 'exp', | ||
| 20882 | 'block', | ||
| 20883 | 'elsif_block', | ||
| 20884 | 'else_block', | ||
| 20885 | 'local_var_in', | ||
| 20886 | 'local_var', | ||
| 20887 | 'xpstep', | ||
| 20888 | 'ID', | ||
| 20889 | 'variable' | ||
| 20890 | ], | ||
| 20891 | 'changed' => 0, | ||
| 20892 | 'impcount' => 0, | ||
| 20893 | 'line' => 71, | ||
| 20894 | 'name' => 'statement', | ||
| 20895 | 'opcount' => 0, | ||
| 20896 | 'prods' => [ | ||
| 20897 | bless( { | ||
| 20898 | 'actcount' => 0, | ||
| 20899 | 'dircount' => 2, | ||
| 20900 | 'error' => undef, | ||
| 20901 | 'items' => [ | ||
| 20902 | bless( { | ||
| 20903 | 'description' => '/(?=\\\\s*[\\}\\{;])/', | ||
| 20904 | 'hashname' => '__PATTERN1__', | ||
| 20905 | 'ldelim' => '/', | ||
| 20906 | 'line' => 72, | ||
| 20907 | 'lookahead' => 0, | ||
| 20908 | 'mod' => '', | ||
| 20909 | 'pattern' => '(?=\\s*[}{;])', | ||
| 20910 | 'rdelim' => '/' | ||
| 20911 | }, 'Parse::RecDescent::Token' ), | ||
| 20912 | bless( { | ||
| 20913 | 'code' => '$commit = 1', | ||
| 20914 | 'hashname' => '__DIRECTIVE1__', | ||
| 20915 | 'line' => 72, | ||
| 20916 | 'lookahead' => 0, | ||
| 20917 | 'name' => '<commit>' | ||
| 20918 | }, 'Parse::RecDescent::Directive' ), | ||
| 20919 | bless( { | ||
| 20920 | 'hashname' => '__DIRECTIVE2__', | ||
| 20921 | 'line' => 72, | ||
| 20922 | 'lookahead' => 0, | ||
| 20923 | 'name' => '<reject>' | ||
| 20924 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 20925 | ], | ||
| 20926 | 'line' => undef, | ||
| 20927 | 'number' => 0, | ||
| 20928 | 'patcount' => 1, | ||
| 20929 | 'strcount' => 0, | ||
| 20930 | 'uncommit' => undef | ||
| 20931 | }, 'Parse::RecDescent::Production' ), | ||
| 20932 | bless( { | ||
| 20933 | 'actcount' => 1, | ||
| 20934 | 'dircount' => 1, | ||
| 20935 | 'error' => undef, | ||
| 20936 | 'items' => [ | ||
| 20937 | bless( { | ||
| 20938 | 'description' => '/(if)\\\\b/', | ||
| 20939 | 'hashname' => '__PATTERN1__', | ||
| 20940 | 'ldelim' => '/', | ||
| 20941 | 'line' => 73, | ||
| 20942 | 'lookahead' => 0, | ||
| 20943 | 'mod' => '', | ||
| 20944 | 'pattern' => '(if)\\b', | ||
| 20945 | 'rdelim' => '/' | ||
| 20946 | }, 'Parse::RecDescent::Token' ), | ||
| 20947 | bless( { | ||
| 20948 | 'code' => '$commit = 1', | ||
| 20949 | 'hashname' => '__DIRECTIVE1__', | ||
| 20950 | 'line' => 73, | ||
| 20951 | 'lookahead' => 0, | ||
| 20952 | 'name' => '<commit>' | ||
| 20953 | }, 'Parse::RecDescent::Directive' ), | ||
| 20954 | bless( { | ||
| 20955 | 'argcode' => undef, | ||
| 20956 | 'implicit' => undef, | ||
| 20957 | 'line' => 73, | ||
| 20958 | 'lookahead' => 0, | ||
| 20959 | 'matchrule' => 0, | ||
| 20960 | 'subrule' => 'exp' | ||
| 20961 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20962 | bless( { | ||
| 20963 | 'argcode' => undef, | ||
| 20964 | 'implicit' => undef, | ||
| 20965 | 'line' => 73, | ||
| 20966 | 'lookahead' => 0, | ||
| 20967 | 'matchrule' => 0, | ||
| 20968 | 'subrule' => 'block' | ||
| 20969 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20970 | bless( { | ||
| 20971 | 'argcode' => undef, | ||
| 20972 | 'implicit' => undef, | ||
| 20973 | 'line' => 73, | ||
| 20974 | 'lookahead' => 0, | ||
| 20975 | 'matchrule' => 0, | ||
| 20976 | 'subrule' => 'elsif_block' | ||
| 20977 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20978 | bless( { | ||
| 20979 | 'argcode' => undef, | ||
| 20980 | 'implicit' => undef, | ||
| 20981 | 'line' => 73, | ||
| 20982 | 'lookahead' => 0, | ||
| 20983 | 'matchrule' => 0, | ||
| 20984 | 'subrule' => 'else_block' | ||
| 20985 | }, 'Parse::RecDescent::Subrule' ), | ||
| 20986 | bless( { | ||
| 20987 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'if_statement\',[$item[3],$item[4]],@{$item[5]},@{$item[6]}] }', | ||
| 20988 | 'hashname' => '__ACTION1__', | ||
| 20989 | 'line' => 74, | ||
| 20990 | 'lookahead' => 0 | ||
| 20991 | }, 'Parse::RecDescent::Action' ) | ||
| 20992 | ], | ||
| 20993 | 'line' => 73, | ||
| 20994 | 'number' => 1, | ||
| 20995 | 'patcount' => 1, | ||
| 20996 | 'strcount' => 0, | ||
| 20997 | 'uncommit' => undef | ||
| 20998 | }, 'Parse::RecDescent::Production' ), | ||
| 20999 | bless( { | ||
| 21000 | 'actcount' => 1, | ||
| 21001 | 'dircount' => 1, | ||
| 21002 | 'error' => undef, | ||
| 21003 | 'items' => [ | ||
| 21004 | bless( { | ||
| 21005 | 'description' => '/(unless)\\\\b/', | ||
| 21006 | 'hashname' => '__PATTERN1__', | ||
| 21007 | 'ldelim' => '/', | ||
| 21008 | 'line' => 76, | ||
| 21009 | 'lookahead' => 0, | ||
| 21010 | 'mod' => '', | ||
| 21011 | 'pattern' => '(unless)\\b', | ||
| 21012 | 'rdelim' => '/' | ||
| 21013 | }, 'Parse::RecDescent::Token' ), | ||
| 21014 | bless( { | ||
| 21015 | 'code' => '$commit = 1', | ||
| 21016 | 'hashname' => '__DIRECTIVE1__', | ||
| 21017 | 'line' => 76, | ||
| 21018 | 'lookahead' => 0, | ||
| 21019 | 'name' => '<commit>' | ||
| 21020 | }, 'Parse::RecDescent::Directive' ), | ||
| 21021 | bless( { | ||
| 21022 | 'argcode' => undef, | ||
| 21023 | 'implicit' => undef, | ||
| 21024 | 'line' => 76, | ||
| 21025 | 'lookahead' => 0, | ||
| 21026 | 'matchrule' => 0, | ||
| 21027 | 'subrule' => 'exp' | ||
| 21028 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21029 | bless( { | ||
| 21030 | 'argcode' => undef, | ||
| 21031 | 'implicit' => undef, | ||
| 21032 | 'line' => 76, | ||
| 21033 | 'lookahead' => 0, | ||
| 21034 | 'matchrule' => 0, | ||
| 21035 | 'subrule' => 'block' | ||
| 21036 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21037 | bless( { | ||
| 21038 | 'argcode' => undef, | ||
| 21039 | 'expected' => undef, | ||
| 21040 | 'line' => 76, | ||
| 21041 | 'lookahead' => 0, | ||
| 21042 | 'matchrule' => 0, | ||
| 21043 | 'max' => 1, | ||
| 21044 | 'min' => 0, | ||
| 21045 | 'repspec' => '?', | ||
| 21046 | 'subrule' => 'else_block' | ||
| 21047 | }, 'Parse::RecDescent::Repetition' ), | ||
| 21048 | bless( { | ||
| 21049 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'unless_statement\',$item[3],$item[4],@{$item[5]}] }', | ||
| 21050 | 'hashname' => '__ACTION1__', | ||
| 21051 | 'line' => 77, | ||
| 21052 | 'lookahead' => 0 | ||
| 21053 | }, 'Parse::RecDescent::Action' ) | ||
| 21054 | ], | ||
| 21055 | 'line' => 76, | ||
| 21056 | 'number' => 2, | ||
| 21057 | 'patcount' => 1, | ||
| 21058 | 'strcount' => 0, | ||
| 21059 | 'uncommit' => undef | ||
| 21060 | }, 'Parse::RecDescent::Production' ), | ||
| 21061 | bless( { | ||
| 21062 | 'actcount' => 1, | ||
| 21063 | 'dircount' => 1, | ||
| 21064 | 'error' => undef, | ||
| 21065 | 'items' => [ | ||
| 21066 | bless( { | ||
| 21067 | 'description' => '/(while)\\\\b/', | ||
| 21068 | 'hashname' => '__PATTERN1__', | ||
| 21069 | 'ldelim' => '/', | ||
| 21070 | 'line' => 79, | ||
| 21071 | 'lookahead' => 0, | ||
| 21072 | 'mod' => '', | ||
| 21073 | 'pattern' => '(while)\\b', | ||
| 21074 | 'rdelim' => '/' | ||
| 21075 | }, 'Parse::RecDescent::Token' ), | ||
| 21076 | bless( { | ||
| 21077 | 'code' => '$commit = 1', | ||
| 21078 | 'hashname' => '__DIRECTIVE1__', | ||
| 21079 | 'line' => 79, | ||
| 21080 | 'lookahead' => 0, | ||
| 21081 | 'name' => '<commit>' | ||
| 21082 | }, 'Parse::RecDescent::Directive' ), | ||
| 21083 | bless( { | ||
| 21084 | 'argcode' => undef, | ||
| 21085 | 'implicit' => undef, | ||
| 21086 | 'line' => 79, | ||
| 21087 | 'lookahead' => 0, | ||
| 21088 | 'matchrule' => 0, | ||
| 21089 | 'subrule' => 'exp' | ||
| 21090 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21091 | bless( { | ||
| 21092 | 'argcode' => undef, | ||
| 21093 | 'implicit' => undef, | ||
| 21094 | 'line' => 79, | ||
| 21095 | 'lookahead' => 0, | ||
| 21096 | 'matchrule' => 0, | ||
| 21097 | 'subrule' => 'block' | ||
| 21098 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21099 | bless( { | ||
| 21100 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'while_statement\',$item[3],$item[4]] }', | ||
| 21101 | 'hashname' => '__ACTION1__', | ||
| 21102 | 'line' => 80, | ||
| 21103 | 'lookahead' => 0 | ||
| 21104 | }, 'Parse::RecDescent::Action' ) | ||
| 21105 | ], | ||
| 21106 | 'line' => 79, | ||
| 21107 | 'number' => 3, | ||
| 21108 | 'patcount' => 1, | ||
| 21109 | 'strcount' => 0, | ||
| 21110 | 'uncommit' => undef | ||
| 21111 | }, 'Parse::RecDescent::Production' ), | ||
| 21112 | bless( { | ||
| 21113 | 'actcount' => 1, | ||
| 21114 | 'dircount' => 1, | ||
| 21115 | 'error' => undef, | ||
| 21116 | 'items' => [ | ||
| 21117 | bless( { | ||
| 21118 | 'description' => '/(foreach|for)\\\\b/', | ||
| 21119 | 'hashname' => '__PATTERN1__', | ||
| 21120 | 'ldelim' => '/', | ||
| 21121 | 'line' => 82, | ||
| 21122 | 'lookahead' => 0, | ||
| 21123 | 'mod' => '', | ||
| 21124 | 'pattern' => '(foreach|for)\\b', | ||
| 21125 | 'rdelim' => '/' | ||
| 21126 | }, 'Parse::RecDescent::Token' ), | ||
| 21127 | bless( { | ||
| 21128 | 'code' => '$commit = 1', | ||
| 21129 | 'hashname' => '__DIRECTIVE1__', | ||
| 21130 | 'line' => 82, | ||
| 21131 | 'lookahead' => 0, | ||
| 21132 | 'name' => '<commit>' | ||
| 21133 | }, 'Parse::RecDescent::Directive' ), | ||
| 21134 | bless( { | ||
| 21135 | 'argcode' => undef, | ||
| 21136 | 'expected' => undef, | ||
| 21137 | 'line' => 82, | ||
| 21138 | 'lookahead' => 0, | ||
| 21139 | 'matchrule' => 0, | ||
| 21140 | 'max' => 1, | ||
| 21141 | 'min' => 0, | ||
| 21142 | 'repspec' => '?', | ||
| 21143 | 'subrule' => 'local_var_in' | ||
| 21144 | }, 'Parse::RecDescent::Repetition' ), | ||
| 21145 | bless( { | ||
| 21146 | 'argcode' => undef, | ||
| 21147 | 'implicit' => undef, | ||
| 21148 | 'line' => 82, | ||
| 21149 | 'lookahead' => 0, | ||
| 21150 | 'matchrule' => 0, | ||
| 21151 | 'subrule' => 'exp' | ||
| 21152 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21153 | bless( { | ||
| 21154 | 'argcode' => undef, | ||
| 21155 | 'implicit' => undef, | ||
| 21156 | 'line' => 82, | ||
| 21157 | 'lookahead' => 0, | ||
| 21158 | 'matchrule' => 0, | ||
| 21159 | 'subrule' => 'block' | ||
| 21160 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21161 | bless( { | ||
| 21162 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'foreach_statement\',@item[4,5],@{$item[3]}] }', | ||
| 21163 | 'hashname' => '__ACTION1__', | ||
| 21164 | 'line' => 83, | ||
| 21165 | 'lookahead' => 0 | ||
| 21166 | }, 'Parse::RecDescent::Action' ) | ||
| 21167 | ], | ||
| 21168 | 'line' => 82, | ||
| 21169 | 'number' => 4, | ||
| 21170 | 'patcount' => 1, | ||
| 21171 | 'strcount' => 0, | ||
| 21172 | 'uncommit' => undef | ||
| 21173 | }, 'Parse::RecDescent::Production' ), | ||
| 21174 | bless( { | ||
| 21175 | 'actcount' => 1, | ||
| 21176 | 'dircount' => 1, | ||
| 21177 | 'error' => undef, | ||
| 21178 | 'items' => [ | ||
| 21179 | bless( { | ||
| 21180 | 'description' => '/(try)\\\\b/', | ||
| 21181 | 'hashname' => '__PATTERN1__', | ||
| 21182 | 'ldelim' => '/', | ||
| 21183 | 'line' => 85, | ||
| 21184 | 'lookahead' => 0, | ||
| 21185 | 'mod' => '', | ||
| 21186 | 'pattern' => '(try)\\b', | ||
| 21187 | 'rdelim' => '/' | ||
| 21188 | }, 'Parse::RecDescent::Token' ), | ||
| 21189 | bless( { | ||
| 21190 | 'code' => '$commit = 1', | ||
| 21191 | 'hashname' => '__DIRECTIVE1__', | ||
| 21192 | 'line' => 85, | ||
| 21193 | 'lookahead' => 0, | ||
| 21194 | 'name' => '<commit>' | ||
| 21195 | }, 'Parse::RecDescent::Directive' ), | ||
| 21196 | bless( { | ||
| 21197 | 'argcode' => undef, | ||
| 21198 | 'implicit' => undef, | ||
| 21199 | 'line' => 85, | ||
| 21200 | 'lookahead' => 0, | ||
| 21201 | 'matchrule' => 0, | ||
| 21202 | 'subrule' => 'block' | ||
| 21203 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21204 | bless( { | ||
| 21205 | 'description' => '\'catch\'', | ||
| 21206 | 'hashname' => '__STRING1__', | ||
| 21207 | 'line' => 85, | ||
| 21208 | 'lookahead' => 0, | ||
| 21209 | 'pattern' => 'catch' | ||
| 21210 | }, 'Parse::RecDescent::Literal' ), | ||
| 21211 | bless( { | ||
| 21212 | 'argcode' => undef, | ||
| 21213 | 'expected' => undef, | ||
| 21214 | 'line' => 85, | ||
| 21215 | 'lookahead' => 0, | ||
| 21216 | 'matchrule' => 0, | ||
| 21217 | 'max' => 1, | ||
| 21218 | 'min' => 0, | ||
| 21219 | 'repspec' => '?', | ||
| 21220 | 'subrule' => 'local_var' | ||
| 21221 | }, 'Parse::RecDescent::Repetition' ), | ||
| 21222 | bless( { | ||
| 21223 | 'argcode' => undef, | ||
| 21224 | 'implicit' => undef, | ||
| 21225 | 'line' => 85, | ||
| 21226 | 'lookahead' => 0, | ||
| 21227 | 'matchrule' => 0, | ||
| 21228 | 'subrule' => 'block' | ||
| 21229 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21230 | bless( { | ||
| 21231 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'try_catch\',$item[3],$item[6],@{$item[5]}] }', | ||
| 21232 | 'hashname' => '__ACTION1__', | ||
| 21233 | 'line' => 86, | ||
| 21234 | 'lookahead' => 0 | ||
| 21235 | }, 'Parse::RecDescent::Action' ) | ||
| 21236 | ], | ||
| 21237 | 'line' => 85, | ||
| 21238 | 'number' => 5, | ||
| 21239 | 'patcount' => 1, | ||
| 21240 | 'strcount' => 1, | ||
| 21241 | 'uncommit' => undef | ||
| 21242 | }, 'Parse::RecDescent::Production' ), | ||
| 21243 | bless( { | ||
| 21244 | 'actcount' => 1, | ||
| 21245 | 'dircount' => 1, | ||
| 21246 | 'error' => undef, | ||
| 21247 | 'items' => [ | ||
| 21248 | bless( { | ||
| 21249 | 'description' => '/(iterate)\\\\b/', | ||
| 21250 | 'hashname' => '__PATTERN1__', | ||
| 21251 | 'ldelim' => '/', | ||
| 21252 | 'line' => 88, | ||
| 21253 | 'lookahead' => 0, | ||
| 21254 | 'mod' => '', | ||
| 21255 | 'pattern' => '(iterate)\\b', | ||
| 21256 | 'rdelim' => '/' | ||
| 21257 | }, 'Parse::RecDescent::Token' ), | ||
| 21258 | bless( { | ||
| 21259 | 'code' => '$commit = 1', | ||
| 21260 | 'hashname' => '__DIRECTIVE1__', | ||
| 21261 | 'line' => 88, | ||
| 21262 | 'lookahead' => 0, | ||
| 21263 | 'name' => '<commit>' | ||
| 21264 | }, 'Parse::RecDescent::Directive' ), | ||
| 21265 | bless( { | ||
| 21266 | 'argcode' => undef, | ||
| 21267 | 'implicit' => undef, | ||
| 21268 | 'line' => 88, | ||
| 21269 | 'lookahead' => 0, | ||
| 21270 | 'matchrule' => 0, | ||
| 21271 | 'subrule' => 'xpstep' | ||
| 21272 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21273 | bless( { | ||
| 21274 | 'argcode' => undef, | ||
| 21275 | 'implicit' => undef, | ||
| 21276 | 'line' => 88, | ||
| 21277 | 'lookahead' => 0, | ||
| 21278 | 'matchrule' => 0, | ||
| 21279 | 'subrule' => 'block' | ||
| 21280 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21281 | bless( { | ||
| 21282 | 'code' => '{ [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'iterate\',$item[4],@{$item[3]}] }', | ||
| 21283 | 'hashname' => '__ACTION1__', | ||
| 21284 | 'line' => 89, | ||
| 21285 | 'lookahead' => 0 | ||
| 21286 | }, 'Parse::RecDescent::Action' ) | ||
| 21287 | ], | ||
| 21288 | 'line' => 88, | ||
| 21289 | 'number' => 6, | ||
| 21290 | 'patcount' => 1, | ||
| 21291 | 'strcount' => 0, | ||
| 21292 | 'uncommit' => undef | ||
| 21293 | }, 'Parse::RecDescent::Production' ), | ||
| 21294 | bless( { | ||
| 21295 | 'actcount' => 2, | ||
| 21296 | 'dircount' => 1, | ||
| 21297 | 'error' => undef, | ||
| 21298 | 'items' => [ | ||
| 21299 | bless( { | ||
| 21300 | 'description' => '/(def|define)\\\\b/', | ||
| 21301 | 'hashname' => '__PATTERN1__', | ||
| 21302 | 'ldelim' => '/', | ||
| 21303 | 'line' => 91, | ||
| 21304 | 'lookahead' => 0, | ||
| 21305 | 'mod' => '', | ||
| 21306 | 'pattern' => '(def|define)\\b', | ||
| 21307 | 'rdelim' => '/' | ||
| 21308 | }, 'Parse::RecDescent::Token' ), | ||
| 21309 | bless( { | ||
| 21310 | 'code' => '$commit = 1', | ||
| 21311 | 'hashname' => '__DIRECTIVE1__', | ||
| 21312 | 'line' => 91, | ||
| 21313 | 'lookahead' => 0, | ||
| 21314 | 'name' => '<commit>' | ||
| 21315 | }, 'Parse::RecDescent::Directive' ), | ||
| 21316 | bless( { | ||
| 21317 | 'argcode' => undef, | ||
| 21318 | 'implicit' => undef, | ||
| 21319 | 'line' => 91, | ||
| 21320 | 'lookahead' => 0, | ||
| 21321 | 'matchrule' => 0, | ||
| 21322 | 'subrule' => 'ID' | ||
| 21323 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21324 | bless( { | ||
| 21325 | 'code' => '{ XML::XSH2::Functions::is_command($item[3])?undef:1 }', | ||
| 21326 | 'hashname' => '__ACTION1__', | ||
| 21327 | 'line' => 92, | ||
| 21328 | 'lookahead' => 0 | ||
| 21329 | }, 'Parse::RecDescent::Action' ), | ||
| 21330 | bless( { | ||
| 21331 | 'argcode' => undef, | ||
| 21332 | 'expected' => undef, | ||
| 21333 | 'line' => 93, | ||
| 21334 | 'lookahead' => 0, | ||
| 21335 | 'matchrule' => 0, | ||
| 21336 | 'max' => 100000000, | ||
| 21337 | 'min' => 0, | ||
| 21338 | 'repspec' => 's?', | ||
| 21339 | 'subrule' => 'variable' | ||
| 21340 | }, 'Parse::RecDescent::Repetition' ), | ||
| 21341 | bless( { | ||
| 21342 | 'argcode' => undef, | ||
| 21343 | 'implicit' => undef, | ||
| 21344 | 'line' => 93, | ||
| 21345 | 'lookahead' => 0, | ||
| 21346 | 'matchrule' => 0, | ||
| 21347 | 'subrule' => 'block' | ||
| 21348 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21349 | bless( { | ||
| 21350 | 'code' => '{ | ||
| 21351 | [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'def\',$item[3],$item[6],$item[5]] | ||
| 21352 | }', | ||
| 21353 | 'hashname' => '__ACTION2__', | ||
| 21354 | 'line' => 94, | ||
| 21355 | 'lookahead' => 0 | ||
| 21356 | }, 'Parse::RecDescent::Action' ) | ||
| 21357 | ], | ||
| 21358 | 'line' => 91, | ||
| 21359 | 'number' => 7, | ||
| 21360 | 'patcount' => 1, | ||
| 21361 | 'strcount' => 0, | ||
| 21362 | 'uncommit' => undef | ||
| 21363 | }, 'Parse::RecDescent::Production' ) | ||
| 21364 | ], | ||
| 21365 | 'vars' => '' | ||
| 21366 | }, 'Parse::RecDescent::Rule' ), | ||
| 21367 | 'stream_select' => bless( { | ||
| 21368 | 'calls' => [ | ||
| 21369 | 'xpath', | ||
| 21370 | 'block' | ||
| 21371 | ], | ||
| 21372 | 'changed' => 0, | ||
| 21373 | 'impcount' => 0, | ||
| 21374 | 'line' => 440, | ||
| 21375 | 'name' => 'stream_select', | ||
| 21376 | 'opcount' => 0, | ||
| 21377 | 'prods' => [ | ||
| 21378 | bless( { | ||
| 21379 | 'actcount' => 1, | ||
| 21380 | 'dircount' => 0, | ||
| 21381 | 'error' => undef, | ||
| 21382 | 'items' => [ | ||
| 21383 | bless( { | ||
| 21384 | 'description' => '/select\\\\s/', | ||
| 21385 | 'hashname' => '__PATTERN1__', | ||
| 21386 | 'ldelim' => '/', | ||
| 21387 | 'line' => 441, | ||
| 21388 | 'lookahead' => 0, | ||
| 21389 | 'mod' => '', | ||
| 21390 | 'pattern' => 'select\\s', | ||
| 21391 | 'rdelim' => '/' | ||
| 21392 | }, 'Parse::RecDescent::Token' ), | ||
| 21393 | bless( { | ||
| 21394 | 'argcode' => undef, | ||
| 21395 | 'implicit' => undef, | ||
| 21396 | 'line' => 441, | ||
| 21397 | 'lookahead' => 0, | ||
| 21398 | 'matchrule' => 0, | ||
| 21399 | 'subrule' => 'xpath' | ||
| 21400 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21401 | bless( { | ||
| 21402 | 'argcode' => undef, | ||
| 21403 | 'implicit' => undef, | ||
| 21404 | 'line' => 441, | ||
| 21405 | 'lookahead' => 0, | ||
| 21406 | 'matchrule' => 0, | ||
| 21407 | 'subrule' => 'block' | ||
| 21408 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21409 | bless( { | ||
| 21410 | 'code' => '{ [$item[2],$item[3]] }', | ||
| 21411 | 'hashname' => '__ACTION1__', | ||
| 21412 | 'line' => 442, | ||
| 21413 | 'lookahead' => 0 | ||
| 21414 | }, 'Parse::RecDescent::Action' ) | ||
| 21415 | ], | ||
| 21416 | 'line' => undef, | ||
| 21417 | 'number' => 0, | ||
| 21418 | 'patcount' => 1, | ||
| 21419 | 'strcount' => 0, | ||
| 21420 | 'uncommit' => undef | ||
| 21421 | }, 'Parse::RecDescent::Production' ) | ||
| 21422 | ], | ||
| 21423 | 'vars' => '' | ||
| 21424 | }, 'Parse::RecDescent::Rule' ), | ||
| 21425 | 'trail' => bless( { | ||
| 21426 | 'calls' => [ | ||
| 21427 | 'variable', | ||
| 21428 | 'shline' | ||
| 21429 | ], | ||
| 21430 | 'changed' => 0, | ||
| 21431 | 'impcount' => 0, | ||
| 21432 | 'line' => 329, | ||
| 21433 | 'name' => 'trail', | ||
| 21434 | 'opcount' => 0, | ||
| 21435 | 'prods' => [ | ||
| 21436 | bless( { | ||
| 21437 | 'actcount' => 0, | ||
| 21438 | 'dircount' => 2, | ||
| 21439 | 'error' => undef, | ||
| 21440 | 'items' => [ | ||
| 21441 | bless( { | ||
| 21442 | 'description' => '/(?=\\\\s*[\\};]|\\\\s*\\\\Z)/', | ||
| 21443 | 'hashname' => '__PATTERN1__', | ||
| 21444 | 'ldelim' => '/', | ||
| 21445 | 'line' => 330, | ||
| 21446 | 'lookahead' => 0, | ||
| 21447 | 'mod' => '', | ||
| 21448 | 'pattern' => '(?=\\s*[};]|\\s*\\Z)', | ||
| 21449 | 'rdelim' => '/' | ||
| 21450 | }, 'Parse::RecDescent::Token' ), | ||
| 21451 | bless( { | ||
| 21452 | 'code' => '$commit = 1', | ||
| 21453 | 'hashname' => '__DIRECTIVE1__', | ||
| 21454 | 'line' => 330, | ||
| 21455 | 'lookahead' => 0, | ||
| 21456 | 'name' => '<commit>' | ||
| 21457 | }, 'Parse::RecDescent::Directive' ), | ||
| 21458 | bless( { | ||
| 21459 | 'hashname' => '__DIRECTIVE2__', | ||
| 21460 | 'line' => 330, | ||
| 21461 | 'lookahead' => 0, | ||
| 21462 | 'name' => '<reject>' | ||
| 21463 | }, 'Parse::RecDescent::UncondReject' ) | ||
| 21464 | ], | ||
| 21465 | 'line' => undef, | ||
| 21466 | 'number' => 0, | ||
| 21467 | 'patcount' => 1, | ||
| 21468 | 'strcount' => 0, | ||
| 21469 | 'uncommit' => undef | ||
| 21470 | }, 'Parse::RecDescent::Production' ), | ||
| 21471 | bless( { | ||
| 21472 | 'actcount' => 1, | ||
| 21473 | 'dircount' => 1, | ||
| 21474 | 'error' => undef, | ||
| 21475 | 'items' => [ | ||
| 21476 | bless( { | ||
| 21477 | 'description' => '\'|>\'', | ||
| 21478 | 'hashname' => '__STRING1__', | ||
| 21479 | 'line' => 331, | ||
| 21480 | 'lookahead' => 0, | ||
| 21481 | 'pattern' => '|>' | ||
| 21482 | }, 'Parse::RecDescent::Literal' ), | ||
| 21483 | bless( { | ||
| 21484 | 'code' => '$commit = 1', | ||
| 21485 | 'hashname' => '__DIRECTIVE1__', | ||
| 21486 | 'line' => 331, | ||
| 21487 | 'lookahead' => 0, | ||
| 21488 | 'name' => '<commit>' | ||
| 21489 | }, 'Parse::RecDescent::Directive' ), | ||
| 21490 | bless( { | ||
| 21491 | 'argcode' => undef, | ||
| 21492 | 'implicit' => undef, | ||
| 21493 | 'line' => 331, | ||
| 21494 | 'lookahead' => 0, | ||
| 21495 | 'matchrule' => 0, | ||
| 21496 | 'subrule' => 'variable' | ||
| 21497 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21498 | bless( { | ||
| 21499 | 'code' => '{ [\'var\',$item[3]] }', | ||
| 21500 | 'hashname' => '__ACTION1__', | ||
| 21501 | 'line' => 332, | ||
| 21502 | 'lookahead' => 0 | ||
| 21503 | }, 'Parse::RecDescent::Action' ) | ||
| 21504 | ], | ||
| 21505 | 'line' => 331, | ||
| 21506 | 'number' => 1, | ||
| 21507 | 'patcount' => 0, | ||
| 21508 | 'strcount' => 1, | ||
| 21509 | 'uncommit' => undef | ||
| 21510 | }, 'Parse::RecDescent::Production' ), | ||
| 21511 | bless( { | ||
| 21512 | 'actcount' => 1, | ||
| 21513 | 'dircount' => 1, | ||
| 21514 | 'error' => undef, | ||
| 21515 | 'items' => [ | ||
| 21516 | bless( { | ||
| 21517 | 'description' => '\'|\'', | ||
| 21518 | 'hashname' => '__STRING1__', | ||
| 21519 | 'line' => 334, | ||
| 21520 | 'lookahead' => 0, | ||
| 21521 | 'pattern' => '|' | ||
| 21522 | }, 'Parse::RecDescent::Literal' ), | ||
| 21523 | bless( { | ||
| 21524 | 'code' => '$commit = 1', | ||
| 21525 | 'hashname' => '__DIRECTIVE1__', | ||
| 21526 | 'line' => 334, | ||
| 21527 | 'lookahead' => 0, | ||
| 21528 | 'name' => '<commit>' | ||
| 21529 | }, 'Parse::RecDescent::Directive' ), | ||
| 21530 | bless( { | ||
| 21531 | 'argcode' => undef, | ||
| 21532 | 'implicit' => undef, | ||
| 21533 | 'line' => 334, | ||
| 21534 | 'lookahead' => 0, | ||
| 21535 | 'matchrule' => 0, | ||
| 21536 | 'subrule' => 'shline' | ||
| 21537 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21538 | bless( { | ||
| 21539 | 'code' => '{ [\'pipe\',$item[3]] }', | ||
| 21540 | 'hashname' => '__ACTION1__', | ||
| 21541 | 'line' => 335, | ||
| 21542 | 'lookahead' => 0 | ||
| 21543 | }, 'Parse::RecDescent::Action' ) | ||
| 21544 | ], | ||
| 21545 | 'line' => 334, | ||
| 21546 | 'number' => 2, | ||
| 21547 | 'patcount' => 0, | ||
| 21548 | 'strcount' => 1, | ||
| 21549 | 'uncommit' => undef | ||
| 21550 | }, 'Parse::RecDescent::Production' ) | ||
| 21551 | ], | ||
| 21552 | 'vars' => '' | ||
| 21553 | }, 'Parse::RecDescent::Rule' ), | ||
| 21554 | 'undef' => bless( { | ||
| 21555 | 'calls' => [], | ||
| 21556 | 'changed' => 0, | ||
| 21557 | 'impcount' => 0, | ||
| 21558 | 'line' => 389, | ||
| 21559 | 'name' => 'undef', | ||
| 21560 | 'opcount' => 0, | ||
| 21561 | 'prods' => [ | ||
| 21562 | bless( { | ||
| 21563 | 'actcount' => 1, | ||
| 21564 | 'dircount' => 1, | ||
| 21565 | 'error' => undef, | ||
| 21566 | 'items' => [ | ||
| 21567 | bless( { | ||
| 21568 | 'description' => '/(undef|undefine)\\\\b/', | ||
| 21569 | 'hashname' => '__PATTERN1__', | ||
| 21570 | 'ldelim' => '/', | ||
| 21571 | 'line' => 390, | ||
| 21572 | 'lookahead' => 0, | ||
| 21573 | 'mod' => '', | ||
| 21574 | 'pattern' => '(undef|undefine)\\b', | ||
| 21575 | 'rdelim' => '/' | ||
| 21576 | }, 'Parse::RecDescent::Token' ), | ||
| 21577 | bless( { | ||
| 21578 | 'code' => '$commit = 1', | ||
| 21579 | 'hashname' => '__DIRECTIVE1__', | ||
| 21580 | 'line' => 390, | ||
| 21581 | 'lookahead' => 0, | ||
| 21582 | 'name' => '<commit>' | ||
| 21583 | }, 'Parse::RecDescent::Directive' ), | ||
| 21584 | bless( { | ||
| 21585 | 'description' => '/\\\\$?[a-zA-Z_][a-zA-Z0-9_]*/', | ||
| 21586 | 'hashname' => '__PATTERN2__', | ||
| 21587 | 'ldelim' => '/', | ||
| 21588 | 'line' => 390, | ||
| 21589 | 'lookahead' => 0, | ||
| 21590 | 'mod' => '', | ||
| 21591 | 'pattern' => '\\$?[a-zA-Z_][a-zA-Z0-9_]*', | ||
| 21592 | 'rdelim' => '/' | ||
| 21593 | }, 'Parse::RecDescent::Token' ), | ||
| 21594 | bless( { | ||
| 21595 | 'code' => '{ | ||
| 21596 | [$thisline,$thiscolumn,$thisoffset,$XML::XSH2::Functions::SCRIPT,\'undefine\',$item[3]]; | ||
| 21597 | }', | ||
| 21598 | 'hashname' => '__ACTION1__', | ||
| 21599 | 'line' => 391, | ||
| 21600 | 'lookahead' => 0 | ||
| 21601 | }, 'Parse::RecDescent::Action' ) | ||
| 21602 | ], | ||
| 21603 | 'line' => undef, | ||
| 21604 | 'number' => 0, | ||
| 21605 | 'patcount' => 2, | ||
| 21606 | 'strcount' => 0, | ||
| 21607 | 'uncommit' => undef | ||
| 21608 | }, 'Parse::RecDescent::Production' ) | ||
| 21609 | ], | ||
| 21610 | 'vars' => '' | ||
| 21611 | }, 'Parse::RecDescent::Rule' ), | ||
| 21612 | 'variable' => bless( { | ||
| 21613 | 'calls' => [], | ||
| 21614 | 'changed' => 0, | ||
| 21615 | 'impcount' => 0, | ||
| 21616 | 'line' => 313, | ||
| 21617 | 'name' => 'variable', | ||
| 21618 | 'opcount' => 0, | ||
| 21619 | 'prods' => [ | ||
| 21620 | bless( { | ||
| 21621 | 'actcount' => 0, | ||
| 21622 | 'dircount' => 0, | ||
| 21623 | 'error' => undef, | ||
| 21624 | 'items' => [ | ||
| 21625 | bless( { | ||
| 21626 | 'description' => '/\\\\$[a-zA-Z_][a-zA-Z0-9_]*/', | ||
| 21627 | 'hashname' => '__PATTERN1__', | ||
| 21628 | 'ldelim' => '/', | ||
| 21629 | 'line' => 314, | ||
| 21630 | 'lookahead' => 0, | ||
| 21631 | 'mod' => '', | ||
| 21632 | 'pattern' => '\\$[a-zA-Z_][a-zA-Z0-9_]*', | ||
| 21633 | 'rdelim' => '/' | ||
| 21634 | }, 'Parse::RecDescent::Token' ) | ||
| 21635 | ], | ||
| 21636 | 'line' => undef, | ||
| 21637 | 'number' => 0, | ||
| 21638 | 'patcount' => 1, | ||
| 21639 | 'strcount' => 0, | ||
| 21640 | 'uncommit' => undef | ||
| 21641 | }, 'Parse::RecDescent::Production' ) | ||
| 21642 | ], | ||
| 21643 | 'vars' => '' | ||
| 21644 | }, 'Parse::RecDescent::Rule' ), | ||
| 21645 | 'xpath' => bless( { | ||
| 21646 | 'calls' => [ | ||
| 21647 | 'xpstring', | ||
| 21648 | 'xpsimple', | ||
| 21649 | 'xpcont' | ||
| 21650 | ], | ||
| 21651 | 'changed' => 0, | ||
| 21652 | 'impcount' => 0, | ||
| 21653 | 'line' => 178, | ||
| 21654 | 'name' => 'xpath', | ||
| 21655 | 'opcount' => 0, | ||
| 21656 | 'prods' => [ | ||
| 21657 | bless( { | ||
| 21658 | 'actcount' => 1, | ||
| 21659 | 'dircount' => 1, | ||
| 21660 | 'error' => undef, | ||
| 21661 | 'items' => [ | ||
| 21662 | bless( { | ||
| 21663 | 'description' => '/(?=[\'"])/', | ||
| 21664 | 'hashname' => '__PATTERN1__', | ||
| 21665 | 'ldelim' => '/', | ||
| 21666 | 'line' => 179, | ||
| 21667 | 'lookahead' => 0, | ||
| 21668 | 'mod' => '', | ||
| 21669 | 'pattern' => '(?=[\'"])', | ||
| 21670 | 'rdelim' => '/' | ||
| 21671 | }, 'Parse::RecDescent::Token' ), | ||
| 21672 | bless( { | ||
| 21673 | 'code' => '$commit = 1', | ||
| 21674 | 'hashname' => '__DIRECTIVE1__', | ||
| 21675 | 'line' => 179, | ||
| 21676 | 'lookahead' => 0, | ||
| 21677 | 'name' => '<commit>' | ||
| 21678 | }, 'Parse::RecDescent::Directive' ), | ||
| 21679 | bless( { | ||
| 21680 | 'argcode' => undef, | ||
| 21681 | 'implicit' => undef, | ||
| 21682 | 'line' => 179, | ||
| 21683 | 'lookahead' => 0, | ||
| 21684 | 'matchrule' => 0, | ||
| 21685 | 'subrule' => 'xpstring' | ||
| 21686 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21687 | bless( { | ||
| 21688 | 'code' => '{ $item[3] }', | ||
| 21689 | 'hashname' => '__ACTION1__', | ||
| 21690 | 'line' => 180, | ||
| 21691 | 'lookahead' => 0 | ||
| 21692 | }, 'Parse::RecDescent::Action' ) | ||
| 21693 | ], | ||
| 21694 | 'line' => undef, | ||
| 21695 | 'number' => 0, | ||
| 21696 | 'patcount' => 1, | ||
| 21697 | 'strcount' => 0, | ||
| 21698 | 'uncommit' => undef | ||
| 21699 | }, 'Parse::RecDescent::Production' ), | ||
| 21700 | bless( { | ||
| 21701 | 'actcount' => 1, | ||
| 21702 | 'dircount' => 1, | ||
| 21703 | 'error' => undef, | ||
| 21704 | 'items' => [ | ||
| 21705 | bless( { | ||
| 21706 | 'argcode' => undef, | ||
| 21707 | 'implicit' => undef, | ||
| 21708 | 'line' => 182, | ||
| 21709 | 'lookahead' => 0, | ||
| 21710 | 'matchrule' => 0, | ||
| 21711 | 'subrule' => 'xpsimple' | ||
| 21712 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21713 | bless( { | ||
| 21714 | 'code' => 'my $oldskip = $skip; $skip=""; $oldskip', | ||
| 21715 | 'hashname' => '__DIRECTIVE1__', | ||
| 21716 | 'line' => 182, | ||
| 21717 | 'lookahead' => 0, | ||
| 21718 | 'name' => '<skip:"">' | ||
| 21719 | }, 'Parse::RecDescent::Directive' ), | ||
| 21720 | bless( { | ||
| 21721 | 'argcode' => undef, | ||
| 21722 | 'expected' => undef, | ||
| 21723 | 'line' => 182, | ||
| 21724 | 'lookahead' => 0, | ||
| 21725 | 'matchrule' => 0, | ||
| 21726 | 'max' => 1, | ||
| 21727 | 'min' => 0, | ||
| 21728 | 'repspec' => '?', | ||
| 21729 | 'subrule' => 'xpcont' | ||
| 21730 | }, 'Parse::RecDescent::Repetition' ), | ||
| 21731 | bless( { | ||
| 21732 | 'code' => '{ $item[1].join("",@{$item[3]}) }', | ||
| 21733 | 'hashname' => '__ACTION1__', | ||
| 21734 | 'line' => 183, | ||
| 21735 | 'lookahead' => 0 | ||
| 21736 | }, 'Parse::RecDescent::Action' ) | ||
| 21737 | ], | ||
| 21738 | 'line' => 182, | ||
| 21739 | 'number' => 1, | ||
| 21740 | 'patcount' => 0, | ||
| 21741 | 'strcount' => 0, | ||
| 21742 | 'uncommit' => undef | ||
| 21743 | }, 'Parse::RecDescent::Production' ), | ||
| 21744 | bless( { | ||
| 21745 | 'actcount' => 0, | ||
| 21746 | 'dircount' => 1, | ||
| 21747 | 'error' => 1, | ||
| 21748 | 'items' => [ | ||
| 21749 | bless( { | ||
| 21750 | 'commitonly' => '', | ||
| 21751 | 'hashname' => '__DIRECTIVE1__', | ||
| 21752 | 'line' => 185, | ||
| 21753 | 'lookahead' => 0, | ||
| 21754 | 'msg' => 'expected XPath, but got "}.substr($text,0,40).qq{ ..."' | ||
| 21755 | }, 'Parse::RecDescent::Error' ) | ||
| 21756 | ], | ||
| 21757 | 'line' => 185, | ||
| 21758 | 'number' => 2, | ||
| 21759 | 'patcount' => 0, | ||
| 21760 | 'strcount' => 0, | ||
| 21761 | 'uncommit' => 0 | ||
| 21762 | }, 'Parse::RecDescent::Production' ) | ||
| 21763 | ], | ||
| 21764 | 'vars' => '' | ||
| 21765 | }, 'Parse::RecDescent::Rule' ), | ||
| 21766 | 'xpaxis' => bless( { | ||
| 21767 | 'calls' => [], | ||
| 21768 | 'changed' => 0, | ||
| 21769 | 'impcount' => 0, | ||
| 21770 | 'line' => 424, | ||
| 21771 | 'name' => 'xpaxis', | ||
| 21772 | 'opcount' => 0, | ||
| 21773 | 'prods' => [ | ||
| 21774 | bless( { | ||
| 21775 | 'actcount' => 0, | ||
| 21776 | 'dircount' => 0, | ||
| 21777 | 'error' => undef, | ||
| 21778 | 'items' => [ | ||
| 21779 | bless( { | ||
| 21780 | 'description' => '/[-a-z]+::/', | ||
| 21781 | 'hashname' => '__PATTERN1__', | ||
| 21782 | 'ldelim' => '/', | ||
| 21783 | 'line' => 425, | ||
| 21784 | 'lookahead' => 0, | ||
| 21785 | 'mod' => '', | ||
| 21786 | 'pattern' => '[-a-z]+::', | ||
| 21787 | 'rdelim' => '/' | ||
| 21788 | }, 'Parse::RecDescent::Token' ) | ||
| 21789 | ], | ||
| 21790 | 'line' => undef, | ||
| 21791 | 'number' => 0, | ||
| 21792 | 'patcount' => 1, | ||
| 21793 | 'strcount' => 0, | ||
| 21794 | 'uncommit' => undef | ||
| 21795 | }, 'Parse::RecDescent::Production' ) | ||
| 21796 | ], | ||
| 21797 | 'vars' => '' | ||
| 21798 | }, 'Parse::RecDescent::Rule' ), | ||
| 21799 | 'xpbracket' => bless( { | ||
| 21800 | 'calls' => [ | ||
| 21801 | 'xpinter' | ||
| 21802 | ], | ||
| 21803 | 'changed' => 0, | ||
| 21804 | 'impcount' => 0, | ||
| 21805 | 'line' => 221, | ||
| 21806 | 'name' => 'xpbracket', | ||
| 21807 | 'opcount' => 0, | ||
| 21808 | 'prods' => [ | ||
| 21809 | bless( { | ||
| 21810 | 'actcount' => 1, | ||
| 21811 | 'dircount' => 1, | ||
| 21812 | 'error' => undef, | ||
| 21813 | 'items' => [ | ||
| 21814 | bless( { | ||
| 21815 | 'description' => '\'(\'', | ||
| 21816 | 'hashname' => '__STRING1__', | ||
| 21817 | 'line' => 222, | ||
| 21818 | 'lookahead' => 0, | ||
| 21819 | 'pattern' => '(' | ||
| 21820 | }, 'Parse::RecDescent::Literal' ), | ||
| 21821 | bless( { | ||
| 21822 | 'code' => 'my $oldskip = $skip; $skip=""; $oldskip', | ||
| 21823 | 'hashname' => '__DIRECTIVE1__', | ||
| 21824 | 'line' => 222, | ||
| 21825 | 'lookahead' => 0, | ||
| 21826 | 'name' => '<skip:"">' | ||
| 21827 | }, 'Parse::RecDescent::Directive' ), | ||
| 21828 | bless( { | ||
| 21829 | 'argcode' => undef, | ||
| 21830 | 'implicit' => undef, | ||
| 21831 | 'line' => 222, | ||
| 21832 | 'lookahead' => 0, | ||
| 21833 | 'matchrule' => 0, | ||
| 21834 | 'subrule' => 'xpinter' | ||
| 21835 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21836 | bless( { | ||
| 21837 | 'description' => '\')\'', | ||
| 21838 | 'hashname' => '__STRING2__', | ||
| 21839 | 'line' => 222, | ||
| 21840 | 'lookahead' => 0, | ||
| 21841 | 'pattern' => ')' | ||
| 21842 | }, 'Parse::RecDescent::Literal' ), | ||
| 21843 | bless( { | ||
| 21844 | 'code' => '{ "($item[3])" }', | ||
| 21845 | 'hashname' => '__ACTION1__', | ||
| 21846 | 'line' => 223, | ||
| 21847 | 'lookahead' => 0 | ||
| 21848 | }, 'Parse::RecDescent::Action' ) | ||
| 21849 | ], | ||
| 21850 | 'line' => undef, | ||
| 21851 | 'number' => 0, | ||
| 21852 | 'patcount' => 0, | ||
| 21853 | 'strcount' => 2, | ||
| 21854 | 'uncommit' => undef | ||
| 21855 | }, 'Parse::RecDescent::Production' ) | ||
| 21856 | ], | ||
| 21857 | 'vars' => '' | ||
| 21858 | }, 'Parse::RecDescent::Rule' ), | ||
| 21859 | 'xpbrackets' => bless( { | ||
| 21860 | 'calls' => [ | ||
| 21861 | 'xpbracket', | ||
| 21862 | 'xpfilters' | ||
| 21863 | ], | ||
| 21864 | 'changed' => 0, | ||
| 21865 | 'impcount' => 0, | ||
| 21866 | 'line' => 226, | ||
| 21867 | 'name' => 'xpbrackets', | ||
| 21868 | 'opcount' => 0, | ||
| 21869 | 'prods' => [ | ||
| 21870 | bless( { | ||
| 21871 | 'actcount' => 1, | ||
| 21872 | 'dircount' => 1, | ||
| 21873 | 'error' => undef, | ||
| 21874 | 'items' => [ | ||
| 21875 | bless( { | ||
| 21876 | 'description' => '/(?=\\\\()/', | ||
| 21877 | 'hashname' => '__PATTERN1__', | ||
| 21878 | 'ldelim' => '/', | ||
| 21879 | 'line' => 227, | ||
| 21880 | 'lookahead' => 0, | ||
| 21881 | 'mod' => '', | ||
| 21882 | 'pattern' => '(?=\\()', | ||
| 21883 | 'rdelim' => '/' | ||
| 21884 | }, 'Parse::RecDescent::Token' ), | ||
| 21885 | bless( { | ||
| 21886 | 'argcode' => undef, | ||
| 21887 | 'implicit' => undef, | ||
| 21888 | 'line' => 227, | ||
| 21889 | 'lookahead' => 0, | ||
| 21890 | 'matchrule' => 0, | ||
| 21891 | 'subrule' => 'xpbracket' | ||
| 21892 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21893 | bless( { | ||
| 21894 | 'code' => 'my $oldskip = $skip; $skip=""; $oldskip', | ||
| 21895 | 'hashname' => '__DIRECTIVE1__', | ||
| 21896 | 'line' => 227, | ||
| 21897 | 'lookahead' => 0, | ||
| 21898 | 'name' => '<skip:"">' | ||
| 21899 | }, 'Parse::RecDescent::Directive' ), | ||
| 21900 | bless( { | ||
| 21901 | 'argcode' => undef, | ||
| 21902 | 'expected' => undef, | ||
| 21903 | 'line' => 227, | ||
| 21904 | 'lookahead' => 0, | ||
| 21905 | 'matchrule' => 0, | ||
| 21906 | 'max' => 1, | ||
| 21907 | 'min' => 0, | ||
| 21908 | 'repspec' => '?', | ||
| 21909 | 'subrule' => 'xpfilters' | ||
| 21910 | }, 'Parse::RecDescent::Repetition' ), | ||
| 21911 | bless( { | ||
| 21912 | 'code' => '{ join "",$item[2],@{$item[4]} }', | ||
| 21913 | 'hashname' => '__ACTION1__', | ||
| 21914 | 'line' => 228, | ||
| 21915 | 'lookahead' => 0 | ||
| 21916 | }, 'Parse::RecDescent::Action' ) | ||
| 21917 | ], | ||
| 21918 | 'line' => undef, | ||
| 21919 | 'number' => 0, | ||
| 21920 | 'patcount' => 1, | ||
| 21921 | 'strcount' => 0, | ||
| 21922 | 'uncommit' => undef | ||
| 21923 | }, 'Parse::RecDescent::Production' ) | ||
| 21924 | ], | ||
| 21925 | 'vars' => '' | ||
| 21926 | }, 'Parse::RecDescent::Rule' ), | ||
| 21927 | 'xpcont' => bless( { | ||
| 21928 | 'calls' => [ | ||
| 21929 | '_alternation_1_of_production_1_of_rule_xpcont', | ||
| 21930 | 'xpath' | ||
| 21931 | ], | ||
| 21932 | 'changed' => 0, | ||
| 21933 | 'impcount' => 0, | ||
| 21934 | 'line' => 201, | ||
| 21935 | 'name' => 'xpcont', | ||
| 21936 | 'opcount' => 0, | ||
| 21937 | 'prods' => [ | ||
| 21938 | bless( { | ||
| 21939 | 'actcount' => 1, | ||
| 21940 | 'dircount' => 1, | ||
| 21941 | 'error' => undef, | ||
| 21942 | 'items' => [ | ||
| 21943 | bless( { | ||
| 21944 | 'argcode' => undef, | ||
| 21945 | 'implicit' => 'xpfilters, or xpbrackets', | ||
| 21946 | 'line' => 204, | ||
| 21947 | 'lookahead' => 0, | ||
| 21948 | 'matchrule' => 0, | ||
| 21949 | 'subrule' => '_alternation_1_of_production_1_of_rule_xpcont' | ||
| 21950 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21951 | bless( { | ||
| 21952 | 'code' => 'my $oldskip = $skip; $skip=""; $oldskip', | ||
| 21953 | 'hashname' => '__DIRECTIVE1__', | ||
| 21954 | 'line' => 204, | ||
| 21955 | 'lookahead' => 0, | ||
| 21956 | 'name' => '<skip:"">' | ||
| 21957 | }, 'Parse::RecDescent::Directive' ), | ||
| 21958 | bless( { | ||
| 21959 | 'argcode' => undef, | ||
| 21960 | 'expected' => undef, | ||
| 21961 | 'line' => 204, | ||
| 21962 | 'lookahead' => 0, | ||
| 21963 | 'matchrule' => 0, | ||
| 21964 | 'max' => 1, | ||
| 21965 | 'min' => 0, | ||
| 21966 | 'repspec' => '?', | ||
| 21967 | 'subrule' => 'xpath' | ||
| 21968 | }, 'Parse::RecDescent::Repetition' ), | ||
| 21969 | bless( { | ||
| 21970 | 'code' => '{ $item[1].join("",@{$item[3]}) }', | ||
| 21971 | 'hashname' => '__ACTION1__', | ||
| 21972 | 'line' => 205, | ||
| 21973 | 'lookahead' => 0 | ||
| 21974 | }, 'Parse::RecDescent::Action' ) | ||
| 21975 | ], | ||
| 21976 | 'line' => undef, | ||
| 21977 | 'number' => 0, | ||
| 21978 | 'patcount' => 0, | ||
| 21979 | 'strcount' => 0, | ||
| 21980 | 'uncommit' => undef | ||
| 21981 | }, 'Parse::RecDescent::Production' ), | ||
| 21982 | bless( { | ||
| 21983 | 'actcount' => 1, | ||
| 21984 | 'dircount' => 0, | ||
| 21985 | 'error' => undef, | ||
| 21986 | 'items' => [ | ||
| 21987 | bless( { | ||
| 21988 | 'argcode' => undef, | ||
| 21989 | 'implicit' => undef, | ||
| 21990 | 'line' => 207, | ||
| 21991 | 'lookahead' => 0, | ||
| 21992 | 'matchrule' => 0, | ||
| 21993 | 'subrule' => 'xpath' | ||
| 21994 | }, 'Parse::RecDescent::Subrule' ), | ||
| 21995 | bless( { | ||
| 21996 | 'code' => '{ $item[1] }', | ||
| 21997 | 'hashname' => '__ACTION1__', | ||
| 21998 | 'line' => 208, | ||
| 21999 | 'lookahead' => 0 | ||
| 22000 | }, 'Parse::RecDescent::Action' ) | ||
| 22001 | ], | ||
| 22002 | 'line' => 207, | ||
| 22003 | 'number' => 1, | ||
| 22004 | 'patcount' => 0, | ||
| 22005 | 'strcount' => 0, | ||
| 22006 | 'uncommit' => undef | ||
| 22007 | }, 'Parse::RecDescent::Production' ) | ||
| 22008 | ], | ||
| 22009 | 'vars' => '' | ||
| 22010 | }, 'Parse::RecDescent::Rule' ), | ||
| 22011 | 'xpfilter' => bless( { | ||
| 22012 | 'calls' => [ | ||
| 22013 | 'xpinter' | ||
| 22014 | ], | ||
| 22015 | 'changed' => 0, | ||
| 22016 | 'impcount' => 0, | ||
| 22017 | 'line' => 216, | ||
| 22018 | 'name' => 'xpfilter', | ||
| 22019 | 'opcount' => 0, | ||
| 22020 | 'prods' => [ | ||
| 22021 | bless( { | ||
| 22022 | 'actcount' => 1, | ||
| 22023 | 'dircount' => 0, | ||
| 22024 | 'error' => undef, | ||
| 22025 | 'items' => [ | ||
| 22026 | bless( { | ||
| 22027 | 'description' => '\'[\'', | ||
| 22028 | 'hashname' => '__STRING1__', | ||
| 22029 | 'line' => 217, | ||
| 22030 | 'lookahead' => 0, | ||
| 22031 | 'pattern' => '[' | ||
| 22032 | }, 'Parse::RecDescent::Literal' ), | ||
| 22033 | bless( { | ||
| 22034 | 'argcode' => undef, | ||
| 22035 | 'implicit' => undef, | ||
| 22036 | 'line' => 217, | ||
| 22037 | 'lookahead' => 0, | ||
| 22038 | 'matchrule' => 0, | ||
| 22039 | 'subrule' => 'xpinter' | ||
| 22040 | }, 'Parse::RecDescent::Subrule' ), | ||
| 22041 | bless( { | ||
| 22042 | 'description' => '\']\'', | ||
| 22043 | 'hashname' => '__STRING2__', | ||
| 22044 | 'line' => 217, | ||
| 22045 | 'lookahead' => 0, | ||
| 22046 | 'pattern' => ']' | ||
| 22047 | }, 'Parse::RecDescent::Literal' ), | ||
| 22048 | bless( { | ||
| 22049 | 'code' => '{ "[$item[2]]" }', | ||
| 22050 | 'hashname' => '__ACTION1__', | ||
| 22051 | 'line' => 218, | ||
| 22052 | 'lookahead' => 0 | ||
| 22053 | }, 'Parse::RecDescent::Action' ) | ||
| 22054 | ], | ||
| 22055 | 'line' => undef, | ||
| 22056 | 'number' => 0, | ||
| 22057 | 'patcount' => 0, | ||
| 22058 | 'strcount' => 2, | ||
| 22059 | 'uncommit' => undef | ||
| 22060 | }, 'Parse::RecDescent::Production' ) | ||
| 22061 | ], | ||
| 22062 | 'vars' => '' | ||
| 22063 | }, 'Parse::RecDescent::Rule' ), | ||
| 22064 | 'xpfilters' => bless( { | ||
| 22065 | 'calls' => [ | ||
| 22066 | 'xpfilter' | ||
| 22067 | ], | ||
| 22068 | 'changed' => 0, | ||
| 22069 | 'impcount' => 0, | ||
| 22070 | 'line' => 211, | ||
| 22071 | 'name' => 'xpfilters', | ||
| 22072 | 'opcount' => 0, | ||
| 22073 | 'prods' => [ | ||
| 22074 | bless( { | ||
| 22075 | 'actcount' => 1, | ||
| 22076 | 'dircount' => 0, | ||
| 22077 | 'error' => undef, | ||
| 22078 | 'items' => [ | ||
| 22079 | bless( { | ||
| 22080 | 'description' => '/(?=\\\\[)/', | ||
| 22081 | 'hashname' => '__PATTERN1__', | ||
| 22082 | 'ldelim' => '/', | ||
| 22083 | 'line' => 212, | ||
| 22084 | 'lookahead' => 0, | ||
| 22085 | 'mod' => '', | ||
| 22086 | 'pattern' => '(?=\\[)', | ||
| 22087 | 'rdelim' => '/' | ||
| 22088 | }, 'Parse::RecDescent::Token' ), | ||
| 22089 | bless( { | ||
| 22090 | 'argcode' => undef, | ||
| 22091 | 'expected' => undef, | ||
| 22092 | 'line' => 212, | ||
| 22093 | 'lookahead' => 0, | ||
| 22094 | 'matchrule' => 0, | ||
| 22095 | 'max' => 100000000, | ||
| 22096 | 'min' => 1, | ||
| 22097 | 'repspec' => 's', | ||
| 22098 | 'subrule' => 'xpfilter' | ||
| 22099 | }, 'Parse::RecDescent::Repetition' ), | ||
| 22100 | bless( { | ||
| 22101 | 'code' => '{ join("",@{$item[2]}) }', | ||
| 22102 | 'hashname' => '__ACTION1__', | ||
| 22103 | 'line' => 213, | ||
| 22104 | 'lookahead' => 0 | ||
| 22105 | }, 'Parse::RecDescent::Action' ) | ||
| 22106 | ], | ||
| 22107 | 'line' => undef, | ||
| 22108 | 'number' => 0, | ||
| 22109 | 'patcount' => 1, | ||
| 22110 | 'strcount' => 0, | ||
| 22111 | 'uncommit' => undef | ||
| 22112 | }, 'Parse::RecDescent::Production' ) | ||
| 22113 | ], | ||
| 22114 | 'vars' => '' | ||
| 22115 | }, 'Parse::RecDescent::Rule' ), | ||
| 22116 | 'xpinter' => bless( { | ||
| 22117 | 'calls' => [ | ||
| 22118 | 'xps', | ||
| 22119 | 'xpintercont' | ||
| 22120 | ], | ||
| 22121 | 'changed' => 0, | ||
| 22122 | 'impcount' => 0, | ||
| 22123 | 'line' => 231, | ||
| 22124 | 'name' => 'xpinter', | ||
| 22125 | 'opcount' => 0, | ||
| 22126 | 'prods' => [ | ||
| 22127 | bless( { | ||
| 22128 | 'actcount' => 1, | ||
| 22129 | 'dircount' => 1, | ||
| 22130 | 'error' => undef, | ||
| 22131 | 'items' => [ | ||
| 22132 | bless( { | ||
| 22133 | 'argcode' => undef, | ||
| 22134 | 'implicit' => undef, | ||
| 22135 | 'line' => 232, | ||
| 22136 | 'lookahead' => 0, | ||
| 22137 | 'matchrule' => 0, | ||
| 22138 | 'subrule' => 'xps' | ||
| 22139 | }, 'Parse::RecDescent::Subrule' ), | ||
| 22140 | bless( { | ||
| 22141 | 'code' => 'my $oldskip = $skip; $skip=""; $oldskip', | ||
| 22142 | 'hashname' => '__DIRECTIVE1__', | ||
| 22143 | 'line' => 232, | ||
| 22144 | 'lookahead' => 0, | ||
| 22145 | 'name' => '<skip:"">' | ||
| 22146 | }, 'Parse::RecDescent::Directive' ), | ||
| 22147 | bless( { | ||
| 22148 | 'argcode' => undef, | ||
| 22149 | 'expected' => undef, | ||
| 22150 | 'line' => 232, | ||
| 22151 | 'lookahead' => 0, | ||
| 22152 | 'matchrule' => 0, | ||
| 22153 | 'max' => 1, | ||
| 22154 | 'min' => 0, | ||
| 22155 | 'repspec' => '?', | ||
| 22156 | 'subrule' => 'xpintercont' | ||
| 22157 | }, 'Parse::RecDescent::Repetition' ), | ||
| 22158 | bless( { | ||
| 22159 | 'code' => '{ join("",$item[1],@{$item[3]}) }', | ||
| 22160 | 'hashname' => '__ACTION1__', | ||
| 22161 | 'line' => 233, | ||
| 22162 | 'lookahead' => 0 | ||
| 22163 | }, 'Parse::RecDescent::Action' ) | ||
| 22164 | ], | ||
| 22165 | 'line' => undef, | ||
| 22166 | 'number' => 0, | ||
| 22167 | 'patcount' => 0, | ||
| 22168 | 'strcount' => 0, | ||
| 22169 | 'uncommit' => undef | ||
| 22170 | }, 'Parse::RecDescent::Production' ) | ||
| 22171 | ], | ||
| 22172 | 'vars' => '' | ||
| 22173 | }, 'Parse::RecDescent::Rule' ), | ||
| 22174 | 'xpintercont' => bless( { | ||
| 22175 | 'calls' => [ | ||
| 22176 | '_alternation_1_of_production_1_of_rule_xpintercont', | ||
| 22177 | 'xpinter' | ||
| 22178 | ], | ||
| 22179 | 'changed' => 0, | ||
| 22180 | 'impcount' => 1, | ||
| 22181 | 'line' => 236, | ||
| 22182 | 'name' => 'xpintercont', | ||
| 22183 | 'opcount' => 0, | ||
| 22184 | 'prods' => [ | ||
| 22185 | bless( { | ||
| 22186 | 'actcount' => 1, | ||
| 22187 | 'dircount' => 1, | ||
| 22188 | 'error' => undef, | ||
| 22189 | 'items' => [ | ||
| 22190 | bless( { | ||
| 22191 | 'argcode' => undef, | ||
| 22192 | 'implicit' => 'xpfilters, or xpbrackets', | ||
| 22193 | 'line' => 239, | ||
| 22194 | 'lookahead' => 0, | ||
| 22195 | 'matchrule' => 0, | ||
| 22196 | 'subrule' => '_alternation_1_of_production_1_of_rule_xpintercont' | ||
| 22197 | }, 'Parse::RecDescent::Subrule' ), | ||
| 22198 | bless( { | ||
| 22199 | 'code' => 'my $oldskip = $skip; $skip=""; $oldskip', | ||
| 22200 | 'hashname' => '__DIRECTIVE1__', | ||
| 22201 | 'line' => 239, | ||
| 22202 | 'lookahead' => 0, | ||
| 22203 | 'name' => '<skip:"">' | ||
| 22204 | }, 'Parse::RecDescent::Directive' ), | ||
| 22205 | bless( { | ||
| 22206 | 'argcode' => undef, | ||
| 22207 | 'expected' => undef, | ||
| 22208 | 'line' => 239, | ||
| 22209 | 'lookahead' => 0, | ||
| 22210 | 'matchrule' => 0, | ||
| 22211 | 'max' => 1, | ||
| 22212 | 'min' => 0, | ||
| 22213 | 'repspec' => '?', | ||
| 22214 | 'subrule' => 'xpinter' | ||
| 22215 | }, 'Parse::RecDescent::Repetition' ), | ||
| 22216 | bless( { | ||
| 22217 | 'code' => '{ join("",$item[1],@{$item[3]}) }', | ||
| 22218 | 'hashname' => '__ACTION1__', | ||
| 22219 | 'line' => 240, | ||
| 22220 | 'lookahead' => 0 | ||
| 22221 | }, 'Parse::RecDescent::Action' ) | ||
| 22222 | ], | ||
| 22223 | 'line' => undef, | ||
| 22224 | 'number' => 0, | ||
| 22225 | 'patcount' => 0, | ||
| 22226 | 'strcount' => 0, | ||
| 22227 | 'uncommit' => undef | ||
| 22228 | }, 'Parse::RecDescent::Production' ) | ||
| 22229 | ], | ||
| 22230 | 'vars' => '' | ||
| 22231 | }, 'Parse::RecDescent::Rule' ), | ||
| 22232 | 'xplocationstep' => bless( { | ||
| 22233 | 'calls' => [ | ||
| 22234 | 'xpaxis', | ||
| 22235 | 'xpnodetest' | ||
| 22236 | ], | ||
| 22237 | 'changed' => 0, | ||
| 22238 | 'impcount' => 0, | ||
| 22239 | 'line' => 430, | ||
| 22240 | 'name' => 'xplocationstep', | ||
| 22241 | 'opcount' => 0, | ||
| 22242 | 'prods' => [ | ||
| 22243 | bless( { | ||
| 22244 | 'actcount' => 1, | ||
| 22245 | 'dircount' => 0, | ||
| 22246 | 'error' => undef, | ||
| 22247 | 'items' => [ | ||
| 22248 | bless( { | ||
| 22249 | 'argcode' => undef, | ||
| 22250 | 'expected' => undef, | ||
| 22251 | 'line' => 431, | ||
| 22252 | 'lookahead' => 0, | ||
| 22253 | 'matchrule' => 0, | ||
| 22254 | 'max' => 1, | ||
| 22255 | 'min' => 0, | ||
| 22256 | 'repspec' => '?', | ||
| 22257 | 'subrule' => 'xpaxis' | ||
| 22258 | }, 'Parse::RecDescent::Repetition' ), | ||
| 22259 | bless( { | ||
| 22260 | 'argcode' => undef, | ||
| 22261 | 'implicit' => undef, | ||
| 22262 | 'line' => 431, | ||
| 22263 | 'lookahead' => 0, | ||
| 22264 | 'matchrule' => 0, | ||
| 22265 | 'subrule' => 'xpnodetest' | ||
| 22266 | }, 'Parse::RecDescent::Subrule' ), | ||
| 22267 | bless( { | ||
| 22268 | 'code' => '{ [ (@{$item[1]} ? $item[1][0] : \'child::\'),$item[3] ] }', | ||
| 22269 | 'hashname' => '__ACTION1__', | ||
| 22270 | 'line' => 432, | ||
| 22271 | 'lookahead' => 0 | ||
| 22272 | }, 'Parse::RecDescent::Action' ) | ||
| 22273 | ], | ||
| 22274 | 'line' => undef, | ||
| 22275 | 'number' => 0, | ||
| 22276 | 'patcount' => 0, | ||
| 22277 | 'strcount' => 0, | ||
| 22278 | 'uncommit' => undef | ||
| 22279 | }, 'Parse::RecDescent::Production' ) | ||
| 22280 | ], | ||
| 22281 | 'vars' => '' | ||
| 22282 | }, 'Parse::RecDescent::Rule' ), | ||
| 22283 | 'xpnodetest' => bless( { | ||
| 22284 | 'calls' => [], | ||
| 22285 | 'changed' => 0, | ||
| 22286 | 'impcount' => 0, | ||
| 22287 | 'line' => 427, | ||
| 22288 | 'name' => 'xpnodetest', | ||
| 22289 | 'opcount' => 0, | ||
| 22290 | 'prods' => [ | ||
| 22291 | bless( { | ||
| 22292 | 'actcount' => 0, | ||
| 22293 | 'dircount' => 0, | ||
| 22294 | 'error' => undef, | ||
| 22295 | 'items' => [ | ||
| 22296 | bless( { | ||
| 22297 | 'description' => '/node\\\\(\\\\)|text\\\\(\\\\)|comment\\\\(\\\\)|processing-instruction\\\\(\\\\s*(?:"[^"]*"\\\\s*|\'[^\'*]\'\\\\s*)?\\\\)|[^\\\\(\\\\[\\\\/\\\\"\\\\\'\\\\&\\\\;\\\\s]+/', | ||
| 22298 | 'hashname' => '__PATTERN1__', | ||
| 22299 | 'ldelim' => '/', | ||
| 22300 | 'line' => 428, | ||
| 22301 | 'lookahead' => 0, | ||
| 22302 | 'mod' => '', | ||
| 22303 | 'pattern' => 'node\\(\\)|text\\(\\)|comment\\(\\)|processing-instruction\\(\\s*(?:"[^"]*"\\s*|\'[^\'*]\'\\s*)?\\)|[^\\(\\[\\/\\"\\\'\\&\\;\\s]+', | ||
| 22304 | 'rdelim' => '/' | ||
| 22305 | }, 'Parse::RecDescent::Token' ) | ||
| 22306 | ], | ||
| 22307 | 'line' => undef, | ||
| 22308 | 'number' => 0, | ||
| 22309 | 'patcount' => 1, | ||
| 22310 | 'strcount' => 0, | ||
| 22311 | 'uncommit' => undef | ||
| 22312 | }, 'Parse::RecDescent::Production' ) | ||
| 22313 | ], | ||
| 22314 | 'vars' => '' | ||
| 22315 | }, 'Parse::RecDescent::Rule' ), | ||
| 22316 | 'xps' => bless( { | ||
| 22317 | 'calls' => [], | ||
| 22318 | 'changed' => 0, | ||
| 22319 | 'impcount' => 0, | ||
| 22320 | 'line' => 243, | ||
| 22321 | 'name' => 'xps', | ||
| 22322 | 'opcount' => 0, | ||
| 22323 | 'prods' => [ | ||
| 22324 | bless( { | ||
| 22325 | 'actcount' => 0, | ||
| 22326 | 'dircount' => 0, | ||
| 22327 | 'error' => undef, | ||
| 22328 | 'items' => [ | ||
| 22329 | bless( { | ||
| 22330 | 'description' => '/(?: [^\\\\$\\\\[\\\\]()\'"\\};]+ | | ||
| 22331 | \\\\$(?!\\\\\\{) | | ||
| 22332 | \\\\$\\\\\\{ (?:\\\\$?[a-zA-Z_][a-zA-Z0-9_]* | | ||
| 22333 | \\\\\\{.*?\\\\\\} | | ||
| 22334 | \\\\(.+?\\\\) | ||
| 22335 | ) | ||
| 22336 | \\\\\\} | | ||
| 22337 | \'(?:\\\\$\\\\\\{ (?: \\\\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\\\\{.*?\\\\\\} | \\\\(.+?\\\\)) \\\\\\} | | ||
| 22338 | \\\\$(?!\\\\\\{) | [^\\\\$\'] | ||
| 22339 | )*\' | | ||
| 22340 | "(?:\\\\$\\\\\\{ (?: \\\\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\\\\{.*?\\\\\\} | \\\\(.+?\\\\)) \\\\\\} | | ||
| 22341 | \\\\$(?!\\\\\\{) | [^\\\\$"] | ||
| 22342 | )*" | ||
| 22343 | )*/x', | ||
| 22344 | 'hashname' => '__PATTERN1__', | ||
| 22345 | 'ldelim' => '/', | ||
| 22346 | 'line' => 244, | ||
| 22347 | 'lookahead' => 0, | ||
| 22348 | 'mod' => 'x', | ||
| 22349 | 'pattern' => '(?: [^\\$\\[\\]()\'"};]+ | | ||
| 22350 | \\$(?!\\{) | | ||
| 22351 | \\$\\{ (?:\\$?[a-zA-Z_][a-zA-Z0-9_]* | | ||
| 22352 | \\{.*?\\} | | ||
| 22353 | \\(.+?\\) | ||
| 22354 | ) | ||
| 22355 | \\} | | ||
| 22356 | \'(?:\\$\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\{.*?\\} | \\(.+?\\)) \\} | | ||
| 22357 | \\$(?!\\{) | [^\\$\'] | ||
| 22358 | )*\' | | ||
| 22359 | "(?:\\$\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\{.*?\\} | \\(.+?\\)) \\} | | ||
| 22360 | \\$(?!\\{) | [^\\$"] | ||
| 22361 | )*" | ||
| 22362 | )*', | ||
| 22363 | 'rdelim' => '/' | ||
| 22364 | }, 'Parse::RecDescent::Token' ) | ||
| 22365 | ], | ||
| 22366 | 'line' => undef, | ||
| 22367 | 'number' => 0, | ||
| 22368 | 'patcount' => 1, | ||
| 22369 | 'strcount' => 0, | ||
| 22370 | 'uncommit' => undef | ||
| 22371 | }, 'Parse::RecDescent::Production' ) | ||
| 22372 | ], | ||
| 22373 | 'vars' => '' | ||
| 22374 | }, 'Parse::RecDescent::Rule' ), | ||
| 22375 | 'xpsimple' => bless( { | ||
| 22376 | 'calls' => [ | ||
| 22377 | 'xpbrackets' | ||
| 22378 | ], | ||
| 22379 | 'changed' => 0, | ||
| 22380 | 'impcount' => 0, | ||
| 22381 | 'line' => 187, | ||
| 22382 | 'name' => 'xpsimple', | ||
| 22383 | 'opcount' => 0, | ||
| 22384 | 'prods' => [ | ||
| 22385 | bless( { | ||
| 22386 | 'actcount' => 0, | ||
| 22387 | 'dircount' => 0, | ||
| 22388 | 'error' => undef, | ||
| 22389 | 'items' => [ | ||
| 22390 | bless( { | ||
| 22391 | 'description' => '/(?: | ||
| 22392 | \\\\$\\\\\\{ (?: \\\\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\\\\{.*?\\\\\\} | \\\\(.+?\\\\) ) \\\\\\} | | ||
| 22393 | \\\\$(?!\\\\\\{) | | ||
| 22394 | [^-:\\\\$\\\\[\\\\]\\{\\}|"\'\\\\ \\\\s();] | | ||
| 22395 | -[^-\\\\[\\\\]\\{\\}|"\'\\\\ \\\\s();] | ||
| 22396 | ) | ||
| 22397 | (?: | ||
| 22398 | \\\\$\\\\\\{ (?: \\\\$?[a-zA-Z_][a-zA-Z0-9_]* | \\\\\\{.*?\\\\\\} | \\\\(.+?\\\\) ) \\\\\\} | | ||
| 22399 | \\\\$(?!\\\\\\{) | | ||
| 22400 | [^\\\\[\\\\]\\\\$\\{\\}|"\'\\\\ \\\\s();] | ||
| 22401 | )*/x', | ||
| 22402 | 'hashname' => '__PATTERN1__', | ||
| 22403 | 'ldelim' => '/', | ||
| 22404 | 'line' => 188, | ||
| 22405 | 'lookahead' => 0, | ||
| 22406 | 'mod' => 'x', | ||
| 22407 | 'pattern' => '(?: | ||
| 22408 | \\$\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\{.*?\\} | \\(.+?\\) ) \\} | | ||
| 22409 | \\$(?!\\{) | | ||
| 22410 | [^-:\\$\\[\\]{}|"\'\\ \\s();] | | ||
| 22411 | -[^-\\[\\]{}|"\'\\ \\s();] | ||
| 22412 | ) | ||
| 22413 | (?: | ||
| 22414 | \\$\\{ (?: \\$?[a-zA-Z_][a-zA-Z0-9_]* | \\{.*?\\} | \\(.+?\\) ) \\} | | ||
| 22415 | \\$(?!\\{) | | ||
| 22416 | [^\\[\\]\\${}|"\'\\ \\s();] | ||
| 22417 | )*', | ||
| 22418 | 'rdelim' => '/' | ||
| 22419 | }, 'Parse::RecDescent::Token' ) | ||
| 22420 | ], | ||
| 22421 | 'line' => undef, | ||
| 22422 | 'number' => 0, | ||
| 22423 | 'patcount' => 1, | ||
| 22424 | 'strcount' => 0, | ||
| 22425 | 'uncommit' => undef | ||
| 22426 | }, 'Parse::RecDescent::Production' ), | ||
| 22427 | bless( { | ||
| 22428 | 'actcount' => 0, | ||
| 22429 | 'dircount' => 0, | ||
| 22430 | 'error' => undef, | ||
| 22431 | 'items' => [ | ||
| 22432 | bless( { | ||
| 22433 | 'argcode' => undef, | ||
| 22434 | 'implicit' => undef, | ||
| 22435 | 'line' => 199, | ||
| 22436 | 'lookahead' => 0, | ||
| 22437 | 'matchrule' => 0, | ||
| 22438 | 'subrule' => 'xpbrackets' | ||
| 22439 | }, 'Parse::RecDescent::Subrule' ) | ||
| 22440 | ], | ||
| 22441 | 'line' => 199, | ||
| 22442 | 'number' => 1, | ||
| 22443 | 'patcount' => 0, | ||
| 22444 | 'strcount' => 0, | ||
| 22445 | 'uncommit' => undef | ||
| 22446 | }, 'Parse::RecDescent::Production' ) | ||
| 22447 | ], | ||
| 22448 | 'vars' => '' | ||
| 22449 | }, 'Parse::RecDescent::Rule' ), | ||
| 22450 | 'xpstep' => bless( { | ||
| 22451 | 'calls' => [ | ||
| 22452 | 'xplocationstep', | ||
| 22453 | 'xpfilter' | ||
| 22454 | ], | ||
| 22455 | 'changed' => 0, | ||
| 22456 | 'impcount' => 0, | ||
| 22457 | 'line' => 435, | ||
| 22458 | 'name' => 'xpstep', | ||
| 22459 | 'opcount' => 0, | ||
| 22460 | 'prods' => [ | ||
| 22461 | bless( { | ||
| 22462 | 'actcount' => 1, | ||
| 22463 | 'dircount' => 1, | ||
| 22464 | 'error' => undef, | ||
| 22465 | 'items' => [ | ||
| 22466 | bless( { | ||
| 22467 | 'argcode' => undef, | ||
| 22468 | 'implicit' => undef, | ||
| 22469 | 'line' => 436, | ||
| 22470 | 'lookahead' => 0, | ||
| 22471 | 'matchrule' => 0, | ||
| 22472 | 'subrule' => 'xplocationstep' | ||
| 22473 | }, 'Parse::RecDescent::Subrule' ), | ||
| 22474 | bless( { | ||
| 22475 | 'code' => 'my $oldskip = $skip; $skip=""; $oldskip', | ||
| 22476 | 'hashname' => '__DIRECTIVE1__', | ||
| 22477 | 'line' => 436, | ||
| 22478 | 'lookahead' => 0, | ||
| 22479 | 'name' => '<skip:"">' | ||
| 22480 | }, 'Parse::RecDescent::Directive' ), | ||
| 22481 | bless( { | ||
| 22482 | 'argcode' => undef, | ||
| 22483 | 'expected' => undef, | ||
| 22484 | 'line' => 436, | ||
| 22485 | 'lookahead' => 0, | ||
| 22486 | 'matchrule' => 0, | ||
| 22487 | 'max' => 1, | ||
| 22488 | 'min' => 0, | ||
| 22489 | 'repspec' => '?', | ||
| 22490 | 'subrule' => 'xpfilter' | ||
| 22491 | }, 'Parse::RecDescent::Repetition' ), | ||
| 22492 | bless( { | ||
| 22493 | 'code' => '{ [ @{$item[1]}, @{$item[3]}] }', | ||
| 22494 | 'hashname' => '__ACTION1__', | ||
| 22495 | 'line' => 437, | ||
| 22496 | 'lookahead' => 0 | ||
| 22497 | }, 'Parse::RecDescent::Action' ) | ||
| 22498 | ], | ||
| 22499 | 'line' => undef, | ||
| 22500 | 'number' => 0, | ||
| 22501 | 'patcount' => 0, | ||
| 22502 | 'strcount' => 0, | ||
| 22503 | 'uncommit' => undef | ||
| 22504 | }, 'Parse::RecDescent::Production' ) | ||
| 22505 | ], | ||
| 22506 | 'vars' => '' | ||
| 22507 | }, 'Parse::RecDescent::Rule' ), | ||
| 22508 | 'xpstring' => bless( { | ||
| 22509 | 'calls' => [], | ||
| 22510 | 'changed' => 0, | ||
| 22511 | 'impcount' => 0, | ||
| 22512 | 'line' => 259, | ||
| 22513 | 'name' => 'xpstring', | ||
| 22514 | 'opcount' => 0, | ||
| 22515 | 'prods' => [ | ||
| 22516 | bless( { | ||
| 22517 | 'actcount' => 0, | ||
| 22518 | 'dircount' => 0, | ||
| 22519 | 'error' => undef, | ||
| 22520 | 'items' => [ | ||
| 22521 | bless( { | ||
| 22522 | 'description' => '/\'(?:\\\\$\\\\\\{(?:\\\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\\\\{.*?\\\\\\}|\\\\(.+?\\\\))\\\\\\}|\\\\$(?!\\\\\\{)|[^\\\\$\'])*\' | | ||
| 22523 | "(?:\\\\$\\\\\\{(?:\\\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\\\\\{.*?\\\\\\}|\\\\(.+?\\\\))\\\\\\}|\\\\$(?!\\\\\\{)|[^\\\\$"])*"/x', | ||
| 22524 | 'hashname' => '__PATTERN1__', | ||
| 22525 | 'ldelim' => '/', | ||
| 22526 | 'line' => 260, | ||
| 22527 | 'lookahead' => 0, | ||
| 22528 | 'mod' => 'x', | ||
| 22529 | 'pattern' => '\'(?:\\$\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\{.*?\\}|\\(.+?\\))\\}|\\$(?!\\{)|[^\\$\'])*\' | | ||
| 22530 | "(?:\\$\\{(?:\\$?[a-zA-Z_][a-zA-Z0-9_]*|\\{.*?\\}|\\(.+?\\))\\}|\\$(?!\\{)|[^\\$"])*"', | ||
| 22531 | 'rdelim' => '/' | ||
| 22532 | }, 'Parse::RecDescent::Token' ) | ||
| 22533 | ], | ||
| 22534 | 'line' => undef, | ||
| 22535 | 'number' => 0, | ||
| 22536 | 'patcount' => 1, | ||
| 22537 | 'strcount' => 0, | ||
| 22538 | 'uncommit' => undef | ||
| 22539 | }, 'Parse::RecDescent::Production' ) | ||
| 22540 | ], | ||
| 22541 | 'vars' => '' | ||
| 22542 | }, 'Parse::RecDescent::Rule' ) | ||
| 22543 | }, | ||
| 22544 | 'startcode' => '' | ||
| 22545 | }, 'Parse::RecDescent' ); | ||
| 22546 | } |