lib/XML/XQL/Parser.pm

filter: Statementstmt 21.1% 15 / 71 Branchbran 12.5% 1 / 8 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 8.8% 4 / 45 Podpod 0.0% 0 / 1 totaltotal 15.3% 20 / 130 CC 6 SCAR 10.9
CC
6
Cov
20%
__ANON__
12.0
__ANON__
6.0
__ANON__
6.0
CRAP 3.0
« lib/XML/DOM/PerlSAX.pm ↑ Summary lib/XML/DOM/DOMException.pm »
1 #########################################################################
2 #
3 # This file was generated using Parse::Yapp version 0.16.
4 #
5 # Don't edit this file, use source file instead.
6 #
7 # ANY CHANGE MADE HERE WILL BE LOST !
8 #
9 #########################################################################
10 package XML::XQL::Parser;
11 28 ▶use vars qw ( @ISA );
Subroutine BEGIN: called CC=1 SCAR=0.0
12 28 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 28 @ISA= qw ( Parse::Yapp::Driver );
15 28 ▶use Parse::Yapp::Driver;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17  
18  
19 28 ▶sub new {
Subroutine new: called CC=2 SCAR=16.5
Pod undocumented
20 28 my($class)=shift;
21 28 ▶ ref($class)
Branch: 1 branch
BranchTrueFalseTotal
ref $class and $class = ref $class 0 28 28
22 and $class=ref($class);
23  
24 my($self)=$class->SUPER::new( yyversion => '0.16',
25 yystates =>
26 [
27 {#State 0
28 ACTIONS => {
29 'NCName' => 25,
30 "(" => 28,
31 "any" => 14,
32 "all" => 20,
33 "*" => 29,
34 ".." => 4,
35 'XQLName_Paren' => 22,
36 "." => 34,
37 "//" => 23,
38 "/" => 16,
39 "\@" => 11,
40 "not" => 17
41 },
42 GOTOS => {
43 'WildQName' => 19,
44 'WildNCName' => 18,
45 'Filter' => 1,
46 'Union' => 21,
47 'RelativePath' => 2,
48 'LValue' => 3,
49 'Conjunction' => 5,
50 'Disjunction' => 6,
51 'ElementName' => 7,
52 'Grouping' => 8,
53 'PathOp' => 24,
54 'AbsolutePath' => 9,
55 'Path' => 10,
56 'RelativeTerm' => 12,
57 'AttributeName' => 13,
58 'Negation' => 26,
59 'Query' => 27,
60 'Intersection' => 15,
61 'Bang' => 30,
62 'Sequence' => 31,
63 'Invocation' => 32,
64 'Comparison' => 33,
65 'Subscript' => 35
66 }
67 },
68 {#State 1
69 ACTIONS => {
70 "[" => 36
71 },
72 DEFAULT => -51,
73 GOTOS => {
74 'Subscript_2' => 37
75 }
76 },
77 {#State 2
78 DEFAULT => -43
79 },
80 {#State 3
81 ACTIONS => {
82 'MATCH' => 40,
83 'COMPARE' => 39
84 },
85 GOTOS => {
86 'ComparisonOp' => 38
87 }
88 },
89 {#State 4
90 DEFAULT => -65
91 },
92 {#State 5
93 ACTIONS => {
94 "or" => 41
95 },
96 DEFAULT => -21
97 },
98 {#State 6
99 ACTIONS => {
100 'SeqOp' => 42
101 },
102 DEFAULT => -19
103 },
104 {#State 7
105 DEFAULT => -67
106 },
107 {#State 8
108 DEFAULT => -59
109 },
110 {#State 9
111 DEFAULT => -42
112 },
113 {#State 10
114 ACTIONS => {
115 'COMPARE' => -37,
116 'MATCH' => -37
117 },
118 DEFAULT => -33
119 },
120 {#State 11
121 ACTIONS => {
122 "*" => 29,
123 'NCName' => 25
124 },
125 GOTOS => {
126 'WildQName' => 43,
127 'WildNCName' => 18
128 }
129 },
130 {#State 12
131 DEFAULT => -62
132 },
133 {#State 13
134 DEFAULT => -68
135 },
136 {#State 14
137 ACTIONS => {
138 'NCName' => 25,
139 "(" => 28,
140 "*" => 29,
141 ".." => 4,
142 'XQLName_Paren' => 22,
143 "." => 34,
144 "//" => 23,
145 "/" => 16,
146 "\@" => 11
147 },
148 GOTOS => {
149 'WildNCName' => 18,
150 'WildQName' => 19,
151 'RelativeTerm' => 12,
152 'AttributeName' => 13,
153 'Filter' => 1,
154 'Bang' => 30,
155 'RelativePath' => 2,
156 'LValue' => 44,
157 'Invocation' => 32,
158 'ElementName' => 7,
159 'Grouping' => 8,
160 'PathOp' => 24,
161 'AbsolutePath' => 9,
162 'Path' => 45,
163 'Subscript' => 35
164 }
165 },
166 {#State 15
167 ACTIONS => {
168 'UnionOp' => 46
169 },
170 DEFAULT => -27
171 },
172 {#State 16
173 ACTIONS => {
174 ".." => -17,
175 'XQLName_Paren' => -17,
176 "\@" => -17,
177 'NCName' => -17,
178 "(" => -17,
179 "*" => -17,
180 "." => -17
181 },
182 DEFAULT => -44
183 },
184 {#State 17
185 ACTIONS => {
186 'NCName' => 25,
187 "(" => 28,
188 "any" => 14,
189 "all" => 20,
190 "*" => 29,
191 ".." => 4,
192 'XQLName_Paren' => 22,
193 "." => 34,
194 "//" => 23,
195 "/" => 16,
196 "\@" => 11,
197 "not" => 17
198 },
199 GOTOS => {
200 'WildNCName' => 18,
201 'WildQName' => 19,
202 'Filter' => 1,
203 'Union' => 21,
204 'RelativePath' => 2,
205 'LValue' => 3,
206 'ElementName' => 7,
207 'Grouping' => 8,
208 'PathOp' => 24,
209 'AbsolutePath' => 9,
210 'Path' => 10,
211 'RelativeTerm' => 12,
212 'AttributeName' => 13,
213 'Negation' => 47,
214 'Intersection' => 15,
215 'Bang' => 30,
216 'Invocation' => 32,
217 'Comparison' => 33,
218 'Subscript' => 35
219 }
220 },
221 {#State 18
222 ACTIONS => {
223 ":" => 48
224 },
225 DEFAULT => -4
226 },
227 {#State 19
228 DEFAULT => -10
229 },
230 {#State 20
231 ACTIONS => {
232 'NCName' => 25,
233 "(" => 28,
234 "*" => 29,
235 ".." => 4,
236 'XQLName_Paren' => 22,
237 "." => 34,
238 "//" => 23,
239 "/" => 16,
240 "\@" => 11
241 },
242 GOTOS => {
243 'WildNCName' => 18,
244 'WildQName' => 19,
245 'RelativeTerm' => 12,
246 'AttributeName' => 13,
247 'Filter' => 1,
248 'Bang' => 30,
249 'RelativePath' => 2,
250 'LValue' => 49,
251 'Invocation' => 32,
252 'ElementName' => 7,
253 'Grouping' => 8,
254 'PathOp' => 24,
255 'AbsolutePath' => 9,
256 'Path' => 45,
257 'Subscript' => 35
258 }
259 },
260 {#State 21
261 DEFAULT => -25
262 },
263 {#State 22
264 ACTIONS => {
265 'NCName' => 25,
266 'TEXT' => 50,
267 "(" => 28,
268 "any" => 14,
269 "all" => 20,
270 ")" => 54,
271 "*" => 29,
272 'NUMBER' => 51,
273 ".." => 4,
274 'XQLName_Paren' => 22,
275 "." => 34,
276 "//" => 23,
277 "/" => 16,
278 "\@" => 11,
279 'INTEGER' => 53,
280 "not" => 17
281 },
282 GOTOS => {
283 'WildNCName' => 18,
284 'WildQName' => 19,
285 'Filter' => 1,
286 'Union' => 21,
287 'RelativePath' => 2,
288 'LValue' => 3,
289 'Conjunction' => 5,
290 'Disjunction' => 52,
291 'Invocation_2' => 55,
292 'ElementName' => 7,
293 'Grouping' => 8,
294 'PathOp' => 24,
295 'AbsolutePath' => 9,
296 'Path' => 10,
297 'Param' => 56,
298 'RelativeTerm' => 12,
299 'Negation' => 26,
300 'AttributeName' => 13,
301 'Intersection' => 15,
302 'Bang' => 30,
303 'Invocation' => 32,
304 'Comparison' => 33,
305 'Subscript' => 35
306 }
307 },
308 {#State 23
309 DEFAULT => -18
310 },
311 {#State 24
312 ACTIONS => {
313 "*" => 29,
314 'NCName' => 25,
315 ".." => 4,
316 'XQLName_Paren' => 22,
317 "." => 34,
318 "(" => 28,
319 "\@" => 11
320 },
321 GOTOS => {
322 'WildNCName' => 18,
323 'WildQName' => 19,
324 'RelativeTerm' => 12,
325 'AttributeName' => 13,
326 'Filter' => 1,
327 'Bang' => 30,
328 'RelativePath' => 57,
329 'Invocation' => 32,
330 'ElementName' => 7,
331 'Grouping' => 8,
332 'Subscript' => 35
333 }
334 },
335 {#State 25
336 DEFAULT => -2
337 },
338 {#State 26
339 ACTIONS => {
340 "and" => 58
341 },
342 DEFAULT => -23
343 },
344 {#State 27
345 ACTIONS => {
346 '' => 59
347 }
348 },
349 {#State 28
350 ACTIONS => {
351 'NCName' => 25,
352 "(" => 28,
353 "any" => 14,
354 "all" => 20,
355 "*" => 29,
356 ".." => 4,
357 'XQLName_Paren' => 22,
358 "." => 34,
359 "//" => 23,
360 "/" => 16,
361 "\@" => 11,
362 "not" => 17
363 },
364 GOTOS => {
365 'WildNCName' => 18,
366 'WildQName' => 19,
367 'Filter' => 1,
368 'Union' => 21,
369 'RelativePath' => 2,
370 'LValue' => 3,
371 'Conjunction' => 5,
372 'Disjunction' => 6,
373 'ElementName' => 7,
374 'Grouping' => 8,
375 'PathOp' => 24,
376 'AbsolutePath' => 9,
377 'Path' => 10,
378 'RelativeTerm' => 12,
379 'AttributeName' => 13,
380 'Negation' => 26,
381 'Query' => 60,
382 'Intersection' => 15,
383 'Bang' => 30,
384 'Sequence' => 31,
385 'Invocation' => 32,
386 'Comparison' => 33,
387 'Subscript' => 35
388 }
389 },
390 {#State 29
391 DEFAULT => -3
392 },
393 {#State 30
394 ACTIONS => {
395 "//" => 23,
396 "/" => 61
397 },
398 DEFAULT => -46,
399 GOTOS => {
400 'PathOp' => 62
401 }
402 },
403 {#State 31
404 DEFAULT => -1
405 },
406 {#State 32
407 DEFAULT => -66
408 },
409 {#State 33
410 ACTIONS => {
411 "intersect" => 63
412 },
413 DEFAULT => -29
414 },
415 {#State 34
416 DEFAULT => -64
417 },
418 {#State 35
419 ACTIONS => {
420 "!" => 64
421 },
422 DEFAULT => -48
423 },
424 {#State 36
425 ACTIONS => {
426 'NCName' => 25,
427 "(" => 28,
428 "any" => 14,
429 "all" => 20,
430 "*" => 29,
431 ".." => 4,
432 'XQLName_Paren' => 22,
433 "." => 34,
434 "//" => 23,
435 "/" => 16,
436 'INTEGER' => 65,
437 "\@" => 11,
438 "not" => 17
439 },
440 GOTOS => {
441 'Subquery' => 67,
442 'WildNCName' => 18,
443 'WildQName' => 19,
444 'Filter' => 1,
445 'Union' => 21,
446 'RelativePath' => 2,
447 'LValue' => 3,
448 'Conjunction' => 5,
449 'Disjunction' => 6,
450 'ElementName' => 7,
451 'Grouping' => 8,
452 'PathOp' => 24,
453 'AbsolutePath' => 9,
454 'Range' => 68,
455 'Path' => 10,
456 'IndexArg' => 69,
457 'RelativeTerm' => 12,
458 'IndexList' => 66,
459 'AttributeName' => 13,
460 'Negation' => 26,
461 'Query' => 70,
462 'Intersection' => 15,
463 'Bang' => 30,
464 'Sequence' => 31,
465 'Invocation' => 32,
466 'Comparison' => 33,
467 'Subscript' => 35
468 }
469 },
470 {#State 37
471 DEFAULT => -50
472 },
473 {#State 38
474 ACTIONS => {
475 'NCName' => 25,
476 'TEXT' => 71,
477 "(" => 28,
478 "*" => 29,
479 'NUMBER' => 72,
480 ".." => 4,
481 'XQLName_Paren' => 22,
482 "." => 34,
483 "//" => 23,
484 "/" => 16,
485 'INTEGER' => 74,
486 "\@" => 11
487 },
488 GOTOS => {
489 'WildNCName' => 18,
490 'WildQName' => 19,
491 'RelativeTerm' => 12,
492 'AttributeName' => 13,
493 'Filter' => 1,
494 'Bang' => 30,
495 'RelativePath' => 2,
496 'Invocation' => 32,
497 'ElementName' => 7,
498 'Grouping' => 8,
499 'PathOp' => 24,
500 'AbsolutePath' => 9,
501 'Path' => 73,
502 'Subscript' => 35,
503 'RValue' => 75
504 }
505 },
506 {#State 39
507 DEFAULT => -31
508 },
509 {#State 40
510 DEFAULT => -32
511 },
512 {#State 41
513 ACTIONS => {
514 'NCName' => 25,
515 "(" => 28,
516 "any" => 14,
517 "all" => 20,
518 "*" => 29,
519 ".." => 4,
520 'XQLName_Paren' => 22,
521 "." => 34,
522 "//" => 23,
523 "/" => 16,
524 "\@" => 11,
525 "not" => 17
526 },
527 GOTOS => {
528 'WildNCName' => 18,
529 'WildQName' => 19,
530 'Filter' => 1,
531 'Union' => 21,
532 'RelativePath' => 2,
533 'LValue' => 3,
534 'Conjunction' => 5,
535 'Disjunction' => 76,
536 'ElementName' => 7,
537 'Grouping' => 8,
538 'PathOp' => 24,
539 'AbsolutePath' => 9,
540 'Path' => 10,
541 'RelativeTerm' => 12,
542 'AttributeName' => 13,
543 'Negation' => 26,
544 'Intersection' => 15,
545 'Bang' => 30,
546 'Invocation' => 32,
547 'Comparison' => 33,
548 'Subscript' => 35
549 }
550 },
551 {#State 42
552 ACTIONS => {
553 'NCName' => 25,
554 "(" => 28,
555 "any" => 14,
556 "all" => 20,
557 "*" => 29,
558 ".." => 4,
559 'XQLName_Paren' => 22,
560 "." => 34,
561 "//" => 23,
562 "/" => 16,
563 "\@" => 11,
564 "not" => 17
565 },
566 GOTOS => {
567 'WildNCName' => 18,
568 'WildQName' => 19,
569 'Filter' => 1,
570 'Union' => 21,
571 'RelativePath' => 2,
572 'LValue' => 3,
573 'Conjunction' => 5,
574 'Disjunction' => 6,
575 'ElementName' => 7,
576 'Grouping' => 8,
577 'PathOp' => 24,
578 'AbsolutePath' => 9,
579 'Path' => 10,
580 'RelativeTerm' => 12,
581 'AttributeName' => 13,
582 'Negation' => 26,
583 'Intersection' => 15,
584 'Bang' => 30,
585 'Sequence' => 77,
586 'Invocation' => 32,
587 'Comparison' => 33,
588 'Subscript' => 35
589 }
590 },
591 {#State 43
592 DEFAULT => -11
593 },
594 {#State 44
595 ACTIONS => {
596 'MATCH' => 40,
597 'COMPARE' => 39
598 },
599 GOTOS => {
600 'ComparisonOp' => 78
601 }
602 },
603 {#State 45
604 DEFAULT => -37
605 },
606 {#State 46
607 ACTIONS => {
608 'NCName' => 25,
609 "(" => 28,
610 "any" => 14,
611 "all" => 20,
612 "*" => 29,
613 ".." => 4,
614 'XQLName_Paren' => 22,
615 "." => 34,
616 "//" => 23,
617 "/" => 16,
618 "\@" => 11
619 },
620 GOTOS => {
621 'WildNCName' => 18,
622 'WildQName' => 19,
623 'Filter' => 1,
624 'Union' => 79,
625 'RelativePath' => 2,
626 'LValue' => 3,
627 'ElementName' => 7,
628 'Grouping' => 8,
629 'PathOp' => 24,
630 'AbsolutePath' => 9,
631 'Path' => 10,
632 'RelativeTerm' => 12,
633 'AttributeName' => 13,
634 'Intersection' => 15,
635 'Bang' => 30,
636 'Invocation' => 32,
637 'Comparison' => 33,
638 'Subscript' => 35
639 }
640 },
641 {#State 47
642 DEFAULT => -26
643 },
644 {#State 48
645 ACTIONS => {
646 "*" => 29,
647 'NCName' => 25
648 },
649 GOTOS => {
650 'WildNCName' => 80
651 }
652 },
653 {#State 49
654 ACTIONS => {
655 'MATCH' => 40,
656 'COMPARE' => 39
657 },
658 GOTOS => {
659 'ComparisonOp' => 81
660 }
661 },
662 {#State 50
663 DEFAULT => -9
664 },
665 {#State 51
666 DEFAULT => -8
667 },
668 {#State 52
669 DEFAULT => -6
670 },
671 {#State 53
672 DEFAULT => -7
673 },
674 {#State 54
675 DEFAULT => -13
676 },
677 {#State 55
678 DEFAULT => -12
679 },
680 {#State 56
681 ACTIONS => {
682 "," => 83
683 },
684 DEFAULT => -15,
685 GOTOS => {
686 'Invocation_3' => 82
687 }
688 },
689 {#State 57
690 DEFAULT => -45
691 },
692 {#State 58
693 ACTIONS => {
694 'NCName' => 25,
695 "(" => 28,
696 "any" => 14,
697 "all" => 20,
698 "*" => 29,
699 ".." => 4,
700 'XQLName_Paren' => 22,
701 "." => 34,
702 "//" => 23,
703 "/" => 16,
704 "\@" => 11,
705 "not" => 17
706 },
707 GOTOS => {
708 'WildNCName' => 18,
709 'WildQName' => 19,
710 'Filter' => 1,
711 'Union' => 21,
712 'RelativePath' => 2,
713 'LValue' => 3,
714 'Conjunction' => 84,
715 'ElementName' => 7,
716 'Grouping' => 8,
717 'PathOp' => 24,
718 'AbsolutePath' => 9,
719 'Path' => 10,
720 'RelativeTerm' => 12,
721 'AttributeName' => 13,
722 'Negation' => 26,
723 'Intersection' => 15,
724 'Bang' => 30,
725 'Invocation' => 32,
726 'Comparison' => 33,
727 'Subscript' => 35
728 }
729 },
730 {#State 59
731 DEFAULT => -0
732 },
733 {#State 60
734 ACTIONS => {
735 ")" => 85
736 }
737 },
738 {#State 61
739 DEFAULT => -17
740 },
741 {#State 62
742 ACTIONS => {
743 "*" => 29,
744 'NCName' => 25,
745 ".." => 4,
746 'XQLName_Paren' => 22,
747 "." => 34,
748 "(" => 28,
749 "\@" => 11
750 },
751 GOTOS => {
752 'WildNCName' => 18,
753 'WildQName' => 19,
754 'RelativeTerm' => 12,
755 'AttributeName' => 13,
756 'Filter' => 1,
757 'Bang' => 30,
758 'RelativePath' => 86,
759 'Invocation' => 32,
760 'ElementName' => 7,
761 'Grouping' => 8,
762 'Subscript' => 35
763 }
764 },
765 {#State 63
766 ACTIONS => {
767 'NCName' => 25,
768 "(" => 28,
769 "any" => 14,
770 "all" => 20,
771 "*" => 29,
772 ".." => 4,
773 'XQLName_Paren' => 22,
774 "." => 34,
775 "//" => 23,
776 "/" => 16,
777 "\@" => 11
778 },
779 GOTOS => {
780 'WildNCName' => 18,
781 'WildQName' => 19,
782 'Filter' => 1,
783 'RelativePath' => 2,
784 'LValue' => 3,
785 'ElementName' => 7,
786 'Grouping' => 8,
787 'PathOp' => 24,
788 'AbsolutePath' => 9,
789 'Path' => 10,
790 'RelativeTerm' => 12,
791 'AttributeName' => 13,
792 'Intersection' => 87,
793 'Bang' => 30,
794 'Invocation' => 32,
795 'Comparison' => 33,
796 'Subscript' => 35
797 }
798 },
799 {#State 64
800 ACTIONS => {
801 'XQLName_Paren' => 22
802 },
803 GOTOS => {
804 'Invocation' => 88
805 }
806 },
807 {#State 65
808 ACTIONS => {
809 "to" => 89
810 },
811 DEFAULT => -56
812 },
813 {#State 66
814 ACTIONS => {
815 "]" => 90
816 }
817 },
818 {#State 67
819 ACTIONS => {
820 "]" => 91
821 }
822 },
823 {#State 68
824 DEFAULT => -57
825 },
826 {#State 69
827 ACTIONS => {
828 "," => 93
829 },
830 DEFAULT => -54,
831 GOTOS => {
832 'IndexList_2' => 92
833 }
834 },
835 {#State 70
836 DEFAULT => -61
837 },
838 {#State 71
839 DEFAULT => -41
840 },
841 {#State 72
842 DEFAULT => -40
843 },
844 {#State 73
845 DEFAULT => -38
846 },
847 {#State 74
848 DEFAULT => -39
849 },
850 {#State 75
851 DEFAULT => -34
852 },
853 {#State 76
854 DEFAULT => -22
855 },
856 {#State 77
857 DEFAULT => -20
858 },
859 {#State 78
860 ACTIONS => {
861 'NCName' => 25,
862 'TEXT' => 71,
863 "(" => 28,
864 "*" => 29,
865 'NUMBER' => 72,
866 ".." => 4,
867 'XQLName_Paren' => 22,
868 "." => 34,
869 "//" => 23,
870 "/" => 16,
871 'INTEGER' => 74,
872 "\@" => 11
873 },
874 GOTOS => {
875 'WildNCName' => 18,
876 'WildQName' => 19,
877 'RelativeTerm' => 12,
878 'AttributeName' => 13,
879 'Filter' => 1,
880 'Bang' => 30,
881 'RelativePath' => 2,
882 'Invocation' => 32,
883 'ElementName' => 7,
884 'Grouping' => 8,
885 'PathOp' => 24,
886 'AbsolutePath' => 9,
887 'Path' => 73,
888 'Subscript' => 35,
889 'RValue' => 94
890 }
891 },
892 {#State 79
893 DEFAULT => -28
894 },
895 {#State 80
896 DEFAULT => -5
897 },
898 {#State 81
899 ACTIONS => {
900 'NCName' => 25,
901 'TEXT' => 71,
902 "(" => 28,
903 "*" => 29,
904 'NUMBER' => 72,
905 ".." => 4,
906 'XQLName_Paren' => 22,
907 "." => 34,
908 "//" => 23,
909 "/" => 16,
910 'INTEGER' => 74,
911 "\@" => 11
912 },
913 GOTOS => {
914 'WildNCName' => 18,
915 'WildQName' => 19,
916 'RelativeTerm' => 12,
917 'AttributeName' => 13,
918 'Filter' => 1,
919 'Bang' => 30,
920 'RelativePath' => 2,
921 'Invocation' => 32,
922 'ElementName' => 7,
923 'Grouping' => 8,
924 'PathOp' => 24,
925 'AbsolutePath' => 9,
926 'Path' => 73,
927 'Subscript' => 35,
928 'RValue' => 95
929 }
930 },
931 {#State 82
932 ACTIONS => {
933 ")" => 96
934 }
935 },
936 {#State 83
937 ACTIONS => {
938 'NCName' => 25,
939 'TEXT' => 50,
940 "(" => 28,
941 "any" => 14,
942 "all" => 20,
943 "*" => 29,
944 'NUMBER' => 51,
945 ".." => 4,
946 'XQLName_Paren' => 22,
947 "." => 34,
948 "//" => 23,
949 "/" => 16,
950 "\@" => 11,
951 'INTEGER' => 53,
952 "not" => 17
953 },
954 GOTOS => {
955 'WildNCName' => 18,
956 'WildQName' => 19,
957 'Filter' => 1,
958 'Union' => 21,
959 'RelativePath' => 2,
960 'LValue' => 3,
961 'Conjunction' => 5,
962 'Disjunction' => 52,
963 'ElementName' => 7,
964 'Grouping' => 8,
965 'PathOp' => 24,
966 'AbsolutePath' => 9,
967 'Path' => 10,
968 'Param' => 97,
969 'RelativeTerm' => 12,
970 'Negation' => 26,
971 'AttributeName' => 13,
972 'Intersection' => 15,
973 'Bang' => 30,
974 'Invocation' => 32,
975 'Comparison' => 33,
976 'Subscript' => 35
977 }
978 },
979 {#State 84
980 DEFAULT => -24
981 },
982 {#State 85
983 DEFAULT => -63
984 },
985 {#State 86
986 DEFAULT => -47
987 },
988 {#State 87
989 DEFAULT => -30
990 },
991 {#State 88
992 DEFAULT => -49
993 },
994 {#State 89
995 ACTIONS => {
996 'INTEGER' => 98
997 }
998 },
999 {#State 90
1000 DEFAULT => -52
1001 },
1002 {#State 91
1003 DEFAULT => -60
1004 },
1005 {#State 92
1006 DEFAULT => -53
1007 },
1008 {#State 93
1009 ACTIONS => {
1010 'INTEGER' => 65
1011 },
1012 GOTOS => {
1013 'IndexArg' => 99,
1014 'Range' => 68
1015 }
1016 },
1017 {#State 94
1018 DEFAULT => -35
1019 },
1020 {#State 95
1021 DEFAULT => -36
1022 },
1023 {#State 96
1024 DEFAULT => -14
1025 },
1026 {#State 97
1027 ACTIONS => {
1028 "," => 83
1029 },
1030 DEFAULT => -15,
1031 GOTOS => {
1032 'Invocation_3' => 100
1033 }
1034 },
1035 {#State 98
1036 DEFAULT => -58
1037 },
1038 {#State 99
1039 ACTIONS => {
1040 "," => 93
1041 },
1042 DEFAULT => -54,
1043 GOTOS => {
1044 'IndexList_2' => 101
1045 }
1046 },
1047 {#State 100
1048 DEFAULT => -16
1049 },
1050 {#State 101
1051 DEFAULT => -55
1052 }
1053 ],
1054 yyrules =>
1055 [
1056 [#Rule 0
1057 '$start', 2, undef
1058 ],
1059 [#Rule 1
1060 'Query', 1, undef
1061 ],
1062 [#Rule 2
1063 'WildNCName', 1, undef
1064 ],
1065 [#Rule 3
1066 'WildNCName', 1, undef
1067 ],
1068 [#Rule 4
1069 'WildQName', 1,
1070 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1071 0 [ Name => $_[1] ];
1072 }
1073 ],
1074 [#Rule 5
1075 'WildQName', 3,
1076 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1077
1078 0 [ NameSpace => $_[1], Name => $_[2]];
1079 }
1080 ],
1081 [#Rule 6
1082 'Param', 1, undef
1083 ],
1084 [#Rule 7
1085 'Param', 1,
1086 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1087 0 new XML::XQL::Number ($_[1]);
1088 }
1089 ],
1090 [#Rule 8
1091 'Param', 1,
1092 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1093 0 new XML::XQL::Number ($_[1]);
1094 }
1095 ],
1096 [#Rule 9
1097 'Param', 1,
1098 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1099 0 new XML::XQL::Text ($_[1]);
1100 }
1101 ],
1102 [#Rule 10
1103 'ElementName', 1,
1104 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1105 0 new XML::XQL::Element (@{$_[1]});
1106 }
1107 ],
1108 [#Rule 11
1109 'AttributeName', 2,
1110 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1111 0 new XML::XQL::Attribute (@{$_[2]});
1112 }
1113 ],
1114 [#Rule 12
1115 'Invocation', 2,
1116 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1117  
1118 0 my ($func, $type) = $_[0]->{Query}->findFunctionOrMethod ($_[1], $_[2]);
1119  
1120 0 new XML::XQL::Invocation (Name => $_[1],
1121 Args => $_[2],
1122 Func => $func,
1123 Type => $type);
1124 }
1125 ],
1126 [#Rule 13
1127 'Invocation_2', 1,
1128 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1129 0 []
1130 }
1131 ],
1132 [#Rule 14
1133 'Invocation_2', 3,
1134 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1135 0 unshift @{$_[2]}, $_[1]; $_[2];
1136 }
1137 ],
1138 [#Rule 15
1139 'Invocation_3', 0,
1140 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1141 0 []
1142 }
1143 ],
1144 [#Rule 16
1145 'Invocation_3', 3,
1146 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1147 0 unshift @{$_[3]}, $_[2]; $_[3];
1148 }
1149 ],
1150 [#Rule 17
1151 'PathOp', 1, undef
1152 ],
1153 [#Rule 18
1154 'PathOp', 1, undef
1155 ],
1156 [#Rule 19
1157 'Sequence', 1, undef
1158 ],
1159 [#Rule 20
1160 'Sequence', 3,
1161 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1162  
1163 0 new XML::XQL::Sequence (Left => $_[1], Oper => $_[2],
1164 Right => $_[3]);
1165 }
1166 ],
1167 [#Rule 21
1168 'Disjunction', 1, undef
1169 ],
1170 [#Rule 22
1171 'Disjunction', 3,
1172 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1173
1174 0 new XML::XQL::Or (Left => $_[1], Right => $_[3]);
1175 }
1176 ],
1177 [#Rule 23
1178 'Conjunction', 1, undef
1179 ],
1180 [#Rule 24
1181 'Conjunction', 3,
1182 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1183
1184 0 new XML::XQL::And (Left => $_[1], Right => $_[3]);
1185 }
1186 ],
1187 [#Rule 25
1188 'Negation', 1, undef
1189 ],
1190 [#Rule 26
1191 'Negation', 2,
1192 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1193 0 new XML::XQL::Not (Left => $_[2]);
1194 }
1195 ],
1196 [#Rule 27
1197 'Union', 1, undef
1198 ],
1199 [#Rule 28
1200 'Union', 3,
1201 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1202
1203 0 new XML::XQL::Union (Left => $_[1], Right => $_[3]);
1204 }
1205 ],
1206 [#Rule 29
1207 'Intersection', 1, undef
1208 ],
1209 [#Rule 30
1210 'Intersection', 3,
1211 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1212
1213 0 new XML::XQL::Intersect ($_[1], $_[3]);
1214 }
1215 ],
1216 [#Rule 31
1217 'ComparisonOp', 1,
1218 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1219  
1220 0 [ $_[1], $_[0]->{Query}->findComparisonOperator ($_[1]) ];
1221 }
1222 ],
1223 [#Rule 32
1224 'ComparisonOp', 1,
1225 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1226  
1227 0 [ $_[1], $_[0]->{Query}->findComparisonOperator ($_[1]) ];
1228 }
1229 ],
1230 [#Rule 33
1231 'Comparison', 1, undef
1232 ],
1233 [#Rule 34
1234 'Comparison', 3,
1235 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1236  
1237 0 new XML::XQL::Compare (All => 0, Left => $_[1],
1238 Oper => $_[2]->[0], Func => $_[2]->[1],
1239 Right => $_[3]);
1240 }
1241 ],
1242 [#Rule 35
1243 'Comparison', 4,
1244 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1245  
1246 0 new XML::XQL::Compare (All => 0, Left => $_[2],
1247 Oper => $_[3]->[0], Func => $_[3]->[0],
1248 Right => $_[4]);
1249 }
1250 ],
1251 [#Rule 36
1252 'Comparison', 4,
1253 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1254  
1255 0 new XML::XQL::Compare (All => 1, Left => $_[2],
1256 Oper => $_[3]->[0], Func => $_[3]->[0],
1257 Right => $_[4]);
1258 }
1259 ],
1260 [#Rule 37
1261 'LValue', 1, undef
1262 ],
1263 [#Rule 38
1264 'RValue', 1, undef
1265 ],
1266 [#Rule 39
1267 'RValue', 1,
1268 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1269 0 new XML::XQL::Number ($_[1]);
1270 }
1271 ],
1272 [#Rule 40
1273 'RValue', 1,
1274 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1275 0 new XML::XQL::Number ($_[1]);
1276 }
1277 ],
1278 [#Rule 41
1279 'RValue', 1,
1280 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1281 0 new XML::XQL::Text ($_[1]);
1282 }
1283 ],
1284 [#Rule 42
1285 'Path', 1, undef
1286 ],
1287 [#Rule 43
1288 'Path', 1, undef
1289 ],
1290 [#Rule 44
1291 'AbsolutePath', 1,
1292 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1293 0 new XML::Root;
1294 }
1295 ],
1296 [#Rule 45
1297 'AbsolutePath', 2,
1298 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1299
1300 0 new XML::XQL::Path (PathOp => $_[1], Right => $_[2]);
1301 }
1302 ],
1303 [#Rule 46
1304 'RelativePath', 1, undef
1305 ],
1306 [#Rule 47
1307 'RelativePath', 3,
1308 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1309
1310 0 new XML::XQL::Path (Left => $_[1], PathOp => $_[2],
1311 Right => $_[3]);
1312 }
1313 ],
1314 [#Rule 48
1315 'Bang', 1, undef
1316 ],
1317 [#Rule 49
1318 'Bang', 3,
1319 0 ▶sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
1320  
1321 0 ▶ XML::XQL::parseError ("only methods (not functions) can be used after the Bang (near '!" . $_[3]->{Name} . "'")
Branch: 1 branch
BranchTrueFalseTotal
unless $_[3]->isMethod 0 0 0
1322 unless $_[3]->isMethod;
1323  
1324 0 new XML::XQL::Bang (Left => $_[1],
1325 Right => $_[3]);
1326 }
1327 ],
1328 [#Rule 50
1329 'Subscript', 2,
1330 0 ▶sub {
Subroutine __ANON__: not called CC=2 SCAR=17.9
1331
1332 0 ▶ defined($_[2]) ?
Branch: 1 branch
BranchTrueFalseTotal
defined $_[2] ? : 0 0 0
1333 new XML::XQL::Subscript (Left => $_[1],
1334 IndexList => $_[2]) : $_[1];
1335 }
1336 ],
1337 [#Rule 51
1338 'Subscript_2', 0, undef
1339 ],
1340 [#Rule 52
1341 'Subscript_2', 3,
1342 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1343 0 $_[2];
1344 }
1345 ],
1346 [#Rule 53
1347 'IndexList', 2,
1348 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1349 0 push (@{$_[1]}, @{$_[2]}); $_[1];
1350 }
1351 ],
1352 [#Rule 54
1353 'IndexList_2', 0,
1354 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1355 0 []
1356 }
1357 ],
1358 [#Rule 55
1359 'IndexList_2', 3,
1360 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1361 0 push (@{$_[2]}, @{$_[3]}); $_[2];
1362 }
1363 ],
1364 [#Rule 56
1365 'IndexArg', 1,
1366 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1367 0 [ $_[1], $_[1] ];
1368 }
1369 ],
1370 [#Rule 57
1371 'IndexArg', 1, undef
1372 ],
1373 [#Rule 58
1374 'Range', 3,
1375 0 ▶sub {
Subroutine __ANON__: not called CC=3 SCAR=24.8
1376  
1377 # Syntactic Constraint 9:
1378 # If both integers are positive or if both integers are
1379 # negative, the first integer must be less than or
1380 # equal to the second integer.
1381  
1382 0 ▶ XML::XQL::parseError (
Branch: 1 branch
BranchTrueFalseTotal
if $_[1] > $_[3] and $_[1] < 0 == $_[3] < 0 0 0 0
Condition0%0/3
$_[1] > $_[3] and $_[1] < 0 == $_[3] < 0
!ll&&!rl&&r
000
MC/DC0%0/2
$_[1] > $_[3] and $_[1] < 0 == $_[3] < 0
$_[1] > $_[3] $_[1] < 0 == $_[3] < 0
Truth table0%0/3
A and B
A= $_[1] > $_[3]B= $_[1] < 0 == $_[3] < 0
ABresult
0X0
100
111
1383 "$_[1] should be less than $_[3] in '$_[1] $_[2] $_[3]'")
1384 if ($_[1] > $_[3] && ($_[1] < 0) == ($_[3] < 0));
1385 0 [ $_[1], $_[3] ];
1386 }
1387 ],
1388 [#Rule 59
1389 'Filter', 1, undef
1390 ],
1391 [#Rule 60
1392 'Filter', 4,
1393 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1394
1395 0 new XML::XQL::Filter (Left => $_[1], Right => $_[3]);
1396 }
1397 ],
1398 [#Rule 61
1399 'Subquery', 1, undef
1400 ],
1401 [#Rule 62
1402 'Grouping', 1, undef
1403 ],
1404 [#Rule 63
1405 'Grouping', 3,
1406 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1407 0 $_[2];
1408 }
1409 ],
1410 [#Rule 64
1411 'RelativeTerm', 1,
1412 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1413 0 new XML::XQL::Current;
1414 }
1415 ],
1416 [#Rule 65
1417 'RelativeTerm', 1,
1418 0 ▶sub {
Subroutine __ANON__: not called CC=1 SCAR=6.9
1419 0 new XML::XQL::Parent;
1420 }
1421 28 ],
1422 [#Rule 66
1423 'RelativeTerm', 1, undef
1424 ],
1425 [#Rule 67
1426 'RelativeTerm', 1, undef
1427 ],
1428 [#Rule 68
1429 'RelativeTerm', 1, undef
1430 ]
1431 ],
1432 @_);
1433 28 bless($self,$class);
1434 }
1435  
1436  
1437  
1438 28 1;
« lib/XML/DOM/PerlSAX.pm ↑ Summary lib/XML/DOM/DOMException.pm »