XML/Template/Parser/Cond.pm untested

filter: Statementstmt 0.0% 0 / 1845 Branchbran 0.0% 0 / 1044 Conditioncond 0.0% 0 / 335 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 31 Podpod 0.0% 0 / 13 totaltotal 0.0% 0 / 3268 SCAR 125.2
CC
523
Cov
0%
Parse::RecDescent::namespace000002::varstring
10302.0
Parse::RecDescent::namespace000002::xpathstring
4290.0
Parse::RecDescent::namespace000002::paramstring
4290.0
CRAP 274052.0
1 package XML::Template::Parser::Cond;
2 use Parse::RecDescent;
3  
4 { my $ERRORS;
5  
6  
7 package Parse::RecDescent::namespace000002;
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::namespace000002::AUTOLOAD = sub
35 {
36 no strict 'refs';
37 $AUTOLOAD =~ s/^Parse::RecDescent::namespace000002/Parse::RecDescent/;
38 goto &{$AUTOLOAD};
39 }
40 }
41  
42 push @Parse::RecDescent::namespace000002::ISA, 'Parse::RecDescent';
43 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
44 sub Parse::RecDescent::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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]) . " . '.'" };
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::namespace000002::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::namespace000002::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]) };
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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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::namespace000002::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: [/([\\\\][\\$\})"]|[^\\$\})"])+/]},
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: [/([\\\\][\\$\})"]|[^\\$\})"])+/]}, Parse::RecDescent::_tracefirst($text),
1994 q{paramstring})
1995 if defined $::RD_TRACE;
1996 $lastsep = "";
1997 $expectation->is(q{})->at($text);
1998
1999  
2000 unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:([\\][\$})"]|[^\$})"])+)//)
2001 {
2002
2003 $expectation->failed();
2004 Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
2005 Parse::RecDescent::_tracefirst($text))
2006 if defined $::RD_TRACE;
2007  
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{__PATTERN1__}=$&;
2015
2016  
2017 Parse::RecDescent::_trace(q{Trying action},
2018 Parse::RecDescent::_tracefirst($text),
2019 q{paramstring})
2020 if defined $::RD_TRACE;
2021
2022  
2023 $_tok = ($_noactions) ? 0 : do { $item[1] =~ s/'/\\'/g; $return = "'$item[1]'" };
2024 unless (defined $_tok)
2025 {
2026 Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
2027 if defined $::RD_TRACE;
2028 last;
2029 }
2030 Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
2031 . $_tok . q{])}, $text)
2032 if defined $::RD_TRACE;
2033 push @item, $_tok;
2034 $item{__ACTION1__}=$_tok;
2035
2036  
2037  
2038 Parse::RecDescent::_trace(q{>>Matched production: [/([\\\\][\\$\})"]|[^\\$\})"])+/]<<},
2039 Parse::RecDescent::_tracefirst($text),
2040 q{paramstring})
2041 if defined $::RD_TRACE;
2042 $_matched = 1;
2043 last;
2044 }
2045  
2046  
2047 unless ( $_matched || defined($return) || defined($score) )
2048 {
2049
2050  
2051 $_[1] = $text; # NOT SURE THIS IS NEEDED
2052 Parse::RecDescent::_trace(q{<<Didn't match rule>>},
2053 Parse::RecDescent::_tracefirst($_[1]),
2054 q{paramstring})
2055 if defined $::RD_TRACE;
2056 return undef;
2057 }
2058 if (!defined($return) && defined($score))
2059 {
2060 Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
2061 q{paramstring})
2062 if defined $::RD_TRACE;
2063 $return = $score_return;
2064 }
2065 splice @{$thisparser->{errors}}, $err_at;
2066 $return = $item[$#item] unless defined $return;
2067 if (defined $::RD_TRACE)
2068 {
2069 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2070 $return . q{])}, "",
2071 q{paramstring});
2072 Parse::RecDescent::_trace(q{(consumed: [} .
2073 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2074 Parse::RecDescent::_tracefirst($text),
2075 , q{paramstring})
2076 }
2077 $_[1] = $text;
2078 return $return;
2079 }
2080  
2081 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
2082 sub Parse::RecDescent::namespace000002::string
2083 {
2084 my $thisparser = $_[0];
2085 $ERRORS = 0;
2086 my $thisrule = $thisparser->{"rules"}{"string"};
2087
2088 Parse::RecDescent::_trace(q{Trying rule: [string]},
2089 Parse::RecDescent::_tracefirst($_[1]),
2090 q{string})
2091 if defined $::RD_TRACE;
2092  
2093
2094 my $err_at = @{$thisparser->{errors}};
2095  
2096 my $score;
2097 my $score_return;
2098 my $_tok;
2099 my $return = undef;
2100 my $_matched=0;
2101 my $commit=0;
2102 my @item = ();
2103 my %item = ();
2104 my $repeating = defined($_[2]) && $_[2];
2105 my $_noactions = defined($_[3]) && $_[3];
2106 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
2107 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
2108 my $text;
2109 my $lastsep="";
2110 my $expectation = new Parse::RecDescent::Expectation($thisrule->expected());
2111 $expectation->at($_[1]);
2112
2113 my $thisline;
2114 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2115  
2116
2117  
2118 while (!$_matched && !$commit)
2119 {
2120
2121 Parse::RecDescent::_trace(q{Trying production: ['$\{' vartext '\}\\.']},
2122 Parse::RecDescent::_tracefirst($_[1]),
2123 q{string})
2124 if defined $::RD_TRACE;
2125 my $thisprod = $thisrule->{"prods"}[0];
2126 $text = $_[1];
2127 my $_savetext;
2128 @item = (q{string});
2129 %item = (__RULE__ => q{string});
2130 my $repcount = 0;
2131  
2132  
2133 Parse::RecDescent::_trace(q{Trying terminal: ['$\{']},
2134 Parse::RecDescent::_tracefirst($text),
2135 q{string})
2136 if defined $::RD_TRACE;
2137 $lastsep = "";
2138 $expectation->is(q{})->at($text);
2139
2140  
2141 unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\$\{//)
2142 {
2143
2144 $expectation->failed();
2145 Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
2146 Parse::RecDescent::_tracefirst($text))
2147 if defined $::RD_TRACE;
2148 last;
2149 }
2150 Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
2151 . $& . q{])},
2152 Parse::RecDescent::_tracefirst($text))
2153 if defined $::RD_TRACE;
2154 push @item, $item{__STRING1__}=$&;
2155
2156  
2157 Parse::RecDescent::_trace(q{Trying subrule: [vartext]},
2158 Parse::RecDescent::_tracefirst($text),
2159 q{string})
2160 if defined $::RD_TRACE;
2161 if (1) { no strict qw{refs};
2162 $expectation->is(q{vartext})->at($text);
2163 unless (defined ($_tok = Parse::RecDescent::namespace000002::vartext($thisparser,$text,$repeating,$_noactions,undef)))
2164 {
2165
2166 Parse::RecDescent::_trace(q{<<Didn't match subrule: [vartext]>>},
2167 Parse::RecDescent::_tracefirst($text),
2168 q{string})
2169 if defined $::RD_TRACE;
2170 $expectation->failed();
2171 last;
2172 }
2173 Parse::RecDescent::_trace(q{>>Matched subrule: [vartext]<< (return value: [}
2174 . $_tok . q{]},
2175
2176 Parse::RecDescent::_tracefirst($text),
2177 q{string})
2178 if defined $::RD_TRACE;
2179 $item{q{vartext}} = $_tok;
2180 push @item, $_tok;
2181
2182 }
2183  
2184 Parse::RecDescent::_trace(q{Trying terminal: ['\}\\.']},
2185 Parse::RecDescent::_tracefirst($text),
2186 q{string})
2187 if defined $::RD_TRACE;
2188 $lastsep = "";
2189 $expectation->is(q{'\}\\.'})->at($text);
2190
2191  
2192 unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\}\\\.//)
2193 {
2194
2195 $expectation->failed();
2196 Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
2197 Parse::RecDescent::_tracefirst($text))
2198 if defined $::RD_TRACE;
2199 last;
2200 }
2201 Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
2202 . $& . q{])},
2203 Parse::RecDescent::_tracefirst($text))
2204 if defined $::RD_TRACE;
2205 push @item, $item{__STRING2__}=$&;
2206
2207  
2208 Parse::RecDescent::_trace(q{Trying action},
2209 Parse::RecDescent::_tracefirst($text),
2210 q{string})
2211 if defined $::RD_TRACE;
2212
2213  
2214 $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2]) . " . '.'" };
2215 unless (defined $_tok)
2216 {
2217 Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
2218 if defined $::RD_TRACE;
2219 last;
2220 }
2221 Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
2222 . $_tok . q{])}, $text)
2223 if defined $::RD_TRACE;
2224 push @item, $_tok;
2225 $item{__ACTION1__}=$_tok;
2226
2227  
2228  
2229 Parse::RecDescent::_trace(q{>>Matched production: ['$\{' vartext '\}\\.']<<},
2230 Parse::RecDescent::_tracefirst($text),
2231 q{string})
2232 if defined $::RD_TRACE;
2233 $_matched = 1;
2234 last;
2235 }
2236  
2237  
2238 while (!$_matched && !$commit)
2239 {
2240
2241 Parse::RecDescent::_trace(q{Trying production: ['$\{' vartext '\}' function]},
2242 Parse::RecDescent::_tracefirst($_[1]),
2243 q{string})
2244 if defined $::RD_TRACE;
2245 my $thisprod = $thisrule->{"prods"}[1];
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::namespace000002::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 repeated subrule: [function]},
2329 Parse::RecDescent::_tracefirst($text),
2330 q{string})
2331 if defined $::RD_TRACE;
2332 $expectation->is(q{function})->at($text);
2333
2334 unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000002::function, 0, 100000000, $_noactions,$expectation,undef)))
2335 {
2336 Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [function]>>},
2337 Parse::RecDescent::_tracefirst($text),
2338 q{string})
2339 if defined $::RD_TRACE;
2340 last;
2341 }
2342 Parse::RecDescent::_trace(q{>>Matched repeated subrule: [function]<< (}
2343 . @$_tok . q{ times)},
2344
2345 Parse::RecDescent::_tracefirst($text),
2346 q{string})
2347 if defined $::RD_TRACE;
2348 $item{q{function}} = $_tok;
2349 push @item, $_tok;
2350
2351  
2352  
2353 Parse::RecDescent::_trace(q{Trying action},
2354 Parse::RecDescent::_tracefirst($text),
2355 q{string})
2356 if defined $::RD_TRACE;
2357
2358  
2359 $_tok = ($_noactions) ? 0 : do { $return = generate_varget ($item[2], $item[4]) };
2360 unless (defined $_tok)
2361 {
2362 Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
2363 if defined $::RD_TRACE;
2364 last;
2365 }
2366 Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
2367 . $_tok . q{])}, $text)
2368 if defined $::RD_TRACE;
2369 push @item, $_tok;
2370 $item{__ACTION1__}=$_tok;
2371
2372  
2373  
2374 Parse::RecDescent::_trace(q{>>Matched production: ['$\{' vartext '\}' function]<<},
2375 Parse::RecDescent::_tracefirst($text),
2376 q{string})
2377 if defined $::RD_TRACE;
2378 $_matched = 1;
2379 last;
2380 }
2381  
2382  
2383 while (!$_matched && !$commit)
2384 {
2385
2386 Parse::RecDescent::_trace(q{Trying production: [/([\\\\]\\$|[^\\$])+/]},
2387 Parse::RecDescent::_tracefirst($_[1]),
2388 q{string})
2389 if defined $::RD_TRACE;
2390 my $thisprod = $thisrule->{"prods"}[2];
2391 $text = $_[1];
2392 my $_savetext;
2393 @item = (q{string});
2394 %item = (__RULE__ => q{string});
2395 my $repcount = 0;
2396  
2397  
2398 Parse::RecDescent::_trace(q{Trying terminal: [/([\\\\]\\$|[^\\$])+/]}, Parse::RecDescent::_tracefirst($text),
2399 q{string})
2400 if defined $::RD_TRACE;
2401 $lastsep = "";
2402 $expectation->is(q{})->at($text);
2403
2404  
2405 unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A(?:([\\]\$|[^\$])+)//)
2406 {
2407
2408 $expectation->failed();
2409 Parse::RecDescent::_trace(q{<<Didn't match terminal>>},
2410 Parse::RecDescent::_tracefirst($text))
2411 if defined $::RD_TRACE;
2412  
2413 last;
2414 }
2415 Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
2416 . $& . q{])},
2417 Parse::RecDescent::_tracefirst($text))
2418 if defined $::RD_TRACE;
2419 push @item, $item{__PATTERN1__}=$&;
2420
2421  
2422  
2423 Parse::RecDescent::_trace(q{>>Matched production: [/([\\\\]\\$|[^\\$])+/]<<},
2424 Parse::RecDescent::_tracefirst($text),
2425 q{string})
2426 if defined $::RD_TRACE;
2427 $_matched = 1;
2428 last;
2429 }
2430  
2431  
2432 unless ( $_matched || defined($return) || defined($score) )
2433 {
2434
2435  
2436 $_[1] = $text; # NOT SURE THIS IS NEEDED
2437 Parse::RecDescent::_trace(q{<<Didn't match rule>>},
2438 Parse::RecDescent::_tracefirst($_[1]),
2439 q{string})
2440 if defined $::RD_TRACE;
2441 return undef;
2442 }
2443 if (!defined($return) && defined($score))
2444 {
2445 Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
2446 q{string})
2447 if defined $::RD_TRACE;
2448 $return = $score_return;
2449 }
2450 splice @{$thisparser->{errors}}, $err_at;
2451 $return = $item[$#item] unless defined $return;
2452 if (defined $::RD_TRACE)
2453 {
2454 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2455 $return . q{])}, "",
2456 q{string});
2457 Parse::RecDescent::_trace(q{(consumed: [} .
2458 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2459 Parse::RecDescent::_tracefirst($text),
2460 , q{string})
2461 }
2462 $_[1] = $text;
2463 return $return;
2464 }
2465  
2466 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
2467 sub Parse::RecDescent::namespace000002::paramtext
2468 {
2469 my $thisparser = $_[0];
2470 $ERRORS = 0;
2471 my $thisrule = $thisparser->{"rules"}{"paramtext"};
2472
2473 Parse::RecDescent::_trace(q{Trying rule: [paramtext]},
2474 Parse::RecDescent::_tracefirst($_[1]),
2475 q{paramtext})
2476 if defined $::RD_TRACE;
2477  
2478
2479 my $err_at = @{$thisparser->{errors}};
2480  
2481 my $score;
2482 my $score_return;
2483 my $_tok;
2484 my $return = undef;
2485 my $_matched=0;
2486 my $commit=0;
2487 my @item = ();
2488 my %item = ();
2489 my $repeating = defined($_[2]) && $_[2];
2490 my $_noactions = defined($_[3]) && $_[3];
2491 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
2492 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
2493 my $text;
2494 my $lastsep="";
2495 my $expectation = new Parse::RecDescent::Expectation($thisrule->expected());
2496 $expectation->at($_[1]);
2497
2498 my $thisline;
2499 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2500  
2501
2502  
2503 while (!$_matched && !$commit)
2504 {
2505 local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip;
2506 Parse::RecDescent::_trace(q{Trying production: [<skip: ''> paramstring]},
2507 Parse::RecDescent::_tracefirst($_[1]),
2508 q{paramtext})
2509 if defined $::RD_TRACE;
2510 my $thisprod = $thisrule->{"prods"}[0];
2511 $text = $_[1];
2512 my $_savetext;
2513 @item = (q{paramtext});
2514 %item = (__RULE__ => q{paramtext});
2515 my $repcount = 0;
2516  
2517  
2518
2519  
2520 Parse::RecDescent::_trace(q{Trying directive: [<skip: ''>]},
2521 Parse::RecDescent::_tracefirst($text),
2522 q{paramtext})
2523 if defined $::RD_TRACE;
2524 $_tok = do { my $oldskip = $skip; $skip= ''; $oldskip };
2525 if (defined($_tok))
2526 {
2527 Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
2528 . $_tok . q{])},
2529 Parse::RecDescent::_tracefirst($text))
2530 if defined $::RD_TRACE;
2531 }
2532 else
2533 {
2534 Parse::RecDescent::_trace(q{<<Didn't match directive>>},
2535 Parse::RecDescent::_tracefirst($text))
2536 if defined $::RD_TRACE;
2537 }
2538
2539 last unless defined $_tok;
2540 push @item, $item{__DIRECTIVE1__}=$_tok;
2541
2542  
2543 Parse::RecDescent::_trace(q{Trying repeated subrule: [paramstring]},
2544 Parse::RecDescent::_tracefirst($text),
2545 q{paramtext})
2546 if defined $::RD_TRACE;
2547 $expectation->is(q{paramstring})->at($text);
2548
2549 unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000002::paramstring, 1, 100000000, $_noactions,$expectation,undef)))
2550 {
2551 Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [paramstring]>>},
2552 Parse::RecDescent::_tracefirst($text),
2553 q{paramtext})
2554 if defined $::RD_TRACE;
2555 last;
2556 }
2557 Parse::RecDescent::_trace(q{>>Matched repeated subrule: [paramstring]<< (}
2558 . @$_tok . q{ times)},
2559
2560 Parse::RecDescent::_tracefirst($text),
2561 q{paramtext})
2562 if defined $::RD_TRACE;
2563 $item{q{paramstring}} = $_tok;
2564 push @item, $_tok;
2565
2566  
2567  
2568 Parse::RecDescent::_trace(q{Trying action},
2569 Parse::RecDescent::_tracefirst($text),
2570 q{paramtext})
2571 if defined $::RD_TRACE;
2572
2573  
2574 $_tok = ($_noactions) ? 0 : do { $return = join (' . ', @{$item[2]}) };
2575 unless (defined $_tok)
2576 {
2577 Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
2578 if defined $::RD_TRACE;
2579 last;
2580 }
2581 Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
2582 . $_tok . q{])}, $text)
2583 if defined $::RD_TRACE;
2584 push @item, $_tok;
2585 $item{__ACTION1__}=$_tok;
2586
2587  
2588  
2589 Parse::RecDescent::_trace(q{>>Matched production: [<skip: ''> paramstring]<<},
2590 Parse::RecDescent::_tracefirst($text),
2591 q{paramtext})
2592 if defined $::RD_TRACE;
2593 $_matched = 1;
2594 last;
2595 }
2596  
2597  
2598 unless ( $_matched || defined($return) || defined($score) )
2599 {
2600
2601  
2602 $_[1] = $text; # NOT SURE THIS IS NEEDED
2603 Parse::RecDescent::_trace(q{<<Didn't match rule>>},
2604 Parse::RecDescent::_tracefirst($_[1]),
2605 q{paramtext})
2606 if defined $::RD_TRACE;
2607 return undef;
2608 }
2609 if (!defined($return) && defined($score))
2610 {
2611 Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
2612 q{paramtext})
2613 if defined $::RD_TRACE;
2614 $return = $score_return;
2615 }
2616 splice @{$thisparser->{errors}}, $err_at;
2617 $return = $item[$#item] unless defined $return;
2618 if (defined $::RD_TRACE)
2619 {
2620 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2621 $return . q{])}, "",
2622 q{paramtext});
2623 Parse::RecDescent::_trace(q{(consumed: [} .
2624 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2625 Parse::RecDescent::_tracefirst($text),
2626 , q{paramtext})
2627 }
2628 $_[1] = $text;
2629 return $return;
2630 }
2631  
2632 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
2633 sub Parse::RecDescent::namespace000002::text
2634 {
2635 my $thisparser = $_[0];
2636 $ERRORS = 0;
2637 my $thisrule = $thisparser->{"rules"}{"text"};
2638
2639 Parse::RecDescent::_trace(q{Trying rule: [text]},
2640 Parse::RecDescent::_tracefirst($_[1]),
2641 q{text})
2642 if defined $::RD_TRACE;
2643  
2644
2645 my $err_at = @{$thisparser->{errors}};
2646  
2647 my $score;
2648 my $score_return;
2649 my $_tok;
2650 my $return = undef;
2651 my $_matched=0;
2652 my $commit=0;
2653 my @item = ();
2654 my %item = ();
2655 my $repeating = defined($_[2]) && $_[2];
2656 my $_noactions = defined($_[3]) && $_[3];
2657 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
2658 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
2659 my $text;
2660 my $lastsep="";
2661 my $expectation = new Parse::RecDescent::Expectation($thisrule->expected());
2662 $expectation->at($_[1]);
2663
2664 my $thisline;
2665 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2666  
2667
2668  
2669 while (!$_matched && !$commit)
2670 {
2671 local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip;
2672 Parse::RecDescent::_trace(q{Trying production: [<skip: ''> string]},
2673 Parse::RecDescent::_tracefirst($_[1]),
2674 q{text})
2675 if defined $::RD_TRACE;
2676 my $thisprod = $thisrule->{"prods"}[0];
2677 $text = $_[1];
2678 my $_savetext;
2679 @item = (q{text});
2680 %item = (__RULE__ => q{text});
2681 my $repcount = 0;
2682  
2683  
2684
2685  
2686 Parse::RecDescent::_trace(q{Trying directive: [<skip: ''>]},
2687 Parse::RecDescent::_tracefirst($text),
2688 q{text})
2689 if defined $::RD_TRACE;
2690 $_tok = do { my $oldskip = $skip; $skip= ''; $oldskip };
2691 if (defined($_tok))
2692 {
2693 Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
2694 . $_tok . q{])},
2695 Parse::RecDescent::_tracefirst($text))
2696 if defined $::RD_TRACE;
2697 }
2698 else
2699 {
2700 Parse::RecDescent::_trace(q{<<Didn't match directive>>},
2701 Parse::RecDescent::_tracefirst($text))
2702 if defined $::RD_TRACE;
2703 }
2704
2705 last unless defined $_tok;
2706 push @item, $item{__DIRECTIVE1__}=$_tok;
2707
2708  
2709 Parse::RecDescent::_trace(q{Trying repeated subrule: [string]},
2710 Parse::RecDescent::_tracefirst($text),
2711 q{text})
2712 if defined $::RD_TRACE;
2713 $expectation->is(q{string})->at($text);
2714
2715 unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000002::string, 1, 100000000, $_noactions,$expectation,undef)))
2716 {
2717 Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [string]>>},
2718 Parse::RecDescent::_tracefirst($text),
2719 q{text})
2720 if defined $::RD_TRACE;
2721 last;
2722 }
2723 Parse::RecDescent::_trace(q{>>Matched repeated subrule: [string]<< (}
2724 . @$_tok . q{ times)},
2725
2726 Parse::RecDescent::_tracefirst($text),
2727 q{text})
2728 if defined $::RD_TRACE;
2729 $item{q{string}} = $_tok;
2730 push @item, $_tok;
2731
2732  
2733  
2734 Parse::RecDescent::_trace(q{Trying action},
2735 Parse::RecDescent::_tracefirst($text),
2736 q{text})
2737 if defined $::RD_TRACE;
2738
2739  
2740 $_tok = ($_noactions) ? 0 : do { $return = join ('', @{$item[2]}) };
2741 unless (defined $_tok)
2742 {
2743 Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
2744 if defined $::RD_TRACE;
2745 last;
2746 }
2747 Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
2748 . $_tok . q{])}, $text)
2749 if defined $::RD_TRACE;
2750 push @item, $_tok;
2751 $item{__ACTION1__}=$_tok;
2752
2753  
2754  
2755 Parse::RecDescent::_trace(q{>>Matched production: [<skip: ''> string]<<},
2756 Parse::RecDescent::_tracefirst($text),
2757 q{text})
2758 if defined $::RD_TRACE;
2759 $_matched = 1;
2760 last;
2761 }
2762  
2763  
2764 unless ( $_matched || defined($return) || defined($score) )
2765 {
2766
2767  
2768 $_[1] = $text; # NOT SURE THIS IS NEEDED
2769 Parse::RecDescent::_trace(q{<<Didn't match rule>>},
2770 Parse::RecDescent::_tracefirst($_[1]),
2771 q{text})
2772 if defined $::RD_TRACE;
2773 return undef;
2774 }
2775 if (!defined($return) && defined($score))
2776 {
2777 Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
2778 q{text})
2779 if defined $::RD_TRACE;
2780 $return = $score_return;
2781 }
2782 splice @{$thisparser->{errors}}, $err_at;
2783 $return = $item[$#item] unless defined $return;
2784 if (defined $::RD_TRACE)
2785 {
2786 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2787 $return . q{])}, "",
2788 q{text});
2789 Parse::RecDescent::_trace(q{(consumed: [} .
2790 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2791 Parse::RecDescent::_tracefirst($text),
2792 , q{text})
2793 }
2794 $_[1] = $text;
2795 return $return;
2796 }
2797  
2798 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
2799 sub Parse::RecDescent::namespace000002::vartext
2800 {
2801 my $thisparser = $_[0];
2802 $ERRORS = 0;
2803 my $thisrule = $thisparser->{"rules"}{"vartext"};
2804
2805 Parse::RecDescent::_trace(q{Trying rule: [vartext]},
2806 Parse::RecDescent::_tracefirst($_[1]),
2807 q{vartext})
2808 if defined $::RD_TRACE;
2809  
2810
2811 my $err_at = @{$thisparser->{errors}};
2812  
2813 my $score;
2814 my $score_return;
2815 my $_tok;
2816 my $return = undef;
2817 my $_matched=0;
2818 my $commit=0;
2819 my @item = ();
2820 my %item = ();
2821 my $repeating = defined($_[2]) && $_[2];
2822 my $_noactions = defined($_[3]) && $_[3];
2823 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
2824 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
2825 my $text;
2826 my $lastsep="";
2827 my $expectation = new Parse::RecDescent::Expectation($thisrule->expected());
2828 $expectation->at($_[1]);
2829
2830 my $thisline;
2831 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2832  
2833
2834  
2835 while (!$_matched && !$commit)
2836 {
2837 local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip;
2838 Parse::RecDescent::_trace(q{Trying production: [<skip: ''> varstring]},
2839 Parse::RecDescent::_tracefirst($_[1]),
2840 q{vartext})
2841 if defined $::RD_TRACE;
2842 my $thisprod = $thisrule->{"prods"}[0];
2843 $text = $_[1];
2844 my $_savetext;
2845 @item = (q{vartext});
2846 %item = (__RULE__ => q{vartext});
2847 my $repcount = 0;
2848  
2849  
2850
2851  
2852 Parse::RecDescent::_trace(q{Trying directive: [<skip: ''>]},
2853 Parse::RecDescent::_tracefirst($text),
2854 q{vartext})
2855 if defined $::RD_TRACE;
2856 $_tok = do { my $oldskip = $skip; $skip= ''; $oldskip };
2857 if (defined($_tok))
2858 {
2859 Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
2860 . $_tok . q{])},
2861 Parse::RecDescent::_tracefirst($text))
2862 if defined $::RD_TRACE;
2863 }
2864 else
2865 {
2866 Parse::RecDescent::_trace(q{<<Didn't match directive>>},
2867 Parse::RecDescent::_tracefirst($text))
2868 if defined $::RD_TRACE;
2869 }
2870
2871 last unless defined $_tok;
2872 push @item, $item{__DIRECTIVE1__}=$_tok;
2873
2874  
2875 Parse::RecDescent::_trace(q{Trying repeated subrule: [varstring]},
2876 Parse::RecDescent::_tracefirst($text),
2877 q{vartext})
2878 if defined $::RD_TRACE;
2879 $expectation->is(q{varstring})->at($text);
2880
2881 unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000002::varstring, 1, 100000000, $_noactions,$expectation,undef)))
2882 {
2883 Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [varstring]>>},
2884 Parse::RecDescent::_tracefirst($text),
2885 q{vartext})
2886 if defined $::RD_TRACE;
2887 last;
2888 }
2889 Parse::RecDescent::_trace(q{>>Matched repeated subrule: [varstring]<< (}
2890 . @$_tok . q{ times)},
2891
2892 Parse::RecDescent::_tracefirst($text),
2893 q{vartext})
2894 if defined $::RD_TRACE;
2895 $item{q{varstring}} = $_tok;
2896 push @item, $_tok;
2897
2898  
2899  
2900 Parse::RecDescent::_trace(q{Trying action},
2901 Parse::RecDescent::_tracefirst($text),
2902 q{vartext})
2903 if defined $::RD_TRACE;
2904
2905  
2906 $_tok = ($_noactions) ? 0 : do { $return = join (' . ', @{$item[2]}) };
2907 unless (defined $_tok)
2908 {
2909 Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
2910 if defined $::RD_TRACE;
2911 last;
2912 }
2913 Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
2914 . $_tok . q{])}, $text)
2915 if defined $::RD_TRACE;
2916 push @item, $_tok;
2917 $item{__ACTION1__}=$_tok;
2918
2919  
2920  
2921 Parse::RecDescent::_trace(q{>>Matched production: [<skip: ''> varstring]<<},
2922 Parse::RecDescent::_tracefirst($text),
2923 q{vartext})
2924 if defined $::RD_TRACE;
2925 $_matched = 1;
2926 last;
2927 }
2928  
2929  
2930 unless ( $_matched || defined($return) || defined($score) )
2931 {
2932
2933  
2934 $_[1] = $text; # NOT SURE THIS IS NEEDED
2935 Parse::RecDescent::_trace(q{<<Didn't match rule>>},
2936 Parse::RecDescent::_tracefirst($_[1]),
2937 q{vartext})
2938 if defined $::RD_TRACE;
2939 return undef;
2940 }
2941 if (!defined($return) && defined($score))
2942 {
2943 Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
2944 q{vartext})
2945 if defined $::RD_TRACE;
2946 $return = $score_return;
2947 }
2948 splice @{$thisparser->{errors}}, $err_at;
2949 $return = $item[$#item] unless defined $return;
2950 if (defined $::RD_TRACE)
2951 {
2952 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
2953 $return . q{])}, "",
2954 q{vartext});
2955 Parse::RecDescent::_trace(q{(consumed: [} .
2956 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
2957 Parse::RecDescent::_tracefirst($text),
2958 , q{vartext})
2959 }
2960 $_[1] = $text;
2961 return $return;
2962 }
2963  
2964 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
2965 sub Parse::RecDescent::namespace000002::xpathtext
2966 {
2967 my $thisparser = $_[0];
2968 $ERRORS = 0;
2969 my $thisrule = $thisparser->{"rules"}{"xpathtext"};
2970
2971 Parse::RecDescent::_trace(q{Trying rule: [xpathtext]},
2972 Parse::RecDescent::_tracefirst($_[1]),
2973 q{xpathtext})
2974 if defined $::RD_TRACE;
2975  
2976
2977 my $err_at = @{$thisparser->{errors}};
2978  
2979 my $score;
2980 my $score_return;
2981 my $_tok;
2982 my $return = undef;
2983 my $_matched=0;
2984 my $commit=0;
2985 my @item = ();
2986 my %item = ();
2987 my $repeating = defined($_[2]) && $_[2];
2988 my $_noactions = defined($_[3]) && $_[3];
2989 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
2990 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
2991 my $text;
2992 my $lastsep="";
2993 my $expectation = new Parse::RecDescent::Expectation($thisrule->expected());
2994 $expectation->at($_[1]);
2995
2996 my $thisline;
2997 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
2998  
2999
3000  
3001 while (!$_matched && !$commit)
3002 {
3003 local $skip = defined($skip) ? $skip : $Parse::RecDescent::skip;
3004 Parse::RecDescent::_trace(q{Trying production: [<skip: ''> xpathstring]},
3005 Parse::RecDescent::_tracefirst($_[1]),
3006 q{xpathtext})
3007 if defined $::RD_TRACE;
3008 my $thisprod = $thisrule->{"prods"}[0];
3009 $text = $_[1];
3010 my $_savetext;
3011 @item = (q{xpathtext});
3012 %item = (__RULE__ => q{xpathtext});
3013 my $repcount = 0;
3014  
3015  
3016
3017  
3018 Parse::RecDescent::_trace(q{Trying directive: [<skip: ''>]},
3019 Parse::RecDescent::_tracefirst($text),
3020 q{xpathtext})
3021 if defined $::RD_TRACE;
3022 $_tok = do { my $oldskip = $skip; $skip= ''; $oldskip };
3023 if (defined($_tok))
3024 {
3025 Parse::RecDescent::_trace(q{>>Matched directive<< (return value: [}
3026 . $_tok . q{])},
3027 Parse::RecDescent::_tracefirst($text))
3028 if defined $::RD_TRACE;
3029 }
3030 else
3031 {
3032 Parse::RecDescent::_trace(q{<<Didn't match directive>>},
3033 Parse::RecDescent::_tracefirst($text))
3034 if defined $::RD_TRACE;
3035 }
3036
3037 last unless defined $_tok;
3038 push @item, $item{__DIRECTIVE1__}=$_tok;
3039
3040  
3041 Parse::RecDescent::_trace(q{Trying repeated subrule: [xpathstring]},
3042 Parse::RecDescent::_tracefirst($text),
3043 q{xpathtext})
3044 if defined $::RD_TRACE;
3045 $expectation->is(q{xpathstring})->at($text);
3046
3047 unless (defined ($_tok = $thisparser->_parserepeat($text, \&Parse::RecDescent::namespace000002::xpathstring, 1, 100000000, $_noactions,$expectation,undef)))
3048 {
3049 Parse::RecDescent::_trace(q{<<Didn't match repeated subrule: [xpathstring]>>},
3050 Parse::RecDescent::_tracefirst($text),
3051 q{xpathtext})
3052 if defined $::RD_TRACE;
3053 last;
3054 }
3055 Parse::RecDescent::_trace(q{>>Matched repeated subrule: [xpathstring]<< (}
3056 . @$_tok . q{ times)},
3057
3058 Parse::RecDescent::_tracefirst($text),
3059 q{xpathtext})
3060 if defined $::RD_TRACE;
3061 $item{q{xpathstring}} = $_tok;
3062 push @item, $_tok;
3063
3064  
3065  
3066 Parse::RecDescent::_trace(q{Trying action},
3067 Parse::RecDescent::_tracefirst($text),
3068 q{xpathtext})
3069 if defined $::RD_TRACE;
3070
3071  
3072 $_tok = ($_noactions) ? 0 : do { $return = "'/' . " . join (' . ', @{$item[2]}) };
3073 unless (defined $_tok)
3074 {
3075 Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
3076 if defined $::RD_TRACE;
3077 last;
3078 }
3079 Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
3080 . $_tok . q{])}, $text)
3081 if defined $::RD_TRACE;
3082 push @item, $_tok;
3083 $item{__ACTION1__}=$_tok;
3084
3085  
3086  
3087 Parse::RecDescent::_trace(q{>>Matched production: [<skip: ''> xpathstring]<<},
3088 Parse::RecDescent::_tracefirst($text),
3089 q{xpathtext})
3090 if defined $::RD_TRACE;
3091 $_matched = 1;
3092 last;
3093 }
3094  
3095  
3096 unless ( $_matched || defined($return) || defined($score) )
3097 {
3098
3099  
3100 $_[1] = $text; # NOT SURE THIS IS NEEDED
3101 Parse::RecDescent::_trace(q{<<Didn't match rule>>},
3102 Parse::RecDescent::_tracefirst($_[1]),
3103 q{xpathtext})
3104 if defined $::RD_TRACE;
3105 return undef;
3106 }
3107 if (!defined($return) && defined($score))
3108 {
3109 Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
3110 q{xpathtext})
3111 if defined $::RD_TRACE;
3112 $return = $score_return;
3113 }
3114 splice @{$thisparser->{errors}}, $err_at;
3115 $return = $item[$#item] unless defined $return;
3116 if (defined $::RD_TRACE)
3117 {
3118 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3119 $return . q{])}, "",
3120 q{xpathtext});
3121 Parse::RecDescent::_trace(q{(consumed: [} .
3122 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3123 Parse::RecDescent::_tracefirst($text),
3124 , q{xpathtext})
3125 }
3126 $_[1] = $text;
3127 return $return;
3128 }
3129  
3130 # ARGS ARE: ($parser, $text; $repeating, $_noactions, \@args)
3131 sub Parse::RecDescent::namespace000002::param
3132 {
3133 my $thisparser = $_[0];
3134 $ERRORS = 0;
3135 my $thisrule = $thisparser->{"rules"}{"param"};
3136
3137 Parse::RecDescent::_trace(q{Trying rule: [param]},
3138 Parse::RecDescent::_tracefirst($_[1]),
3139 q{param})
3140 if defined $::RD_TRACE;
3141  
3142
3143 my $err_at = @{$thisparser->{errors}};
3144  
3145 my $score;
3146 my $score_return;
3147 my $_tok;
3148 my $return = undef;
3149 my $_matched=0;
3150 my $commit=0;
3151 my @item = ();
3152 my %item = ();
3153 my $repeating = defined($_[2]) && $_[2];
3154 my $_noactions = defined($_[3]) && $_[3];
3155 my @arg = defined $_[4] ? @{ &{$_[4]} } : ();
3156 my %arg = ($#arg & 01) ? @arg : (@arg, undef);
3157 my $text;
3158 my $lastsep="";
3159 my $expectation = new Parse::RecDescent::Expectation($thisrule->expected());
3160 $expectation->at($_[1]);
3161
3162 my $thisline;
3163 tie $thisline, q{Parse::RecDescent::LineCounter}, \$text, $thisparser;
3164  
3165
3166  
3167 while (!$_matched && !$commit)
3168 {
3169
3170 Parse::RecDescent::_trace(q{Trying production: ['"' paramtext '"']},
3171 Parse::RecDescent::_tracefirst($_[1]),
3172 q{param})
3173 if defined $::RD_TRACE;
3174 my $thisprod = $thisrule->{"prods"}[0];
3175 $text = $_[1];
3176 my $_savetext;
3177 @item = (q{param});
3178 %item = (__RULE__ => q{param});
3179 my $repcount = 0;
3180  
3181  
3182 Parse::RecDescent::_trace(q{Trying terminal: ['"']},
3183 Parse::RecDescent::_tracefirst($text),
3184 q{param})
3185 if defined $::RD_TRACE;
3186 $lastsep = "";
3187 $expectation->is(q{})->at($text);
3188
3189  
3190 unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\"//)
3191 {
3192
3193 $expectation->failed();
3194 Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
3195 Parse::RecDescent::_tracefirst($text))
3196 if defined $::RD_TRACE;
3197 last;
3198 }
3199 Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
3200 . $& . q{])},
3201 Parse::RecDescent::_tracefirst($text))
3202 if defined $::RD_TRACE;
3203 push @item, $item{__STRING1__}=$&;
3204
3205  
3206 Parse::RecDescent::_trace(q{Trying subrule: [paramtext]},
3207 Parse::RecDescent::_tracefirst($text),
3208 q{param})
3209 if defined $::RD_TRACE;
3210 if (1) { no strict qw{refs};
3211 $expectation->is(q{paramtext})->at($text);
3212 unless (defined ($_tok = Parse::RecDescent::namespace000002::paramtext($thisparser,$text,$repeating,$_noactions,undef)))
3213 {
3214
3215 Parse::RecDescent::_trace(q{<<Didn't match subrule: [paramtext]>>},
3216 Parse::RecDescent::_tracefirst($text),
3217 q{param})
3218 if defined $::RD_TRACE;
3219 $expectation->failed();
3220 last;
3221 }
3222 Parse::RecDescent::_trace(q{>>Matched subrule: [paramtext]<< (return value: [}
3223 . $_tok . q{]},
3224
3225 Parse::RecDescent::_tracefirst($text),
3226 q{param})
3227 if defined $::RD_TRACE;
3228 $item{q{paramtext}} = $_tok;
3229 push @item, $_tok;
3230
3231 }
3232  
3233 Parse::RecDescent::_trace(q{Trying terminal: ['"']},
3234 Parse::RecDescent::_tracefirst($text),
3235 q{param})
3236 if defined $::RD_TRACE;
3237 $lastsep = "";
3238 $expectation->is(q{'"'})->at($text);
3239
3240  
3241 unless ($text =~ s/\A($skip)/$lastsep=$1 and ""/e and $text =~ s/\A\"//)
3242 {
3243
3244 $expectation->failed();
3245 Parse::RecDescent::_trace(qq{<<Didn't match terminal>>},
3246 Parse::RecDescent::_tracefirst($text))
3247 if defined $::RD_TRACE;
3248 last;
3249 }
3250 Parse::RecDescent::_trace(q{>>Matched terminal<< (return value: [}
3251 . $& . q{])},
3252 Parse::RecDescent::_tracefirst($text))
3253 if defined $::RD_TRACE;
3254 push @item, $item{__STRING2__}=$&;
3255
3256  
3257 Parse::RecDescent::_trace(q{Trying action},
3258 Parse::RecDescent::_tracefirst($text),
3259 q{param})
3260 if defined $::RD_TRACE;
3261
3262  
3263 $_tok = ($_noactions) ? 0 : do { $return = $item[2] };
3264 unless (defined $_tok)
3265 {
3266 Parse::RecDescent::_trace(q{<<Didn't match action>> (return value: [undef])})
3267 if defined $::RD_TRACE;
3268 last;
3269 }
3270 Parse::RecDescent::_trace(q{>>Matched action<< (return value: [}
3271 . $_tok . q{])}, $text)
3272 if defined $::RD_TRACE;
3273 push @item, $_tok;
3274 $item{__ACTION1__}=$_tok;
3275
3276  
3277  
3278 Parse::RecDescent::_trace(q{>>Matched production: ['"' paramtext '"']<<},
3279 Parse::RecDescent::_tracefirst($text),
3280 q{param})
3281 if defined $::RD_TRACE;
3282 $_matched = 1;
3283 last;
3284 }
3285  
3286  
3287 while (!$_matched && !$commit)
3288 {
3289
3290 Parse::RecDescent::_trace(q{Trying production: [paramstring]},
3291 Parse::RecDescent::_tracefirst($_[1]),
3292 q{param})
3293 if defined $::RD_TRACE;
3294 my $thisprod = $thisrule->{"prods"}[1];
3295 $text = $_[1];
3296 my $_savetext;
3297 @item = (q{param});
3298 %item = (__RULE__ => q{param});
3299 my $repcount = 0;
3300  
3301  
3302 Parse::RecDescent::_trace(q{Trying subrule: [paramstring]},
3303 Parse::RecDescent::_tracefirst($text),
3304 q{param})
3305 if defined $::RD_TRACE;
3306 if (1) { no strict qw{refs};
3307 $expectation->is(q{})->at($text);
3308 unless (defined ($_tok = Parse::RecDescent::namespace000002::paramstring($thisparser,$text,$repeating,$_noactions,undef)))
3309 {
3310
3311 Parse::RecDescent::_trace(q{<<Didn't match subrule: [paramstring]>>},
3312 Parse::RecDescent::_tracefirst($text),
3313 q{param})
3314 if defined $::RD_TRACE;
3315 $expectation->failed();
3316 last;
3317 }
3318 Parse::RecDescent::_trace(q{>>Matched subrule: [paramstring]<< (return value: [}
3319 . $_tok . q{]},
3320
3321 Parse::RecDescent::_tracefirst($text),
3322 q{param})
3323 if defined $::RD_TRACE;
3324 $item{q{paramstring}} = $_tok;
3325 push @item, $_tok;
3326
3327 }
3328  
3329  
3330 Parse::RecDescent::_trace(q{>>Matched production: [paramstring]<<},
3331 Parse::RecDescent::_tracefirst($text),
3332 q{param})
3333 if defined $::RD_TRACE;
3334 $_matched = 1;
3335 last;
3336 }
3337  
3338  
3339 unless ( $_matched || defined($return) || defined($score) )
3340 {
3341
3342  
3343 $_[1] = $text; # NOT SURE THIS IS NEEDED
3344 Parse::RecDescent::_trace(q{<<Didn't match rule>>},
3345 Parse::RecDescent::_tracefirst($_[1]),
3346 q{param})
3347 if defined $::RD_TRACE;
3348 return undef;
3349 }
3350 if (!defined($return) && defined($score))
3351 {
3352 Parse::RecDescent::_trace(q{>>Accepted scored production<<}, "",
3353 q{param})
3354 if defined $::RD_TRACE;
3355 $return = $score_return;
3356 }
3357 splice @{$thisparser->{errors}}, $err_at;
3358 $return = $item[$#item] unless defined $return;
3359 if (defined $::RD_TRACE)
3360 {
3361 Parse::RecDescent::_trace(q{>>Matched rule<< (return value: [} .
3362 $return . q{])}, "",
3363 q{param});
3364 Parse::RecDescent::_trace(q{(consumed: [} .
3365 Parse::RecDescent::_tracemax(substr($_[1],0,-length($text))) . q{])},
3366 Parse::RecDescent::_tracefirst($text),
3367 , q{param})
3368 }
3369 $_[1] = $text;
3370 return $return;
3371 }
3372 }
3373 package XML::Template::Parser::Cond; sub new { my $self = bless( {
3374 '_AUTOTREE' => undef,
3375 'localvars' => '',
3376 'startcode' => '',
3377 '_check' => {
3378 'thisoffset' => '',
3379 'itempos' => '',
3380 'prevoffset' => '',
3381 'prevline' => '',
3382 'prevcolumn' => '',
3383 'thiscolumn' => ''
3384 },
3385 'namespace' => 'Parse::RecDescent::namespace000002',
3386 '_AUTOACTION' => undef,
3387 'rules' => {
3388 'paramlist' => bless( {
3389 'impcount' => 0,
3390 'calls' => [
3391 'param'
3392 ],
3393 'opcount' => 0,
3394 'prods' => [
3395 bless( {
3396 'number' => '0',
3397 'strcount' => 2,
3398 'dircount' => 0,
3399 'uncommit' => undef,
3400 'error' => undef,
3401 'patcount' => 0,
3402 'actcount' => 1,
3403 'items' => [
3404 bless( {
3405 'pattern' => '(',
3406 'hashname' => '__STRING1__',
3407 'description' => '\'(\'',
3408 'lookahead' => 0,
3409 'line' => 66
3410 }, 'Parse::RecDescent::Literal' ),
3411 bless( {
3412 'pattern' => ')',
3413 'hashname' => '__STRING2__',
3414 'description' => '\')\'',
3415 'lookahead' => 0,
3416 'line' => 66
3417 }, 'Parse::RecDescent::Literal' ),
3418 bless( {
3419 'hashname' => '__ACTION1__',
3420 'lookahead' => 0,
3421 'line' => 67,
3422 'code' => '{ $return = [] }'
3423 }, 'Parse::RecDescent::Action' )
3424 ],
3425 'line' => undef
3426 }, 'Parse::RecDescent::Production' ),
3427 bless( {
3428 'number' => '1',
3429 'strcount' => 3,
3430 'dircount' => 1,
3431 'uncommit' => undef,
3432 'error' => undef,
3433 'patcount' => 0,
3434 'actcount' => 1,
3435 'op' => [],
3436 'items' => [
3437 bless( {
3438 'pattern' => '(',
3439 'hashname' => '__STRING1__',
3440 'description' => '\'(\'',
3441 'lookahead' => 0,
3442 'line' => 68
3443 }, 'Parse::RecDescent::Literal' ),
3444 bless( {
3445 'expected' => '<leftop: param \',\' param>',
3446 'min' => 1,
3447 'max' => 100000000,
3448 'leftarg' => bless( {
3449 'subrule' => 'param',
3450 'matchrule' => 0,
3451 'implicit' => undef,
3452 'argcode' => undef,
3453 'lookahead' => 0,
3454 'line' => 68
3455 }, 'Parse::RecDescent::Subrule' ),
3456 'rightarg' => bless( {
3457 'subrule' => 'param',
3458 'matchrule' => 0,
3459 'implicit' => undef,
3460 'argcode' => undef,
3461 'lookahead' => 0,
3462 'line' => 68
3463 }, 'Parse::RecDescent::Subrule' ),
3464 'hashname' => '__DIRECTIVE1__',
3465 'type' => 'leftop',
3466 'op' => bless( {
3467 'pattern' => ',',
3468 'hashname' => '__STRING2__',
3469 'description' => '\',\'',
3470 'lookahead' => 0,
3471 'line' => 68
3472 }, 'Parse::RecDescent::Literal' )
3473 }, 'Parse::RecDescent::Operator' ),
3474 bless( {
3475 'pattern' => ')',
3476 'hashname' => '__STRING3__',
3477 'description' => '\')\'',
3478 'lookahead' => 0,
3479 'line' => 68
3480 }, 'Parse::RecDescent::Literal' ),
3481 bless( {
3482 'hashname' => '__ACTION1__',
3483 'lookahead' => 0,
3484 'line' => 69,
3485 'code' => '{ $return = $item[2] }'
3486 }, 'Parse::RecDescent::Action' )
3487 ],
3488 'line' => 68
3489 }, 'Parse::RecDescent::Production' )
3490 ],
3491 'name' => 'paramlist',
3492 'vars' => '',
3493 'changed' => 0,
3494 'line' => 66
3495 }, 'Parse::RecDescent::Rule' ),
3496 'xpathstring' => bless( {
3497 'impcount' => 0,
3498 'calls' => [
3499 'vartext',
3500 'function'
3501 ],
3502 'opcount' => 0,
3503 'prods' => [
3504 bless( {
3505 'number' => '0',
3506 'strcount' => 2,
3507 'dircount' => 0,
3508 'uncommit' => undef,
3509 'error' => undef,
3510 'patcount' => 0,
3511 'actcount' => 1,
3512 'items' => [
3513 bless( {
3514 'pattern' => '${',
3515 'hashname' => '__STRING1__',
3516 'description' => '\'$\\{\'',
3517 'lookahead' => 0,
3518 'line' => 45
3519 }, 'Parse::RecDescent::Literal' ),
3520 bless( {
3521 'subrule' => 'vartext',
3522 'matchrule' => 0,
3523 'implicit' => undef,
3524 'argcode' => undef,
3525 'lookahead' => 0,
3526 'line' => 45
3527 }, 'Parse::RecDescent::Subrule' ),
3528 bless( {
3529 'pattern' => '}\\.',
3530 'hashname' => '__STRING2__',
3531 'description' => '\'\\}\\\\.\'',
3532 'lookahead' => 0,
3533 'line' => 45
3534 }, 'Parse::RecDescent::Literal' ),
3535 bless( {
3536 'hashname' => '__ACTION1__',
3537 'lookahead' => 0,
3538 'line' => 46,
3539 'code' => '{ $return = generate_varget ($item[2]) . " . \'.\'" }'
3540 }, 'Parse::RecDescent::Action' )
3541 ],
3542 'line' => undef
3543 }, 'Parse::RecDescent::Production' ),
3544 bless( {
3545 'number' => '1',
3546 'strcount' => 2,
3547 'dircount' => 0,
3548 'uncommit' => undef,
3549 'error' => undef,
3550 'patcount' => 0,
3551 'actcount' => 1,
3552 'items' => [
3553 bless( {
3554 'pattern' => '${',
3555 'hashname' => '__STRING1__',
3556 'description' => '\'$\\{\'',
3557 'lookahead' => 0,
3558 'line' => 47
3559 }, 'Parse::RecDescent::Literal' ),
3560 bless( {
3561 'subrule' => 'vartext',
3562 'matchrule' => 0,
3563 'implicit' => undef,
3564 'argcode' => undef,
3565 'lookahead' => 0,
3566 'line' => 47
3567 }, 'Parse::RecDescent::Subrule' ),
3568 bless( {
3569 'pattern' => '}',
3570 'hashname' => '__STRING2__',
3571 'description' => '\'\\}\'',
3572 'lookahead' => 0,
3573 'line' => 47
3574 }, 'Parse::RecDescent::Literal' ),
3575 bless( {
3576 'subrule' => 'function',
3577 'expected' => undef,
3578 'min' => 0,
3579 'argcode' => undef,
3580 'max' => 100000000,
3581 'matchrule' => 0,
3582 'repspec' => 's?',
3583 'lookahead' => 0,
3584 'line' => 47
3585 }, 'Parse::RecDescent::Repetition' ),
3586 bless( {
3587 'hashname' => '__ACTION1__',
3588 'lookahead' => 0,
3589 'line' => 48,
3590 'code' => '{ $return = generate_varget ($item[2], $item[4]) }'
3591 }, 'Parse::RecDescent::Action' )
3592 ],
3593 'line' => 47
3594 }, 'Parse::RecDescent::Production' ),
3595 bless( {
3596 'number' => '2',
3597 'strcount' => 0,
3598 'dircount' => 0,
3599 'uncommit' => undef,
3600 'error' => undef,
3601 'patcount' => 1,
3602 'actcount' => 1,
3603 'items' => [
3604 bless( {
3605 'description' => '/([\\\\\\\\][\\\\$\\}]|[^\\\\$\\}])+/',
3606 'rdelim' => '/',
3607 'pattern' => '([\\\\][\\$}]|[^\\$}])+',
3608 'hashname' => '__PATTERN1__',
3609 'lookahead' => 0,
3610 'ldelim' => '/',
3611 'mod' => '',
3612 'line' => 49
3613 }, 'Parse::RecDescent::Token' ),
3614 bless( {
3615 'hashname' => '__ACTION1__',
3616 'lookahead' => 0,
3617 'line' => 50,
3618 'code' => '{ $item[1] =~ s/\\\\/\\\\\\\\/g; $item[1] =~ s/\'/\\\\\'/g;
3619 $return = "\'$item[1]\'" }'
3620 }, 'Parse::RecDescent::Action' )
3621 ],
3622 'line' => 49
3623 }, 'Parse::RecDescent::Production' )
3624 ],
3625 'name' => 'xpathstring',
3626 'vars' => '',
3627 'changed' => 0,
3628 'line' => 45
3629 }, 'Parse::RecDescent::Rule' ),
3630 'varstring' => bless( {
3631 'impcount' => 0,
3632 'calls' => [
3633 'vartext',
3634 'function',
3635 'xpathtext'
3636 ],
3637 'opcount' => 0,
3638 'prods' => [
3639 bless( {
3640 'number' => '0',
3641 'strcount' => 2,
3642 'dircount' => 0,
3643 'uncommit' => undef,
3644 'error' => undef,
3645 'patcount' => 0,
3646 'actcount' => 1,
3647 'items' => [
3648 bless( {
3649 'pattern' => '${',
3650 'hashname' => '__STRING1__',
3651 'description' => '\'$\\{\'',
3652 'lookahead' => 0,
3653 'line' => 32
3654 }, 'Parse::RecDescent::Literal' ),
3655 bless( {
3656 'subrule' => 'vartext',
3657 'matchrule' => 0,
3658 'implicit' => undef,
3659 'argcode' => undef,
3660 'lookahead' => 0,
3661 'line' => 32
3662 }, 'Parse::RecDescent::Subrule' ),
3663 bless( {
3664 'pattern' => '}\\.',
3665 'hashname' => '__STRING2__',
3666 'description' => '\'\\}\\\\.\'',
3667 'lookahead' => 0,
3668 'line' => 32
3669 }, 'Parse::RecDescent::Literal' ),
3670 bless( {
3671 'hashname' => '__ACTION1__',
3672 'lookahead' => 0,
3673 'line' => 33,
3674 'code' => '{ $return = generate_varget ($item[2]) . " . \'.\'" }'
3675 }, 'Parse::RecDescent::Action' )
3676 ],
3677 'line' => undef
3678 }, 'Parse::RecDescent::Production' ),
3679 bless( {
3680 'number' => '1',
3681 'strcount' => 2,
3682 'dircount' => 0,
3683 'uncommit' => undef,
3684 'error' => undef,
3685 'patcount' => 0,
3686 'actcount' => 1,
3687 'items' => [
3688 bless( {
3689 'pattern' => '${',
3690 'hashname' => '__STRING1__',
3691 'description' => '\'$\\{\'',
3692 'lookahead' => 0,
3693 'line' => 34
3694 }, 'Parse::RecDescent::Literal' ),
3695 bless( {
3696 'subrule' => 'vartext',
3697 'matchrule' => 0,
3698 'implicit' => undef,
3699 'argcode' => undef,
3700 'lookahead' => 0,
3701 'line' => 34
3702 }, 'Parse::RecDescent::Subrule' ),
3703 bless( {
3704 'pattern' => '}',
3705 'hashname' => '__STRING2__',
3706 'description' => '\'\\}\'',
3707 'lookahead' => 0,
3708 'line' => 34
3709 }, 'Parse::RecDescent::Literal' ),
3710 bless( {
3711 'subrule' => 'function',
3712 'expected' => undef,
3713 'min' => 0,
3714 'argcode' => undef,
3715 'max' => 100000000,
3716 'matchrule' => 0,
3717 'repspec' => 's?',
3718 'lookahead' => 0,
3719 'line' => 34
3720 }, 'Parse::RecDescent::Repetition' ),
3721 bless( {
3722 'hashname' => '__ACTION1__',
3723 'lookahead' => 0,
3724 'line' => 35,
3725 'code' => '{ $return = generate_varget ($item[2], $item[4]) }'
3726 }, 'Parse::RecDescent::Action' )
3727 ],
3728 'line' => 34
3729 }, 'Parse::RecDescent::Production' ),
3730 bless( {
3731 'number' => '2',
3732 'strcount' => 0,
3733 'dircount' => 0,
3734 'uncommit' => undef,
3735 'error' => undef,
3736 'patcount' => 1,
3737 'actcount' => 1,
3738 'items' => [
3739 bless( {
3740 'description' => '/([\\\\\\\\][\\\\$\\{\\}\'\\\\/]|[^\\\\$\\{\\}\'\\\\/])+/',
3741 'rdelim' => '/',
3742 'pattern' => '([\\\\][\\${}\'\\/]|[^\\${}\'\\/])+',
3743 'hashname' => '__PATTERN1__',
3744 'lookahead' => 0,
3745 'ldelim' => '/',
3746 'mod' => '',
3747 'line' => 36
3748 }, 'Parse::RecDescent::Token' ),
3749 bless( {
3750 'hashname' => '__ACTION1__',
3751 'lookahead' => 0,
3752 'line' => 37,
3753 'code' => '{ $item[1] =~ s/\\\\/\\\\\\\\/g; $item[1] =~ s/\'/\\\\\'/g; $return = "\'$item[1]\'" }'
3754 }, 'Parse::RecDescent::Action' )
3755 ],
3756 'line' => 36
3757 }, 'Parse::RecDescent::Production' ),
3758 bless( {
3759 'number' => '3',
3760 'strcount' => 2,
3761 'dircount' => 0,
3762 'uncommit' => undef,
3763 'error' => undef,
3764 'patcount' => 0,
3765 'actcount' => 1,
3766 'items' => [
3767 bless( {
3768 'pattern' => '{',
3769 'hashname' => '__STRING1__',
3770 'description' => '\'\\{\'',
3771 'lookahead' => 0,
3772 'line' => 38
3773 }, 'Parse::RecDescent::Literal' ),
3774 bless( {
3775 'subrule' => 'vartext',
3776 'matchrule' => 0,
3777 'implicit' => undef,
3778 'argcode' => undef,
3779 'lookahead' => 0,
3780 'line' => 38
3781 }, 'Parse::RecDescent::Subrule' ),
3782 bless( {
3783 'pattern' => '}',
3784 'hashname' => '__STRING2__',
3785 'description' => '\'\\}\'',
3786 'lookahead' => 0,
3787 'line' => 38
3788 }, 'Parse::RecDescent::Literal' ),
3789 bless( {
3790 'hashname' => '__ACTION1__',
3791 'lookahead' => 0,
3792 'line' => 39,
3793 'code' => '{ $return = "\\$vars->backslash (\'\\.\\/\', $item[2])" }'
3794 }, 'Parse::RecDescent::Action' )
3795 ],
3796 'line' => 38
3797 }, 'Parse::RecDescent::Production' ),
3798 bless( {
3799 'number' => '4',
3800 'strcount' => 1,
3801 'dircount' => 0,
3802 'uncommit' => undef,
3803 'error' => undef,
3804 'patcount' => 0,
3805 'actcount' => 1,
3806 'items' => [
3807 bless( {
3808 'pattern' => '/',
3809 'hashname' => '__STRING1__',
3810 'description' => '\'/\'',
3811 'lookahead' => 0,
3812 'line' => 40
3813 }, 'Parse::RecDescent::Literal' ),
3814 bless( {
3815 'subrule' => 'xpathtext',
3816 'matchrule' => 0,
3817 'implicit' => undef,
3818 'argcode' => undef,
3819 'lookahead' => 0,
3820 'line' => 40
3821 }, 'Parse::RecDescent::Subrule' ),
3822 bless( {
3823 'hashname' => '__ACTION1__',
3824 'lookahead' => 0,
3825 'line' => 41,
3826 'code' => '{ $return = "\\$vars->backslash (\'\\.\', $item[2])"; }'
3827 }, 'Parse::RecDescent::Action' )
3828 ],
3829 'line' => 40
3830 }, 'Parse::RecDescent::Production' )
3831 ],
3832 'name' => 'varstring',
3833 'vars' => '',
3834 'changed' => 0,
3835 'line' => 32
3836 }, 'Parse::RecDescent::Rule' ),
3837 'function' => bless( {
3838 'impcount' => 0,
3839 'calls' => [
3840 'paramlist'
3841 ],
3842 'opcount' => 0,
3843 'prods' => [
3844 bless( {
3845 'number' => '0',
3846 'strcount' => 1,
3847 'dircount' => 1,
3848 'uncommit' => undef,
3849 'error' => undef,
3850 'patcount' => 1,
3851 'actcount' => 1,
3852 'items' => [
3853 bless( {
3854 'hashname' => '__DIRECTIVE1__',
3855 'name' => '<skip: \'\\s*\'>',
3856 'lookahead' => 0,
3857 'line' => 64,
3858 'code' => 'my $oldskip = $skip; $skip= \'\\s*\'; $oldskip'
3859 }, 'Parse::RecDescent::Directive' ),
3860 bless( {
3861 'pattern' => '.',
3862 'hashname' => '__STRING1__',
3863 'description' => '\'.\'',
3864 'lookahead' => 0,
3865 'line' => 64
3866 }, 'Parse::RecDescent::Literal' ),
3867 bless( {
3868 'description' => '/[_a-z0-9]+/i',
3869 'rdelim' => '/',
3870 'pattern' => '[_a-z0-9]+',
3871 'hashname' => '__PATTERN1__',
3872 'lookahead' => 0,
3873 'ldelim' => '/',
3874 'mod' => 'i',
3875 'line' => 64
3876 }, 'Parse::RecDescent::Token' ),
3877 bless( {
3878 'subrule' => 'paramlist',
3879 'expected' => undef,
3880 'min' => 0,
3881 'argcode' => undef,
3882 'max' => 100000000,
3883 'matchrule' => 0,
3884 'repspec' => 's?',
3885 'lookahead' => 0,
3886 'line' => 64
3887 }, 'Parse::RecDescent::Repetition' ),
3888 bless( {
3889 'hashname' => '__ACTION1__',
3890 'lookahead' => 0,
3891 'line' => 65,
3892 'code' => '{ $return = [$item[3], $item[4]] }'
3893 }, 'Parse::RecDescent::Action' )
3894 ],
3895 'line' => undef
3896 }, 'Parse::RecDescent::Production' )
3897 ],
3898 'name' => 'function',
3899 'vars' => '',
3900 'changed' => 0,
3901 'line' => 63
3902 }, 'Parse::RecDescent::Rule' ),
3903 'paramstring' => bless( {
3904 'impcount' => 0,
3905 'calls' => [
3906 'paramtext',
3907 'function'
3908 ],
3909 'opcount' => 0,
3910 'prods' => [
3911 bless( {
3912 'number' => '0',
3913 'strcount' => 2,
3914 'dircount' => 0,
3915 'uncommit' => undef,
3916 'error' => undef,
3917 'patcount' => 0,
3918 'actcount' => 1,
3919 'items' => [
3920 bless( {
3921 'pattern' => '${',
3922 'hashname' => '__STRING1__',
3923 'description' => '\'$\\{\'',
3924 'lookahead' => 0,
3925 'line' => 56
3926 }, 'Parse::RecDescent::Literal' ),
3927 bless( {
3928 'subrule' => 'paramtext',
3929 'matchrule' => 0,
3930 'implicit' => undef,
3931 'argcode' => undef,
3932 'lookahead' => 0,
3933 'line' => 56
3934 }, 'Parse::RecDescent::Subrule' ),
3935 bless( {
3936 'pattern' => '}\\.',
3937 'hashname' => '__STRING2__',
3938 'description' => '\'\\}\\\\.\'',
3939 'lookahead' => 0,
3940 'line' => 56
3941 }, 'Parse::RecDescent::Literal' ),
3942 bless( {
3943 'hashname' => '__ACTION1__',
3944 'lookahead' => 0,
3945 'line' => 57,
3946 'code' => '{ $return = generate_varget ($item[2]) . " . \'.\'" }'
3947 }, 'Parse::RecDescent::Action' )
3948 ],
3949 'line' => undef
3950 }, 'Parse::RecDescent::Production' ),
3951 bless( {
3952 'number' => '1',
3953 'strcount' => 2,
3954 'dircount' => 0,
3955 'uncommit' => undef,
3956 'error' => undef,
3957 'patcount' => 0,
3958 'actcount' => 1,
3959 'items' => [
3960 bless( {
3961 'pattern' => '${',
3962 'hashname' => '__STRING1__',
3963 'description' => '\'$\\{\'',
3964 'lookahead' => 0,
3965 'line' => 58
3966 }, 'Parse::RecDescent::Literal' ),
3967 bless( {
3968 'subrule' => 'paramtext',
3969 'matchrule' => 0,
3970 'implicit' => undef,
3971 'argcode' => undef,
3972 'lookahead' => 0,
3973 'line' => 58
3974 }, 'Parse::RecDescent::Subrule' ),
3975 bless( {
3976 'pattern' => '}',
3977 'hashname' => '__STRING2__',
3978 'description' => '\'\\}\'',
3979 'lookahead' => 0,
3980 'line' => 58
3981 }, 'Parse::RecDescent::Literal' ),
3982 bless( {
3983 'subrule' => 'function',
3984 'expected' => undef,
3985 'min' => 0,
3986 'argcode' => undef,
3987 'max' => 100000000,
3988 'matchrule' => 0,
3989 'repspec' => 's?',
3990 'lookahead' => 0,
3991 'line' => 58
3992 }, 'Parse::RecDescent::Repetition' ),
3993 bless( {
3994 'hashname' => '__ACTION1__',
3995 'lookahead' => 0,
3996 'line' => 59,
3997 'code' => '{ $return = generate_varget ($item[2], $item[4]) }'
3998 }, 'Parse::RecDescent::Action' )
3999 ],
4000 'line' => 58
4001 }, 'Parse::RecDescent::Production' ),
4002 bless( {
4003 'number' => '2',
4004 'strcount' => 0,
4005 'dircount' => 0,
4006 'uncommit' => undef,
4007 'error' => undef,
4008 'patcount' => 1,
4009 'actcount' => 1,
4010 'items' => [
4011 bless( {
4012 'description' => '/([\\\\\\\\][\\\\$\\})"]|[^\\\\$\\})"])+/',
4013 'rdelim' => '/',
4014 'pattern' => '([\\\\][\\$})"]|[^\\$})"])+',
4015 'hashname' => '__PATTERN1__',
4016 'lookahead' => 0,
4017 'ldelim' => '/',
4018 'mod' => '',
4019 'line' => 60
4020 }, 'Parse::RecDescent::Token' ),
4021 bless( {
4022 'hashname' => '__ACTION1__',
4023 'lookahead' => 0,
4024 'line' => 61,
4025 'code' => '{ $item[1] =~ s/\'/\\\\\'/g; $return = "\'$item[1]\'" }'
4026 }, 'Parse::RecDescent::Action' )
4027 ],
4028 'line' => 60
4029 }, 'Parse::RecDescent::Production' )
4030 ],
4031 'name' => 'paramstring',
4032 'vars' => '',
4033 'changed' => 0,
4034 'line' => 56
4035 }, 'Parse::RecDescent::Rule' ),
4036 'string' => bless( {
4037 'impcount' => 0,
4038 'calls' => [
4039 'vartext',
4040 'function'
4041 ],
4042 'opcount' => 0,
4043 'prods' => [
4044 bless( {
4045 'number' => '0',
4046 'strcount' => 2,
4047 'dircount' => 0,
4048 'uncommit' => undef,
4049 'error' => undef,
4050 'patcount' => 0,
4051 'actcount' => 1,
4052 'items' => [
4053 bless( {
4054 'pattern' => '${',
4055 'hashname' => '__STRING1__',
4056 'description' => '\'$\\{\'',
4057 'lookahead' => 0,
4058 'line' => 23
4059 }, 'Parse::RecDescent::Literal' ),
4060 bless( {
4061 'subrule' => 'vartext',
4062 'matchrule' => 0,
4063 'implicit' => undef,
4064 'argcode' => undef,
4065 'lookahead' => 0,
4066 'line' => 23
4067 }, 'Parse::RecDescent::Subrule' ),
4068 bless( {
4069 'pattern' => '}\\.',
4070 'hashname' => '__STRING2__',
4071 'description' => '\'\\}\\\\.\'',
4072 'lookahead' => 0,
4073 'line' => 23
4074 }, 'Parse::RecDescent::Literal' ),
4075 bless( {
4076 'hashname' => '__ACTION1__',
4077 'lookahead' => 0,
4078 'line' => 24,
4079 'code' => '{ $return = generate_varget ($item[2]) . " . \'.\'" }'
4080 }, 'Parse::RecDescent::Action' )
4081 ],
4082 'line' => undef
4083 }, 'Parse::RecDescent::Production' ),
4084 bless( {
4085 'number' => '1',
4086 'strcount' => 2,
4087 'dircount' => 0,
4088 'uncommit' => undef,
4089 'error' => undef,
4090 'patcount' => 0,
4091 'actcount' => 1,
4092 'items' => [
4093 bless( {
4094 'pattern' => '${',
4095 'hashname' => '__STRING1__',
4096 'description' => '\'$\\{\'',
4097 'lookahead' => 0,
4098 'line' => 25
4099 }, 'Parse::RecDescent::Literal' ),
4100 bless( {
4101 'subrule' => 'vartext',
4102 'matchrule' => 0,
4103 'implicit' => undef,
4104 'argcode' => undef,
4105 'lookahead' => 0,
4106 'line' => 25
4107 }, 'Parse::RecDescent::Subrule' ),
4108 bless( {
4109 'pattern' => '}',
4110 'hashname' => '__STRING2__',
4111 'description' => '\'\\}\'',
4112 'lookahead' => 0,
4113 'line' => 25
4114 }, 'Parse::RecDescent::Literal' ),
4115 bless( {
4116 'subrule' => 'function',
4117 'expected' => undef,
4118 'min' => 0,
4119 'argcode' => undef,
4120 'max' => 100000000,
4121 'matchrule' => 0,
4122 'repspec' => 's?',
4123 'lookahead' => 0,
4124 'line' => 25
4125 }, 'Parse::RecDescent::Repetition' ),
4126 bless( {
4127 'hashname' => '__ACTION1__',
4128 'lookahead' => 0,
4129 'line' => 26,
4130 'code' => '{ $return = generate_varget ($item[2], $item[4]) }'
4131 }, 'Parse::RecDescent::Action' )
4132 ],
4133 'line' => 25
4134 }, 'Parse::RecDescent::Production' ),
4135 bless( {
4136 'number' => '2',
4137 'strcount' => 0,
4138 'dircount' => 0,
4139 'uncommit' => undef,
4140 'error' => undef,
4141 'patcount' => 1,
4142 'actcount' => 0,
4143 'items' => [
4144 bless( {
4145 'description' => '/([\\\\\\\\]\\\\$|[^\\\\$])+/',
4146 'rdelim' => '/',
4147 'pattern' => '([\\\\]\\$|[^\\$])+',
4148 'hashname' => '__PATTERN1__',
4149 'lookahead' => 0,
4150 'ldelim' => '/',
4151 'mod' => '',
4152 'line' => 27
4153 }, 'Parse::RecDescent::Token' )
4154 ],
4155 'line' => 27
4156 }, 'Parse::RecDescent::Production' )
4157 ],
4158 'name' => 'string',
4159 'vars' => '',
4160 'changed' => 0,
4161 'line' => 23
4162 }, 'Parse::RecDescent::Rule' ),
4163 'paramtext' => bless( {
4164 'impcount' => 0,
4165 'calls' => [
4166 'paramstring'
4167 ],
4168 'opcount' => 0,
4169 'prods' => [
4170 bless( {
4171 'number' => '0',
4172 'strcount' => 0,
4173 'dircount' => 1,
4174 'uncommit' => undef,
4175 'error' => undef,
4176 'patcount' => 0,
4177 'actcount' => 1,
4178 'items' => [
4179 bless( {
4180 'hashname' => '__DIRECTIVE1__',
4181 'name' => '<skip: \'\'>',
4182 'lookahead' => 0,
4183 'line' => 54,
4184 'code' => 'my $oldskip = $skip; $skip= \'\'; $oldskip'
4185 }, 'Parse::RecDescent::Directive' ),
4186 bless( {
4187 'subrule' => 'paramstring',
4188 'expected' => undef,
4189 'min' => 1,
4190 'argcode' => undef,
4191 'max' => 100000000,
4192 'matchrule' => 0,
4193 'repspec' => 's',
4194 'lookahead' => 0,
4195 'line' => 54
4196 }, 'Parse::RecDescent::Repetition' ),
4197 bless( {
4198 'hashname' => '__ACTION1__',
4199 'lookahead' => 0,
4200 'line' => 55,
4201 'code' => '{ $return = join (\' . \', @{$item[2]}) }'
4202 }, 'Parse::RecDescent::Action' )
4203 ],
4204 'line' => undef
4205 }, 'Parse::RecDescent::Production' )
4206 ],
4207 'name' => 'paramtext',
4208 'vars' => '',
4209 'changed' => 0,
4210 'line' => 53
4211 }, 'Parse::RecDescent::Rule' ),
4212 'text' => bless( {
4213 'impcount' => 0,
4214 'calls' => [
4215 'string'
4216 ],
4217 'opcount' => 0,
4218 'prods' => [
4219 bless( {
4220 'number' => '0',
4221 'strcount' => 0,
4222 'dircount' => 1,
4223 'uncommit' => undef,
4224 'error' => undef,
4225 'patcount' => 0,
4226 'actcount' => 1,
4227 'items' => [
4228 bless( {
4229 'hashname' => '__DIRECTIVE1__',
4230 'name' => '<skip: \'\'>',
4231 'lookahead' => 0,
4232 'line' => 21,
4233 'code' => 'my $oldskip = $skip; $skip= \'\'; $oldskip'
4234 }, 'Parse::RecDescent::Directive' ),
4235 bless( {
4236 'subrule' => 'string',
4237 'expected' => undef,
4238 'min' => 1,
4239 'argcode' => undef,
4240 'max' => 100000000,
4241 'matchrule' => 0,
4242 'repspec' => 's',
4243 'lookahead' => 0,
4244 'line' => 21
4245 }, 'Parse::RecDescent::Repetition' ),
4246 bless( {
4247 'hashname' => '__ACTION1__',
4248 'lookahead' => 0,
4249 'line' => 22,
4250 'code' => '{ $return = join (\'\', @{$item[2]}) }'
4251 }, 'Parse::RecDescent::Action' )
4252 ],
4253 'line' => undef
4254 }, 'Parse::RecDescent::Production' )
4255 ],
4256 'name' => 'text',
4257 'vars' => '',
4258 'changed' => 0,
4259 'line' => 20
4260 }, 'Parse::RecDescent::Rule' ),
4261 'vartext' => bless( {
4262 'impcount' => 0,
4263 'calls' => [
4264 'varstring'
4265 ],
4266 'opcount' => 0,
4267 'prods' => [
4268 bless( {
4269 'number' => '0',
4270 'strcount' => 0,
4271 'dircount' => 1,
4272 'uncommit' => undef,
4273 'error' => undef,
4274 'patcount' => 0,
4275 'actcount' => 1,
4276 'items' => [
4277 bless( {
4278 'hashname' => '__DIRECTIVE1__',
4279 'name' => '<skip: \'\'>',
4280 'lookahead' => 0,
4281 'line' => 30,
4282 'code' => 'my $oldskip = $skip; $skip= \'\'; $oldskip'
4283 }, 'Parse::RecDescent::Directive' ),
4284 bless( {
4285 'subrule' => 'varstring',
4286 'expected' => undef,
4287 'min' => 1,
4288 'argcode' => undef,
4289 'max' => 100000000,
4290 'matchrule' => 0,
4291 'repspec' => 's',
4292 'lookahead' => 0,
4293 'line' => 30
4294 }, 'Parse::RecDescent::Repetition' ),
4295 bless( {
4296 'hashname' => '__ACTION1__',
4297 'lookahead' => 0,
4298 'line' => 31,
4299 'code' => '{ $return = join (\' . \', @{$item[2]}) }'
4300 }, 'Parse::RecDescent::Action' )
4301 ],
4302 'line' => undef
4303 }, 'Parse::RecDescent::Production' )
4304 ],
4305 'name' => 'vartext',
4306 'vars' => '',
4307 'changed' => 0,
4308 'line' => 29
4309 }, 'Parse::RecDescent::Rule' ),
4310 'xpathtext' => bless( {
4311 'impcount' => 0,
4312 'calls' => [
4313 'xpathstring'
4314 ],
4315 'opcount' => 0,
4316 'prods' => [
4317 bless( {
4318 'number' => '0',
4319 'strcount' => 0,
4320 'dircount' => 1,
4321 'uncommit' => undef,
4322 'error' => undef,
4323 'patcount' => 0,
4324 'actcount' => 1,
4325 'items' => [
4326 bless( {
4327 'hashname' => '__DIRECTIVE1__',
4328 'name' => '<skip: \'\'>',
4329 'lookahead' => 0,
4330 'line' => 43,
4331 'code' => 'my $oldskip = $skip; $skip= \'\'; $oldskip'
4332 }, 'Parse::RecDescent::Directive' ),
4333 bless( {
4334 'subrule' => 'xpathstring',
4335 'expected' => undef,
4336 'min' => 1,
4337 'argcode' => undef,
4338 'max' => 100000000,
4339 'matchrule' => 0,
4340 'repspec' => 's',
4341 'lookahead' => 0,
4342 'line' => 43
4343 }, 'Parse::RecDescent::Repetition' ),
4344 bless( {
4345 'hashname' => '__ACTION1__',
4346 'lookahead' => 0,
4347 'line' => 44,
4348 'code' => '{ $return = "\'/\' . " . join (\' . \', @{$item[2]}) }'
4349 }, 'Parse::RecDescent::Action' )
4350 ],
4351 'line' => undef
4352 }, 'Parse::RecDescent::Production' )
4353 ],
4354 'name' => 'xpathtext',
4355 'vars' => '',
4356 'changed' => 0,
4357 'line' => 43
4358 }, 'Parse::RecDescent::Rule' ),
4359 'param' => bless( {
4360 'impcount' => 0,
4361 'calls' => [
4362 'paramtext',
4363 'paramstring'
4364 ],
4365 'opcount' => 0,
4366 'prods' => [
4367 bless( {
4368 'number' => '0',
4369 'strcount' => 2,
4370 'dircount' => 0,
4371 'uncommit' => undef,
4372 'error' => undef,
4373 'patcount' => 0,
4374 'actcount' => 1,
4375 'items' => [
4376 bless( {
4377 'pattern' => '"',
4378 'hashname' => '__STRING1__',
4379 'description' => '\'"\'',
4380 'lookahead' => 0,
4381 'line' => 70
4382 }, 'Parse::RecDescent::Literal' ),
4383 bless( {
4384 'subrule' => 'paramtext',
4385 'matchrule' => 0,
4386 'implicit' => undef,
4387 'argcode' => undef,
4388 'lookahead' => 0,
4389 'line' => 70
4390 }, 'Parse::RecDescent::Subrule' ),
4391 bless( {
4392 'pattern' => '"',
4393 'hashname' => '__STRING2__',
4394 'description' => '\'"\'',
4395 'lookahead' => 0,
4396 'line' => 70
4397 }, 'Parse::RecDescent::Literal' ),
4398 bless( {
4399 'hashname' => '__ACTION1__',
4400 'lookahead' => 0,
4401 'line' => 71,
4402 'code' => '{ $return = $item[2] }'
4403 }, 'Parse::RecDescent::Action' )
4404 ],
4405 'line' => undef
4406 }, 'Parse::RecDescent::Production' ),
4407 bless( {
4408 'number' => '1',
4409 'strcount' => 0,
4410 'dircount' => 0,
4411 'uncommit' => undef,
4412 'error' => undef,
4413 'patcount' => 0,
4414 'actcount' => 0,
4415 'items' => [
4416 bless( {
4417 'subrule' => 'paramstring',
4418 'matchrule' => 0,
4419 'implicit' => undef,
4420 'argcode' => undef,
4421 'lookahead' => 0,
4422 'line' => 72
4423 }, 'Parse::RecDescent::Subrule' )
4424 ],
4425 'line' => 72
4426 }, 'Parse::RecDescent::Production' )
4427 ],
4428 'name' => 'param',
4429 'vars' => '',
4430 'changed' => 0,
4431 'line' => 70
4432 }, 'Parse::RecDescent::Rule' )
4433 }
4434 }, 'Parse::RecDescent' );
4435 }