| 1 | package XML::Template::Parser::String; | ||
| 2 | use Parse::RecDescent; | ||
| 3 | |||
| 4 | { my $ERRORS; | ||
| 5 | |||
| 6 | |||
| 7 | package Parse::RecDescent::namespace000001; | ||
| 8 | use strict; | ||
| 9 | use vars qw($skip $AUTOLOAD ); | ||
| 10 | $skip = '\s*'; | ||
| 11 | |||
| 12 | sub generate_varget { | ||
| 13 | my ($text, $function) = @_; | ||
| 14 | |||
| 15 | my $return; | ||
| 16 | if (defined $function->[0]) { | ||
| 17 | my ($functionname, $params) = @{$function->[0]}; | ||
| 18 | $return = "\$process->subroutine ('$functionname', $text"; | ||
| 19 | if (defined $params->[0] && scalar @{$params->[0]}) { | ||
| 20 | $return .= ', '; | ||
| 21 | $return .= join (', ', @{$params->[0]}); | ||
| 22 | } | ||
| 23 | $return .= ')'; | ||
| 24 | } else { | ||
| 25 | $return = "\$vars->get_xpath ($text)"; | ||
| 26 | } | ||
| 27 | } | ||
| 28 | ; | ||
| 29 | |||
| 30 | |||
| 31 | { | ||
| 32 | local $SIG{__WARN__} = sub {0}; | ||
| 33 | # PRETEND TO BE IN Parse::RecDescent NAMESPACE | ||
| 34 | *Parse::RecDescent::namespace000001::AUTOLOAD = sub | ||
| 35 | { | ||
| 36 | no strict 'refs'; | ||
| 37 | $AUTOLOAD =~ s/^Parse::RecDescent::namespace000001/Parse::RecDescent/; | ||
| 38 | goto &{$AUTOLOAD}; | ||
| 39 | } | ||
| 40 | } | ||
| 41 | |||
| 42 | push @Parse::RecDescent::namespace000001::ISA, 'Parse::RecDescent'; | ||
| 43 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 44 | sub Parse::RecDescent::namespace000001::paramlist | ||
| 45 | { | ||
| 46 | my $thisparser = $_[0]; | ||
| 47 | $ERRORS = 0; | ||
| 48 | my $thisrule = $thisparser->{"rules"}{"paramlist"}; | ||
| 49 | |||
| 50 | Parse::RecDescent::_trace(q{Trying rule: [paramlist]}, | ||
| 51 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 52 | q{paramlist}) | ||
| 53 | if defined $::RD_TRACE; | ||
| 54 | |||
| 55 | |||
| 56 | my $err_at = @{$thisparser->{errors}}; | ||
| 57 | |||
| 58 | my $score; | ||
| 59 | my $score_return; | ||
| 60 | my $_tok; | ||
| 61 | my $return = undef; | ||
| 62 | my $_matched=0; | ||
| 63 | my $commit=0; | ||
| 64 | my @item = (); | ||
| 65 | my %item = (); | ||
| 66 | my $repeating = defined($_[2]) && $_[2]; | ||
| 67 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 68 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 69 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 70 | my $text; | ||
| 71 | my $lastsep=""; | ||
| 72 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 73 | $expectation->at($_[1]); | ||
| 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: ['(' ')']}, | ||
| 84 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 85 | q{paramlist}) | ||
| 86 | if defined $::RD_TRACE; | ||
| 87 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 88 | $text = $_[1]; | ||
| 89 | my $_savetext; | ||
| 90 | @item = (q{paramlist}); | ||
| 91 | %item = (__RULE__ => q{paramlist}); | ||
| 92 | my $repcount = 0; | ||
| 93 | |||
| 94 | |||
| 95 | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||
| 96 | Parse::RecDescent::_tracefirst($text), | ||
| 97 | q{paramlist}) | ||
| 98 | if defined $::RD_TRACE; | ||
| 99 | $lastsep = ""; | ||
| 100 | $expectation->is(q{})->at($text); | ||
| 101 | |||
| 102 | |||
| 103 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\(//) | ||
| 104 | { | ||
| 105 | |||
| 106 | $expectation->failed(); | ||
| 107 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 108 | Parse::RecDescent::_tracefirst($text)) | ||
| 109 | if defined $::RD_TRACE; | ||
| 110 | last; | ||
| 111 | } | ||
| 112 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 113 | . $& . q{])}, | ||
| 114 | Parse::RecDescent::_tracefirst($text)) | ||
| 115 | if defined $::RD_TRACE; | ||
| 116 | push @item, $item{__STRING1__}=$&; | ||
| 117 | |||
| 118 | |||
| 119 | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||
| 120 | Parse::RecDescent::_tracefirst($text), | ||
| 121 | q{paramlist}) | ||
| 122 | if defined $::RD_TRACE; | ||
| 123 | $lastsep = ""; | ||
| 124 | $expectation->is(q{')'})->at($text); | ||
| 125 | |||
| 126 | |||
| 127 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\)//) | ||
| 128 | { | ||
| 129 | |||
| 130 | $expectation->failed(); | ||
| 131 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 132 | Parse::RecDescent::_tracefirst($text)) | ||
| 133 | if defined $::RD_TRACE; | ||
| 134 | last; | ||
| 135 | } | ||
| 136 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 137 | . $& . q{])}, | ||
| 138 | Parse::RecDescent::_tracefirst($text)) | ||
| 139 | if defined $::RD_TRACE; | ||
| 140 | push @item, $item{__STRING2__}=$&; | ||
| 141 | |||
| 142 | |||
| 143 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 144 | Parse::RecDescent::_tracefirst($text), | ||
| 145 | q{paramlist}) | ||
| 146 | if defined $::RD_TRACE; | ||
| 147 | |||
| 148 | |||
| 149 | $_tok = ($_noactions) ? 0 : do { $return = [] }; | ||
| 150 | unless (defined $_tok) | ||
| 151 | { | ||
| 152 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 153 | if defined $::RD_TRACE; | ||
| 154 | last; | ||
| 155 | } | ||
| 156 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 157 | . $_tok . q{])}, $text) | ||
| 158 | if defined $::RD_TRACE; | ||
| 159 | push @item, $_tok; | ||
| 160 | $item{__ACTION1__}=$_tok; | ||
| 161 | |||
| 162 | |||
| 163 | |||
| 164 | Parse::RecDescent::_trace(q{>>Matched production: ['(' ')']<<}, | ||
| 165 | Parse::RecDescent::_tracefirst($text), | ||
| 166 | q{paramlist}) | ||
| 167 | if defined $::RD_TRACE; | ||
| 168 | $_matched = 1; | ||
| 169 | last; | ||
| 170 | } | ||
| 171 | |||
| 172 | |||
| 173 | while (!$_matched && !$commit) | ||
| 174 | { | ||
| 175 | |||
| 176 | Parse::RecDescent::_trace(q{Trying production: ['(' <leftop: param ',' param> ')']}, | ||
| 177 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 178 | q{paramlist}) | ||
| 179 | if defined $::RD_TRACE; | ||
| 180 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 181 | $text = $_[1]; | ||
| 182 | my $_savetext; | ||
| 183 | @item = (q{paramlist}); | ||
| 184 | %item = (__RULE__ => q{paramlist}); | ||
| 185 | my $repcount = 0; | ||
| 186 | |||
| 187 | |||
| 188 | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||
| 189 | Parse::RecDescent::_tracefirst($text), | ||
| 190 | q{paramlist}) | ||
| 191 | if defined $::RD_TRACE; | ||
| 192 | $lastsep = ""; | ||
| 193 | $expectation->is(q{})->at($text); | ||
| 194 | |||
| 195 | |||
| 196 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\(//) | ||
| 197 | { | ||
| 198 | |||
| 199 | $expectation->failed(); | ||
| 200 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 201 | Parse::RecDescent::_tracefirst($text)) | ||
| 202 | if defined $::RD_TRACE; | ||
| 203 | last; | ||
| 204 | } | ||
| 205 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 206 | . $& . q{])}, | ||
| 207 | Parse::RecDescent::_tracefirst($text)) | ||
| 208 | if defined $::RD_TRACE; | ||
| 209 | push @item, $item{__STRING1__}=$&; | ||
| 210 | |||
| 211 | |||
| 212 | Parse::RecDescent::_trace(q{Trying operator: [<leftop: param ',' param>]}, | ||
| 213 | Parse::RecDescent::_tracefirst($text), | ||
| 214 | q{paramlist}) | ||
| 215 | if defined $::RD_TRACE; | ||
| 216 | $expectation->is(q{<leftop: param ',' param>})->at($text); | ||
| 217 | |||
| 218 | $_tok = undef; | ||
| 219 | OPLOOP: while (1) | ||
| 220 | { | ||
| 221 | $repcount = 0; | ||
| 222 | my @item; | ||
| 223 | |||
| 224 | # MATCH LEFTARG | ||
| 225 | |||
| 226 | Parse::RecDescent::_trace(q{Trying subrule: [param]}, | ||
| 227 | Parse::RecDescent::_tracefirst($text), | ||
| 228 | q{paramlist}) | ||
| 229 | if defined $::RD_TRACE; | ||
| 230 | if (1) { no strict qw{refs}; | ||
| 231 | $expectation->is(q{param})->at($text); | ||
| 232 | unless (defined ($_tok = Parse::RecDescent::namespace000001::param($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 233 | { | ||
| 234 | |||
| 235 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [param]>>}, | ||
| 236 | Parse::RecDescent::_tracefirst($text), | ||
| 237 | q{paramlist}) | ||
| 238 | if defined $::RD_TRACE; | ||
| 239 | $expectation->failed(); | ||
| 240 | last; | ||
| 241 | } | ||
| 242 | Parse::RecDescent::_trace(q{>>Matched subrule: [param]<< (return value: [} | ||
| 243 | . $_tok . q{]}, | ||
| 244 | |||
| 245 | Parse::RecDescent::_tracefirst($text), | ||
| 246 | q{paramlist}) | ||
| 247 | if defined $::RD_TRACE; | ||
| 248 | $item{q{param}} = $_tok; | ||
| 249 | push @item, $_tok; | ||
| 250 | |||
| 251 | } | ||
| 252 | |||
| 253 | |||
| 254 | $repcount++; | ||
| 255 | |||
| 256 | my $savetext = $text; | ||
| 257 | my $backtrack; | ||
| 258 | |||
| 259 | # MATCH (OP RIGHTARG)(s) | ||
| 260 | while ($repcount < 100000000) | ||
| 261 | { | ||
| 262 | $backtrack = 0; | ||
| 263 | |||
| 264 | Parse::RecDescent::_trace(q{Trying terminal: [',']}, | ||
| 265 | Parse::RecDescent::_tracefirst($text), | ||
| 266 | q{paramlist}) | ||
| 267 | if defined $::RD_TRACE; | ||
| 268 | $lastsep = ""; | ||
| 269 | $expectation->is(q{','})->at($text); | ||
| 270 | |||
| 271 | |||
| 272 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\,//) | ||
| 273 | { | ||
| 274 | |||
| 275 | $expectation->failed(); | ||
| 276 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 277 | Parse::RecDescent::_tracefirst($text)) | ||
| 278 | if defined $::RD_TRACE; | ||
| 279 | last; | ||
| 280 | } | ||
| 281 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 282 | . $& . q{])}, | ||
| 283 | Parse::RecDescent::_tracefirst($text)) | ||
| 284 | if defined $::RD_TRACE; | ||
| 285 | push @item, $item{__STRING2__}=$&; | ||
| 286 | |||
| 287 | |||
| 288 | pop @item; | ||
| 289 | |||
| 290 | |||
| 291 | Parse::RecDescent::_trace(q{Trying subrule: [param]}, | ||
| 292 | Parse::RecDescent::_tracefirst($text), | ||
| 293 | q{paramlist}) | ||
| 294 | if defined $::RD_TRACE; | ||
| 295 | if (1) { no strict qw{refs}; | ||
| 296 | $expectation->is(q{param})->at($text); | ||
| 297 | unless (defined ($_tok = Parse::RecDescent::namespace000001::param($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 298 | { | ||
| 299 | |||
| 300 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [param]>>}, | ||
| 301 | Parse::RecDescent::_tracefirst($text), | ||
| 302 | q{paramlist}) | ||
| 303 | if defined $::RD_TRACE; | ||
| 304 | $expectation->failed(); | ||
| 305 | last; | ||
| 306 | } | ||
| 307 | Parse::RecDescent::_trace(q{>>Matched subrule: [param]<< (return value: [} | ||
| 308 | . $_tok . q{]}, | ||
| 309 | |||
| 310 | Parse::RecDescent::_tracefirst($text), | ||
| 311 | q{paramlist}) | ||
| 312 | if defined $::RD_TRACE; | ||
| 313 | $item{q{param}} = $_tok; | ||
| 314 | push @item, $_tok; | ||
| 315 | |||
| 316 | } | ||
| 317 | |||
| 318 | $savetext = $text; | ||
| 319 | $repcount++; | ||
| 320 | } | ||
| 321 | $text = $savetext; | ||
| 322 | pop @item if $backtrack; | ||
| 323 | |||
| 324 | unless (@item) { undef $_tok; last } | ||
| 325 | $_tok = [ @item ]; | ||
| 326 | last; | ||
| 327 | } | ||
| 328 | |||
| 329 | unless ($repcount>=1) | ||
| 330 | { | ||
| 331 | Parse::RecDescent::_trace(q{<<Didn't match operator: [<leftop: param ',' param>]>>}, | ||
| 332 | Parse::RecDescent::_tracefirst($text), | ||
| 333 | q{paramlist}) | ||
| 334 | if defined $::RD_TRACE; | ||
| 335 | $expectation->failed(); | ||
| 336 | last; | ||
| 337 | } | ||
| 338 | Parse::RecDescent::_trace(q{>>Matched operator: [<leftop: param ',' param>]<< (return value: [} | ||
| 339 | . qq{@{$_tok||[]}} . q{]}, | ||
| 340 | Parse::RecDescent::_tracefirst($text), | ||
| 341 | q{paramlist}) | ||
| 342 | if defined $::RD_TRACE; | ||
| 343 | |||
| 344 | push @item, $item{__DIRECTIVE1__}=$_tok||[]; | ||
| 345 | |||
| 346 | |||
| 347 | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||
| 348 | Parse::RecDescent::_tracefirst($text), | ||
| 349 | q{paramlist}) | ||
| 350 | if defined $::RD_TRACE; | ||
| 351 | $lastsep = ""; | ||
| 352 | $expectation->is(q{')'})->at($text); | ||
| 353 | |||
| 354 | |||
| 355 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\)//) | ||
| 356 | { | ||
| 357 | |||
| 358 | $expectation->failed(); | ||
| 359 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 360 | Parse::RecDescent::_tracefirst($text)) | ||
| 361 | if defined $::RD_TRACE; | ||
| 362 | last; | ||
| 363 | } | ||
| 364 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 365 | . $& . q{])}, | ||
| 366 | Parse::RecDescent::_tracefirst($text)) | ||
| 367 | if defined $::RD_TRACE; | ||
| 368 | push @item, $item{__STRING3__}=$&; | ||
| 369 | |||
| 370 | |||
| 371 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 372 | Parse::RecDescent::_tracefirst($text), | ||
| 373 | q{paramlist}) | ||
| 374 | if defined $::RD_TRACE; | ||
| 375 | |||
| 376 | |||
| 377 | $_tok = ($_noactions) ? 0 : do { $return = $item[2] }; | ||
| 378 | unless (defined $_tok) | ||
| 379 | { | ||
| 380 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 381 | if defined $::RD_TRACE; | ||
| 382 | last; | ||
| 383 | } | ||
| 384 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 385 | . $_tok . q{])}, $text) | ||
| 386 | if defined $::RD_TRACE; | ||
| 387 | push @item, $_tok; | ||
| 388 | $item{__ACTION1__}=$_tok; | ||
| 389 | |||
| 390 | |||
| 391 | |||
| 392 | Parse::RecDescent::_trace(q{>>Matched production: ['(' <leftop: param ',' param> ')']<<}, | ||
| 393 | Parse::RecDescent::_tracefirst($text), | ||
| 394 | q{paramlist}) | ||
| 395 | if defined $::RD_TRACE; | ||
| 396 | $_matched = 1; | ||
| 397 | last; | ||
| 398 | } | ||
| 399 | |||
| 400 | |||
| 401 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 402 | { | ||
| 403 | |||
| 404 | |||
| 405 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 406 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 407 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 408 | q{paramlist}) | ||
| 409 | if defined $::RD_TRACE; | ||
| 410 | return undef; | ||
| 411 | } | ||
| 412 | if (!defined($return) && defined($score)) | ||
| 413 | { | ||
| 414 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 415 | q{paramlist}) | ||
| 416 | if defined $::RD_TRACE; | ||
| 417 | $return = $score_return; | ||
| 418 | } | ||
| 419 | splice @{$thisparser->{errors}}, $err_at; | ||
| 420 | $return = $item[$#item] unless defined $return; | ||
| 421 | if (defined $::RD_TRACE) | ||
| 422 | { | ||
| 423 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 424 | $return . q{])}, "", | ||
| 425 | q{paramlist}); | ||
| 426 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 427 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 428 | Parse::RecDescent::_tracefirst($text), | ||
| 429 | , q{paramlist}) | ||
| 430 | } | ||
| 431 | $_[1] = $text; | ||
| 432 | return $return; | ||
| 433 | } | ||
| 434 | |||
| 435 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 436 | sub Parse::RecDescent::namespace000001::xpathstring | ||
| 437 | { | ||
| 438 | my $thisparser = $_[0]; | ||
| 439 | $ERRORS = 0; | ||
| 440 | my $thisrule = $thisparser->{"rules"}{"xpathstring"}; | ||
| 441 | |||
| 442 | Parse::RecDescent::_trace(q{Trying rule: [xpathstring]}, | ||
| 443 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 444 | q{xpathstring}) | ||
| 445 | if defined $::RD_TRACE; | ||
| 446 | |||
| 447 | |||
| 448 | my $err_at = @{$thisparser->{errors}}; | ||
| 449 | |||
| 450 | my $score; | ||
| 451 | my $score_return; | ||
| 452 | my $_tok; | ||
| 453 | my $return = undef; | ||
| 454 | my $_matched=0; | ||
| 455 | my $commit=0; | ||
| 456 | my @item = (); | ||
| 457 | my %item = (); | ||
| 458 | my $repeating = defined($_[2]) && $_[2]; | ||
| 459 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 460 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 461 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 462 | my $text; | ||
| 463 | my $lastsep=""; | ||
| 464 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 465 | $expectation->at($_[1]); | ||
| 466 | |||
| 467 | my $thisline; | ||
| 468 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 469 | |||
| 470 | |||
| 471 | |||
| 472 | while (!$_matched && !$commit) | ||
| 473 | { | ||
| 474 | |||
| 475 | Parse::RecDescent::_trace(q{Trying production: ['$\{' vartext '\}\\.']}, | ||
| 476 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 477 | q{xpathstring}) | ||
| 478 | if defined $::RD_TRACE; | ||
| 479 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 480 | $text = $_[1]; | ||
| 481 | my $_savetext; | ||
| 482 | @item = (q{xpathstring}); | ||
| 483 | %item = (__RULE__ => q{xpathstring}); | ||
| 484 | my $repcount = 0; | ||
| 485 | |||
| 486 | |||
| 487 | Parse::RecDescent::_trace(q{Trying terminal: ['$\{']}, | ||
| 488 | Parse::RecDescent::_tracefirst($text), | ||
| 489 | q{xpathstring}) | ||
| 490 | if defined $::RD_TRACE; | ||
| 491 | $lastsep = ""; | ||
| 492 | $expectation->is(q{})->at($text); | ||
| 493 | |||
| 494 | |||
| 495 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//) | ||
| 496 | { | ||
| 497 | |||
| 498 | $expectation->failed(); | ||
| 499 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 500 | Parse::RecDescent::_tracefirst($text)) | ||
| 501 | if defined $::RD_TRACE; | ||
| 502 | last; | ||
| 503 | } | ||
| 504 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 505 | . $& . q{])}, | ||
| 506 | Parse::RecDescent::_tracefirst($text)) | ||
| 507 | if defined $::RD_TRACE; | ||
| 508 | push @item, $item{__STRING1__}=$&; | ||
| 509 | |||
| 510 | |||
| 511 | Parse::RecDescent::_trace(q{Trying subrule: [vartext]}, | ||
| 512 | Parse::RecDescent::_tracefirst($text), | ||
| 513 | q{xpathstring}) | ||
| 514 | if defined $::RD_TRACE; | ||
| 515 | if (1) { no strict qw{refs}; | ||
| 516 | $expectation->is(q{vartext})->at($text); | ||
| 517 | unless (defined ($_tok = Parse::RecDescent::namespace000001::vartext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 518 | { | ||
| 519 | |||
| 520 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [vartext]>>}, | ||
| 521 | Parse::RecDescent::_tracefirst($text), | ||
| 522 | q{xpathstring}) | ||
| 523 | if defined $::RD_TRACE; | ||
| 524 | $expectation->failed(); | ||
| 525 | last; | ||
| 526 | } | ||
| 527 | Parse::RecDescent::_trace(q{>>Matched subrule: [vartext]<< (return value: [} | ||
| 528 | . $_tok . q{]}, | ||
| 529 | |||
| 530 | Parse::RecDescent::_tracefirst($text), | ||
| 531 | q{xpathstring}) | ||
| 532 | if defined $::RD_TRACE; | ||
| 533 | $item{q{vartext}} = $_tok; | ||
| 534 | push @item, $_tok; | ||
| 535 | |||
| 536 | } | ||
| 537 | |||
| 538 | Parse::RecDescent::_trace(q{Trying terminal: ['\}\\.']}, | ||
| 539 | Parse::RecDescent::_tracefirst($text), | ||
| 540 | q{xpathstring}) | ||
| 541 | if defined $::RD_TRACE; | ||
| 542 | $lastsep = ""; | ||
| 543 | $expectation->is(q{'\}\\.'})->at($text); | ||
| 544 | |||
| 545 | |||
| 546 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}\\\.//) | ||
| 547 | { | ||
| 548 | |||
| 549 | $expectation->failed(); | ||
| 550 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 551 | Parse::RecDescent::_tracefirst($text)) | ||
| 552 | if defined $::RD_TRACE; | ||
| 553 | last; | ||
| 554 | } | ||
| 555 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 556 | . $& . q{])}, | ||
| 557 | Parse::RecDescent::_tracefirst($text)) | ||
| 558 | if defined $::RD_TRACE; | ||
| 559 | push @item, $item{__STRING2__}=$&; | ||
| 560 | |||
| 561 | |||
| 562 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 563 | Parse::RecDescent::_tracefirst($text), | ||
| 564 | q{xpathstring}) | ||
| 565 | if defined $::RD_TRACE; | ||
| 566 | |||
| 567 | |||
| 568 | $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2], undef, 1) . " . '.'" }; | ||
| 569 | unless (defined $_tok) | ||
| 570 | { | ||
| 571 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 572 | if defined $::RD_TRACE; | ||
| 573 | last; | ||
| 574 | } | ||
| 575 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 576 | . $_tok . q{])}, $text) | ||
| 577 | if defined $::RD_TRACE; | ||
| 578 | push @item, $_tok; | ||
| 579 | $item{__ACTION1__}=$_tok; | ||
| 580 | |||
| 581 | |||
| 582 | |||
| 583 | Parse::RecDescent::_trace(q{>>Matched production: ['$\{' vartext '\}\\.']<<}, | ||
| 584 | Parse::RecDescent::_tracefirst($text), | ||
| 585 | q{xpathstring}) | ||
| 586 | if defined $::RD_TRACE; | ||
| 587 | $_matched = 1; | ||
| 588 | last; | ||
| 589 | } | ||
| 590 | |||
| 591 | |||
| 592 | while (!$_matched && !$commit) | ||
| 593 | { | ||
| 594 | |||
| 595 | Parse::RecDescent::_trace(q{Trying production: ['$\{' vartext '\}' function]}, | ||
| 596 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 597 | q{xpathstring}) | ||
| 598 | if defined $::RD_TRACE; | ||
| 599 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 600 | $text = $_[1]; | ||
| 601 | my $_savetext; | ||
| 602 | @item = (q{xpathstring}); | ||
| 603 | %item = (__RULE__ => q{xpathstring}); | ||
| 604 | my $repcount = 0; | ||
| 605 | |||
| 606 | |||
| 607 | Parse::RecDescent::_trace(q{Trying terminal: ['$\{']}, | ||
| 608 | Parse::RecDescent::_tracefirst($text), | ||
| 609 | q{xpathstring}) | ||
| 610 | if defined $::RD_TRACE; | ||
| 611 | $lastsep = ""; | ||
| 612 | $expectation->is(q{})->at($text); | ||
| 613 | |||
| 614 | |||
| 615 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//) | ||
| 616 | { | ||
| 617 | |||
| 618 | $expectation->failed(); | ||
| 619 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 620 | Parse::RecDescent::_tracefirst($text)) | ||
| 621 | if defined $::RD_TRACE; | ||
| 622 | last; | ||
| 623 | } | ||
| 624 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 625 | . $& . q{])}, | ||
| 626 | Parse::RecDescent::_tracefirst($text)) | ||
| 627 | if defined $::RD_TRACE; | ||
| 628 | push @item, $item{__STRING1__}=$&; | ||
| 629 | |||
| 630 | |||
| 631 | Parse::RecDescent::_trace(q{Trying subrule: [vartext]}, | ||
| 632 | Parse::RecDescent::_tracefirst($text), | ||
| 633 | q{xpathstring}) | ||
| 634 | if defined $::RD_TRACE; | ||
| 635 | if (1) { no strict qw{refs}; | ||
| 636 | $expectation->is(q{vartext})->at($text); | ||
| 637 | unless (defined ($_tok = Parse::RecDescent::namespace000001::vartext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 638 | { | ||
| 639 | |||
| 640 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [vartext]>>}, | ||
| 641 | Parse::RecDescent::_tracefirst($text), | ||
| 642 | q{xpathstring}) | ||
| 643 | if defined $::RD_TRACE; | ||
| 644 | $expectation->failed(); | ||
| 645 | last; | ||
| 646 | } | ||
| 647 | Parse::RecDescent::_trace(q{>>Matched subrule: [vartext]<< (return value: [} | ||
| 648 | . $_tok . q{]}, | ||
| 649 | |||
| 650 | Parse::RecDescent::_tracefirst($text), | ||
| 651 | q{xpathstring}) | ||
| 652 | if defined $::RD_TRACE; | ||
| 653 | $item{q{vartext}} = $_tok; | ||
| 654 | push @item, $_tok; | ||
| 655 | |||
| 656 | } | ||
| 657 | |||
| 658 | Parse::RecDescent::_trace(q{Trying terminal: ['\}']}, | ||
| 659 | Parse::RecDescent::_tracefirst($text), | ||
| 660 | q{xpathstring}) | ||
| 661 | if defined $::RD_TRACE; | ||
| 662 | $lastsep = ""; | ||
| 663 | $expectation->is(q{'\}'})->at($text); | ||
| 664 | |||
| 665 | |||
| 666 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}//) | ||
| 667 | { | ||
| 668 | |||
| 669 | $expectation->failed(); | ||
| 670 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 671 | Parse::RecDescent::_tracefirst($text)) | ||
| 672 | if defined $::RD_TRACE; | ||
| 673 | last; | ||
| 674 | } | ||
| 675 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 676 | . $& . q{])}, | ||
| 677 | Parse::RecDescent::_tracefirst($text)) | ||
| 678 | if defined $::RD_TRACE; | ||
| 679 | push @item, $item{__STRING2__}=$&; | ||
| 680 | |||
| 681 | |||
| 682 | Parse::RecDescent::_trace(q{Trying repeated subrule: [function]}, | ||
| 683 | Parse::RecDescent::_tracefirst($text), | ||
| 684 | q{xpathstring}) | ||
| 685 | if defined $::RD_TRACE; | ||
| 686 | $expectation->is(q{function})->at($text); | ||
| 687 | |||
| 688 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::function, 0, 100000000, $_noactions,$expectation,undef))) | ||
| 689 | { | ||
| 690 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [function]>>}, | ||
| 691 | Parse::RecDescent::_tracefirst($text), | ||
| 692 | q{xpathstring}) | ||
| 693 | if defined $::RD_TRACE; | ||
| 694 | last; | ||
| 695 | } | ||
| 696 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [function]<< (} | ||
| 697 | . @$_tok . q{ times)}, | ||
| 698 | |||
| 699 | Parse::RecDescent::_tracefirst($text), | ||
| 700 | q{xpathstring}) | ||
| 701 | if defined $::RD_TRACE; | ||
| 702 | $item{q{function}} = $_tok; | ||
| 703 | push @item, $_tok; | ||
| 704 | |||
| 705 | |||
| 706 | |||
| 707 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 708 | Parse::RecDescent::_tracefirst($text), | ||
| 709 | q{xpathstring}) | ||
| 710 | if defined $::RD_TRACE; | ||
| 711 | |||
| 712 | |||
| 713 | $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2], $item[4], 1) }; | ||
| 714 | unless (defined $_tok) | ||
| 715 | { | ||
| 716 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 717 | if defined $::RD_TRACE; | ||
| 718 | last; | ||
| 719 | } | ||
| 720 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 721 | . $_tok . q{])}, $text) | ||
| 722 | if defined $::RD_TRACE; | ||
| 723 | push @item, $_tok; | ||
| 724 | $item{__ACTION1__}=$_tok; | ||
| 725 | |||
| 726 | |||
| 727 | |||
| 728 | Parse::RecDescent::_trace(q{>>Matched production: ['$\{' vartext '\}' function]<<}, | ||
| 729 | Parse::RecDescent::_tracefirst($text), | ||
| 730 | q{xpathstring}) | ||
| 731 | if defined $::RD_TRACE; | ||
| 732 | $_matched = 1; | ||
| 733 | last; | ||
| 734 | } | ||
| 735 | |||
| 736 | |||
| 737 | while (!$_matched && !$commit) | ||
| 738 | { | ||
| 739 | |||
| 740 | Parse::RecDescent::_trace(q{Trying production: [/([\\\\][\\$\}]|[^\\$\}])+/]}, | ||
| 741 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 742 | q{xpathstring}) | ||
| 743 | if defined $::RD_TRACE; | ||
| 744 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 745 | $text = $_[1]; | ||
| 746 | my $_savetext; | ||
| 747 | @item = (q{xpathstring}); | ||
| 748 | %item = (__RULE__ => q{xpathstring}); | ||
| 749 | my $repcount = 0; | ||
| 750 | |||
| 751 | |||
| 752 | Parse::RecDescent::_trace(q{Trying terminal: [/([\\\\][\\$\}]|[^\\$\}])+/]}, Parse::RecDescent::_tracefirst($text), | ||
| 753 | q{xpathstring}) | ||
| 754 | if defined $::RD_TRACE; | ||
| 755 | $lastsep = ""; | ||
| 756 | $expectation->is(q{})->at($text); | ||
| 757 | |||
| 758 | |||
| 759 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:([\\][\$}]|[^\$}])+)//) | ||
| 760 | { | ||
| 761 | |||
| 762 | $expectation->failed(); | ||
| 763 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 764 | Parse::RecDescent::_tracefirst($text)) | ||
| 765 | if defined $::RD_TRACE; | ||
| 766 | |||
| 767 | last; | ||
| 768 | } | ||
| 769 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 770 | . $& . q{])}, | ||
| 771 | Parse::RecDescent::_tracefirst($text)) | ||
| 772 | if defined $::RD_TRACE; | ||
| 773 | push @item, $item{__PATTERN1__}=$&; | ||
| 774 | |||
| 775 | |||
| 776 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 777 | Parse::RecDescent::_tracefirst($text), | ||
| 778 | q{xpathstring}) | ||
| 779 | if defined $::RD_TRACE; | ||
| 780 | |||
| 781 | |||
| 782 | $_tok = ($_noactions) ? 0 : do { $item[1] =~ s/\\/\\\\/g; $item[1] =~ s/'/\\'/g; | ||
| 783 | $return = "'$item[1]'" }; | ||
| 784 | unless (defined $_tok) | ||
| 785 | { | ||
| 786 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 787 | if defined $::RD_TRACE; | ||
| 788 | last; | ||
| 789 | } | ||
| 790 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 791 | . $_tok . q{])}, $text) | ||
| 792 | if defined $::RD_TRACE; | ||
| 793 | push @item, $_tok; | ||
| 794 | $item{__ACTION1__}=$_tok; | ||
| 795 | |||
| 796 | |||
| 797 | |||
| 798 | Parse::RecDescent::_trace(q{>>Matched production: [/([\\\\][\\$\}]|[^\\$\}])+/]<<}, | ||
| 799 | Parse::RecDescent::_tracefirst($text), | ||
| 800 | q{xpathstring}) | ||
| 801 | if defined $::RD_TRACE; | ||
| 802 | $_matched = 1; | ||
| 803 | last; | ||
| 804 | } | ||
| 805 | |||
| 806 | |||
| 807 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 808 | { | ||
| 809 | |||
| 810 | |||
| 811 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 812 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 813 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 814 | q{xpathstring}) | ||
| 815 | if defined $::RD_TRACE; | ||
| 816 | return undef; | ||
| 817 | } | ||
| 818 | if (!defined($return) && defined($score)) | ||
| 819 | { | ||
| 820 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 821 | q{xpathstring}) | ||
| 822 | if defined $::RD_TRACE; | ||
| 823 | $return = $score_return; | ||
| 824 | } | ||
| 825 | splice @{$thisparser->{errors}}, $err_at; | ||
| 826 | $return = $item[$#item] unless defined $return; | ||
| 827 | if (defined $::RD_TRACE) | ||
| 828 | { | ||
| 829 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 830 | $return . q{])}, "", | ||
| 831 | q{xpathstring}); | ||
| 832 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 833 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 834 | Parse::RecDescent::_tracefirst($text), | ||
| 835 | , q{xpathstring}) | ||
| 836 | } | ||
| 837 | $_[1] = $text; | ||
| 838 | return $return; | ||
| 839 | } | ||
| 840 | |||
| 841 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 842 | sub Parse::RecDescent::namespace000001::varstring | ||
| 843 | { | ||
| 844 | my $thisparser = $_[0]; | ||
| 845 | $ERRORS = 0; | ||
| 846 | my $thisrule = $thisparser->{"rules"}{"varstring"}; | ||
| 847 | |||
| 848 | Parse::RecDescent::_trace(q{Trying rule: [varstring]}, | ||
| 849 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 850 | q{varstring}) | ||
| 851 | if defined $::RD_TRACE; | ||
| 852 | |||
| 853 | |||
| 854 | my $err_at = @{$thisparser->{errors}}; | ||
| 855 | |||
| 856 | my $score; | ||
| 857 | my $score_return; | ||
| 858 | my $_tok; | ||
| 859 | my $return = undef; | ||
| 860 | my $_matched=0; | ||
| 861 | my $commit=0; | ||
| 862 | my @item = (); | ||
| 863 | my %item = (); | ||
| 864 | my $repeating = defined($_[2]) && $_[2]; | ||
| 865 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 866 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 867 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 868 | my $text; | ||
| 869 | my $lastsep=""; | ||
| 870 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 871 | $expectation->at($_[1]); | ||
| 872 | |||
| 873 | my $thisline; | ||
| 874 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 875 | |||
| 876 | |||
| 877 | |||
| 878 | while (!$_matched && !$commit) | ||
| 879 | { | ||
| 880 | |||
| 881 | Parse::RecDescent::_trace(q{Trying production: ['$\{' vartext '\}\\.']}, | ||
| 882 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 883 | q{varstring}) | ||
| 884 | if defined $::RD_TRACE; | ||
| 885 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 886 | $text = $_[1]; | ||
| 887 | my $_savetext; | ||
| 888 | @item = (q{varstring}); | ||
| 889 | %item = (__RULE__ => q{varstring}); | ||
| 890 | my $repcount = 0; | ||
| 891 | |||
| 892 | |||
| 893 | Parse::RecDescent::_trace(q{Trying terminal: ['$\{']}, | ||
| 894 | Parse::RecDescent::_tracefirst($text), | ||
| 895 | q{varstring}) | ||
| 896 | if defined $::RD_TRACE; | ||
| 897 | $lastsep = ""; | ||
| 898 | $expectation->is(q{})->at($text); | ||
| 899 | |||
| 900 | |||
| 901 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//) | ||
| 902 | { | ||
| 903 | |||
| 904 | $expectation->failed(); | ||
| 905 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 906 | Parse::RecDescent::_tracefirst($text)) | ||
| 907 | if defined $::RD_TRACE; | ||
| 908 | last; | ||
| 909 | } | ||
| 910 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 911 | . $& . q{])}, | ||
| 912 | Parse::RecDescent::_tracefirst($text)) | ||
| 913 | if defined $::RD_TRACE; | ||
| 914 | push @item, $item{__STRING1__}=$&; | ||
| 915 | |||
| 916 | |||
| 917 | Parse::RecDescent::_trace(q{Trying subrule: [vartext]}, | ||
| 918 | Parse::RecDescent::_tracefirst($text), | ||
| 919 | q{varstring}) | ||
| 920 | if defined $::RD_TRACE; | ||
| 921 | if (1) { no strict qw{refs}; | ||
| 922 | $expectation->is(q{vartext})->at($text); | ||
| 923 | unless (defined ($_tok = Parse::RecDescent::namespace000001::vartext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 924 | { | ||
| 925 | |||
| 926 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [vartext]>>}, | ||
| 927 | Parse::RecDescent::_tracefirst($text), | ||
| 928 | q{varstring}) | ||
| 929 | if defined $::RD_TRACE; | ||
| 930 | $expectation->failed(); | ||
| 931 | last; | ||
| 932 | } | ||
| 933 | Parse::RecDescent::_trace(q{>>Matched subrule: [vartext]<< (return value: [} | ||
| 934 | . $_tok . q{]}, | ||
| 935 | |||
| 936 | Parse::RecDescent::_tracefirst($text), | ||
| 937 | q{varstring}) | ||
| 938 | if defined $::RD_TRACE; | ||
| 939 | $item{q{vartext}} = $_tok; | ||
| 940 | push @item, $_tok; | ||
| 941 | |||
| 942 | } | ||
| 943 | |||
| 944 | Parse::RecDescent::_trace(q{Trying terminal: ['\}\\.']}, | ||
| 945 | Parse::RecDescent::_tracefirst($text), | ||
| 946 | q{varstring}) | ||
| 947 | if defined $::RD_TRACE; | ||
| 948 | $lastsep = ""; | ||
| 949 | $expectation->is(q{'\}\\.'})->at($text); | ||
| 950 | |||
| 951 | |||
| 952 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}\\\.//) | ||
| 953 | { | ||
| 954 | |||
| 955 | $expectation->failed(); | ||
| 956 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 957 | Parse::RecDescent::_tracefirst($text)) | ||
| 958 | if defined $::RD_TRACE; | ||
| 959 | last; | ||
| 960 | } | ||
| 961 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 962 | . $& . q{])}, | ||
| 963 | Parse::RecDescent::_tracefirst($text)) | ||
| 964 | if defined $::RD_TRACE; | ||
| 965 | push @item, $item{__STRING2__}=$&; | ||
| 966 | |||
| 967 | |||
| 968 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 969 | Parse::RecDescent::_tracefirst($text), | ||
| 970 | q{varstring}) | ||
| 971 | if defined $::RD_TRACE; | ||
| 972 | |||
| 973 | |||
| 974 | $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2]) . " . '.'" }; | ||
| 975 | unless (defined $_tok) | ||
| 976 | { | ||
| 977 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 978 | if defined $::RD_TRACE; | ||
| 979 | last; | ||
| 980 | } | ||
| 981 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 982 | . $_tok . q{])}, $text) | ||
| 983 | if defined $::RD_TRACE; | ||
| 984 | push @item, $_tok; | ||
| 985 | $item{__ACTION1__}=$_tok; | ||
| 986 | |||
| 987 | |||
| 988 | |||
| 989 | Parse::RecDescent::_trace(q{>>Matched production: ['$\{' vartext '\}\\.']<<}, | ||
| 990 | Parse::RecDescent::_tracefirst($text), | ||
| 991 | q{varstring}) | ||
| 992 | if defined $::RD_TRACE; | ||
| 993 | $_matched = 1; | ||
| 994 | last; | ||
| 995 | } | ||
| 996 | |||
| 997 | |||
| 998 | while (!$_matched && !$commit) | ||
| 999 | { | ||
| 1000 | |||
| 1001 | Parse::RecDescent::_trace(q{Trying production: ['$\{' vartext '\}' function]}, | ||
| 1002 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1003 | q{varstring}) | ||
| 1004 | if defined $::RD_TRACE; | ||
| 1005 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 1006 | $text = $_[1]; | ||
| 1007 | my $_savetext; | ||
| 1008 | @item = (q{varstring}); | ||
| 1009 | %item = (__RULE__ => q{varstring}); | ||
| 1010 | my $repcount = 0; | ||
| 1011 | |||
| 1012 | |||
| 1013 | Parse::RecDescent::_trace(q{Trying terminal: ['$\{']}, | ||
| 1014 | Parse::RecDescent::_tracefirst($text), | ||
| 1015 | q{varstring}) | ||
| 1016 | if defined $::RD_TRACE; | ||
| 1017 | $lastsep = ""; | ||
| 1018 | $expectation->is(q{})->at($text); | ||
| 1019 | |||
| 1020 | |||
| 1021 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//) | ||
| 1022 | { | ||
| 1023 | |||
| 1024 | $expectation->failed(); | ||
| 1025 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1026 | Parse::RecDescent::_tracefirst($text)) | ||
| 1027 | if defined $::RD_TRACE; | ||
| 1028 | last; | ||
| 1029 | } | ||
| 1030 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1031 | . $& . q{])}, | ||
| 1032 | Parse::RecDescent::_tracefirst($text)) | ||
| 1033 | if defined $::RD_TRACE; | ||
| 1034 | push @item, $item{__STRING1__}=$&; | ||
| 1035 | |||
| 1036 | |||
| 1037 | Parse::RecDescent::_trace(q{Trying subrule: [vartext]}, | ||
| 1038 | Parse::RecDescent::_tracefirst($text), | ||
| 1039 | q{varstring}) | ||
| 1040 | if defined $::RD_TRACE; | ||
| 1041 | if (1) { no strict qw{refs}; | ||
| 1042 | $expectation->is(q{vartext})->at($text); | ||
| 1043 | unless (defined ($_tok = Parse::RecDescent::namespace000001::vartext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 1044 | { | ||
| 1045 | |||
| 1046 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [vartext]>>}, | ||
| 1047 | Parse::RecDescent::_tracefirst($text), | ||
| 1048 | q{varstring}) | ||
| 1049 | if defined $::RD_TRACE; | ||
| 1050 | $expectation->failed(); | ||
| 1051 | last; | ||
| 1052 | } | ||
| 1053 | Parse::RecDescent::_trace(q{>>Matched subrule: [vartext]<< (return value: [} | ||
| 1054 | . $_tok . q{]}, | ||
| 1055 | |||
| 1056 | Parse::RecDescent::_tracefirst($text), | ||
| 1057 | q{varstring}) | ||
| 1058 | if defined $::RD_TRACE; | ||
| 1059 | $item{q{vartext}} = $_tok; | ||
| 1060 | push @item, $_tok; | ||
| 1061 | |||
| 1062 | } | ||
| 1063 | |||
| 1064 | Parse::RecDescent::_trace(q{Trying terminal: ['\}']}, | ||
| 1065 | Parse::RecDescent::_tracefirst($text), | ||
| 1066 | q{varstring}) | ||
| 1067 | if defined $::RD_TRACE; | ||
| 1068 | $lastsep = ""; | ||
| 1069 | $expectation->is(q{'\}'})->at($text); | ||
| 1070 | |||
| 1071 | |||
| 1072 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}//) | ||
| 1073 | { | ||
| 1074 | |||
| 1075 | $expectation->failed(); | ||
| 1076 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1077 | Parse::RecDescent::_tracefirst($text)) | ||
| 1078 | if defined $::RD_TRACE; | ||
| 1079 | last; | ||
| 1080 | } | ||
| 1081 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1082 | . $& . q{])}, | ||
| 1083 | Parse::RecDescent::_tracefirst($text)) | ||
| 1084 | if defined $::RD_TRACE; | ||
| 1085 | push @item, $item{__STRING2__}=$&; | ||
| 1086 | |||
| 1087 | |||
| 1088 | Parse::RecDescent::_trace(q{Trying repeated subrule: [function]}, | ||
| 1089 | Parse::RecDescent::_tracefirst($text), | ||
| 1090 | q{varstring}) | ||
| 1091 | if defined $::RD_TRACE; | ||
| 1092 | $expectation->is(q{function})->at($text); | ||
| 1093 | |||
| 1094 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::function, 0, 100000000, $_noactions,$expectation,undef))) | ||
| 1095 | { | ||
| 1096 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [function]>>}, | ||
| 1097 | Parse::RecDescent::_tracefirst($text), | ||
| 1098 | q{varstring}) | ||
| 1099 | if defined $::RD_TRACE; | ||
| 1100 | last; | ||
| 1101 | } | ||
| 1102 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [function]<< (} | ||
| 1103 | . @$_tok . q{ times)}, | ||
| 1104 | |||
| 1105 | Parse::RecDescent::_tracefirst($text), | ||
| 1106 | q{varstring}) | ||
| 1107 | if defined $::RD_TRACE; | ||
| 1108 | $item{q{function}} = $_tok; | ||
| 1109 | push @item, $_tok; | ||
| 1110 | |||
| 1111 | |||
| 1112 | |||
| 1113 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1114 | Parse::RecDescent::_tracefirst($text), | ||
| 1115 | q{varstring}) | ||
| 1116 | if defined $::RD_TRACE; | ||
| 1117 | |||
| 1118 | |||
| 1119 | $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2], $item[4]) }; | ||
| 1120 | unless (defined $_tok) | ||
| 1121 | { | ||
| 1122 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1123 | if defined $::RD_TRACE; | ||
| 1124 | last; | ||
| 1125 | } | ||
| 1126 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1127 | . $_tok . q{])}, $text) | ||
| 1128 | if defined $::RD_TRACE; | ||
| 1129 | push @item, $_tok; | ||
| 1130 | $item{__ACTION1__}=$_tok; | ||
| 1131 | |||
| 1132 | |||
| 1133 | |||
| 1134 | Parse::RecDescent::_trace(q{>>Matched production: ['$\{' vartext '\}' function]<<}, | ||
| 1135 | Parse::RecDescent::_tracefirst($text), | ||
| 1136 | q{varstring}) | ||
| 1137 | if defined $::RD_TRACE; | ||
| 1138 | $_matched = 1; | ||
| 1139 | last; | ||
| 1140 | } | ||
| 1141 | |||
| 1142 | |||
| 1143 | while (!$_matched && !$commit) | ||
| 1144 | { | ||
| 1145 | |||
| 1146 | Parse::RecDescent::_trace(q{Trying production: [/([\\\\][\\$\{\}'\\/]|[^\\$\{\}'\\/])+/]}, | ||
| 1147 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1148 | q{varstring}) | ||
| 1149 | if defined $::RD_TRACE; | ||
| 1150 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 1151 | $text = $_[1]; | ||
| 1152 | my $_savetext; | ||
| 1153 | @item = (q{varstring}); | ||
| 1154 | %item = (__RULE__ => q{varstring}); | ||
| 1155 | my $repcount = 0; | ||
| 1156 | |||
| 1157 | |||
| 1158 | Parse::RecDescent::_trace(q{Trying terminal: [/([\\\\][\\$\{\}'\\/]|[^\\$\{\}'\\/])+/]}, Parse::RecDescent::_tracefirst($text), | ||
| 1159 | q{varstring}) | ||
| 1160 | if defined $::RD_TRACE; | ||
| 1161 | $lastsep = ""; | ||
| 1162 | $expectation->is(q{})->at($text); | ||
| 1163 | |||
| 1164 | |||
| 1165 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:([\\][\${}'\/]|[^\${}'\/])+)//) | ||
| 1166 | { | ||
| 1167 | |||
| 1168 | $expectation->failed(); | ||
| 1169 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 1170 | Parse::RecDescent::_tracefirst($text)) | ||
| 1171 | if defined $::RD_TRACE; | ||
| 1172 | |||
| 1173 | last; | ||
| 1174 | } | ||
| 1175 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1176 | . $& . q{])}, | ||
| 1177 | Parse::RecDescent::_tracefirst($text)) | ||
| 1178 | if defined $::RD_TRACE; | ||
| 1179 | push @item, $item{__PATTERN1__}=$&; | ||
| 1180 | |||
| 1181 | |||
| 1182 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1183 | Parse::RecDescent::_tracefirst($text), | ||
| 1184 | q{varstring}) | ||
| 1185 | if defined $::RD_TRACE; | ||
| 1186 | |||
| 1187 | |||
| 1188 | $_tok = ($_noactions) ? 0 : do { $item[1] =~ s/\\/\\\\/g; $item[1] =~ s/'/\\'/g; $return = "'$item[1]'" }; | ||
| 1189 | unless (defined $_tok) | ||
| 1190 | { | ||
| 1191 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1192 | if defined $::RD_TRACE; | ||
| 1193 | last; | ||
| 1194 | } | ||
| 1195 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1196 | . $_tok . q{])}, $text) | ||
| 1197 | if defined $::RD_TRACE; | ||
| 1198 | push @item, $_tok; | ||
| 1199 | $item{__ACTION1__}=$_tok; | ||
| 1200 | |||
| 1201 | |||
| 1202 | |||
| 1203 | Parse::RecDescent::_trace(q{>>Matched production: [/([\\\\][\\$\{\}'\\/]|[^\\$\{\}'\\/])+/]<<}, | ||
| 1204 | Parse::RecDescent::_tracefirst($text), | ||
| 1205 | q{varstring}) | ||
| 1206 | if defined $::RD_TRACE; | ||
| 1207 | $_matched = 1; | ||
| 1208 | last; | ||
| 1209 | } | ||
| 1210 | |||
| 1211 | |||
| 1212 | while (!$_matched && !$commit) | ||
| 1213 | { | ||
| 1214 | |||
| 1215 | Parse::RecDescent::_trace(q{Trying production: ['\{' vartext '\}']}, | ||
| 1216 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1217 | q{varstring}) | ||
| 1218 | if defined $::RD_TRACE; | ||
| 1219 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 1220 | $text = $_[1]; | ||
| 1221 | my $_savetext; | ||
| 1222 | @item = (q{varstring}); | ||
| 1223 | %item = (__RULE__ => q{varstring}); | ||
| 1224 | my $repcount = 0; | ||
| 1225 | |||
| 1226 | |||
| 1227 | Parse::RecDescent::_trace(q{Trying terminal: ['\{']}, | ||
| 1228 | Parse::RecDescent::_tracefirst($text), | ||
| 1229 | q{varstring}) | ||
| 1230 | if defined $::RD_TRACE; | ||
| 1231 | $lastsep = ""; | ||
| 1232 | $expectation->is(q{})->at($text); | ||
| 1233 | |||
| 1234 | |||
| 1235 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\{//) | ||
| 1236 | { | ||
| 1237 | |||
| 1238 | $expectation->failed(); | ||
| 1239 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1240 | Parse::RecDescent::_tracefirst($text)) | ||
| 1241 | if defined $::RD_TRACE; | ||
| 1242 | last; | ||
| 1243 | } | ||
| 1244 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1245 | . $& . q{])}, | ||
| 1246 | Parse::RecDescent::_tracefirst($text)) | ||
| 1247 | if defined $::RD_TRACE; | ||
| 1248 | push @item, $item{__STRING1__}=$&; | ||
| 1249 | |||
| 1250 | |||
| 1251 | Parse::RecDescent::_trace(q{Trying subrule: [vartext]}, | ||
| 1252 | Parse::RecDescent::_tracefirst($text), | ||
| 1253 | q{varstring}) | ||
| 1254 | if defined $::RD_TRACE; | ||
| 1255 | if (1) { no strict qw{refs}; | ||
| 1256 | $expectation->is(q{vartext})->at($text); | ||
| 1257 | unless (defined ($_tok = Parse::RecDescent::namespace000001::vartext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 1258 | { | ||
| 1259 | |||
| 1260 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [vartext]>>}, | ||
| 1261 | Parse::RecDescent::_tracefirst($text), | ||
| 1262 | q{varstring}) | ||
| 1263 | if defined $::RD_TRACE; | ||
| 1264 | $expectation->failed(); | ||
| 1265 | last; | ||
| 1266 | } | ||
| 1267 | Parse::RecDescent::_trace(q{>>Matched subrule: [vartext]<< (return value: [} | ||
| 1268 | . $_tok . q{]}, | ||
| 1269 | |||
| 1270 | Parse::RecDescent::_tracefirst($text), | ||
| 1271 | q{varstring}) | ||
| 1272 | if defined $::RD_TRACE; | ||
| 1273 | $item{q{vartext}} = $_tok; | ||
| 1274 | push @item, $_tok; | ||
| 1275 | |||
| 1276 | } | ||
| 1277 | |||
| 1278 | Parse::RecDescent::_trace(q{Trying terminal: ['\}']}, | ||
| 1279 | Parse::RecDescent::_tracefirst($text), | ||
| 1280 | q{varstring}) | ||
| 1281 | if defined $::RD_TRACE; | ||
| 1282 | $lastsep = ""; | ||
| 1283 | $expectation->is(q{'\}'})->at($text); | ||
| 1284 | |||
| 1285 | |||
| 1286 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}//) | ||
| 1287 | { | ||
| 1288 | |||
| 1289 | $expectation->failed(); | ||
| 1290 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1291 | Parse::RecDescent::_tracefirst($text)) | ||
| 1292 | if defined $::RD_TRACE; | ||
| 1293 | last; | ||
| 1294 | } | ||
| 1295 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1296 | . $& . q{])}, | ||
| 1297 | Parse::RecDescent::_tracefirst($text)) | ||
| 1298 | if defined $::RD_TRACE; | ||
| 1299 | push @item, $item{__STRING2__}=$&; | ||
| 1300 | |||
| 1301 | |||
| 1302 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1303 | Parse::RecDescent::_tracefirst($text), | ||
| 1304 | q{varstring}) | ||
| 1305 | if defined $::RD_TRACE; | ||
| 1306 | |||
| 1307 | |||
| 1308 | $_tok = ($_noactions) ? 0 : do { $return = "\$vars->backslash ('\.\/', $item[2])" }; | ||
| 1309 | unless (defined $_tok) | ||
| 1310 | { | ||
| 1311 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1312 | if defined $::RD_TRACE; | ||
| 1313 | last; | ||
| 1314 | } | ||
| 1315 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1316 | . $_tok . q{])}, $text) | ||
| 1317 | if defined $::RD_TRACE; | ||
| 1318 | push @item, $_tok; | ||
| 1319 | $item{__ACTION1__}=$_tok; | ||
| 1320 | |||
| 1321 | |||
| 1322 | |||
| 1323 | Parse::RecDescent::_trace(q{>>Matched production: ['\{' vartext '\}']<<}, | ||
| 1324 | Parse::RecDescent::_tracefirst($text), | ||
| 1325 | q{varstring}) | ||
| 1326 | if defined $::RD_TRACE; | ||
| 1327 | $_matched = 1; | ||
| 1328 | last; | ||
| 1329 | } | ||
| 1330 | |||
| 1331 | |||
| 1332 | while (!$_matched && !$commit) | ||
| 1333 | { | ||
| 1334 | |||
| 1335 | Parse::RecDescent::_trace(q{Trying production: ['/' xpathtext]}, | ||
| 1336 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1337 | q{varstring}) | ||
| 1338 | if defined $::RD_TRACE; | ||
| 1339 | my $thisprod = $thisrule->{"prods"}[4]; | ||
| 1340 | $text = $_[1]; | ||
| 1341 | my $_savetext; | ||
| 1342 | @item = (q{varstring}); | ||
| 1343 | %item = (__RULE__ => q{varstring}); | ||
| 1344 | my $repcount = 0; | ||
| 1345 | |||
| 1346 | |||
| 1347 | Parse::RecDescent::_trace(q{Trying terminal: ['/']}, | ||
| 1348 | Parse::RecDescent::_tracefirst($text), | ||
| 1349 | q{varstring}) | ||
| 1350 | if defined $::RD_TRACE; | ||
| 1351 | $lastsep = ""; | ||
| 1352 | $expectation->is(q{})->at($text); | ||
| 1353 | |||
| 1354 | |||
| 1355 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\///) | ||
| 1356 | { | ||
| 1357 | |||
| 1358 | $expectation->failed(); | ||
| 1359 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1360 | Parse::RecDescent::_tracefirst($text)) | ||
| 1361 | if defined $::RD_TRACE; | ||
| 1362 | last; | ||
| 1363 | } | ||
| 1364 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1365 | . $& . q{])}, | ||
| 1366 | Parse::RecDescent::_tracefirst($text)) | ||
| 1367 | if defined $::RD_TRACE; | ||
| 1368 | push @item, $item{__STRING1__}=$&; | ||
| 1369 | |||
| 1370 | |||
| 1371 | Parse::RecDescent::_trace(q{Trying subrule: [xpathtext]}, | ||
| 1372 | Parse::RecDescent::_tracefirst($text), | ||
| 1373 | q{varstring}) | ||
| 1374 | if defined $::RD_TRACE; | ||
| 1375 | if (1) { no strict qw{refs}; | ||
| 1376 | $expectation->is(q{xpathtext})->at($text); | ||
| 1377 | unless (defined ($_tok = Parse::RecDescent::namespace000001::xpathtext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 1378 | { | ||
| 1379 | |||
| 1380 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [xpathtext]>>}, | ||
| 1381 | Parse::RecDescent::_tracefirst($text), | ||
| 1382 | q{varstring}) | ||
| 1383 | if defined $::RD_TRACE; | ||
| 1384 | $expectation->failed(); | ||
| 1385 | last; | ||
| 1386 | } | ||
| 1387 | Parse::RecDescent::_trace(q{>>Matched subrule: [xpathtext]<< (return value: [} | ||
| 1388 | . $_tok . q{]}, | ||
| 1389 | |||
| 1390 | Parse::RecDescent::_tracefirst($text), | ||
| 1391 | q{varstring}) | ||
| 1392 | if defined $::RD_TRACE; | ||
| 1393 | $item{q{xpathtext}} = $_tok; | ||
| 1394 | push @item, $_tok; | ||
| 1395 | |||
| 1396 | } | ||
| 1397 | |||
| 1398 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1399 | Parse::RecDescent::_tracefirst($text), | ||
| 1400 | q{varstring}) | ||
| 1401 | if defined $::RD_TRACE; | ||
| 1402 | |||
| 1403 | |||
| 1404 | $_tok = ($_noactions) ? 0 : do { $return = "\$vars->backslash ('\.', $item[2])"; }; | ||
| 1405 | unless (defined $_tok) | ||
| 1406 | { | ||
| 1407 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1408 | if defined $::RD_TRACE; | ||
| 1409 | last; | ||
| 1410 | } | ||
| 1411 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1412 | . $_tok . q{])}, $text) | ||
| 1413 | if defined $::RD_TRACE; | ||
| 1414 | push @item, $_tok; | ||
| 1415 | $item{__ACTION1__}=$_tok; | ||
| 1416 | |||
| 1417 | |||
| 1418 | |||
| 1419 | Parse::RecDescent::_trace(q{>>Matched production: ['/' xpathtext]<<}, | ||
| 1420 | Parse::RecDescent::_tracefirst($text), | ||
| 1421 | q{varstring}) | ||
| 1422 | if defined $::RD_TRACE; | ||
| 1423 | $_matched = 1; | ||
| 1424 | last; | ||
| 1425 | } | ||
| 1426 | |||
| 1427 | |||
| 1428 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 1429 | { | ||
| 1430 | |||
| 1431 | |||
| 1432 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 1433 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 1434 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1435 | q{varstring}) | ||
| 1436 | if defined $::RD_TRACE; | ||
| 1437 | return undef; | ||
| 1438 | } | ||
| 1439 | if (!defined($return) && defined($score)) | ||
| 1440 | { | ||
| 1441 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 1442 | q{varstring}) | ||
| 1443 | if defined $::RD_TRACE; | ||
| 1444 | $return = $score_return; | ||
| 1445 | } | ||
| 1446 | splice @{$thisparser->{errors}}, $err_at; | ||
| 1447 | $return = $item[$#item] unless defined $return; | ||
| 1448 | if (defined $::RD_TRACE) | ||
| 1449 | { | ||
| 1450 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 1451 | $return . q{])}, "", | ||
| 1452 | q{varstring}); | ||
| 1453 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 1454 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 1455 | Parse::RecDescent::_tracefirst($text), | ||
| 1456 | , q{varstring}) | ||
| 1457 | } | ||
| 1458 | $_[1] = $text; | ||
| 1459 | return $return; | ||
| 1460 | } | ||
| 1461 | |||
| 1462 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 1463 | sub Parse::RecDescent::namespace000001::function | ||
| 1464 | { | ||
| 1465 | my $thisparser = $_[0]; | ||
| 1466 | $ERRORS = 0; | ||
| 1467 | my $thisrule = $thisparser->{"rules"}{"function"}; | ||
| 1468 | |||
| 1469 | Parse::RecDescent::_trace(q{Trying rule: [function]}, | ||
| 1470 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1471 | q{function}) | ||
| 1472 | if defined $::RD_TRACE; | ||
| 1473 | |||
| 1474 | |||
| 1475 | my $err_at = @{$thisparser->{errors}}; | ||
| 1476 | |||
| 1477 | my $score; | ||
| 1478 | my $score_return; | ||
| 1479 | my $_tok; | ||
| 1480 | my $return = undef; | ||
| 1481 | my $_matched=0; | ||
| 1482 | my $commit=0; | ||
| 1483 | my @item = (); | ||
| 1484 | my %item = (); | ||
| 1485 | my $repeating = defined($_[2]) && $_[2]; | ||
| 1486 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 1487 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 1488 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 1489 | my $text; | ||
| 1490 | my $lastsep=""; | ||
| 1491 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 1492 | $expectation->at($_[1]); | ||
| 1493 | |||
| 1494 | my $thisline; | ||
| 1495 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 1496 | |||
| 1497 | |||
| 1498 | |||
| 1499 | while (!$_matched && !$commit) | ||
| 1500 | { | ||
| 1501 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 1502 | Parse::RecDescent::_trace(q{Trying production: [<skip: '\s*'> '.' /[_a-z0-9]+/i paramlist]}, | ||
| 1503 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1504 | q{function}) | ||
| 1505 | if defined $::RD_TRACE; | ||
| 1506 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 1507 | $text = $_[1]; | ||
| 1508 | my $_savetext; | ||
| 1509 | @item = (q{function}); | ||
| 1510 | %item = (__RULE__ => q{function}); | ||
| 1511 | my $repcount = 0; | ||
| 1512 | |||
| 1513 | |||
| 1514 | |||
| 1515 | |||
| 1516 | Parse::RecDescent::_trace(q{Trying directive: [<skip: '\s*'>]}, | ||
| 1517 | Parse::RecDescent::_tracefirst($text), | ||
| 1518 | q{function}) | ||
| 1519 | if defined $::RD_TRACE; | ||
| 1520 | $_tok = do { my $oldskip = $skip; $skip= '\s*'; $oldskip }; | ||
| 1521 | if (defined($_tok)) | ||
| 1522 | { | ||
| 1523 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 1524 | . $_tok . q{])}, | ||
| 1525 | Parse::RecDescent::_tracefirst($text)) | ||
| 1526 | if defined $::RD_TRACE; | ||
| 1527 | } | ||
| 1528 | else | ||
| 1529 | { | ||
| 1530 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 1531 | Parse::RecDescent::_tracefirst($text)) | ||
| 1532 | if defined $::RD_TRACE; | ||
| 1533 | } | ||
| 1534 | |||
| 1535 | last unless defined $_tok; | ||
| 1536 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 1537 | |||
| 1538 | |||
| 1539 | Parse::RecDescent::_trace(q{Trying terminal: ['.']}, | ||
| 1540 | Parse::RecDescent::_tracefirst($text), | ||
| 1541 | q{function}) | ||
| 1542 | if defined $::RD_TRACE; | ||
| 1543 | $lastsep = ""; | ||
| 1544 | $expectation->is(q{'.'})->at($text); | ||
| 1545 | |||
| 1546 | |||
| 1547 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\.//) | ||
| 1548 | { | ||
| 1549 | |||
| 1550 | $expectation->failed(); | ||
| 1551 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1552 | Parse::RecDescent::_tracefirst($text)) | ||
| 1553 | if defined $::RD_TRACE; | ||
| 1554 | last; | ||
| 1555 | } | ||
| 1556 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1557 | . $& . q{])}, | ||
| 1558 | Parse::RecDescent::_tracefirst($text)) | ||
| 1559 | if defined $::RD_TRACE; | ||
| 1560 | push @item, $item{__STRING1__}=$&; | ||
| 1561 | |||
| 1562 | |||
| 1563 | Parse::RecDescent::_trace(q{Trying terminal: [/[_a-z0-9]+/i]}, Parse::RecDescent::_tracefirst($text), | ||
| 1564 | q{function}) | ||
| 1565 | if defined $::RD_TRACE; | ||
| 1566 | $lastsep = ""; | ||
| 1567 | $expectation->is(q{/[_a-z0-9]+/i})->at($text); | ||
| 1568 | |||
| 1569 | |||
| 1570 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:[_a-z0-9]+)//i) | ||
| 1571 | { | ||
| 1572 | |||
| 1573 | $expectation->failed(); | ||
| 1574 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 1575 | Parse::RecDescent::_tracefirst($text)) | ||
| 1576 | if defined $::RD_TRACE; | ||
| 1577 | |||
| 1578 | last; | ||
| 1579 | } | ||
| 1580 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1581 | . $& . q{])}, | ||
| 1582 | Parse::RecDescent::_tracefirst($text)) | ||
| 1583 | if defined $::RD_TRACE; | ||
| 1584 | push @item, $item{__PATTERN1__}=$&; | ||
| 1585 | |||
| 1586 | |||
| 1587 | Parse::RecDescent::_trace(q{Trying repeated subrule: [paramlist]}, | ||
| 1588 | Parse::RecDescent::_tracefirst($text), | ||
| 1589 | q{function}) | ||
| 1590 | if defined $::RD_TRACE; | ||
| 1591 | $expectation->is(q{paramlist})->at($text); | ||
| 1592 | |||
| 1593 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::paramlist, 0, 100000000, $_noactions,$expectation,undef))) | ||
| 1594 | { | ||
| 1595 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [paramlist]>>}, | ||
| 1596 | Parse::RecDescent::_tracefirst($text), | ||
| 1597 | q{function}) | ||
| 1598 | if defined $::RD_TRACE; | ||
| 1599 | last; | ||
| 1600 | } | ||
| 1601 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [paramlist]<< (} | ||
| 1602 | . @$_tok . q{ times)}, | ||
| 1603 | |||
| 1604 | Parse::RecDescent::_tracefirst($text), | ||
| 1605 | q{function}) | ||
| 1606 | if defined $::RD_TRACE; | ||
| 1607 | $item{q{paramlist}} = $_tok; | ||
| 1608 | push @item, $_tok; | ||
| 1609 | |||
| 1610 | |||
| 1611 | |||
| 1612 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1613 | Parse::RecDescent::_tracefirst($text), | ||
| 1614 | q{function}) | ||
| 1615 | if defined $::RD_TRACE; | ||
| 1616 | |||
| 1617 | |||
| 1618 | $_tok = ($_noactions) ? 0 : do { $return = [$item[3], $item[4]] }; | ||
| 1619 | unless (defined $_tok) | ||
| 1620 | { | ||
| 1621 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1622 | if defined $::RD_TRACE; | ||
| 1623 | last; | ||
| 1624 | } | ||
| 1625 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1626 | . $_tok . q{])}, $text) | ||
| 1627 | if defined $::RD_TRACE; | ||
| 1628 | push @item, $_tok; | ||
| 1629 | $item{__ACTION1__}=$_tok; | ||
| 1630 | |||
| 1631 | |||
| 1632 | |||
| 1633 | Parse::RecDescent::_trace(q{>>Matched production: [<skip: '\s*'> '.' /[_a-z0-9]+/i paramlist]<<}, | ||
| 1634 | Parse::RecDescent::_tracefirst($text), | ||
| 1635 | q{function}) | ||
| 1636 | if defined $::RD_TRACE; | ||
| 1637 | $_matched = 1; | ||
| 1638 | last; | ||
| 1639 | } | ||
| 1640 | |||
| 1641 | |||
| 1642 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 1643 | { | ||
| 1644 | |||
| 1645 | |||
| 1646 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 1647 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 1648 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1649 | q{function}) | ||
| 1650 | if defined $::RD_TRACE; | ||
| 1651 | return undef; | ||
| 1652 | } | ||
| 1653 | if (!defined($return) && defined($score)) | ||
| 1654 | { | ||
| 1655 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 1656 | q{function}) | ||
| 1657 | if defined $::RD_TRACE; | ||
| 1658 | $return = $score_return; | ||
| 1659 | } | ||
| 1660 | splice @{$thisparser->{errors}}, $err_at; | ||
| 1661 | $return = $item[$#item] unless defined $return; | ||
| 1662 | if (defined $::RD_TRACE) | ||
| 1663 | { | ||
| 1664 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 1665 | $return . q{])}, "", | ||
| 1666 | q{function}); | ||
| 1667 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 1668 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 1669 | Parse::RecDescent::_tracefirst($text), | ||
| 1670 | , q{function}) | ||
| 1671 | } | ||
| 1672 | $_[1] = $text; | ||
| 1673 | return $return; | ||
| 1674 | } | ||
| 1675 | |||
| 1676 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 1677 | sub Parse::RecDescent::namespace000001::paramstring | ||
| 1678 | { | ||
| 1679 | my $thisparser = $_[0]; | ||
| 1680 | $ERRORS = 0; | ||
| 1681 | my $thisrule = $thisparser->{"rules"}{"paramstring"}; | ||
| 1682 | |||
| 1683 | Parse::RecDescent::_trace(q{Trying rule: [paramstring]}, | ||
| 1684 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1685 | q{paramstring}) | ||
| 1686 | if defined $::RD_TRACE; | ||
| 1687 | |||
| 1688 | |||
| 1689 | my $err_at = @{$thisparser->{errors}}; | ||
| 1690 | |||
| 1691 | my $score; | ||
| 1692 | my $score_return; | ||
| 1693 | my $_tok; | ||
| 1694 | my $return = undef; | ||
| 1695 | my $_matched=0; | ||
| 1696 | my $commit=0; | ||
| 1697 | my @item = (); | ||
| 1698 | my %item = (); | ||
| 1699 | my $repeating = defined($_[2]) && $_[2]; | ||
| 1700 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 1701 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 1702 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 1703 | my $text; | ||
| 1704 | my $lastsep=""; | ||
| 1705 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 1706 | $expectation->at($_[1]); | ||
| 1707 | |||
| 1708 | my $thisline; | ||
| 1709 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 1710 | |||
| 1711 | |||
| 1712 | |||
| 1713 | while (!$_matched && !$commit) | ||
| 1714 | { | ||
| 1715 | |||
| 1716 | Parse::RecDescent::_trace(q{Trying production: ['$\{' paramtext '\}\\.']}, | ||
| 1717 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1718 | q{paramstring}) | ||
| 1719 | if defined $::RD_TRACE; | ||
| 1720 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 1721 | $text = $_[1]; | ||
| 1722 | my $_savetext; | ||
| 1723 | @item = (q{paramstring}); | ||
| 1724 | %item = (__RULE__ => q{paramstring}); | ||
| 1725 | my $repcount = 0; | ||
| 1726 | |||
| 1727 | |||
| 1728 | Parse::RecDescent::_trace(q{Trying terminal: ['$\{']}, | ||
| 1729 | Parse::RecDescent::_tracefirst($text), | ||
| 1730 | q{paramstring}) | ||
| 1731 | if defined $::RD_TRACE; | ||
| 1732 | $lastsep = ""; | ||
| 1733 | $expectation->is(q{})->at($text); | ||
| 1734 | |||
| 1735 | |||
| 1736 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//) | ||
| 1737 | { | ||
| 1738 | |||
| 1739 | $expectation->failed(); | ||
| 1740 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1741 | Parse::RecDescent::_tracefirst($text)) | ||
| 1742 | if defined $::RD_TRACE; | ||
| 1743 | last; | ||
| 1744 | } | ||
| 1745 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1746 | . $& . q{])}, | ||
| 1747 | Parse::RecDescent::_tracefirst($text)) | ||
| 1748 | if defined $::RD_TRACE; | ||
| 1749 | push @item, $item{__STRING1__}=$&; | ||
| 1750 | |||
| 1751 | |||
| 1752 | Parse::RecDescent::_trace(q{Trying subrule: [paramtext]}, | ||
| 1753 | Parse::RecDescent::_tracefirst($text), | ||
| 1754 | q{paramstring}) | ||
| 1755 | if defined $::RD_TRACE; | ||
| 1756 | if (1) { no strict qw{refs}; | ||
| 1757 | $expectation->is(q{paramtext})->at($text); | ||
| 1758 | unless (defined ($_tok = Parse::RecDescent::namespace000001::paramtext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 1759 | { | ||
| 1760 | |||
| 1761 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [paramtext]>>}, | ||
| 1762 | Parse::RecDescent::_tracefirst($text), | ||
| 1763 | q{paramstring}) | ||
| 1764 | if defined $::RD_TRACE; | ||
| 1765 | $expectation->failed(); | ||
| 1766 | last; | ||
| 1767 | } | ||
| 1768 | Parse::RecDescent::_trace(q{>>Matched subrule: [paramtext]<< (return value: [} | ||
| 1769 | . $_tok . q{]}, | ||
| 1770 | |||
| 1771 | Parse::RecDescent::_tracefirst($text), | ||
| 1772 | q{paramstring}) | ||
| 1773 | if defined $::RD_TRACE; | ||
| 1774 | $item{q{paramtext}} = $_tok; | ||
| 1775 | push @item, $_tok; | ||
| 1776 | |||
| 1777 | } | ||
| 1778 | |||
| 1779 | Parse::RecDescent::_trace(q{Trying terminal: ['\}\\.']}, | ||
| 1780 | Parse::RecDescent::_tracefirst($text), | ||
| 1781 | q{paramstring}) | ||
| 1782 | if defined $::RD_TRACE; | ||
| 1783 | $lastsep = ""; | ||
| 1784 | $expectation->is(q{'\}\\.'})->at($text); | ||
| 1785 | |||
| 1786 | |||
| 1787 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}\\\.//) | ||
| 1788 | { | ||
| 1789 | |||
| 1790 | $expectation->failed(); | ||
| 1791 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1792 | Parse::RecDescent::_tracefirst($text)) | ||
| 1793 | if defined $::RD_TRACE; | ||
| 1794 | last; | ||
| 1795 | } | ||
| 1796 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1797 | . $& . q{])}, | ||
| 1798 | Parse::RecDescent::_tracefirst($text)) | ||
| 1799 | if defined $::RD_TRACE; | ||
| 1800 | push @item, $item{__STRING2__}=$&; | ||
| 1801 | |||
| 1802 | |||
| 1803 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1804 | Parse::RecDescent::_tracefirst($text), | ||
| 1805 | q{paramstring}) | ||
| 1806 | if defined $::RD_TRACE; | ||
| 1807 | |||
| 1808 | |||
| 1809 | $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2]) . " . '.'" }; | ||
| 1810 | unless (defined $_tok) | ||
| 1811 | { | ||
| 1812 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1813 | if defined $::RD_TRACE; | ||
| 1814 | last; | ||
| 1815 | } | ||
| 1816 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1817 | . $_tok . q{])}, $text) | ||
| 1818 | if defined $::RD_TRACE; | ||
| 1819 | push @item, $_tok; | ||
| 1820 | $item{__ACTION1__}=$_tok; | ||
| 1821 | |||
| 1822 | |||
| 1823 | |||
| 1824 | Parse::RecDescent::_trace(q{>>Matched production: ['$\{' paramtext '\}\\.']<<}, | ||
| 1825 | Parse::RecDescent::_tracefirst($text), | ||
| 1826 | q{paramstring}) | ||
| 1827 | if defined $::RD_TRACE; | ||
| 1828 | $_matched = 1; | ||
| 1829 | last; | ||
| 1830 | } | ||
| 1831 | |||
| 1832 | |||
| 1833 | while (!$_matched && !$commit) | ||
| 1834 | { | ||
| 1835 | |||
| 1836 | Parse::RecDescent::_trace(q{Trying production: ['$\{' paramtext '\}' function]}, | ||
| 1837 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1838 | q{paramstring}) | ||
| 1839 | if defined $::RD_TRACE; | ||
| 1840 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 1841 | $text = $_[1]; | ||
| 1842 | my $_savetext; | ||
| 1843 | @item = (q{paramstring}); | ||
| 1844 | %item = (__RULE__ => q{paramstring}); | ||
| 1845 | my $repcount = 0; | ||
| 1846 | |||
| 1847 | |||
| 1848 | Parse::RecDescent::_trace(q{Trying terminal: ['$\{']}, | ||
| 1849 | Parse::RecDescent::_tracefirst($text), | ||
| 1850 | q{paramstring}) | ||
| 1851 | if defined $::RD_TRACE; | ||
| 1852 | $lastsep = ""; | ||
| 1853 | $expectation->is(q{})->at($text); | ||
| 1854 | |||
| 1855 | |||
| 1856 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//) | ||
| 1857 | { | ||
| 1858 | |||
| 1859 | $expectation->failed(); | ||
| 1860 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1861 | Parse::RecDescent::_tracefirst($text)) | ||
| 1862 | if defined $::RD_TRACE; | ||
| 1863 | last; | ||
| 1864 | } | ||
| 1865 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1866 | . $& . q{])}, | ||
| 1867 | Parse::RecDescent::_tracefirst($text)) | ||
| 1868 | if defined $::RD_TRACE; | ||
| 1869 | push @item, $item{__STRING1__}=$&; | ||
| 1870 | |||
| 1871 | |||
| 1872 | Parse::RecDescent::_trace(q{Trying subrule: [paramtext]}, | ||
| 1873 | Parse::RecDescent::_tracefirst($text), | ||
| 1874 | q{paramstring}) | ||
| 1875 | if defined $::RD_TRACE; | ||
| 1876 | if (1) { no strict qw{refs}; | ||
| 1877 | $expectation->is(q{paramtext})->at($text); | ||
| 1878 | unless (defined ($_tok = Parse::RecDescent::namespace000001::paramtext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 1879 | { | ||
| 1880 | |||
| 1881 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [paramtext]>>}, | ||
| 1882 | Parse::RecDescent::_tracefirst($text), | ||
| 1883 | q{paramstring}) | ||
| 1884 | if defined $::RD_TRACE; | ||
| 1885 | $expectation->failed(); | ||
| 1886 | last; | ||
| 1887 | } | ||
| 1888 | Parse::RecDescent::_trace(q{>>Matched subrule: [paramtext]<< (return value: [} | ||
| 1889 | . $_tok . q{]}, | ||
| 1890 | |||
| 1891 | Parse::RecDescent::_tracefirst($text), | ||
| 1892 | q{paramstring}) | ||
| 1893 | if defined $::RD_TRACE; | ||
| 1894 | $item{q{paramtext}} = $_tok; | ||
| 1895 | push @item, $_tok; | ||
| 1896 | |||
| 1897 | } | ||
| 1898 | |||
| 1899 | Parse::RecDescent::_trace(q{Trying terminal: ['\}']}, | ||
| 1900 | Parse::RecDescent::_tracefirst($text), | ||
| 1901 | q{paramstring}) | ||
| 1902 | if defined $::RD_TRACE; | ||
| 1903 | $lastsep = ""; | ||
| 1904 | $expectation->is(q{'\}'})->at($text); | ||
| 1905 | |||
| 1906 | |||
| 1907 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}//) | ||
| 1908 | { | ||
| 1909 | |||
| 1910 | $expectation->failed(); | ||
| 1911 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 1912 | Parse::RecDescent::_tracefirst($text)) | ||
| 1913 | if defined $::RD_TRACE; | ||
| 1914 | last; | ||
| 1915 | } | ||
| 1916 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 1917 | . $& . q{])}, | ||
| 1918 | Parse::RecDescent::_tracefirst($text)) | ||
| 1919 | if defined $::RD_TRACE; | ||
| 1920 | push @item, $item{__STRING2__}=$&; | ||
| 1921 | |||
| 1922 | |||
| 1923 | Parse::RecDescent::_trace(q{Trying repeated subrule: [function]}, | ||
| 1924 | Parse::RecDescent::_tracefirst($text), | ||
| 1925 | q{paramstring}) | ||
| 1926 | if defined $::RD_TRACE; | ||
| 1927 | $expectation->is(q{function})->at($text); | ||
| 1928 | |||
| 1929 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::function, 0, 100000000, $_noactions,$expectation,undef))) | ||
| 1930 | { | ||
| 1931 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [function]>>}, | ||
| 1932 | Parse::RecDescent::_tracefirst($text), | ||
| 1933 | q{paramstring}) | ||
| 1934 | if defined $::RD_TRACE; | ||
| 1935 | last; | ||
| 1936 | } | ||
| 1937 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [function]<< (} | ||
| 1938 | . @$_tok . q{ times)}, | ||
| 1939 | |||
| 1940 | Parse::RecDescent::_tracefirst($text), | ||
| 1941 | q{paramstring}) | ||
| 1942 | if defined $::RD_TRACE; | ||
| 1943 | $item{q{function}} = $_tok; | ||
| 1944 | push @item, $_tok; | ||
| 1945 | |||
| 1946 | |||
| 1947 | |||
| 1948 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 1949 | Parse::RecDescent::_tracefirst($text), | ||
| 1950 | q{paramstring}) | ||
| 1951 | if defined $::RD_TRACE; | ||
| 1952 | |||
| 1953 | |||
| 1954 | $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2], $item[4]) }; | ||
| 1955 | unless (defined $_tok) | ||
| 1956 | { | ||
| 1957 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 1958 | if defined $::RD_TRACE; | ||
| 1959 | last; | ||
| 1960 | } | ||
| 1961 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 1962 | . $_tok . q{])}, $text) | ||
| 1963 | if defined $::RD_TRACE; | ||
| 1964 | push @item, $_tok; | ||
| 1965 | $item{__ACTION1__}=$_tok; | ||
| 1966 | |||
| 1967 | |||
| 1968 | |||
| 1969 | Parse::RecDescent::_trace(q{>>Matched production: ['$\{' paramtext '\}' function]<<}, | ||
| 1970 | Parse::RecDescent::_tracefirst($text), | ||
| 1971 | q{paramstring}) | ||
| 1972 | if defined $::RD_TRACE; | ||
| 1973 | $_matched = 1; | ||
| 1974 | last; | ||
| 1975 | } | ||
| 1976 | |||
| 1977 | |||
| 1978 | while (!$_matched && !$commit) | ||
| 1979 | { | ||
| 1980 | |||
| 1981 | Parse::RecDescent::_trace(q{Trying production: ['(' paramtext ')']}, | ||
| 1982 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 1983 | q{paramstring}) | ||
| 1984 | if defined $::RD_TRACE; | ||
| 1985 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 1986 | $text = $_[1]; | ||
| 1987 | my $_savetext; | ||
| 1988 | @item = (q{paramstring}); | ||
| 1989 | %item = (__RULE__ => q{paramstring}); | ||
| 1990 | my $repcount = 0; | ||
| 1991 | |||
| 1992 | |||
| 1993 | Parse::RecDescent::_trace(q{Trying terminal: ['(']}, | ||
| 1994 | Parse::RecDescent::_tracefirst($text), | ||
| 1995 | q{paramstring}) | ||
| 1996 | if defined $::RD_TRACE; | ||
| 1997 | $lastsep = ""; | ||
| 1998 | $expectation->is(q{})->at($text); | ||
| 1999 | |||
| 2000 | |||
| 2001 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\(//) | ||
| 2002 | { | ||
| 2003 | |||
| 2004 | $expectation->failed(); | ||
| 2005 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 2006 | Parse::RecDescent::_tracefirst($text)) | ||
| 2007 | if defined $::RD_TRACE; | ||
| 2008 | last; | ||
| 2009 | } | ||
| 2010 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2011 | . $& . q{])}, | ||
| 2012 | Parse::RecDescent::_tracefirst($text)) | ||
| 2013 | if defined $::RD_TRACE; | ||
| 2014 | push @item, $item{__STRING1__}=$&; | ||
| 2015 | |||
| 2016 | |||
| 2017 | Parse::RecDescent::_trace(q{Trying subrule: [paramtext]}, | ||
| 2018 | Parse::RecDescent::_tracefirst($text), | ||
| 2019 | q{paramstring}) | ||
| 2020 | if defined $::RD_TRACE; | ||
| 2021 | if (1) { no strict qw{refs}; | ||
| 2022 | $expectation->is(q{paramtext})->at($text); | ||
| 2023 | unless (defined ($_tok = Parse::RecDescent::namespace000001::paramtext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 2024 | { | ||
| 2025 | |||
| 2026 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [paramtext]>>}, | ||
| 2027 | Parse::RecDescent::_tracefirst($text), | ||
| 2028 | q{paramstring}) | ||
| 2029 | if defined $::RD_TRACE; | ||
| 2030 | $expectation->failed(); | ||
| 2031 | last; | ||
| 2032 | } | ||
| 2033 | Parse::RecDescent::_trace(q{>>Matched subrule: [paramtext]<< (return value: [} | ||
| 2034 | . $_tok . q{]}, | ||
| 2035 | |||
| 2036 | Parse::RecDescent::_tracefirst($text), | ||
| 2037 | q{paramstring}) | ||
| 2038 | if defined $::RD_TRACE; | ||
| 2039 | $item{q{paramtext}} = $_tok; | ||
| 2040 | push @item, $_tok; | ||
| 2041 | |||
| 2042 | } | ||
| 2043 | |||
| 2044 | Parse::RecDescent::_trace(q{Trying terminal: [')']}, | ||
| 2045 | Parse::RecDescent::_tracefirst($text), | ||
| 2046 | q{paramstring}) | ||
| 2047 | if defined $::RD_TRACE; | ||
| 2048 | $lastsep = ""; | ||
| 2049 | $expectation->is(q{')'})->at($text); | ||
| 2050 | |||
| 2051 | |||
| 2052 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\)//) | ||
| 2053 | { | ||
| 2054 | |||
| 2055 | $expectation->failed(); | ||
| 2056 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 2057 | Parse::RecDescent::_tracefirst($text)) | ||
| 2058 | if defined $::RD_TRACE; | ||
| 2059 | last; | ||
| 2060 | } | ||
| 2061 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2062 | . $& . q{])}, | ||
| 2063 | Parse::RecDescent::_tracefirst($text)) | ||
| 2064 | if defined $::RD_TRACE; | ||
| 2065 | push @item, $item{__STRING2__}=$&; | ||
| 2066 | |||
| 2067 | |||
| 2068 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2069 | Parse::RecDescent::_tracefirst($text), | ||
| 2070 | q{paramstring}) | ||
| 2071 | if defined $::RD_TRACE; | ||
| 2072 | |||
| 2073 | |||
| 2074 | $_tok = ($_noactions) ? 0 : do { $return = "($item[1])" }; | ||
| 2075 | unless (defined $_tok) | ||
| 2076 | { | ||
| 2077 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2078 | if defined $::RD_TRACE; | ||
| 2079 | last; | ||
| 2080 | } | ||
| 2081 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2082 | . $_tok . q{])}, $text) | ||
| 2083 | if defined $::RD_TRACE; | ||
| 2084 | push @item, $_tok; | ||
| 2085 | $item{__ACTION1__}=$_tok; | ||
| 2086 | |||
| 2087 | |||
| 2088 | |||
| 2089 | Parse::RecDescent::_trace(q{>>Matched production: ['(' paramtext ')']<<}, | ||
| 2090 | Parse::RecDescent::_tracefirst($text), | ||
| 2091 | q{paramstring}) | ||
| 2092 | if defined $::RD_TRACE; | ||
| 2093 | $_matched = 1; | ||
| 2094 | last; | ||
| 2095 | } | ||
| 2096 | |||
| 2097 | |||
| 2098 | while (!$_matched && !$commit) | ||
| 2099 | { | ||
| 2100 | |||
| 2101 | Parse::RecDescent::_trace(q{Trying production: [/([\\\\][\\$\})"]|[^\\$\})"])+/]}, | ||
| 2102 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2103 | q{paramstring}) | ||
| 2104 | if defined $::RD_TRACE; | ||
| 2105 | my $thisprod = $thisrule->{"prods"}[3]; | ||
| 2106 | $text = $_[1]; | ||
| 2107 | my $_savetext; | ||
| 2108 | @item = (q{paramstring}); | ||
| 2109 | %item = (__RULE__ => q{paramstring}); | ||
| 2110 | my $repcount = 0; | ||
| 2111 | |||
| 2112 | |||
| 2113 | Parse::RecDescent::_trace(q{Trying terminal: [/([\\\\][\\$\})"]|[^\\$\})"])+/]}, Parse::RecDescent::_tracefirst($text), | ||
| 2114 | q{paramstring}) | ||
| 2115 | if defined $::RD_TRACE; | ||
| 2116 | $lastsep = ""; | ||
| 2117 | $expectation->is(q{})->at($text); | ||
| 2118 | |||
| 2119 | |||
| 2120 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:([\\][\$})"]|[^\$})"])+)//) | ||
| 2121 | { | ||
| 2122 | |||
| 2123 | $expectation->failed(); | ||
| 2124 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 2125 | Parse::RecDescent::_tracefirst($text)) | ||
| 2126 | if defined $::RD_TRACE; | ||
| 2127 | |||
| 2128 | last; | ||
| 2129 | } | ||
| 2130 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2131 | . $& . q{])}, | ||
| 2132 | Parse::RecDescent::_tracefirst($text)) | ||
| 2133 | if defined $::RD_TRACE; | ||
| 2134 | push @item, $item{__PATTERN1__}=$&; | ||
| 2135 | |||
| 2136 | |||
| 2137 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2138 | Parse::RecDescent::_tracefirst($text), | ||
| 2139 | q{paramstring}) | ||
| 2140 | if defined $::RD_TRACE; | ||
| 2141 | |||
| 2142 | |||
| 2143 | $_tok = ($_noactions) ? 0 : do { $item[1] =~ s/'/\\'/g; $return = "'$item[1]'" }; | ||
| 2144 | unless (defined $_tok) | ||
| 2145 | { | ||
| 2146 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2147 | if defined $::RD_TRACE; | ||
| 2148 | last; | ||
| 2149 | } | ||
| 2150 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2151 | . $_tok . q{])}, $text) | ||
| 2152 | if defined $::RD_TRACE; | ||
| 2153 | push @item, $_tok; | ||
| 2154 | $item{__ACTION1__}=$_tok; | ||
| 2155 | |||
| 2156 | |||
| 2157 | |||
| 2158 | Parse::RecDescent::_trace(q{>>Matched production: [/([\\\\][\\$\})"]|[^\\$\})"])+/]<<}, | ||
| 2159 | Parse::RecDescent::_tracefirst($text), | ||
| 2160 | q{paramstring}) | ||
| 2161 | if defined $::RD_TRACE; | ||
| 2162 | $_matched = 1; | ||
| 2163 | last; | ||
| 2164 | } | ||
| 2165 | |||
| 2166 | |||
| 2167 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 2168 | { | ||
| 2169 | |||
| 2170 | |||
| 2171 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 2172 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 2173 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2174 | q{paramstring}) | ||
| 2175 | if defined $::RD_TRACE; | ||
| 2176 | return undef; | ||
| 2177 | } | ||
| 2178 | if (!defined($return) && defined($score)) | ||
| 2179 | { | ||
| 2180 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 2181 | q{paramstring}) | ||
| 2182 | if defined $::RD_TRACE; | ||
| 2183 | $return = $score_return; | ||
| 2184 | } | ||
| 2185 | splice @{$thisparser->{errors}}, $err_at; | ||
| 2186 | $return = $item[$#item] unless defined $return; | ||
| 2187 | if (defined $::RD_TRACE) | ||
| 2188 | { | ||
| 2189 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 2190 | $return . q{])}, "", | ||
| 2191 | q{paramstring}); | ||
| 2192 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 2193 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 2194 | Parse::RecDescent::_tracefirst($text), | ||
| 2195 | , q{paramstring}) | ||
| 2196 | } | ||
| 2197 | $_[1] = $text; | ||
| 2198 | return $return; | ||
| 2199 | } | ||
| 2200 | |||
| 2201 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 2202 | sub Parse::RecDescent::namespace000001::string | ||
| 2203 | { | ||
| 2204 | my $thisparser = $_[0]; | ||
| 2205 | $ERRORS = 0; | ||
| 2206 | my $thisrule = $thisparser->{"rules"}{"string"}; | ||
| 2207 | |||
| 2208 | Parse::RecDescent::_trace(q{Trying rule: [string]}, | ||
| 2209 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2210 | q{string}) | ||
| 2211 | if defined $::RD_TRACE; | ||
| 2212 | |||
| 2213 | |||
| 2214 | my $err_at = @{$thisparser->{errors}}; | ||
| 2215 | |||
| 2216 | my $score; | ||
| 2217 | my $score_return; | ||
| 2218 | my $_tok; | ||
| 2219 | my $return = undef; | ||
| 2220 | my $_matched=0; | ||
| 2221 | my $commit=0; | ||
| 2222 | my @item = (); | ||
| 2223 | my %item = (); | ||
| 2224 | my $repeating = defined($_[2]) && $_[2]; | ||
| 2225 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 2226 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 2227 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 2228 | my $text; | ||
| 2229 | my $lastsep=""; | ||
| 2230 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 2231 | $expectation->at($_[1]); | ||
| 2232 | |||
| 2233 | my $thisline; | ||
| 2234 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 2235 | |||
| 2236 | |||
| 2237 | |||
| 2238 | while (!$_matched && !$commit) | ||
| 2239 | { | ||
| 2240 | |||
| 2241 | Parse::RecDescent::_trace(q{Trying production: ['$\{' vartext '\}\\.']}, | ||
| 2242 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2243 | q{string}) | ||
| 2244 | if defined $::RD_TRACE; | ||
| 2245 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 2246 | $text = $_[1]; | ||
| 2247 | my $_savetext; | ||
| 2248 | @item = (q{string}); | ||
| 2249 | %item = (__RULE__ => q{string}); | ||
| 2250 | my $repcount = 0; | ||
| 2251 | |||
| 2252 | |||
| 2253 | Parse::RecDescent::_trace(q{Trying terminal: ['$\{']}, | ||
| 2254 | Parse::RecDescent::_tracefirst($text), | ||
| 2255 | q{string}) | ||
| 2256 | if defined $::RD_TRACE; | ||
| 2257 | $lastsep = ""; | ||
| 2258 | $expectation->is(q{})->at($text); | ||
| 2259 | |||
| 2260 | |||
| 2261 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//) | ||
| 2262 | { | ||
| 2263 | |||
| 2264 | $expectation->failed(); | ||
| 2265 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 2266 | Parse::RecDescent::_tracefirst($text)) | ||
| 2267 | if defined $::RD_TRACE; | ||
| 2268 | last; | ||
| 2269 | } | ||
| 2270 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2271 | . $& . q{])}, | ||
| 2272 | Parse::RecDescent::_tracefirst($text)) | ||
| 2273 | if defined $::RD_TRACE; | ||
| 2274 | push @item, $item{__STRING1__}=$&; | ||
| 2275 | |||
| 2276 | |||
| 2277 | Parse::RecDescent::_trace(q{Trying subrule: [vartext]}, | ||
| 2278 | Parse::RecDescent::_tracefirst($text), | ||
| 2279 | q{string}) | ||
| 2280 | if defined $::RD_TRACE; | ||
| 2281 | if (1) { no strict qw{refs}; | ||
| 2282 | $expectation->is(q{vartext})->at($text); | ||
| 2283 | unless (defined ($_tok = Parse::RecDescent::namespace000001::vartext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 2284 | { | ||
| 2285 | |||
| 2286 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [vartext]>>}, | ||
| 2287 | Parse::RecDescent::_tracefirst($text), | ||
| 2288 | q{string}) | ||
| 2289 | if defined $::RD_TRACE; | ||
| 2290 | $expectation->failed(); | ||
| 2291 | last; | ||
| 2292 | } | ||
| 2293 | Parse::RecDescent::_trace(q{>>Matched subrule: [vartext]<< (return value: [} | ||
| 2294 | . $_tok . q{]}, | ||
| 2295 | |||
| 2296 | Parse::RecDescent::_tracefirst($text), | ||
| 2297 | q{string}) | ||
| 2298 | if defined $::RD_TRACE; | ||
| 2299 | $item{q{vartext}} = $_tok; | ||
| 2300 | push @item, $_tok; | ||
| 2301 | |||
| 2302 | } | ||
| 2303 | |||
| 2304 | Parse::RecDescent::_trace(q{Trying terminal: ['\}\\.']}, | ||
| 2305 | Parse::RecDescent::_tracefirst($text), | ||
| 2306 | q{string}) | ||
| 2307 | if defined $::RD_TRACE; | ||
| 2308 | $lastsep = ""; | ||
| 2309 | $expectation->is(q{'\}\\.'})->at($text); | ||
| 2310 | |||
| 2311 | |||
| 2312 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}\\\.//) | ||
| 2313 | { | ||
| 2314 | |||
| 2315 | $expectation->failed(); | ||
| 2316 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 2317 | Parse::RecDescent::_tracefirst($text)) | ||
| 2318 | if defined $::RD_TRACE; | ||
| 2319 | last; | ||
| 2320 | } | ||
| 2321 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2322 | . $& . q{])}, | ||
| 2323 | Parse::RecDescent::_tracefirst($text)) | ||
| 2324 | if defined $::RD_TRACE; | ||
| 2325 | push @item, $item{__STRING2__}=$&; | ||
| 2326 | |||
| 2327 | |||
| 2328 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2329 | Parse::RecDescent::_tracefirst($text), | ||
| 2330 | q{string}) | ||
| 2331 | if defined $::RD_TRACE; | ||
| 2332 | |||
| 2333 | |||
| 2334 | $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2]) . " . '.'" }; | ||
| 2335 | unless (defined $_tok) | ||
| 2336 | { | ||
| 2337 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2338 | if defined $::RD_TRACE; | ||
| 2339 | last; | ||
| 2340 | } | ||
| 2341 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2342 | . $_tok . q{])}, $text) | ||
| 2343 | if defined $::RD_TRACE; | ||
| 2344 | push @item, $_tok; | ||
| 2345 | $item{__ACTION1__}=$_tok; | ||
| 2346 | |||
| 2347 | |||
| 2348 | |||
| 2349 | Parse::RecDescent::_trace(q{>>Matched production: ['$\{' vartext '\}\\.']<<}, | ||
| 2350 | Parse::RecDescent::_tracefirst($text), | ||
| 2351 | q{string}) | ||
| 2352 | if defined $::RD_TRACE; | ||
| 2353 | $_matched = 1; | ||
| 2354 | last; | ||
| 2355 | } | ||
| 2356 | |||
| 2357 | |||
| 2358 | while (!$_matched && !$commit) | ||
| 2359 | { | ||
| 2360 | |||
| 2361 | Parse::RecDescent::_trace(q{Trying production: ['$\{' vartext '\}' function]}, | ||
| 2362 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2363 | q{string}) | ||
| 2364 | if defined $::RD_TRACE; | ||
| 2365 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 2366 | $text = $_[1]; | ||
| 2367 | my $_savetext; | ||
| 2368 | @item = (q{string}); | ||
| 2369 | %item = (__RULE__ => q{string}); | ||
| 2370 | my $repcount = 0; | ||
| 2371 | |||
| 2372 | |||
| 2373 | Parse::RecDescent::_trace(q{Trying terminal: ['$\{']}, | ||
| 2374 | Parse::RecDescent::_tracefirst($text), | ||
| 2375 | q{string}) | ||
| 2376 | if defined $::RD_TRACE; | ||
| 2377 | $lastsep = ""; | ||
| 2378 | $expectation->is(q{})->at($text); | ||
| 2379 | |||
| 2380 | |||
| 2381 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//) | ||
| 2382 | { | ||
| 2383 | |||
| 2384 | $expectation->failed(); | ||
| 2385 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 2386 | Parse::RecDescent::_tracefirst($text)) | ||
| 2387 | if defined $::RD_TRACE; | ||
| 2388 | last; | ||
| 2389 | } | ||
| 2390 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2391 | . $& . q{])}, | ||
| 2392 | Parse::RecDescent::_tracefirst($text)) | ||
| 2393 | if defined $::RD_TRACE; | ||
| 2394 | push @item, $item{__STRING1__}=$&; | ||
| 2395 | |||
| 2396 | |||
| 2397 | Parse::RecDescent::_trace(q{Trying subrule: [vartext]}, | ||
| 2398 | Parse::RecDescent::_tracefirst($text), | ||
| 2399 | q{string}) | ||
| 2400 | if defined $::RD_TRACE; | ||
| 2401 | if (1) { no strict qw{refs}; | ||
| 2402 | $expectation->is(q{vartext})->at($text); | ||
| 2403 | unless (defined ($_tok = Parse::RecDescent::namespace000001::vartext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 2404 | { | ||
| 2405 | |||
| 2406 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [vartext]>>}, | ||
| 2407 | Parse::RecDescent::_tracefirst($text), | ||
| 2408 | q{string}) | ||
| 2409 | if defined $::RD_TRACE; | ||
| 2410 | $expectation->failed(); | ||
| 2411 | last; | ||
| 2412 | } | ||
| 2413 | Parse::RecDescent::_trace(q{>>Matched subrule: [vartext]<< (return value: [} | ||
| 2414 | . $_tok . q{]}, | ||
| 2415 | |||
| 2416 | Parse::RecDescent::_tracefirst($text), | ||
| 2417 | q{string}) | ||
| 2418 | if defined $::RD_TRACE; | ||
| 2419 | $item{q{vartext}} = $_tok; | ||
| 2420 | push @item, $_tok; | ||
| 2421 | |||
| 2422 | } | ||
| 2423 | |||
| 2424 | Parse::RecDescent::_trace(q{Trying terminal: ['\}']}, | ||
| 2425 | Parse::RecDescent::_tracefirst($text), | ||
| 2426 | q{string}) | ||
| 2427 | if defined $::RD_TRACE; | ||
| 2428 | $lastsep = ""; | ||
| 2429 | $expectation->is(q{'\}'})->at($text); | ||
| 2430 | |||
| 2431 | |||
| 2432 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}//) | ||
| 2433 | { | ||
| 2434 | |||
| 2435 | $expectation->failed(); | ||
| 2436 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 2437 | Parse::RecDescent::_tracefirst($text)) | ||
| 2438 | if defined $::RD_TRACE; | ||
| 2439 | last; | ||
| 2440 | } | ||
| 2441 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2442 | . $& . q{])}, | ||
| 2443 | Parse::RecDescent::_tracefirst($text)) | ||
| 2444 | if defined $::RD_TRACE; | ||
| 2445 | push @item, $item{__STRING2__}=$&; | ||
| 2446 | |||
| 2447 | |||
| 2448 | Parse::RecDescent::_trace(q{Trying repeated subrule: [function]}, | ||
| 2449 | Parse::RecDescent::_tracefirst($text), | ||
| 2450 | q{string}) | ||
| 2451 | if defined $::RD_TRACE; | ||
| 2452 | $expectation->is(q{function})->at($text); | ||
| 2453 | |||
| 2454 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::function, 0, 100000000, $_noactions,$expectation,undef))) | ||
| 2455 | { | ||
| 2456 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [function]>>}, | ||
| 2457 | Parse::RecDescent::_tracefirst($text), | ||
| 2458 | q{string}) | ||
| 2459 | if defined $::RD_TRACE; | ||
| 2460 | last; | ||
| 2461 | } | ||
| 2462 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [function]<< (} | ||
| 2463 | . @$_tok . q{ times)}, | ||
| 2464 | |||
| 2465 | Parse::RecDescent::_tracefirst($text), | ||
| 2466 | q{string}) | ||
| 2467 | if defined $::RD_TRACE; | ||
| 2468 | $item{q{function}} = $_tok; | ||
| 2469 | push @item, $_tok; | ||
| 2470 | |||
| 2471 | |||
| 2472 | |||
| 2473 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2474 | Parse::RecDescent::_tracefirst($text), | ||
| 2475 | q{string}) | ||
| 2476 | if defined $::RD_TRACE; | ||
| 2477 | |||
| 2478 | |||
| 2479 | $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2], $item[4]) }; | ||
| 2480 | unless (defined $_tok) | ||
| 2481 | { | ||
| 2482 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2483 | if defined $::RD_TRACE; | ||
| 2484 | last; | ||
| 2485 | } | ||
| 2486 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2487 | . $_tok . q{])}, $text) | ||
| 2488 | if defined $::RD_TRACE; | ||
| 2489 | push @item, $_tok; | ||
| 2490 | $item{__ACTION1__}=$_tok; | ||
| 2491 | |||
| 2492 | |||
| 2493 | |||
| 2494 | Parse::RecDescent::_trace(q{>>Matched production: ['$\{' vartext '\}' function]<<}, | ||
| 2495 | Parse::RecDescent::_tracefirst($text), | ||
| 2496 | q{string}) | ||
| 2497 | if defined $::RD_TRACE; | ||
| 2498 | $_matched = 1; | ||
| 2499 | last; | ||
| 2500 | } | ||
| 2501 | |||
| 2502 | |||
| 2503 | while (!$_matched && !$commit) | ||
| 2504 | { | ||
| 2505 | |||
| 2506 | Parse::RecDescent::_trace(q{Trying production: [/([\\\\]\\$|[^\\$])+/]}, | ||
| 2507 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2508 | q{string}) | ||
| 2509 | if defined $::RD_TRACE; | ||
| 2510 | my $thisprod = $thisrule->{"prods"}[2]; | ||
| 2511 | $text = $_[1]; | ||
| 2512 | my $_savetext; | ||
| 2513 | @item = (q{string}); | ||
| 2514 | %item = (__RULE__ => q{string}); | ||
| 2515 | my $repcount = 0; | ||
| 2516 | |||
| 2517 | |||
| 2518 | Parse::RecDescent::_trace(q{Trying terminal: [/([\\\\]\\$|[^\\$])+/]}, Parse::RecDescent::_tracefirst($text), | ||
| 2519 | q{string}) | ||
| 2520 | if defined $::RD_TRACE; | ||
| 2521 | $lastsep = ""; | ||
| 2522 | $expectation->is(q{})->at($text); | ||
| 2523 | |||
| 2524 | |||
| 2525 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:([\\]\$|[^\$])+)//) | ||
| 2526 | { | ||
| 2527 | |||
| 2528 | $expectation->failed(); | ||
| 2529 | Parse::RecDescent::_trace(q{<<Didn't match terminal>>}, | ||
| 2530 | Parse::RecDescent::_tracefirst($text)) | ||
| 2531 | if defined $::RD_TRACE; | ||
| 2532 | |||
| 2533 | last; | ||
| 2534 | } | ||
| 2535 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 2536 | . $& . q{])}, | ||
| 2537 | Parse::RecDescent::_tracefirst($text)) | ||
| 2538 | if defined $::RD_TRACE; | ||
| 2539 | push @item, $item{__PATTERN1__}=$&; | ||
| 2540 | |||
| 2541 | |||
| 2542 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2543 | Parse::RecDescent::_tracefirst($text), | ||
| 2544 | q{string}) | ||
| 2545 | if defined $::RD_TRACE; | ||
| 2546 | |||
| 2547 | |||
| 2548 | $_tok = ($_noactions) ? 0 : do { $item[1] =~ s/'/\\'/g; $return = "'$item[1]'" }; | ||
| 2549 | unless (defined $_tok) | ||
| 2550 | { | ||
| 2551 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2552 | if defined $::RD_TRACE; | ||
| 2553 | last; | ||
| 2554 | } | ||
| 2555 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2556 | . $_tok . q{])}, $text) | ||
| 2557 | if defined $::RD_TRACE; | ||
| 2558 | push @item, $_tok; | ||
| 2559 | $item{__ACTION1__}=$_tok; | ||
| 2560 | |||
| 2561 | |||
| 2562 | |||
| 2563 | Parse::RecDescent::_trace(q{>>Matched production: [/([\\\\]\\$|[^\\$])+/]<<}, | ||
| 2564 | Parse::RecDescent::_tracefirst($text), | ||
| 2565 | q{string}) | ||
| 2566 | if defined $::RD_TRACE; | ||
| 2567 | $_matched = 1; | ||
| 2568 | last; | ||
| 2569 | } | ||
| 2570 | |||
| 2571 | |||
| 2572 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 2573 | { | ||
| 2574 | |||
| 2575 | |||
| 2576 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 2577 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 2578 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2579 | q{string}) | ||
| 2580 | if defined $::RD_TRACE; | ||
| 2581 | return undef; | ||
| 2582 | } | ||
| 2583 | if (!defined($return) && defined($score)) | ||
| 2584 | { | ||
| 2585 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 2586 | q{string}) | ||
| 2587 | if defined $::RD_TRACE; | ||
| 2588 | $return = $score_return; | ||
| 2589 | } | ||
| 2590 | splice @{$thisparser->{errors}}, $err_at; | ||
| 2591 | $return = $item[$#item] unless defined $return; | ||
| 2592 | if (defined $::RD_TRACE) | ||
| 2593 | { | ||
| 2594 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 2595 | $return . q{])}, "", | ||
| 2596 | q{string}); | ||
| 2597 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 2598 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 2599 | Parse::RecDescent::_tracefirst($text), | ||
| 2600 | , q{string}) | ||
| 2601 | } | ||
| 2602 | $_[1] = $text; | ||
| 2603 | return $return; | ||
| 2604 | } | ||
| 2605 | |||
| 2606 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 2607 | sub Parse::RecDescent::namespace000001::paramtext | ||
| 2608 | { | ||
| 2609 | my $thisparser = $_[0]; | ||
| 2610 | $ERRORS = 0; | ||
| 2611 | my $thisrule = $thisparser->{"rules"}{"paramtext"}; | ||
| 2612 | |||
| 2613 | Parse::RecDescent::_trace(q{Trying rule: [paramtext]}, | ||
| 2614 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2615 | q{paramtext}) | ||
| 2616 | if defined $::RD_TRACE; | ||
| 2617 | |||
| 2618 | |||
| 2619 | my $err_at = @{$thisparser->{errors}}; | ||
| 2620 | |||
| 2621 | my $score; | ||
| 2622 | my $score_return; | ||
| 2623 | my $_tok; | ||
| 2624 | my $return = undef; | ||
| 2625 | my $_matched=0; | ||
| 2626 | my $commit=0; | ||
| 2627 | my @item = (); | ||
| 2628 | my %item = (); | ||
| 2629 | my $repeating = defined($_[2]) && $_[2]; | ||
| 2630 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 2631 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 2632 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 2633 | my $text; | ||
| 2634 | my $lastsep=""; | ||
| 2635 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 2636 | $expectation->at($_[1]); | ||
| 2637 | |||
| 2638 | my $thisline; | ||
| 2639 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 2640 | |||
| 2641 | |||
| 2642 | |||
| 2643 | while (!$_matched && !$commit) | ||
| 2644 | { | ||
| 2645 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 2646 | Parse::RecDescent::_trace(q{Trying production: [<skip: ''> paramstring]}, | ||
| 2647 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2648 | q{paramtext}) | ||
| 2649 | if defined $::RD_TRACE; | ||
| 2650 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 2651 | $text = $_[1]; | ||
| 2652 | my $_savetext; | ||
| 2653 | @item = (q{paramtext}); | ||
| 2654 | %item = (__RULE__ => q{paramtext}); | ||
| 2655 | my $repcount = 0; | ||
| 2656 | |||
| 2657 | |||
| 2658 | |||
| 2659 | |||
| 2660 | Parse::RecDescent::_trace(q{Trying directive: [<skip: ''>]}, | ||
| 2661 | Parse::RecDescent::_tracefirst($text), | ||
| 2662 | q{paramtext}) | ||
| 2663 | if defined $::RD_TRACE; | ||
| 2664 | $_tok = do { my $oldskip = $skip; $skip= ''; $oldskip }; | ||
| 2665 | if (defined($_tok)) | ||
| 2666 | { | ||
| 2667 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 2668 | . $_tok . q{])}, | ||
| 2669 | Parse::RecDescent::_tracefirst($text)) | ||
| 2670 | if defined $::RD_TRACE; | ||
| 2671 | } | ||
| 2672 | else | ||
| 2673 | { | ||
| 2674 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 2675 | Parse::RecDescent::_tracefirst($text)) | ||
| 2676 | if defined $::RD_TRACE; | ||
| 2677 | } | ||
| 2678 | |||
| 2679 | last unless defined $_tok; | ||
| 2680 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 2681 | |||
| 2682 | |||
| 2683 | Parse::RecDescent::_trace(q{Trying repeated subrule: [paramstring]}, | ||
| 2684 | Parse::RecDescent::_tracefirst($text), | ||
| 2685 | q{paramtext}) | ||
| 2686 | if defined $::RD_TRACE; | ||
| 2687 | $expectation->is(q{paramstring})->at($text); | ||
| 2688 | |||
| 2689 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::paramstring, 1, 100000000, $_noactions,$expectation,undef))) | ||
| 2690 | { | ||
| 2691 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [paramstring]>>}, | ||
| 2692 | Parse::RecDescent::_tracefirst($text), | ||
| 2693 | q{paramtext}) | ||
| 2694 | if defined $::RD_TRACE; | ||
| 2695 | last; | ||
| 2696 | } | ||
| 2697 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [paramstring]<< (} | ||
| 2698 | . @$_tok . q{ times)}, | ||
| 2699 | |||
| 2700 | Parse::RecDescent::_tracefirst($text), | ||
| 2701 | q{paramtext}) | ||
| 2702 | if defined $::RD_TRACE; | ||
| 2703 | $item{q{paramstring}} = $_tok; | ||
| 2704 | push @item, $_tok; | ||
| 2705 | |||
| 2706 | |||
| 2707 | |||
| 2708 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2709 | Parse::RecDescent::_tracefirst($text), | ||
| 2710 | q{paramtext}) | ||
| 2711 | if defined $::RD_TRACE; | ||
| 2712 | |||
| 2713 | |||
| 2714 | $_tok = ($_noactions) ? 0 : do { $return = join (' . ', @{$item[2]}) }; | ||
| 2715 | unless (defined $_tok) | ||
| 2716 | { | ||
| 2717 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2718 | if defined $::RD_TRACE; | ||
| 2719 | last; | ||
| 2720 | } | ||
| 2721 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2722 | . $_tok . q{])}, $text) | ||
| 2723 | if defined $::RD_TRACE; | ||
| 2724 | push @item, $_tok; | ||
| 2725 | $item{__ACTION1__}=$_tok; | ||
| 2726 | |||
| 2727 | |||
| 2728 | |||
| 2729 | Parse::RecDescent::_trace(q{>>Matched production: [<skip: ''> paramstring]<<}, | ||
| 2730 | Parse::RecDescent::_tracefirst($text), | ||
| 2731 | q{paramtext}) | ||
| 2732 | if defined $::RD_TRACE; | ||
| 2733 | $_matched = 1; | ||
| 2734 | last; | ||
| 2735 | } | ||
| 2736 | |||
| 2737 | |||
| 2738 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 2739 | { | ||
| 2740 | |||
| 2741 | |||
| 2742 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 2743 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 2744 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2745 | q{paramtext}) | ||
| 2746 | if defined $::RD_TRACE; | ||
| 2747 | return undef; | ||
| 2748 | } | ||
| 2749 | if (!defined($return) && defined($score)) | ||
| 2750 | { | ||
| 2751 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 2752 | q{paramtext}) | ||
| 2753 | if defined $::RD_TRACE; | ||
| 2754 | $return = $score_return; | ||
| 2755 | } | ||
| 2756 | splice @{$thisparser->{errors}}, $err_at; | ||
| 2757 | $return = $item[$#item] unless defined $return; | ||
| 2758 | if (defined $::RD_TRACE) | ||
| 2759 | { | ||
| 2760 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 2761 | $return . q{])}, "", | ||
| 2762 | q{paramtext}); | ||
| 2763 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 2764 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 2765 | Parse::RecDescent::_tracefirst($text), | ||
| 2766 | , q{paramtext}) | ||
| 2767 | } | ||
| 2768 | $_[1] = $text; | ||
| 2769 | return $return; | ||
| 2770 | } | ||
| 2771 | |||
| 2772 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 2773 | sub Parse::RecDescent::namespace000001::text | ||
| 2774 | { | ||
| 2775 | my $thisparser = $_[0]; | ||
| 2776 | $ERRORS = 0; | ||
| 2777 | my $thisrule = $thisparser->{"rules"}{"text"}; | ||
| 2778 | |||
| 2779 | Parse::RecDescent::_trace(q{Trying rule: [text]}, | ||
| 2780 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2781 | q{text}) | ||
| 2782 | if defined $::RD_TRACE; | ||
| 2783 | |||
| 2784 | |||
| 2785 | my $err_at = @{$thisparser->{errors}}; | ||
| 2786 | |||
| 2787 | my $score; | ||
| 2788 | my $score_return; | ||
| 2789 | my $_tok; | ||
| 2790 | my $return = undef; | ||
| 2791 | my $_matched=0; | ||
| 2792 | my $commit=0; | ||
| 2793 | my @item = (); | ||
| 2794 | my %item = (); | ||
| 2795 | my $repeating = defined($_[2]) && $_[2]; | ||
| 2796 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 2797 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 2798 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 2799 | my $text; | ||
| 2800 | my $lastsep=""; | ||
| 2801 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 2802 | $expectation->at($_[1]); | ||
| 2803 | |||
| 2804 | my $thisline; | ||
| 2805 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 2806 | |||
| 2807 | |||
| 2808 | |||
| 2809 | while (!$_matched && !$commit) | ||
| 2810 | { | ||
| 2811 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 2812 | Parse::RecDescent::_trace(q{Trying production: [<skip: ''> string]}, | ||
| 2813 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2814 | q{text}) | ||
| 2815 | if defined $::RD_TRACE; | ||
| 2816 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 2817 | $text = $_[1]; | ||
| 2818 | my $_savetext; | ||
| 2819 | @item = (q{text}); | ||
| 2820 | %item = (__RULE__ => q{text}); | ||
| 2821 | my $repcount = 0; | ||
| 2822 | |||
| 2823 | |||
| 2824 | |||
| 2825 | |||
| 2826 | Parse::RecDescent::_trace(q{Trying directive: [<skip: ''>]}, | ||
| 2827 | Parse::RecDescent::_tracefirst($text), | ||
| 2828 | q{text}) | ||
| 2829 | if defined $::RD_TRACE; | ||
| 2830 | $_tok = do { my $oldskip = $skip; $skip= ''; $oldskip }; | ||
| 2831 | if (defined($_tok)) | ||
| 2832 | { | ||
| 2833 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 2834 | . $_tok . q{])}, | ||
| 2835 | Parse::RecDescent::_tracefirst($text)) | ||
| 2836 | if defined $::RD_TRACE; | ||
| 2837 | } | ||
| 2838 | else | ||
| 2839 | { | ||
| 2840 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 2841 | Parse::RecDescent::_tracefirst($text)) | ||
| 2842 | if defined $::RD_TRACE; | ||
| 2843 | } | ||
| 2844 | |||
| 2845 | last unless defined $_tok; | ||
| 2846 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 2847 | |||
| 2848 | |||
| 2849 | Parse::RecDescent::_trace(q{Trying repeated subrule: [string]}, | ||
| 2850 | Parse::RecDescent::_tracefirst($text), | ||
| 2851 | q{text}) | ||
| 2852 | if defined $::RD_TRACE; | ||
| 2853 | $expectation->is(q{string})->at($text); | ||
| 2854 | |||
| 2855 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::string, 1, 100000000, $_noactions,$expectation,undef))) | ||
| 2856 | { | ||
| 2857 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [string]>>}, | ||
| 2858 | Parse::RecDescent::_tracefirst($text), | ||
| 2859 | q{text}) | ||
| 2860 | if defined $::RD_TRACE; | ||
| 2861 | last; | ||
| 2862 | } | ||
| 2863 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [string]<< (} | ||
| 2864 | . @$_tok . q{ times)}, | ||
| 2865 | |||
| 2866 | Parse::RecDescent::_tracefirst($text), | ||
| 2867 | q{text}) | ||
| 2868 | if defined $::RD_TRACE; | ||
| 2869 | $item{q{string}} = $_tok; | ||
| 2870 | push @item, $_tok; | ||
| 2871 | |||
| 2872 | |||
| 2873 | |||
| 2874 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 2875 | Parse::RecDescent::_tracefirst($text), | ||
| 2876 | q{text}) | ||
| 2877 | if defined $::RD_TRACE; | ||
| 2878 | |||
| 2879 | |||
| 2880 | $_tok = ($_noactions) ? 0 : do { $return = join (' . ', @{$item[2]}) }; | ||
| 2881 | unless (defined $_tok) | ||
| 2882 | { | ||
| 2883 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 2884 | if defined $::RD_TRACE; | ||
| 2885 | last; | ||
| 2886 | } | ||
| 2887 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 2888 | . $_tok . q{])}, $text) | ||
| 2889 | if defined $::RD_TRACE; | ||
| 2890 | push @item, $_tok; | ||
| 2891 | $item{__ACTION1__}=$_tok; | ||
| 2892 | |||
| 2893 | |||
| 2894 | |||
| 2895 | Parse::RecDescent::_trace(q{>>Matched production: [<skip: ''> string]<<}, | ||
| 2896 | Parse::RecDescent::_tracefirst($text), | ||
| 2897 | q{text}) | ||
| 2898 | if defined $::RD_TRACE; | ||
| 2899 | $_matched = 1; | ||
| 2900 | last; | ||
| 2901 | } | ||
| 2902 | |||
| 2903 | |||
| 2904 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 2905 | { | ||
| 2906 | |||
| 2907 | |||
| 2908 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 2909 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 2910 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2911 | q{text}) | ||
| 2912 | if defined $::RD_TRACE; | ||
| 2913 | return undef; | ||
| 2914 | } | ||
| 2915 | if (!defined($return) && defined($score)) | ||
| 2916 | { | ||
| 2917 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 2918 | q{text}) | ||
| 2919 | if defined $::RD_TRACE; | ||
| 2920 | $return = $score_return; | ||
| 2921 | } | ||
| 2922 | splice @{$thisparser->{errors}}, $err_at; | ||
| 2923 | $return = $item[$#item] unless defined $return; | ||
| 2924 | if (defined $::RD_TRACE) | ||
| 2925 | { | ||
| 2926 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 2927 | $return . q{])}, "", | ||
| 2928 | q{text}); | ||
| 2929 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 2930 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 2931 | Parse::RecDescent::_tracefirst($text), | ||
| 2932 | , q{text}) | ||
| 2933 | } | ||
| 2934 | $_[1] = $text; | ||
| 2935 | return $return; | ||
| 2936 | } | ||
| 2937 | |||
| 2938 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 2939 | sub Parse::RecDescent::namespace000001::vartext | ||
| 2940 | { | ||
| 2941 | my $thisparser = $_[0]; | ||
| 2942 | $ERRORS = 0; | ||
| 2943 | my $thisrule = $thisparser->{"rules"}{"vartext"}; | ||
| 2944 | |||
| 2945 | Parse::RecDescent::_trace(q{Trying rule: [vartext]}, | ||
| 2946 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2947 | q{vartext}) | ||
| 2948 | if defined $::RD_TRACE; | ||
| 2949 | |||
| 2950 | |||
| 2951 | my $err_at = @{$thisparser->{errors}}; | ||
| 2952 | |||
| 2953 | my $score; | ||
| 2954 | my $score_return; | ||
| 2955 | my $_tok; | ||
| 2956 | my $return = undef; | ||
| 2957 | my $_matched=0; | ||
| 2958 | my $commit=0; | ||
| 2959 | my @item = (); | ||
| 2960 | my %item = (); | ||
| 2961 | my $repeating = defined($_[2]) && $_[2]; | ||
| 2962 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 2963 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 2964 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 2965 | my $text; | ||
| 2966 | my $lastsep=""; | ||
| 2967 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 2968 | $expectation->at($_[1]); | ||
| 2969 | |||
| 2970 | my $thisline; | ||
| 2971 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 2972 | |||
| 2973 | |||
| 2974 | |||
| 2975 | while (!$_matched && !$commit) | ||
| 2976 | { | ||
| 2977 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 2978 | Parse::RecDescent::_trace(q{Trying production: [<skip: ''> varstring]}, | ||
| 2979 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 2980 | q{vartext}) | ||
| 2981 | if defined $::RD_TRACE; | ||
| 2982 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 2983 | $text = $_[1]; | ||
| 2984 | my $_savetext; | ||
| 2985 | @item = (q{vartext}); | ||
| 2986 | %item = (__RULE__ => q{vartext}); | ||
| 2987 | my $repcount = 0; | ||
| 2988 | |||
| 2989 | |||
| 2990 | |||
| 2991 | |||
| 2992 | Parse::RecDescent::_trace(q{Trying directive: [<skip: ''>]}, | ||
| 2993 | Parse::RecDescent::_tracefirst($text), | ||
| 2994 | q{vartext}) | ||
| 2995 | if defined $::RD_TRACE; | ||
| 2996 | $_tok = do { my $oldskip = $skip; $skip= ''; $oldskip }; | ||
| 2997 | if (defined($_tok)) | ||
| 2998 | { | ||
| 2999 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 3000 | . $_tok . q{])}, | ||
| 3001 | Parse::RecDescent::_tracefirst($text)) | ||
| 3002 | if defined $::RD_TRACE; | ||
| 3003 | } | ||
| 3004 | else | ||
| 3005 | { | ||
| 3006 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 3007 | Parse::RecDescent::_tracefirst($text)) | ||
| 3008 | if defined $::RD_TRACE; | ||
| 3009 | } | ||
| 3010 | |||
| 3011 | last unless defined $_tok; | ||
| 3012 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 3013 | |||
| 3014 | |||
| 3015 | Parse::RecDescent::_trace(q{Trying repeated subrule: [varstring]}, | ||
| 3016 | Parse::RecDescent::_tracefirst($text), | ||
| 3017 | q{vartext}) | ||
| 3018 | if defined $::RD_TRACE; | ||
| 3019 | $expectation->is(q{varstring})->at($text); | ||
| 3020 | |||
| 3021 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::varstring, 1, 100000000, $_noactions,$expectation,undef))) | ||
| 3022 | { | ||
| 3023 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [varstring]>>}, | ||
| 3024 | Parse::RecDescent::_tracefirst($text), | ||
| 3025 | q{vartext}) | ||
| 3026 | if defined $::RD_TRACE; | ||
| 3027 | last; | ||
| 3028 | } | ||
| 3029 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [varstring]<< (} | ||
| 3030 | . @$_tok . q{ times)}, | ||
| 3031 | |||
| 3032 | Parse::RecDescent::_tracefirst($text), | ||
| 3033 | q{vartext}) | ||
| 3034 | if defined $::RD_TRACE; | ||
| 3035 | $item{q{varstring}} = $_tok; | ||
| 3036 | push @item, $_tok; | ||
| 3037 | |||
| 3038 | |||
| 3039 | |||
| 3040 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3041 | Parse::RecDescent::_tracefirst($text), | ||
| 3042 | q{vartext}) | ||
| 3043 | if defined $::RD_TRACE; | ||
| 3044 | |||
| 3045 | |||
| 3046 | $_tok = ($_noactions) ? 0 : do { $return = join (' . ', @{$item[2]}) }; | ||
| 3047 | unless (defined $_tok) | ||
| 3048 | { | ||
| 3049 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3050 | if defined $::RD_TRACE; | ||
| 3051 | last; | ||
| 3052 | } | ||
| 3053 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3054 | . $_tok . q{])}, $text) | ||
| 3055 | if defined $::RD_TRACE; | ||
| 3056 | push @item, $_tok; | ||
| 3057 | $item{__ACTION1__}=$_tok; | ||
| 3058 | |||
| 3059 | |||
| 3060 | |||
| 3061 | Parse::RecDescent::_trace(q{>>Matched production: [<skip: ''> varstring]<<}, | ||
| 3062 | Parse::RecDescent::_tracefirst($text), | ||
| 3063 | q{vartext}) | ||
| 3064 | if defined $::RD_TRACE; | ||
| 3065 | $_matched = 1; | ||
| 3066 | last; | ||
| 3067 | } | ||
| 3068 | |||
| 3069 | |||
| 3070 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 3071 | { | ||
| 3072 | |||
| 3073 | |||
| 3074 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 3075 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 3076 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3077 | q{vartext}) | ||
| 3078 | if defined $::RD_TRACE; | ||
| 3079 | return undef; | ||
| 3080 | } | ||
| 3081 | if (!defined($return) && defined($score)) | ||
| 3082 | { | ||
| 3083 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 3084 | q{vartext}) | ||
| 3085 | if defined $::RD_TRACE; | ||
| 3086 | $return = $score_return; | ||
| 3087 | } | ||
| 3088 | splice @{$thisparser->{errors}}, $err_at; | ||
| 3089 | $return = $item[$#item] unless defined $return; | ||
| 3090 | if (defined $::RD_TRACE) | ||
| 3091 | { | ||
| 3092 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 3093 | $return . q{])}, "", | ||
| 3094 | q{vartext}); | ||
| 3095 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 3096 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 3097 | Parse::RecDescent::_tracefirst($text), | ||
| 3098 | , q{vartext}) | ||
| 3099 | } | ||
| 3100 | $_[1] = $text; | ||
| 3101 | return $return; | ||
| 3102 | } | ||
| 3103 | |||
| 3104 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 3105 | sub Parse::RecDescent::namespace000001::xpathtext | ||
| 3106 | { | ||
| 3107 | my $thisparser = $_[0]; | ||
| 3108 | $ERRORS = 0; | ||
| 3109 | my $thisrule = $thisparser->{"rules"}{"xpathtext"}; | ||
| 3110 | |||
| 3111 | Parse::RecDescent::_trace(q{Trying rule: [xpathtext]}, | ||
| 3112 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3113 | q{xpathtext}) | ||
| 3114 | if defined $::RD_TRACE; | ||
| 3115 | |||
| 3116 | |||
| 3117 | my $err_at = @{$thisparser->{errors}}; | ||
| 3118 | |||
| 3119 | my $score; | ||
| 3120 | my $score_return; | ||
| 3121 | my $_tok; | ||
| 3122 | my $return = undef; | ||
| 3123 | my $_matched=0; | ||
| 3124 | my $commit=0; | ||
| 3125 | my @item = (); | ||
| 3126 | my %item = (); | ||
| 3127 | my $repeating = defined($_[2]) && $_[2]; | ||
| 3128 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 3129 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 3130 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 3131 | my $text; | ||
| 3132 | my $lastsep=""; | ||
| 3133 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 3134 | $expectation->at($_[1]); | ||
| 3135 | |||
| 3136 | my $thisline; | ||
| 3137 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 3138 | |||
| 3139 | |||
| 3140 | |||
| 3141 | while (!$_matched && !$commit) | ||
| 3142 | { | ||
| 3143 | local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip; | ||
| 3144 | Parse::RecDescent::_trace(q{Trying production: [<skip: ''> xpathstring]}, | ||
| 3145 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3146 | q{xpathtext}) | ||
| 3147 | if defined $::RD_TRACE; | ||
| 3148 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 3149 | $text = $_[1]; | ||
| 3150 | my $_savetext; | ||
| 3151 | @item = (q{xpathtext}); | ||
| 3152 | %item = (__RULE__ => q{xpathtext}); | ||
| 3153 | my $repcount = 0; | ||
| 3154 | |||
| 3155 | |||
| 3156 | |||
| 3157 | |||
| 3158 | Parse::RecDescent::_trace(q{Trying directive: [<skip: ''>]}, | ||
| 3159 | Parse::RecDescent::_tracefirst($text), | ||
| 3160 | q{xpathtext}) | ||
| 3161 | if defined $::RD_TRACE; | ||
| 3162 | $_tok = do { my $oldskip = $skip; $skip= ''; $oldskip }; | ||
| 3163 | if (defined($_tok)) | ||
| 3164 | { | ||
| 3165 | Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [} | ||
| 3166 | . $_tok . q{])}, | ||
| 3167 | Parse::RecDescent::_tracefirst($text)) | ||
| 3168 | if defined $::RD_TRACE; | ||
| 3169 | } | ||
| 3170 | else | ||
| 3171 | { | ||
| 3172 | Parse::RecDescent::_trace(q{<<Didn't match directive>>}, | ||
| 3173 | Parse::RecDescent::_tracefirst($text)) | ||
| 3174 | if defined $::RD_TRACE; | ||
| 3175 | } | ||
| 3176 | |||
| 3177 | last unless defined $_tok; | ||
| 3178 | push @item, $item{__DIRECTIVE1__}=$_tok; | ||
| 3179 | |||
| 3180 | |||
| 3181 | Parse::RecDescent::_trace(q{Trying repeated subrule: [xpathstring]}, | ||
| 3182 | Parse::RecDescent::_tracefirst($text), | ||
| 3183 | q{xpathtext}) | ||
| 3184 | if defined $::RD_TRACE; | ||
| 3185 | $expectation->is(q{xpathstring})->at($text); | ||
| 3186 | |||
| 3187 | unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000001::xpathstring, 1, 100000000, $_noactions,$expectation,undef))) | ||
| 3188 | { | ||
| 3189 | Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpathstring]>>}, | ||
| 3190 | Parse::RecDescent::_tracefirst($text), | ||
| 3191 | q{xpathtext}) | ||
| 3192 | if defined $::RD_TRACE; | ||
| 3193 | last; | ||
| 3194 | } | ||
| 3195 | Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpathstring]<< (} | ||
| 3196 | . @$_tok . q{ times)}, | ||
| 3197 | |||
| 3198 | Parse::RecDescent::_tracefirst($text), | ||
| 3199 | q{xpathtext}) | ||
| 3200 | if defined $::RD_TRACE; | ||
| 3201 | $item{q{xpathstring}} = $_tok; | ||
| 3202 | push @item, $_tok; | ||
| 3203 | |||
| 3204 | |||
| 3205 | |||
| 3206 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3207 | Parse::RecDescent::_tracefirst($text), | ||
| 3208 | q{xpathtext}) | ||
| 3209 | if defined $::RD_TRACE; | ||
| 3210 | |||
| 3211 | |||
| 3212 | $_tok = ($_noactions) ? 0 : do { $return = "'/' . " . join (' . ', @{$item[2]}) }; | ||
| 3213 | unless (defined $_tok) | ||
| 3214 | { | ||
| 3215 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3216 | if defined $::RD_TRACE; | ||
| 3217 | last; | ||
| 3218 | } | ||
| 3219 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3220 | . $_tok . q{])}, $text) | ||
| 3221 | if defined $::RD_TRACE; | ||
| 3222 | push @item, $_tok; | ||
| 3223 | $item{__ACTION1__}=$_tok; | ||
| 3224 | |||
| 3225 | |||
| 3226 | |||
| 3227 | Parse::RecDescent::_trace(q{>>Matched production: [<skip: ''> xpathstring]<<}, | ||
| 3228 | Parse::RecDescent::_tracefirst($text), | ||
| 3229 | q{xpathtext}) | ||
| 3230 | if defined $::RD_TRACE; | ||
| 3231 | $_matched = 1; | ||
| 3232 | last; | ||
| 3233 | } | ||
| 3234 | |||
| 3235 | |||
| 3236 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 3237 | { | ||
| 3238 | |||
| 3239 | |||
| 3240 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 3241 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 3242 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3243 | q{xpathtext}) | ||
| 3244 | if defined $::RD_TRACE; | ||
| 3245 | return undef; | ||
| 3246 | } | ||
| 3247 | if (!defined($return) && defined($score)) | ||
| 3248 | { | ||
| 3249 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 3250 | q{xpathtext}) | ||
| 3251 | if defined $::RD_TRACE; | ||
| 3252 | $return = $score_return; | ||
| 3253 | } | ||
| 3254 | splice @{$thisparser->{errors}}, $err_at; | ||
| 3255 | $return = $item[$#item] unless defined $return; | ||
| 3256 | if (defined $::RD_TRACE) | ||
| 3257 | { | ||
| 3258 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 3259 | $return . q{])}, "", | ||
| 3260 | q{xpathtext}); | ||
| 3261 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 3262 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 3263 | Parse::RecDescent::_tracefirst($text), | ||
| 3264 | , q{xpathtext}) | ||
| 3265 | } | ||
| 3266 | $_[1] = $text; | ||
| 3267 | return $return; | ||
| 3268 | } | ||
| 3269 | |||
| 3270 | # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args) | ||
| 3271 | sub Parse::RecDescent::namespace000001::param | ||
| 3272 | { | ||
| 3273 | my $thisparser = $_[0]; | ||
| 3274 | $ERRORS = 0; | ||
| 3275 | my $thisrule = $thisparser->{"rules"}{"param"}; | ||
| 3276 | |||
| 3277 | Parse::RecDescent::_trace(q{Trying rule: [param]}, | ||
| 3278 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3279 | q{param}) | ||
| 3280 | if defined $::RD_TRACE; | ||
| 3281 | |||
| 3282 | |||
| 3283 | my $err_at = @{$thisparser->{errors}}; | ||
| 3284 | |||
| 3285 | my $score; | ||
| 3286 | my $score_return; | ||
| 3287 | my $_tok; | ||
| 3288 | my $return = undef; | ||
| 3289 | my $_matched=0; | ||
| 3290 | my $commit=0; | ||
| 3291 | my @item = (); | ||
| 3292 | my %item = (); | ||
| 3293 | my $repeating = defined($_[2]) && $_[2]; | ||
| 3294 | my $_noactions = defined($_[3]) && $_[3]; | ||
| 3295 | my @arg = defined $_[4] ? @{ &{$_[4]} } : (); | ||
| 3296 | my %arg = ($#arg & 01) ? @arg : (@arg, undef); | ||
| 3297 | my $text; | ||
| 3298 | my $lastsep=""; | ||
| 3299 | my $expectation = new Parse::RecDescent::Expectation($thisrule->expected()); | ||
| 3300 | $expectation->at($_[1]); | ||
| 3301 | |||
| 3302 | my $thisline; | ||
| 3303 | tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser; | ||
| 3304 | |||
| 3305 | |||
| 3306 | |||
| 3307 | while (!$_matched && !$commit) | ||
| 3308 | { | ||
| 3309 | |||
| 3310 | Parse::RecDescent::_trace(q{Trying production: ['"' paramtext '"']}, | ||
| 3311 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3312 | q{param}) | ||
| 3313 | if defined $::RD_TRACE; | ||
| 3314 | my $thisprod = $thisrule->{"prods"}[0]; | ||
| 3315 | $text = $_[1]; | ||
| 3316 | my $_savetext; | ||
| 3317 | @item = (q{param}); | ||
| 3318 | %item = (__RULE__ => q{param}); | ||
| 3319 | my $repcount = 0; | ||
| 3320 | |||
| 3321 | |||
| 3322 | Parse::RecDescent::_trace(q{Trying terminal: ['"']}, | ||
| 3323 | Parse::RecDescent::_tracefirst($text), | ||
| 3324 | q{param}) | ||
| 3325 | if defined $::RD_TRACE; | ||
| 3326 | $lastsep = ""; | ||
| 3327 | $expectation->is(q{})->at($text); | ||
| 3328 | |||
| 3329 | |||
| 3330 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\"//) | ||
| 3331 | { | ||
| 3332 | |||
| 3333 | $expectation->failed(); | ||
| 3334 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 3335 | Parse::RecDescent::_tracefirst($text)) | ||
| 3336 | if defined $::RD_TRACE; | ||
| 3337 | last; | ||
| 3338 | } | ||
| 3339 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3340 | . $& . q{])}, | ||
| 3341 | Parse::RecDescent::_tracefirst($text)) | ||
| 3342 | if defined $::RD_TRACE; | ||
| 3343 | push @item, $item{__STRING1__}=$&; | ||
| 3344 | |||
| 3345 | |||
| 3346 | Parse::RecDescent::_trace(q{Trying subrule: [paramtext]}, | ||
| 3347 | Parse::RecDescent::_tracefirst($text), | ||
| 3348 | q{param}) | ||
| 3349 | if defined $::RD_TRACE; | ||
| 3350 | if (1) { no strict qw{refs}; | ||
| 3351 | $expectation->is(q{paramtext})->at($text); | ||
| 3352 | unless (defined ($_tok = Parse::RecDescent::namespace000001::paramtext($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 3353 | { | ||
| 3354 | |||
| 3355 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [paramtext]>>}, | ||
| 3356 | Parse::RecDescent::_tracefirst($text), | ||
| 3357 | q{param}) | ||
| 3358 | if defined $::RD_TRACE; | ||
| 3359 | $expectation->failed(); | ||
| 3360 | last; | ||
| 3361 | } | ||
| 3362 | Parse::RecDescent::_trace(q{>>Matched subrule: [paramtext]<< (return value: [} | ||
| 3363 | . $_tok . q{]}, | ||
| 3364 | |||
| 3365 | Parse::RecDescent::_tracefirst($text), | ||
| 3366 | q{param}) | ||
| 3367 | if defined $::RD_TRACE; | ||
| 3368 | $item{q{paramtext}} = $_tok; | ||
| 3369 | push @item, $_tok; | ||
| 3370 | |||
| 3371 | } | ||
| 3372 | |||
| 3373 | Parse::RecDescent::_trace(q{Trying terminal: ['"']}, | ||
| 3374 | Parse::RecDescent::_tracefirst($text), | ||
| 3375 | q{param}) | ||
| 3376 | if defined $::RD_TRACE; | ||
| 3377 | $lastsep = ""; | ||
| 3378 | $expectation->is(q{'"'})->at($text); | ||
| 3379 | |||
| 3380 | |||
| 3381 | unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\"//) | ||
| 3382 | { | ||
| 3383 | |||
| 3384 | $expectation->failed(); | ||
| 3385 | Parse::RecDescent::_trace(qq{<<Didn't match terminal>>}, | ||
| 3386 | Parse::RecDescent::_tracefirst($text)) | ||
| 3387 | if defined $::RD_TRACE; | ||
| 3388 | last; | ||
| 3389 | } | ||
| 3390 | Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [} | ||
| 3391 | . $& . q{])}, | ||
| 3392 | Parse::RecDescent::_tracefirst($text)) | ||
| 3393 | if defined $::RD_TRACE; | ||
| 3394 | push @item, $item{__STRING2__}=$&; | ||
| 3395 | |||
| 3396 | |||
| 3397 | Parse::RecDescent::_trace(q{Trying action}, | ||
| 3398 | Parse::RecDescent::_tracefirst($text), | ||
| 3399 | q{param}) | ||
| 3400 | if defined $::RD_TRACE; | ||
| 3401 | |||
| 3402 | |||
| 3403 | $_tok = ($_noactions) ? 0 : do { $return = $item[2] }; | ||
| 3404 | unless (defined $_tok) | ||
| 3405 | { | ||
| 3406 | Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])}) | ||
| 3407 | if defined $::RD_TRACE; | ||
| 3408 | last; | ||
| 3409 | } | ||
| 3410 | Parse::RecDescent::_trace(q{>>Matched action<< (return value: [} | ||
| 3411 | . $_tok . q{])}, $text) | ||
| 3412 | if defined $::RD_TRACE; | ||
| 3413 | push @item, $_tok; | ||
| 3414 | $item{__ACTION1__}=$_tok; | ||
| 3415 | |||
| 3416 | |||
| 3417 | |||
| 3418 | Parse::RecDescent::_trace(q{>>Matched production: ['"' paramtext '"']<<}, | ||
| 3419 | Parse::RecDescent::_tracefirst($text), | ||
| 3420 | q{param}) | ||
| 3421 | if defined $::RD_TRACE; | ||
| 3422 | $_matched = 1; | ||
| 3423 | last; | ||
| 3424 | } | ||
| 3425 | |||
| 3426 | |||
| 3427 | while (!$_matched && !$commit) | ||
| 3428 | { | ||
| 3429 | |||
| 3430 | Parse::RecDescent::_trace(q{Trying production: [paramstring]}, | ||
| 3431 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3432 | q{param}) | ||
| 3433 | if defined $::RD_TRACE; | ||
| 3434 | my $thisprod = $thisrule->{"prods"}[1]; | ||
| 3435 | $text = $_[1]; | ||
| 3436 | my $_savetext; | ||
| 3437 | @item = (q{param}); | ||
| 3438 | %item = (__RULE__ => q{param}); | ||
| 3439 | my $repcount = 0; | ||
| 3440 | |||
| 3441 | |||
| 3442 | Parse::RecDescent::_trace(q{Trying subrule: [paramstring]}, | ||
| 3443 | Parse::RecDescent::_tracefirst($text), | ||
| 3444 | q{param}) | ||
| 3445 | if defined $::RD_TRACE; | ||
| 3446 | if (1) { no strict qw{refs}; | ||
| 3447 | $expectation->is(q{})->at($text); | ||
| 3448 | unless (defined ($_tok = Parse::RecDescent::namespace000001::paramstring($thisparser,$text,$repeating,$_noactions,undef))) | ||
| 3449 | { | ||
| 3450 | |||
| 3451 | Parse::RecDescent::_trace(q{<<Didn't match subrule: [paramstring]>>}, | ||
| 3452 | Parse::RecDescent::_tracefirst($text), | ||
| 3453 | q{param}) | ||
| 3454 | if defined $::RD_TRACE; | ||
| 3455 | $expectation->failed(); | ||
| 3456 | last; | ||
| 3457 | } | ||
| 3458 | Parse::RecDescent::_trace(q{>>Matched subrule: [paramstring]<< (return value: [} | ||
| 3459 | . $_tok . q{]}, | ||
| 3460 | |||
| 3461 | Parse::RecDescent::_tracefirst($text), | ||
| 3462 | q{param}) | ||
| 3463 | if defined $::RD_TRACE; | ||
| 3464 | $item{q{paramstring}} = $_tok; | ||
| 3465 | push @item, $_tok; | ||
| 3466 | |||
| 3467 | } | ||
| 3468 | |||
| 3469 | |||
| 3470 | Parse::RecDescent::_trace(q{>>Matched production: [paramstring]<<}, | ||
| 3471 | Parse::RecDescent::_tracefirst($text), | ||
| 3472 | q{param}) | ||
| 3473 | if defined $::RD_TRACE; | ||
| 3474 | $_matched = 1; | ||
| 3475 | last; | ||
| 3476 | } | ||
| 3477 | |||
| 3478 | |||
| 3479 | unless ( $_matched || defined($return) || defined($score) ) | ||
| 3480 | { | ||
| 3481 | |||
| 3482 | |||
| 3483 | $_[1] = $text; # NOT SURE THIS IS NEEDED | ||
| 3484 | Parse::RecDescent::_trace(q{<<Didn't match rule>>}, | ||
| 3485 | Parse::RecDescent::_tracefirst($_[1]), | ||
| 3486 | q{param}) | ||
| 3487 | if defined $::RD_TRACE; | ||
| 3488 | return undef; | ||
| 3489 | } | ||
| 3490 | if (!defined($return) && defined($score)) | ||
| 3491 | { | ||
| 3492 | Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "", | ||
| 3493 | q{param}) | ||
| 3494 | if defined $::RD_TRACE; | ||
| 3495 | $return = $score_return; | ||
| 3496 | } | ||
| 3497 | splice @{$thisparser->{errors}}, $err_at; | ||
| 3498 | $return = $item[$#item] unless defined $return; | ||
| 3499 | if (defined $::RD_TRACE) | ||
| 3500 | { | ||
| 3501 | Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} . | ||
| 3502 | $return . q{])}, "", | ||
| 3503 | q{param}); | ||
| 3504 | Parse::RecDescent::_trace(q{(consumed: [} . | ||
| 3505 | Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])}, | ||
| 3506 | Parse::RecDescent::_tracefirst($text), | ||
| 3507 | , q{param}) | ||
| 3508 | } | ||
| 3509 | $_[1] = $text; | ||
| 3510 | return $return; | ||
| 3511 | } | ||
| 3512 | } | ||
| 3513 | package XML::Template::Parser::String; sub new { my $self = bless( { | ||
| 3514 | '_AUTOTREE' => undef, | ||
| 3515 | 'localvars' => '', | ||
| 3516 | 'startcode' => '', | ||
| 3517 | '_check' => { | ||
| 3518 | 'thisoffset' => '', | ||
| 3519 | 'itempos' => '', | ||
| 3520 | 'prevoffset' => '', | ||
| 3521 | 'prevline' => '', | ||
| 3522 | 'prevcolumn' => '', | ||
| 3523 | 'thiscolumn' => '' | ||
| 3524 | }, | ||
| 3525 | 'namespace' => 'Parse::RecDescent::namespace000001', | ||
| 3526 | '_AUTOACTION' => undef, | ||
| 3527 | 'rules' => { | ||
| 3528 | 'paramlist' => bless( { | ||
| 3529 | 'impcount' => 0, | ||
| 3530 | 'calls' => [ | ||
| 3531 | 'param' | ||
| 3532 | ], | ||
| 3533 | 'opcount' => 0, | ||
| 3534 | 'prods' => [ | ||
| 3535 | bless( { | ||
| 3536 | 'number' => '0', | ||
| 3537 | 'strcount' => 2, | ||
| 3538 | 'dircount' => 0, | ||
| 3539 | 'uncommit' => undef, | ||
| 3540 | 'error' => undef, | ||
| 3541 | 'patcount' => 0, | ||
| 3542 | 'actcount' => 1, | ||
| 3543 | 'items' => [ | ||
| 3544 | bless( { | ||
| 3545 | 'pattern' => '(', | ||
| 3546 | 'hashname' => '__STRING1__', | ||
| 3547 | 'description' => '\'(\'', | ||
| 3548 | 'lookahead' => 0, | ||
| 3549 | 'line' => 69 | ||
| 3550 | }, 'Parse::RecDescent::Literal' ), | ||
| 3551 | bless( { | ||
| 3552 | 'pattern' => ')', | ||
| 3553 | 'hashname' => '__STRING2__', | ||
| 3554 | 'description' => '\')\'', | ||
| 3555 | 'lookahead' => 0, | ||
| 3556 | 'line' => 69 | ||
| 3557 | }, 'Parse::RecDescent::Literal' ), | ||
| 3558 | bless( { | ||
| 3559 | 'hashname' => '__ACTION1__', | ||
| 3560 | 'lookahead' => 0, | ||
| 3561 | 'line' => 70, | ||
| 3562 | 'code' => '{ $return = [] }' | ||
| 3563 | }, 'Parse::RecDescent::Action' ) | ||
| 3564 | ], | ||
| 3565 | 'line' => undef | ||
| 3566 | }, 'Parse::RecDescent::Production' ), | ||
| 3567 | bless( { | ||
| 3568 | 'number' => '1', | ||
| 3569 | 'strcount' => 3, | ||
| 3570 | 'dircount' => 1, | ||
| 3571 | 'uncommit' => undef, | ||
| 3572 | 'error' => undef, | ||
| 3573 | 'patcount' => 0, | ||
| 3574 | 'actcount' => 1, | ||
| 3575 | 'op' => [], | ||
| 3576 | 'items' => [ | ||
| 3577 | bless( { | ||
| 3578 | 'pattern' => '(', | ||
| 3579 | 'hashname' => '__STRING1__', | ||
| 3580 | 'description' => '\'(\'', | ||
| 3581 | 'lookahead' => 0, | ||
| 3582 | 'line' => 71 | ||
| 3583 | }, 'Parse::RecDescent::Literal' ), | ||
| 3584 | bless( { | ||
| 3585 | 'expected' => '<leftop: param \',\' param>', | ||
| 3586 | 'min' => 1, | ||
| 3587 | 'max' => 100000000, | ||
| 3588 | 'leftarg' => bless( { | ||
| 3589 | 'subrule' => 'param', | ||
| 3590 | 'matchrule' => 0, | ||
| 3591 | 'implicit' => undef, | ||
| 3592 | 'argcode' => undef, | ||
| 3593 | 'lookahead' => 0, | ||
| 3594 | 'line' => 71 | ||
| 3595 | }, 'Parse::RecDescent::Subrule' ), | ||
| 3596 | 'rightarg' => bless( { | ||
| 3597 | 'subrule' => 'param', | ||
| 3598 | 'matchrule' => 0, | ||
| 3599 | 'implicit' => undef, | ||
| 3600 | 'argcode' => undef, | ||
| 3601 | 'lookahead' => 0, | ||
| 3602 | 'line' => 71 | ||
| 3603 | }, 'Parse::RecDescent::Subrule' ), | ||
| 3604 | 'hashname' => '__DIRECTIVE1__', | ||
| 3605 | 'type' => 'leftop', | ||
| 3606 | 'op' => bless( { | ||
| 3607 | 'pattern' => ',', | ||
| 3608 | 'hashname' => '__STRING2__', | ||
| 3609 | 'description' => '\',\'', | ||
| 3610 | 'lookahead' => 0, | ||
| 3611 | 'line' => 71 | ||
| 3612 | }, 'Parse::RecDescent::Literal' ) | ||
| 3613 | }, 'Parse::RecDescent::Operator' ), | ||
| 3614 | bless( { | ||
| 3615 | 'pattern' => ')', | ||
| 3616 | 'hashname' => '__STRING3__', | ||
| 3617 | 'description' => '\')\'', | ||
| 3618 | 'lookahead' => 0, | ||
| 3619 | 'line' => 71 | ||
| 3620 | }, 'Parse::RecDescent::Literal' ), | ||
| 3621 | bless( { | ||
| 3622 | 'hashname' => '__ACTION1__', | ||
| 3623 | 'lookahead' => 0, | ||
| 3624 | 'line' => 72, | ||
| 3625 | 'code' => '{ $return = $item[2] }' | ||
| 3626 | }, 'Parse::RecDescent::Action' ) | ||
| 3627 | ], | ||
| 3628 | 'line' => 71 | ||
| 3629 | }, 'Parse::RecDescent::Production' ) | ||
| 3630 | ], | ||
| 3631 | 'name' => 'paramlist', | ||
| 3632 | 'vars' => '', | ||
| 3633 | 'changed' => 0, | ||
| 3634 | 'line' => 69 | ||
| 3635 | }, 'Parse::RecDescent::Rule' ), | ||
| 3636 | 'xpathstring' => bless( { | ||
| 3637 | 'impcount' => 0, | ||
| 3638 | 'calls' => [ | ||
| 3639 | 'vartext', | ||
| 3640 | 'function' | ||
| 3641 | ], | ||
| 3642 | 'opcount' => 0, | ||
| 3643 | 'prods' => [ | ||
| 3644 | bless( { | ||
| 3645 | 'number' => '0', | ||
| 3646 | 'strcount' => 2, | ||
| 3647 | 'dircount' => 0, | ||
| 3648 | 'uncommit' => undef, | ||
| 3649 | 'error' => undef, | ||
| 3650 | 'patcount' => 0, | ||
| 3651 | 'actcount' => 1, | ||
| 3652 | 'items' => [ | ||
| 3653 | bless( { | ||
| 3654 | 'pattern' => '${', | ||
| 3655 | 'hashname' => '__STRING1__', | ||
| 3656 | 'description' => '\'$\\{\'', | ||
| 3657 | 'lookahead' => 0, | ||
| 3658 | 'line' => 46 | ||
| 3659 | }, 'Parse::RecDescent::Literal' ), | ||
| 3660 | bless( { | ||
| 3661 | 'subrule' => 'vartext', | ||
| 3662 | 'matchrule' => 0, | ||
| 3663 | 'implicit' => undef, | ||
| 3664 | 'argcode' => undef, | ||
| 3665 | 'lookahead' => 0, | ||
| 3666 | 'line' => 46 | ||
| 3667 | }, 'Parse::RecDescent::Subrule' ), | ||
| 3668 | bless( { | ||
| 3669 | 'pattern' => '}\\.', | ||
| 3670 | 'hashname' => '__STRING2__', | ||
| 3671 | 'description' => '\'\\}\\\\.\'', | ||
| 3672 | 'lookahead' => 0, | ||
| 3673 | 'line' => 46 | ||
| 3674 | }, 'Parse::RecDescent::Literal' ), | ||
| 3675 | bless( { | ||
| 3676 | 'hashname' => '__ACTION1__', | ||
| 3677 | 'lookahead' => 0, | ||
| 3678 | 'line' => 47, | ||
| 3679 | 'code' => '{ $return = generate_varget ($item[2], undef, 1) . " . \'.\'" }' | ||
| 3680 | }, 'Parse::RecDescent::Action' ) | ||
| 3681 | ], | ||
| 3682 | 'line' => undef | ||
| 3683 | }, 'Parse::RecDescent::Production' ), | ||
| 3684 | bless( { | ||
| 3685 | 'number' => '1', | ||
| 3686 | 'strcount' => 2, | ||
| 3687 | 'dircount' => 0, | ||
| 3688 | 'uncommit' => undef, | ||
| 3689 | 'error' => undef, | ||
| 3690 | 'patcount' => 0, | ||
| 3691 | 'actcount' => 1, | ||
| 3692 | 'items' => [ | ||
| 3693 | bless( { | ||
| 3694 | 'pattern' => '${', | ||
| 3695 | 'hashname' => '__STRING1__', | ||
| 3696 | 'description' => '\'$\\{\'', | ||
| 3697 | 'lookahead' => 0, | ||
| 3698 | 'line' => 48 | ||
| 3699 | }, 'Parse::RecDescent::Literal' ), | ||
| 3700 | bless( { | ||
| 3701 | 'subrule' => 'vartext', | ||
| 3702 | 'matchrule' => 0, | ||
| 3703 | 'implicit' => undef, | ||
| 3704 | 'argcode' => undef, | ||
| 3705 | 'lookahead' => 0, | ||
| 3706 | 'line' => 48 | ||
| 3707 | }, 'Parse::RecDescent::Subrule' ), | ||
| 3708 | bless( { | ||
| 3709 | 'pattern' => '}', | ||
| 3710 | 'hashname' => '__STRING2__', | ||
| 3711 | 'description' => '\'\\}\'', | ||
| 3712 | 'lookahead' => 0, | ||
| 3713 | 'line' => 48 | ||
| 3714 | }, 'Parse::RecDescent::Literal' ), | ||
| 3715 | bless( { | ||
| 3716 | 'subrule' => 'function', | ||
| 3717 | 'expected' => undef, | ||
| 3718 | 'min' => 0, | ||
| 3719 | 'argcode' => undef, | ||
| 3720 | 'max' => 100000000, | ||
| 3721 | 'matchrule' => 0, | ||
| 3722 | 'repspec' => 's?', | ||
| 3723 | 'lookahead' => 0, | ||
| 3724 | 'line' => 48 | ||
| 3725 | }, 'Parse::RecDescent::Repetition' ), | ||
| 3726 | bless( { | ||
| 3727 | 'hashname' => '__ACTION1__', | ||
| 3728 | 'lookahead' => 0, | ||
| 3729 | 'line' => 49, | ||
| 3730 | 'code' => '{ $return = generate_varget ($item[2], $item[4], 1) }' | ||
| 3731 | }, 'Parse::RecDescent::Action' ) | ||
| 3732 | ], | ||
| 3733 | 'line' => 48 | ||
| 3734 | }, 'Parse::RecDescent::Production' ), | ||
| 3735 | bless( { | ||
| 3736 | 'number' => '2', | ||
| 3737 | 'strcount' => 0, | ||
| 3738 | 'dircount' => 0, | ||
| 3739 | 'uncommit' => undef, | ||
| 3740 | 'error' => undef, | ||
| 3741 | 'patcount' => 1, | ||
| 3742 | 'actcount' => 1, | ||
| 3743 | 'items' => [ | ||
| 3744 | bless( { | ||
| 3745 | 'description' => '/([\\\\\\\\][\\\\$\\}]|[^\\\\$\\}])+/', | ||
| 3746 | 'rdelim' => '/', | ||
| 3747 | 'pattern' => '([\\\\][\\$}]|[^\\$}])+', | ||
| 3748 | 'hashname' => '__PATTERN1__', | ||
| 3749 | 'lookahead' => 0, | ||
| 3750 | 'ldelim' => '/', | ||
| 3751 | 'mod' => '', | ||
| 3752 | 'line' => 50 | ||
| 3753 | }, 'Parse::RecDescent::Token' ), | ||
| 3754 | bless( { | ||
| 3755 | 'hashname' => '__ACTION1__', | ||
| 3756 | 'lookahead' => 0, | ||
| 3757 | 'line' => 51, | ||
| 3758 | 'code' => '{ $item[1] =~ s/\\\\/\\\\\\\\/g; $item[1] =~ s/\'/\\\\\'/g; | ||
| 3759 | $return = "\'$item[1]\'" }' | ||
| 3760 | }, 'Parse::RecDescent::Action' ) | ||
| 3761 | ], | ||
| 3762 | 'line' => 50 | ||
| 3763 | }, 'Parse::RecDescent::Production' ) | ||
| 3764 | ], | ||
| 3765 | 'name' => 'xpathstring', | ||
| 3766 | 'vars' => '', | ||
| 3767 | 'changed' => 0, | ||
| 3768 | 'line' => 46 | ||
| 3769 | }, 'Parse::RecDescent::Rule' ), | ||
| 3770 | 'varstring' => bless( { | ||
| 3771 | 'impcount' => 0, | ||
| 3772 | 'calls' => [ | ||
| 3773 | 'vartext', | ||
| 3774 | 'function', | ||
| 3775 | 'xpathtext' | ||
| 3776 | ], | ||
| 3777 | 'opcount' => 0, | ||
| 3778 | 'prods' => [ | ||
| 3779 | bless( { | ||
| 3780 | 'number' => '0', | ||
| 3781 | 'strcount' => 2, | ||
| 3782 | 'dircount' => 0, | ||
| 3783 | 'uncommit' => undef, | ||
| 3784 | 'error' => undef, | ||
| 3785 | 'patcount' => 0, | ||
| 3786 | 'actcount' => 1, | ||
| 3787 | 'items' => [ | ||
| 3788 | bless( { | ||
| 3789 | 'pattern' => '${', | ||
| 3790 | 'hashname' => '__STRING1__', | ||
| 3791 | 'description' => '\'$\\{\'', | ||
| 3792 | 'lookahead' => 0, | ||
| 3793 | 'line' => 33 | ||
| 3794 | }, 'Parse::RecDescent::Literal' ), | ||
| 3795 | bless( { | ||
| 3796 | 'subrule' => 'vartext', | ||
| 3797 | 'matchrule' => 0, | ||
| 3798 | 'implicit' => undef, | ||
| 3799 | 'argcode' => undef, | ||
| 3800 | 'lookahead' => 0, | ||
| 3801 | 'line' => 33 | ||
| 3802 | }, 'Parse::RecDescent::Subrule' ), | ||
| 3803 | bless( { | ||
| 3804 | 'pattern' => '}\\.', | ||
| 3805 | 'hashname' => '__STRING2__', | ||
| 3806 | 'description' => '\'\\}\\\\.\'', | ||
| 3807 | 'lookahead' => 0, | ||
| 3808 | 'line' => 33 | ||
| 3809 | }, 'Parse::RecDescent::Literal' ), | ||
| 3810 | bless( { | ||
| 3811 | 'hashname' => '__ACTION1__', | ||
| 3812 | 'lookahead' => 0, | ||
| 3813 | 'line' => 34, | ||
| 3814 | 'code' => '{ $return = generate_varget ($item[2]) . " . \'.\'" }' | ||
| 3815 | }, 'Parse::RecDescent::Action' ) | ||
| 3816 | ], | ||
| 3817 | 'line' => undef | ||
| 3818 | }, 'Parse::RecDescent::Production' ), | ||
| 3819 | bless( { | ||
| 3820 | 'number' => '1', | ||
| 3821 | 'strcount' => 2, | ||
| 3822 | 'dircount' => 0, | ||
| 3823 | 'uncommit' => undef, | ||
| 3824 | 'error' => undef, | ||
| 3825 | 'patcount' => 0, | ||
| 3826 | 'actcount' => 1, | ||
| 3827 | 'items' => [ | ||
| 3828 | bless( { | ||
| 3829 | 'pattern' => '${', | ||
| 3830 | 'hashname' => '__STRING1__', | ||
| 3831 | 'description' => '\'$\\{\'', | ||
| 3832 | 'lookahead' => 0, | ||
| 3833 | 'line' => 35 | ||
| 3834 | }, 'Parse::RecDescent::Literal' ), | ||
| 3835 | bless( { | ||
| 3836 | 'subrule' => 'vartext', | ||
| 3837 | 'matchrule' => 0, | ||
| 3838 | 'implicit' => undef, | ||
| 3839 | 'argcode' => undef, | ||
| 3840 | 'lookahead' => 0, | ||
| 3841 | 'line' => 35 | ||
| 3842 | }, 'Parse::RecDescent::Subrule' ), | ||
| 3843 | bless( { | ||
| 3844 | 'pattern' => '}', | ||
| 3845 | 'hashname' => '__STRING2__', | ||
| 3846 | 'description' => '\'\\}\'', | ||
| 3847 | 'lookahead' => 0, | ||
| 3848 | 'line' => 35 | ||
| 3849 | }, 'Parse::RecDescent::Literal' ), | ||
| 3850 | bless( { | ||
| 3851 | 'subrule' => 'function', | ||
| 3852 | 'expected' => undef, | ||
| 3853 | 'min' => 0, | ||
| 3854 | 'argcode' => undef, | ||
| 3855 | 'max' => 100000000, | ||
| 3856 | 'matchrule' => 0, | ||
| 3857 | 'repspec' => 's?', | ||
| 3858 | 'lookahead' => 0, | ||
| 3859 | 'line' => 35 | ||
| 3860 | }, 'Parse::RecDescent::Repetition' ), | ||
| 3861 | bless( { | ||
| 3862 | 'hashname' => '__ACTION1__', | ||
| 3863 | 'lookahead' => 0, | ||
| 3864 | 'line' => 36, | ||
| 3865 | 'code' => '{ $return = generate_varget ($item[2], $item[4]) }' | ||
| 3866 | }, 'Parse::RecDescent::Action' ) | ||
| 3867 | ], | ||
| 3868 | 'line' => 35 | ||
| 3869 | }, 'Parse::RecDescent::Production' ), | ||
| 3870 | bless( { | ||
| 3871 | 'number' => '2', | ||
| 3872 | 'strcount' => 0, | ||
| 3873 | 'dircount' => 0, | ||
| 3874 | 'uncommit' => undef, | ||
| 3875 | 'error' => undef, | ||
| 3876 | 'patcount' => 1, | ||
| 3877 | 'actcount' => 1, | ||
| 3878 | 'items' => [ | ||
| 3879 | bless( { | ||
| 3880 | 'description' => '/([\\\\\\\\][\\\\$\\{\\}\'\\\\/]|[^\\\\$\\{\\}\'\\\\/])+/', | ||
| 3881 | 'rdelim' => '/', | ||
| 3882 | 'pattern' => '([\\\\][\\${}\'\\/]|[^\\${}\'\\/])+', | ||
| 3883 | 'hashname' => '__PATTERN1__', | ||
| 3884 | 'lookahead' => 0, | ||
| 3885 | 'ldelim' => '/', | ||
| 3886 | 'mod' => '', | ||
| 3887 | 'line' => 37 | ||
| 3888 | }, 'Parse::RecDescent::Token' ), | ||
| 3889 | bless( { | ||
| 3890 | 'hashname' => '__ACTION1__', | ||
| 3891 | 'lookahead' => 0, | ||
| 3892 | 'line' => 38, | ||
| 3893 | 'code' => '{ $item[1] =~ s/\\\\/\\\\\\\\/g; $item[1] =~ s/\'/\\\\\'/g; $return = "\'$item[1]\'" }' | ||
| 3894 | }, 'Parse::RecDescent::Action' ) | ||
| 3895 | ], | ||
| 3896 | 'line' => 37 | ||
| 3897 | }, 'Parse::RecDescent::Production' ), | ||
| 3898 | bless( { | ||
| 3899 | 'number' => '3', | ||
| 3900 | 'strcount' => 2, | ||
| 3901 | 'dircount' => 0, | ||
| 3902 | 'uncommit' => undef, | ||
| 3903 | 'error' => undef, | ||
| 3904 | 'patcount' => 0, | ||
| 3905 | 'actcount' => 1, | ||
| 3906 | 'items' => [ | ||
| 3907 | bless( { | ||
| 3908 | 'pattern' => '{', | ||
| 3909 | 'hashname' => '__STRING1__', | ||
| 3910 | 'description' => '\'\\{\'', | ||
| 3911 | 'lookahead' => 0, | ||
| 3912 | 'line' => 39 | ||
| 3913 | }, 'Parse::RecDescent::Literal' ), | ||
| 3914 | bless( { | ||
| 3915 | 'subrule' => 'vartext', | ||
| 3916 | 'matchrule' => 0, | ||
| 3917 | 'implicit' => undef, | ||
| 3918 | 'argcode' => undef, | ||
| 3919 | 'lookahead' => 0, | ||
| 3920 | 'line' => 39 | ||
| 3921 | }, 'Parse::RecDescent::Subrule' ), | ||
| 3922 | bless( { | ||
| 3923 | 'pattern' => '}', | ||
| 3924 | 'hashname' => '__STRING2__', | ||
| 3925 | 'description' => '\'\\}\'', | ||
| 3926 | 'lookahead' => 0, | ||
| 3927 | 'line' => 39 | ||
| 3928 | }, 'Parse::RecDescent::Literal' ), | ||
| 3929 | bless( { | ||
| 3930 | 'hashname' => '__ACTION1__', | ||
| 3931 | 'lookahead' => 0, | ||
| 3932 | 'line' => 40, | ||
| 3933 | 'code' => '{ $return = "\\$vars->backslash (\'\\.\\/\', $item[2])" }' | ||
| 3934 | }, 'Parse::RecDescent::Action' ) | ||
| 3935 | ], | ||
| 3936 | 'line' => 39 | ||
| 3937 | }, 'Parse::RecDescent::Production' ), | ||
| 3938 | bless( { | ||
| 3939 | 'number' => '4', | ||
| 3940 | 'strcount' => 1, | ||
| 3941 | 'dircount' => 0, | ||
| 3942 | 'uncommit' => undef, | ||
| 3943 | 'error' => undef, | ||
| 3944 | 'patcount' => 0, | ||
| 3945 | 'actcount' => 1, | ||
| 3946 | 'items' => [ | ||
| 3947 | bless( { | ||
| 3948 | 'pattern' => '/', | ||
| 3949 | 'hashname' => '__STRING1__', | ||
| 3950 | 'description' => '\'/\'', | ||
| 3951 | 'lookahead' => 0, | ||
| 3952 | 'line' => 41 | ||
| 3953 | }, 'Parse::RecDescent::Literal' ), | ||
| 3954 | bless( { | ||
| 3955 | 'subrule' => 'xpathtext', | ||
| 3956 | 'matchrule' => 0, | ||
| 3957 | 'implicit' => undef, | ||
| 3958 | 'argcode' => undef, | ||
| 3959 | 'lookahead' => 0, | ||
| 3960 | 'line' => 41 | ||
| 3961 | }, 'Parse::RecDescent::Subrule' ), | ||
| 3962 | bless( { | ||
| 3963 | 'hashname' => '__ACTION1__', | ||
| 3964 | 'lookahead' => 0, | ||
| 3965 | 'line' => 42, | ||
| 3966 | 'code' => '{ $return = "\\$vars->backslash (\'\\.\', $item[2])"; }' | ||
| 3967 | }, 'Parse::RecDescent::Action' ) | ||
| 3968 | ], | ||
| 3969 | 'line' => 41 | ||
| 3970 | }, 'Parse::RecDescent::Production' ) | ||
| 3971 | ], | ||
| 3972 | 'name' => 'varstring', | ||
| 3973 | 'vars' => '', | ||
| 3974 | 'changed' => 0, | ||
| 3975 | 'line' => 33 | ||
| 3976 | }, 'Parse::RecDescent::Rule' ), | ||
| 3977 | 'function' => bless( { | ||
| 3978 | 'impcount' => 0, | ||
| 3979 | 'calls' => [ | ||
| 3980 | 'paramlist' | ||
| 3981 | ], | ||
| 3982 | 'opcount' => 0, | ||
| 3983 | 'prods' => [ | ||
| 3984 | bless( { | ||
| 3985 | 'number' => '0', | ||
| 3986 | 'strcount' => 1, | ||
| 3987 | 'dircount' => 1, | ||
| 3988 | 'uncommit' => undef, | ||
| 3989 | 'error' => undef, | ||
| 3990 | 'patcount' => 1, | ||
| 3991 | 'actcount' => 1, | ||
| 3992 | 'items' => [ | ||
| 3993 | bless( { | ||
| 3994 | 'hashname' => '__DIRECTIVE1__', | ||
| 3995 | 'name' => '<skip: \'\\s*\'>', | ||
| 3996 | 'lookahead' => 0, | ||
| 3997 | 'line' => 67, | ||
| 3998 | 'code' => 'my $oldskip = $skip; $skip= \'\\s*\'; $oldskip' | ||
| 3999 | }, 'Parse::RecDescent::Directive' ), | ||
| 4000 | bless( { | ||
| 4001 | 'pattern' => '.', | ||
| 4002 | 'hashname' => '__STRING1__', | ||
| 4003 | 'description' => '\'.\'', | ||
| 4004 | 'lookahead' => 0, | ||
| 4005 | 'line' => 67 | ||
| 4006 | }, 'Parse::RecDescent::Literal' ), | ||
| 4007 | bless( { | ||
| 4008 | 'description' => '/[_a-z0-9]+/i', | ||
| 4009 | 'rdelim' => '/', | ||
| 4010 | 'pattern' => '[_a-z0-9]+', | ||
| 4011 | 'hashname' => '__PATTERN1__', | ||
| 4012 | 'lookahead' => 0, | ||
| 4013 | 'ldelim' => '/', | ||
| 4014 | 'mod' => 'i', | ||
| 4015 | 'line' => 67 | ||
| 4016 | }, 'Parse::RecDescent::Token' ), | ||
| 4017 | bless( { | ||
| 4018 | 'subrule' => 'paramlist', | ||
| 4019 | 'expected' => undef, | ||
| 4020 | 'min' => 0, | ||
| 4021 | 'argcode' => undef, | ||
| 4022 | 'max' => 100000000, | ||
| 4023 | 'matchrule' => 0, | ||
| 4024 | 'repspec' => 's?', | ||
| 4025 | 'lookahead' => 0, | ||
| 4026 | 'line' => 67 | ||
| 4027 | }, 'Parse::RecDescent::Repetition' ), | ||
| 4028 | bless( { | ||
| 4029 | 'hashname' => '__ACTION1__', | ||
| 4030 | 'lookahead' => 0, | ||
| 4031 | 'line' => 68, | ||
| 4032 | 'code' => '{ $return = [$item[3], $item[4]] }' | ||
| 4033 | }, 'Parse::RecDescent::Action' ) | ||
| 4034 | ], | ||
| 4035 | 'line' => undef | ||
| 4036 | }, 'Parse::RecDescent::Production' ) | ||
| 4037 | ], | ||
| 4038 | 'name' => 'function', | ||
| 4039 | 'vars' => '', | ||
| 4040 | 'changed' => 0, | ||
| 4041 | 'line' => 66 | ||
| 4042 | }, 'Parse::RecDescent::Rule' ), | ||
| 4043 | 'paramstring' => bless( { | ||
| 4044 | 'impcount' => 0, | ||
| 4045 | 'calls' => [ | ||
| 4046 | 'paramtext', | ||
| 4047 | 'function' | ||
| 4048 | ], | ||
| 4049 | 'opcount' => 0, | ||
| 4050 | 'prods' => [ | ||
| 4051 | bless( { | ||
| 4052 | 'number' => '0', | ||
| 4053 | 'strcount' => 2, | ||
| 4054 | 'dircount' => 0, | ||
| 4055 | 'uncommit' => undef, | ||
| 4056 | 'error' => undef, | ||
| 4057 | 'patcount' => 0, | ||
| 4058 | 'actcount' => 1, | ||
| 4059 | 'items' => [ | ||
| 4060 | bless( { | ||
| 4061 | 'pattern' => '${', | ||
| 4062 | 'hashname' => '__STRING1__', | ||
| 4063 | 'description' => '\'$\\{\'', | ||
| 4064 | 'lookahead' => 0, | ||
| 4065 | 'line' => 57 | ||
| 4066 | }, 'Parse::RecDescent::Literal' ), | ||
| 4067 | bless( { | ||
| 4068 | 'subrule' => 'paramtext', | ||
| 4069 | 'matchrule' => 0, | ||
| 4070 | 'implicit' => undef, | ||
| 4071 | 'argcode' => undef, | ||
| 4072 | 'lookahead' => 0, | ||
| 4073 | 'line' => 57 | ||
| 4074 | }, 'Parse::RecDescent::Subrule' ), | ||
| 4075 | bless( { | ||
| 4076 | 'pattern' => '}\\.', | ||
| 4077 | 'hashname' => '__STRING2__', | ||
| 4078 | 'description' => '\'\\}\\\\.\'', | ||
| 4079 | 'lookahead' => 0, | ||
| 4080 | 'line' => 57 | ||
| 4081 | }, 'Parse::RecDescent::Literal' ), | ||
| 4082 | bless( { | ||
| 4083 | 'hashname' => '__ACTION1__', | ||
| 4084 | 'lookahead' => 0, | ||
| 4085 | 'line' => 58, | ||
| 4086 | 'code' => '{ $return = generate_varget ($item[2]) . " . \'.\'" }' | ||
| 4087 | }, 'Parse::RecDescent::Action' ) | ||
| 4088 | ], | ||
| 4089 | 'line' => undef | ||
| 4090 | }, 'Parse::RecDescent::Production' ), | ||
| 4091 | bless( { | ||
| 4092 | 'number' => '1', | ||
| 4093 | 'strcount' => 2, | ||
| 4094 | 'dircount' => 0, | ||
| 4095 | 'uncommit' => undef, | ||
| 4096 | 'error' => undef, | ||
| 4097 | 'patcount' => 0, | ||
| 4098 | 'actcount' => 1, | ||
| 4099 | 'items' => [ | ||
| 4100 | bless( { | ||
| 4101 | 'pattern' => '${', | ||
| 4102 | 'hashname' => '__STRING1__', | ||
| 4103 | 'description' => '\'$\\{\'', | ||
| 4104 | 'lookahead' => 0, | ||
| 4105 | 'line' => 59 | ||
| 4106 | }, 'Parse::RecDescent::Literal' ), | ||
| 4107 | bless( { | ||
| 4108 | 'subrule' => 'paramtext', | ||
| 4109 | 'matchrule' => 0, | ||
| 4110 | 'implicit' => undef, | ||
| 4111 | 'argcode' => undef, | ||
| 4112 | 'lookahead' => 0, | ||
| 4113 | 'line' => 59 | ||
| 4114 | }, 'Parse::RecDescent::Subrule' ), | ||
| 4115 | bless( { | ||
| 4116 | 'pattern' => '}', | ||
| 4117 | 'hashname' => '__STRING2__', | ||
| 4118 | 'description' => '\'\\}\'', | ||
| 4119 | 'lookahead' => 0, | ||
| 4120 | 'line' => 59 | ||
| 4121 | }, 'Parse::RecDescent::Literal' ), | ||
| 4122 | bless( { | ||
| 4123 | 'subrule' => 'function', | ||
| 4124 | 'expected' => undef, | ||
| 4125 | 'min' => 0, | ||
| 4126 | 'argcode' => undef, | ||
| 4127 | 'max' => 100000000, | ||
| 4128 | 'matchrule' => 0, | ||
| 4129 | 'repspec' => 's?', | ||
| 4130 | 'lookahead' => 0, | ||
| 4131 | 'line' => 59 | ||
| 4132 | }, 'Parse::RecDescent::Repetition' ), | ||
| 4133 | bless( { | ||
| 4134 | 'hashname' => '__ACTION1__', | ||
| 4135 | 'lookahead' => 0, | ||
| 4136 | 'line' => 60, | ||
| 4137 | 'code' => '{ $return = generate_varget ($item[2], $item[4]) }' | ||
| 4138 | }, 'Parse::RecDescent::Action' ) | ||
| 4139 | ], | ||
| 4140 | 'line' => 59 | ||
| 4141 | }, 'Parse::RecDescent::Production' ), | ||
| 4142 | bless( { | ||
| 4143 | 'number' => '2', | ||
| 4144 | 'strcount' => 2, | ||
| 4145 | 'dircount' => 0, | ||
| 4146 | 'uncommit' => undef, | ||
| 4147 | 'error' => undef, | ||
| 4148 | 'patcount' => 0, | ||
| 4149 | 'actcount' => 1, | ||
| 4150 | 'items' => [ | ||
| 4151 | bless( { | ||
| 4152 | 'pattern' => '(', | ||
| 4153 | 'hashname' => '__STRING1__', | ||
| 4154 | 'description' => '\'(\'', | ||
| 4155 | 'lookahead' => 0, | ||
| 4156 | 'line' => 61 | ||
| 4157 | }, 'Parse::RecDescent::Literal' ), | ||
| 4158 | bless( { | ||
| 4159 | 'subrule' => 'paramtext', | ||
| 4160 | 'matchrule' => 0, | ||
| 4161 | 'implicit' => undef, | ||
| 4162 | 'argcode' => undef, | ||
| 4163 | 'lookahead' => 0, | ||
| 4164 | 'line' => 61 | ||
| 4165 | }, 'Parse::RecDescent::Subrule' ), | ||
| 4166 | bless( { | ||
| 4167 | 'pattern' => ')', | ||
| 4168 | 'hashname' => '__STRING2__', | ||
| 4169 | 'description' => '\')\'', | ||
| 4170 | 'lookahead' => 0, | ||
| 4171 | 'line' => 61 | ||
| 4172 | }, 'Parse::RecDescent::Literal' ), | ||
| 4173 | bless( { | ||
| 4174 | 'hashname' => '__ACTION1__', | ||
| 4175 | 'lookahead' => 0, | ||
| 4176 | 'line' => 62, | ||
| 4177 | 'code' => '{ $return = "($item[1])" }' | ||
| 4178 | }, 'Parse::RecDescent::Action' ) | ||
| 4179 | ], | ||
| 4180 | 'line' => 61 | ||
| 4181 | }, 'Parse::RecDescent::Production' ), | ||
| 4182 | bless( { | ||
| 4183 | 'number' => '3', | ||
| 4184 | 'strcount' => 0, | ||
| 4185 | 'dircount' => 0, | ||
| 4186 | 'uncommit' => undef, | ||
| 4187 | 'error' => undef, | ||
| 4188 | 'patcount' => 1, | ||
| 4189 | 'actcount' => 1, | ||
| 4190 | 'items' => [ | ||
| 4191 | bless( { | ||
| 4192 | 'description' => '/([\\\\\\\\][\\\\$\\})"]|[^\\\\$\\})"])+/', | ||
| 4193 | 'rdelim' => '/', | ||
| 4194 | 'pattern' => '([\\\\][\\$})"]|[^\\$})"])+', | ||
| 4195 | 'hashname' => '__PATTERN1__', | ||
| 4196 | 'lookahead' => 0, | ||
| 4197 | 'ldelim' => '/', | ||
| 4198 | 'mod' => '', | ||
| 4199 | 'line' => 63 | ||
| 4200 | }, 'Parse::RecDescent::Token' ), | ||
| 4201 | bless( { | ||
| 4202 | 'hashname' => '__ACTION1__', | ||
| 4203 | 'lookahead' => 0, | ||
| 4204 | 'line' => 64, | ||
| 4205 | 'code' => '{ $item[1] =~ s/\'/\\\\\'/g; $return = "\'$item[1]\'" }' | ||
| 4206 | }, 'Parse::RecDescent::Action' ) | ||
| 4207 | ], | ||
| 4208 | 'line' => 63 | ||
| 4209 | }, 'Parse::RecDescent::Production' ) | ||
| 4210 | ], | ||
| 4211 | 'name' => 'paramstring', | ||
| 4212 | 'vars' => '', | ||
| 4213 | 'changed' => 0, | ||
| 4214 | 'line' => 57 | ||
| 4215 | }, 'Parse::RecDescent::Rule' ), | ||
| 4216 | 'string' => bless( { | ||
| 4217 | 'impcount' => 0, | ||
| 4218 | 'calls' => [ | ||
| 4219 | 'vartext', | ||
| 4220 | 'function' | ||
| 4221 | ], | ||
| 4222 | 'opcount' => 0, | ||
| 4223 | 'prods' => [ | ||
| 4224 | bless( { | ||
| 4225 | 'number' => '0', | ||
| 4226 | 'strcount' => 2, | ||
| 4227 | 'dircount' => 0, | ||
| 4228 | 'uncommit' => undef, | ||
| 4229 | 'error' => undef, | ||
| 4230 | 'patcount' => 0, | ||
| 4231 | 'actcount' => 1, | ||
| 4232 | 'items' => [ | ||
| 4233 | bless( { | ||
| 4234 | 'pattern' => '${', | ||
| 4235 | 'hashname' => '__STRING1__', | ||
| 4236 | 'description' => '\'$\\{\'', | ||
| 4237 | 'lookahead' => 0, | ||
| 4238 | 'line' => 23 | ||
| 4239 | }, 'Parse::RecDescent::Literal' ), | ||
| 4240 | bless( { | ||
| 4241 | 'subrule' => 'vartext', | ||
| 4242 | 'matchrule' => 0, | ||
| 4243 | 'implicit' => undef, | ||
| 4244 | 'argcode' => undef, | ||
| 4245 | 'lookahead' => 0, | ||
| 4246 | 'line' => 23 | ||
| 4247 | }, 'Parse::RecDescent::Subrule' ), | ||
| 4248 | bless( { | ||
| 4249 | 'pattern' => '}\\.', | ||
| 4250 | 'hashname' => '__STRING2__', | ||
| 4251 | 'description' => '\'\\}\\\\.\'', | ||
| 4252 | 'lookahead' => 0, | ||
| 4253 | 'line' => 23 | ||
| 4254 | }, 'Parse::RecDescent::Literal' ), | ||
| 4255 | bless( { | ||
| 4256 | 'hashname' => '__ACTION1__', | ||
| 4257 | 'lookahead' => 0, | ||
| 4258 | 'line' => 24, | ||
| 4259 | 'code' => '{ $return = generate_varget ($item[2]) . " . \'.\'" }' | ||
| 4260 | }, 'Parse::RecDescent::Action' ) | ||
| 4261 | ], | ||
| 4262 | 'line' => undef | ||
| 4263 | }, 'Parse::RecDescent::Production' ), | ||
| 4264 | bless( { | ||
| 4265 | 'number' => '1', | ||
| 4266 | 'strcount' => 2, | ||
| 4267 | 'dircount' => 0, | ||
| 4268 | 'uncommit' => undef, | ||
| 4269 | 'error' => undef, | ||
| 4270 | 'patcount' => 0, | ||
| 4271 | 'actcount' => 1, | ||
| 4272 | 'items' => [ | ||
| 4273 | bless( { | ||
| 4274 | 'pattern' => '${', | ||
| 4275 | 'hashname' => '__STRING1__', | ||
| 4276 | 'description' => '\'$\\{\'', | ||
| 4277 | 'lookahead' => 0, | ||
| 4278 | 'line' => 25 | ||
| 4279 | }, 'Parse::RecDescent::Literal' ), | ||
| 4280 | bless( { | ||
| 4281 | 'subrule' => 'vartext', | ||
| 4282 | 'matchrule' => 0, | ||
| 4283 | 'implicit' => undef, | ||
| 4284 | 'argcode' => undef, | ||
| 4285 | 'lookahead' => 0, | ||
| 4286 | 'line' => 25 | ||
| 4287 | }, 'Parse::RecDescent::Subrule' ), | ||
| 4288 | bless( { | ||
| 4289 | 'pattern' => '}', | ||
| 4290 | 'hashname' => '__STRING2__', | ||
| 4291 | 'description' => '\'\\}\'', | ||
| 4292 | 'lookahead' => 0, | ||
| 4293 | 'line' => 25 | ||
| 4294 | }, 'Parse::RecDescent::Literal' ), | ||
| 4295 | bless( { | ||
| 4296 | 'subrule' => 'function', | ||
| 4297 | 'expected' => undef, | ||
| 4298 | 'min' => 0, | ||
| 4299 | 'argcode' => undef, | ||
| 4300 | 'max' => 100000000, | ||
| 4301 | 'matchrule' => 0, | ||
| 4302 | 'repspec' => 's?', | ||
| 4303 | 'lookahead' => 0, | ||
| 4304 | 'line' => 25 | ||
| 4305 | }, 'Parse::RecDescent::Repetition' ), | ||
| 4306 | bless( { | ||
| 4307 | 'hashname' => '__ACTION1__', | ||
| 4308 | 'lookahead' => 0, | ||
| 4309 | 'line' => 26, | ||
| 4310 | 'code' => '{ $return = generate_varget ($item[2], $item[4]) }' | ||
| 4311 | }, 'Parse::RecDescent::Action' ) | ||
| 4312 | ], | ||
| 4313 | 'line' => 25 | ||
| 4314 | }, 'Parse::RecDescent::Production' ), | ||
| 4315 | bless( { | ||
| 4316 | 'number' => '2', | ||
| 4317 | 'strcount' => 0, | ||
| 4318 | 'dircount' => 0, | ||
| 4319 | 'uncommit' => undef, | ||
| 4320 | 'error' => undef, | ||
| 4321 | 'patcount' => 1, | ||
| 4322 | 'actcount' => 1, | ||
| 4323 | 'items' => [ | ||
| 4324 | bless( { | ||
| 4325 | 'description' => '/([\\\\\\\\]\\\\$|[^\\\\$])+/', | ||
| 4326 | 'rdelim' => '/', | ||
| 4327 | 'pattern' => '([\\\\]\\$|[^\\$])+', | ||
| 4328 | 'hashname' => '__PATTERN1__', | ||
| 4329 | 'lookahead' => 0, | ||
| 4330 | 'ldelim' => '/', | ||
| 4331 | 'mod' => '', | ||
| 4332 | 'line' => 27 | ||
| 4333 | }, 'Parse::RecDescent::Token' ), | ||
| 4334 | bless( { | ||
| 4335 | 'hashname' => '__ACTION1__', | ||
| 4336 | 'lookahead' => 0, | ||
| 4337 | 'line' => 28, | ||
| 4338 | 'code' => '{ $item[1] =~ s/\'/\\\\\'/g; $return = "\'$item[1]\'" }' | ||
| 4339 | }, 'Parse::RecDescent::Action' ) | ||
| 4340 | ], | ||
| 4341 | 'line' => 27 | ||
| 4342 | }, 'Parse::RecDescent::Production' ) | ||
| 4343 | ], | ||
| 4344 | 'name' => 'string', | ||
| 4345 | 'vars' => '', | ||
| 4346 | 'changed' => 0, | ||
| 4347 | 'line' => 23 | ||
| 4348 | }, 'Parse::RecDescent::Rule' ), | ||
| 4349 | 'paramtext' => bless( { | ||
| 4350 | 'impcount' => 0, | ||
| 4351 | 'calls' => [ | ||
| 4352 | 'paramstring' | ||
| 4353 | ], | ||
| 4354 | 'opcount' => 0, | ||
| 4355 | 'prods' => [ | ||
| 4356 | bless( { | ||
| 4357 | 'number' => '0', | ||
| 4358 | 'strcount' => 0, | ||
| 4359 | 'dircount' => 1, | ||
| 4360 | 'uncommit' => undef, | ||
| 4361 | 'error' => undef, | ||
| 4362 | 'patcount' => 0, | ||
| 4363 | 'actcount' => 1, | ||
| 4364 | 'items' => [ | ||
| 4365 | bless( { | ||
| 4366 | 'hashname' => '__DIRECTIVE1__', | ||
| 4367 | 'name' => '<skip: \'\'>', | ||
| 4368 | 'lookahead' => 0, | ||
| 4369 | 'line' => 55, | ||
| 4370 | 'code' => 'my $oldskip = $skip; $skip= \'\'; $oldskip' | ||
| 4371 | }, 'Parse::RecDescent::Directive' ), | ||
| 4372 | bless( { | ||
| 4373 | 'subrule' => 'paramstring', | ||
| 4374 | 'expected' => undef, | ||
| 4375 | 'min' => 1, | ||
| 4376 | 'argcode' => undef, | ||
| 4377 | 'max' => 100000000, | ||
| 4378 | 'matchrule' => 0, | ||
| 4379 | 'repspec' => 's', | ||
| 4380 | 'lookahead' => 0, | ||
| 4381 | 'line' => 55 | ||
| 4382 | }, 'Parse::RecDescent::Repetition' ), | ||
| 4383 | bless( { | ||
| 4384 | 'hashname' => '__ACTION1__', | ||
| 4385 | 'lookahead' => 0, | ||
| 4386 | 'line' => 56, | ||
| 4387 | 'code' => '{ $return = join (\' . \', @{$item[2]}) }' | ||
| 4388 | }, 'Parse::RecDescent::Action' ) | ||
| 4389 | ], | ||
| 4390 | 'line' => undef | ||
| 4391 | }, 'Parse::RecDescent::Production' ) | ||
| 4392 | ], | ||
| 4393 | 'name' => 'paramtext', | ||
| 4394 | 'vars' => '', | ||
| 4395 | 'changed' => 0, | ||
| 4396 | 'line' => 54 | ||
| 4397 | }, 'Parse::RecDescent::Rule' ), | ||
| 4398 | 'text' => bless( { | ||
| 4399 | 'impcount' => 0, | ||
| 4400 | 'calls' => [ | ||
| 4401 | 'string' | ||
| 4402 | ], | ||
| 4403 | 'opcount' => 0, | ||
| 4404 | 'prods' => [ | ||
| 4405 | bless( { | ||
| 4406 | 'number' => '0', | ||
| 4407 | 'strcount' => 0, | ||
| 4408 | 'dircount' => 1, | ||
| 4409 | 'uncommit' => undef, | ||
| 4410 | 'error' => undef, | ||
| 4411 | 'patcount' => 0, | ||
| 4412 | 'actcount' => 1, | ||
| 4413 | 'items' => [ | ||
| 4414 | bless( { | ||
| 4415 | 'hashname' => '__DIRECTIVE1__', | ||
| 4416 | 'name' => '<skip: \'\'>', | ||
| 4417 | 'lookahead' => 0, | ||
| 4418 | 'line' => 21, | ||
| 4419 | 'code' => 'my $oldskip = $skip; $skip= \'\'; $oldskip' | ||
| 4420 | }, 'Parse::RecDescent::Directive' ), | ||
| 4421 | bless( { | ||
| 4422 | 'subrule' => 'string', | ||
| 4423 | 'expected' => undef, | ||
| 4424 | 'min' => 1, | ||
| 4425 | 'argcode' => undef, | ||
| 4426 | 'max' => 100000000, | ||
| 4427 | 'matchrule' => 0, | ||
| 4428 | 'repspec' => 's', | ||
| 4429 | 'lookahead' => 0, | ||
| 4430 | 'line' => 21 | ||
| 4431 | }, 'Parse::RecDescent::Repetition' ), | ||
| 4432 | bless( { | ||
| 4433 | 'hashname' => '__ACTION1__', | ||
| 4434 | 'lookahead' => 0, | ||
| 4435 | 'line' => 22, | ||
| 4436 | 'code' => '{ $return = join (\' . \', @{$item[2]}) }' | ||
| 4437 | }, 'Parse::RecDescent::Action' ) | ||
| 4438 | ], | ||
| 4439 | 'line' => undef | ||
| 4440 | }, 'Parse::RecDescent::Production' ) | ||
| 4441 | ], | ||
| 4442 | 'name' => 'text', | ||
| 4443 | 'vars' => '', | ||
| 4444 | 'changed' => 0, | ||
| 4445 | 'line' => 20 | ||
| 4446 | }, 'Parse::RecDescent::Rule' ), | ||
| 4447 | 'vartext' => bless( { | ||
| 4448 | 'impcount' => 0, | ||
| 4449 | 'calls' => [ | ||
| 4450 | 'varstring' | ||
| 4451 | ], | ||
| 4452 | 'opcount' => 0, | ||
| 4453 | 'prods' => [ | ||
| 4454 | bless( { | ||
| 4455 | 'number' => '0', | ||
| 4456 | 'strcount' => 0, | ||
| 4457 | 'dircount' => 1, | ||
| 4458 | 'uncommit' => undef, | ||
| 4459 | 'error' => undef, | ||
| 4460 | 'patcount' => 0, | ||
| 4461 | 'actcount' => 1, | ||
| 4462 | 'items' => [ | ||
| 4463 | bless( { | ||
| 4464 | 'hashname' => '__DIRECTIVE1__', | ||
| 4465 | 'name' => '<skip: \'\'>', | ||
| 4466 | 'lookahead' => 0, | ||
| 4467 | 'line' => 31, | ||
| 4468 | 'code' => 'my $oldskip = $skip; $skip= \'\'; $oldskip' | ||
| 4469 | }, 'Parse::RecDescent::Directive' ), | ||
| 4470 | bless( { | ||
| 4471 | 'subrule' => 'varstring', | ||
| 4472 | 'expected' => undef, | ||
| 4473 | 'min' => 1, | ||
| 4474 | 'argcode' => undef, | ||
| 4475 | 'max' => 100000000, | ||
| 4476 | 'matchrule' => 0, | ||
| 4477 | 'repspec' => 's', | ||
| 4478 | 'lookahead' => 0, | ||
| 4479 | 'line' => 31 | ||
| 4480 | }, 'Parse::RecDescent::Repetition' ), | ||
| 4481 | bless( { | ||
| 4482 | 'hashname' => '__ACTION1__', | ||
| 4483 | 'lookahead' => 0, | ||
| 4484 | 'line' => 32, | ||
| 4485 | 'code' => '{ $return = join (\' . \', @{$item[2]}) }' | ||
| 4486 | }, 'Parse::RecDescent::Action' ) | ||
| 4487 | ], | ||
| 4488 | 'line' => undef | ||
| 4489 | }, 'Parse::RecDescent::Production' ) | ||
| 4490 | ], | ||
| 4491 | 'name' => 'vartext', | ||
| 4492 | 'vars' => '', | ||
| 4493 | 'changed' => 0, | ||
| 4494 | 'line' => 30 | ||
| 4495 | }, 'Parse::RecDescent::Rule' ), | ||
| 4496 | 'xpathtext' => bless( { | ||
| 4497 | 'impcount' => 0, | ||
| 4498 | 'calls' => [ | ||
| 4499 | 'xpathstring' | ||
| 4500 | ], | ||
| 4501 | 'opcount' => 0, | ||
| 4502 | 'prods' => [ | ||
| 4503 | bless( { | ||
| 4504 | 'number' => '0', | ||
| 4505 | 'strcount' => 0, | ||
| 4506 | 'dircount' => 1, | ||
| 4507 | 'uncommit' => undef, | ||
| 4508 | 'error' => undef, | ||
| 4509 | 'patcount' => 0, | ||
| 4510 | 'actcount' => 1, | ||
| 4511 | 'items' => [ | ||
| 4512 | bless( { | ||
| 4513 | 'hashname' => '__DIRECTIVE1__', | ||
| 4514 | 'name' => '<skip: \'\'>', | ||
| 4515 | 'lookahead' => 0, | ||
| 4516 | 'line' => 44, | ||
| 4517 | 'code' => 'my $oldskip = $skip; $skip= \'\'; $oldskip' | ||
| 4518 | }, 'Parse::RecDescent::Directive' ), | ||
| 4519 | bless( { | ||
| 4520 | 'subrule' => 'xpathstring', | ||
| 4521 | 'expected' => undef, | ||
| 4522 | 'min' => 1, | ||
| 4523 | 'argcode' => undef, | ||
| 4524 | 'max' => 100000000, | ||
| 4525 | 'matchrule' => 0, | ||
| 4526 | 'repspec' => 's', | ||
| 4527 | 'lookahead' => 0, | ||
| 4528 | 'line' => 44 | ||
| 4529 | }, 'Parse::RecDescent::Repetition' ), | ||
| 4530 | bless( { | ||
| 4531 | 'hashname' => '__ACTION1__', | ||
| 4532 | 'lookahead' => 0, | ||
| 4533 | 'line' => 45, | ||
| 4534 | 'code' => '{ $return = "\'/\' . " . join (\' . \', @{$item[2]}) }' | ||
| 4535 | }, 'Parse::RecDescent::Action' ) | ||
| 4536 | ], | ||
| 4537 | 'line' => undef | ||
| 4538 | }, 'Parse::RecDescent::Production' ) | ||
| 4539 | ], | ||
| 4540 | 'name' => 'xpathtext', | ||
| 4541 | 'vars' => '', | ||
| 4542 | 'changed' => 0, | ||
| 4543 | 'line' => 44 | ||
| 4544 | }, 'Parse::RecDescent::Rule' ), | ||
| 4545 | 'param' => bless( { | ||
| 4546 | 'impcount' => 0, | ||
| 4547 | 'calls' => [ | ||
| 4548 | 'paramtext', | ||
| 4549 | 'paramstring' | ||
| 4550 | ], | ||
| 4551 | 'opcount' => 0, | ||
| 4552 | 'prods' => [ | ||
| 4553 | bless( { | ||
| 4554 | 'number' => '0', | ||
| 4555 | 'strcount' => 2, | ||
| 4556 | 'dircount' => 0, | ||
| 4557 | 'uncommit' => undef, | ||
| 4558 | 'error' => undef, | ||
| 4559 | 'patcount' => 0, | ||
| 4560 | 'actcount' => 1, | ||
| 4561 | 'items' => [ | ||
| 4562 | bless( { | ||
| 4563 | 'pattern' => '"', | ||
| 4564 | 'hashname' => '__STRING1__', | ||
| 4565 | 'description' => '\'"\'', | ||
| 4566 | 'lookahead' => 0, | ||
| 4567 | 'line' => 73 | ||
| 4568 | }, 'Parse::RecDescent::Literal' ), | ||
| 4569 | bless( { | ||
| 4570 | 'subrule' => 'paramtext', | ||
| 4571 | 'matchrule' => 0, | ||
| 4572 | 'implicit' => undef, | ||
| 4573 | 'argcode' => undef, | ||
| 4574 | 'lookahead' => 0, | ||
| 4575 | 'line' => 73 | ||
| 4576 | }, 'Parse::RecDescent::Subrule' ), | ||
| 4577 | bless( { | ||
| 4578 | 'pattern' => '"', | ||
| 4579 | 'hashname' => '__STRING2__', | ||
| 4580 | 'description' => '\'"\'', | ||
| 4581 | 'lookahead' => 0, | ||
| 4582 | 'line' => 73 | ||
| 4583 | }, 'Parse::RecDescent::Literal' ), | ||
| 4584 | bless( { | ||
| 4585 | 'hashname' => '__ACTION1__', | ||
| 4586 | 'lookahead' => 0, | ||
| 4587 | 'line' => 74, | ||
| 4588 | 'code' => '{ $return = $item[2] }' | ||
| 4589 | }, 'Parse::RecDescent::Action' ) | ||
| 4590 | ], | ||
| 4591 | 'line' => undef | ||
| 4592 | }, 'Parse::RecDescent::Production' ), | ||
| 4593 | bless( { | ||
| 4594 | 'number' => '1', | ||
| 4595 | 'strcount' => 0, | ||
| 4596 | 'dircount' => 0, | ||
| 4597 | 'uncommit' => undef, | ||
| 4598 | 'error' => undef, | ||
| 4599 | 'patcount' => 0, | ||
| 4600 | 'actcount' => 0, | ||
| 4601 | 'items' => [ | ||
| 4602 | bless( { | ||
| 4603 | 'subrule' => 'paramstring', | ||
| 4604 | 'matchrule' => 0, | ||
| 4605 | 'implicit' => undef, | ||
| 4606 | 'argcode' => undef, | ||
| 4607 | 'lookahead' => 0, | ||
| 4608 | 'line' => 75 | ||
| 4609 | }, 'Parse::RecDescent::Subrule' ) | ||
| 4610 | ], | ||
| 4611 | 'line' => 75 | ||
| 4612 | }, 'Parse::RecDescent::Production' ) | ||
| 4613 | ], | ||
| 4614 | 'name' => 'param', | ||
| 4615 | 'vars' => '', | ||
| 4616 | 'changed' => 0, | ||
| 4617 | 'line' => 73 | ||
| 4618 | }, 'Parse::RecDescent::Rule' ) | ||
| 4619 | } | ||
| 4620 | }, 'Parse::RecDescent' ); | ||
| 4621 | } |