Annotation of embedaddon/php/Zend/zend_ini_parser.output, revision 1.1.1.1
1.1 misho 1: Terminals unused in grammar
2:
3: ':'
4: ','
5: '.'
6: '\''
7: '^'
8: '+'
9: '-'
10: '/'
11: '*'
12: '%'
13: '$'
14: '<'
15: '>'
16: '?'
17: '@'
18: '{'
19:
20:
21: Grammar
22:
23: 0 $accept: statement_list $end
24:
25: 1 statement_list: statement_list statement
26: 2 | /* empty */
27:
28: 3 statement: TC_SECTION section_string_or_value ']'
29: 4 | TC_LABEL '=' string_or_value
30: 5 | TC_OFFSET option_offset ']' '=' string_or_value
31: 6 | TC_LABEL
32: 7 | END_OF_LINE
33:
34: 8 section_string_or_value: var_string_list_section
35: 9 | /* empty */
36:
37: 10 string_or_value: expr
38: 11 | BOOL_TRUE
39: 12 | BOOL_FALSE
40: 13 | END_OF_LINE
41:
42: 14 option_offset: var_string_list
43: 15 | /* empty */
44:
45: 16 encapsed_list: encapsed_list cfg_var_ref
46: 17 | encapsed_list TC_QUOTED_STRING
47: 18 | /* empty */
48:
49: 19 var_string_list_section: cfg_var_ref
50: 20 | constant_literal
51: 21 | '"' encapsed_list '"'
52: 22 | var_string_list_section cfg_var_ref
53: 23 | var_string_list_section constant_literal
54: 24 | var_string_list_section '"' encapsed_list '"'
55:
56: 25 var_string_list: cfg_var_ref
57: 26 | constant_string
58: 27 | '"' encapsed_list '"'
59: 28 | var_string_list cfg_var_ref
60: 29 | var_string_list constant_string
61: 30 | var_string_list '"' encapsed_list '"'
62:
63: 31 expr: var_string_list
64: 32 | expr '|' expr
65: 33 | expr '&' expr
66: 34 | '~' expr
67: 35 | '!' expr
68: 36 | '(' expr ')'
69:
70: 37 cfg_var_ref: TC_DOLLAR_CURLY TC_VARNAME '}'
71:
72: 38 constant_literal: TC_CONSTANT
73: 39 | TC_RAW
74: 40 | TC_NUMBER
75: 41 | TC_STRING
76: 42 | TC_WHITESPACE
77:
78: 43 constant_string: TC_CONSTANT
79: 44 | TC_RAW
80: 45 | TC_NUMBER
81: 46 | TC_STRING
82: 47 | TC_WHITESPACE
83:
84:
85: Terminals, with rules where they appear
86:
87: $end (0) 0
88: '!' (33) 35
89: '"' (34) 21 24 27 30
90: '$' (36)
91: '%' (37)
92: '&' (38) 33
93: '\'' (39)
94: '(' (40) 36
95: ')' (41) 36
96: '*' (42)
97: '+' (43)
98: ',' (44)
99: '-' (45)
100: '.' (46)
101: '/' (47)
102: ':' (58)
103: '<' (60)
104: '=' (61) 4 5
105: '>' (62)
106: '?' (63)
107: '@' (64)
108: ']' (93) 3 5
109: '^' (94)
110: '{' (123)
111: '|' (124) 32
112: '}' (125) 37
113: '~' (126) 34
114: error (256)
115: TC_SECTION (258) 3
116: TC_RAW (259) 39 44
117: TC_CONSTANT (260) 38 43
118: TC_NUMBER (261) 40 45
119: TC_STRING (262) 41 46
120: TC_WHITESPACE (263) 42 47
121: TC_LABEL (264) 4 6
122: TC_OFFSET (265) 5
123: TC_DOLLAR_CURLY (266) 37
124: TC_VARNAME (267) 37
125: TC_QUOTED_STRING (268) 17
126: BOOL_TRUE (269) 11
127: BOOL_FALSE (270) 12
128: END_OF_LINE (271) 7 13
129:
130:
131: Nonterminals, with rules where they appear
132:
133: $accept (43)
134: on left: 0
135: statement_list (44)
136: on left: 1 2, on right: 0 1
137: statement (45)
138: on left: 3 4 5 6 7, on right: 1
139: section_string_or_value (46)
140: on left: 8 9, on right: 3
141: string_or_value (47)
142: on left: 10 11 12 13, on right: 4 5
143: option_offset (48)
144: on left: 14 15, on right: 5
145: encapsed_list (49)
146: on left: 16 17 18, on right: 16 17 21 24 27 30
147: var_string_list_section (50)
148: on left: 19 20 21 22 23 24, on right: 8 22 23 24
149: var_string_list (51)
150: on left: 25 26 27 28 29 30, on right: 14 28 29 30 31
151: expr (52)
152: on left: 31 32 33 34 35 36, on right: 10 32 33 34 35 36
153: cfg_var_ref (53)
154: on left: 37, on right: 16 19 22 25 28
155: constant_literal (54)
156: on left: 38 39 40 41 42, on right: 20 23
157: constant_string (55)
158: on left: 43 44 45 46 47, on right: 26 29
159:
160:
161: state 0
162:
163: 0 $accept: . statement_list $end
164:
165: $default reduce using rule 2 (statement_list)
166:
167: statement_list go to state 1
168:
169:
170: state 1
171:
172: 0 $accept: statement_list . $end
173: 1 statement_list: statement_list . statement
174:
175: $end shift, and go to state 2
176: TC_SECTION shift, and go to state 3
177: TC_LABEL shift, and go to state 4
178: TC_OFFSET shift, and go to state 5
179: END_OF_LINE shift, and go to state 6
180:
181: statement go to state 7
182:
183:
184: state 2
185:
186: 0 $accept: statement_list $end .
187:
188: $default accept
189:
190:
191: state 3
192:
193: 3 statement: TC_SECTION . section_string_or_value ']'
194:
195: TC_RAW shift, and go to state 8
196: TC_CONSTANT shift, and go to state 9
197: TC_NUMBER shift, and go to state 10
198: TC_STRING shift, and go to state 11
199: TC_WHITESPACE shift, and go to state 12
200: TC_DOLLAR_CURLY shift, and go to state 13
201: '"' shift, and go to state 14
202:
203: $default reduce using rule 9 (section_string_or_value)
204:
205: section_string_or_value go to state 15
206: var_string_list_section go to state 16
207: cfg_var_ref go to state 17
208: constant_literal go to state 18
209:
210:
211: state 4
212:
213: 4 statement: TC_LABEL . '=' string_or_value
214: 6 | TC_LABEL .
215:
216: '=' shift, and go to state 19
217:
218: $default reduce using rule 6 (statement)
219:
220:
221: state 5
222:
223: 5 statement: TC_OFFSET . option_offset ']' '=' string_or_value
224:
225: TC_RAW shift, and go to state 20
226: TC_CONSTANT shift, and go to state 21
227: TC_NUMBER shift, and go to state 22
228: TC_STRING shift, and go to state 23
229: TC_WHITESPACE shift, and go to state 24
230: TC_DOLLAR_CURLY shift, and go to state 13
231: '"' shift, and go to state 25
232:
233: $default reduce using rule 15 (option_offset)
234:
235: option_offset go to state 26
236: var_string_list go to state 27
237: cfg_var_ref go to state 28
238: constant_string go to state 29
239:
240:
241: state 6
242:
243: 7 statement: END_OF_LINE .
244:
245: $default reduce using rule 7 (statement)
246:
247:
248: state 7
249:
250: 1 statement_list: statement_list statement .
251:
252: $default reduce using rule 1 (statement_list)
253:
254:
255: state 8
256:
257: 39 constant_literal: TC_RAW .
258:
259: $default reduce using rule 39 (constant_literal)
260:
261:
262: state 9
263:
264: 38 constant_literal: TC_CONSTANT .
265:
266: $default reduce using rule 38 (constant_literal)
267:
268:
269: state 10
270:
271: 40 constant_literal: TC_NUMBER .
272:
273: $default reduce using rule 40 (constant_literal)
274:
275:
276: state 11
277:
278: 41 constant_literal: TC_STRING .
279:
280: $default reduce using rule 41 (constant_literal)
281:
282:
283: state 12
284:
285: 42 constant_literal: TC_WHITESPACE .
286:
287: $default reduce using rule 42 (constant_literal)
288:
289:
290: state 13
291:
292: 37 cfg_var_ref: TC_DOLLAR_CURLY . TC_VARNAME '}'
293:
294: TC_VARNAME shift, and go to state 30
295:
296:
297: state 14
298:
299: 21 var_string_list_section: '"' . encapsed_list '"'
300:
301: $default reduce using rule 18 (encapsed_list)
302:
303: encapsed_list go to state 31
304:
305:
306: state 15
307:
308: 3 statement: TC_SECTION section_string_or_value . ']'
309:
310: ']' shift, and go to state 32
311:
312:
313: state 16
314:
315: 8 section_string_or_value: var_string_list_section .
316: 22 var_string_list_section: var_string_list_section . cfg_var_ref
317: 23 | var_string_list_section . constant_literal
318: 24 | var_string_list_section . '"' encapsed_list '"'
319:
320: TC_RAW shift, and go to state 8
321: TC_CONSTANT shift, and go to state 9
322: TC_NUMBER shift, and go to state 10
323: TC_STRING shift, and go to state 11
324: TC_WHITESPACE shift, and go to state 12
325: TC_DOLLAR_CURLY shift, and go to state 13
326: '"' shift, and go to state 33
327:
328: $default reduce using rule 8 (section_string_or_value)
329:
330: cfg_var_ref go to state 34
331: constant_literal go to state 35
332:
333:
334: state 17
335:
336: 19 var_string_list_section: cfg_var_ref .
337:
338: $default reduce using rule 19 (var_string_list_section)
339:
340:
341: state 18
342:
343: 20 var_string_list_section: constant_literal .
344:
345: $default reduce using rule 20 (var_string_list_section)
346:
347:
348: state 19
349:
350: 4 statement: TC_LABEL '=' . string_or_value
351:
352: TC_RAW shift, and go to state 20
353: TC_CONSTANT shift, and go to state 21
354: TC_NUMBER shift, and go to state 22
355: TC_STRING shift, and go to state 23
356: TC_WHITESPACE shift, and go to state 24
357: TC_DOLLAR_CURLY shift, and go to state 13
358: BOOL_TRUE shift, and go to state 36
359: BOOL_FALSE shift, and go to state 37
360: END_OF_LINE shift, and go to state 38
361: '"' shift, and go to state 25
362: '~' shift, and go to state 39
363: '!' shift, and go to state 40
364: '(' shift, and go to state 41
365:
366: string_or_value go to state 42
367: var_string_list go to state 43
368: expr go to state 44
369: cfg_var_ref go to state 28
370: constant_string go to state 29
371:
372:
373: state 20
374:
375: 44 constant_string: TC_RAW .
376:
377: $default reduce using rule 44 (constant_string)
378:
379:
380: state 21
381:
382: 43 constant_string: TC_CONSTANT .
383:
384: $default reduce using rule 43 (constant_string)
385:
386:
387: state 22
388:
389: 45 constant_string: TC_NUMBER .
390:
391: $default reduce using rule 45 (constant_string)
392:
393:
394: state 23
395:
396: 46 constant_string: TC_STRING .
397:
398: $default reduce using rule 46 (constant_string)
399:
400:
401: state 24
402:
403: 47 constant_string: TC_WHITESPACE .
404:
405: $default reduce using rule 47 (constant_string)
406:
407:
408: state 25
409:
410: 27 var_string_list: '"' . encapsed_list '"'
411:
412: $default reduce using rule 18 (encapsed_list)
413:
414: encapsed_list go to state 45
415:
416:
417: state 26
418:
419: 5 statement: TC_OFFSET option_offset . ']' '=' string_or_value
420:
421: ']' shift, and go to state 46
422:
423:
424: state 27
425:
426: 14 option_offset: var_string_list .
427: 28 var_string_list: var_string_list . cfg_var_ref
428: 29 | var_string_list . constant_string
429: 30 | var_string_list . '"' encapsed_list '"'
430:
431: TC_RAW shift, and go to state 20
432: TC_CONSTANT shift, and go to state 21
433: TC_NUMBER shift, and go to state 22
434: TC_STRING shift, and go to state 23
435: TC_WHITESPACE shift, and go to state 24
436: TC_DOLLAR_CURLY shift, and go to state 13
437: '"' shift, and go to state 47
438:
439: $default reduce using rule 14 (option_offset)
440:
441: cfg_var_ref go to state 48
442: constant_string go to state 49
443:
444:
445: state 28
446:
447: 25 var_string_list: cfg_var_ref .
448:
449: $default reduce using rule 25 (var_string_list)
450:
451:
452: state 29
453:
454: 26 var_string_list: constant_string .
455:
456: $default reduce using rule 26 (var_string_list)
457:
458:
459: state 30
460:
461: 37 cfg_var_ref: TC_DOLLAR_CURLY TC_VARNAME . '}'
462:
463: '}' shift, and go to state 50
464:
465:
466: state 31
467:
468: 16 encapsed_list: encapsed_list . cfg_var_ref
469: 17 | encapsed_list . TC_QUOTED_STRING
470: 21 var_string_list_section: '"' encapsed_list . '"'
471:
472: TC_DOLLAR_CURLY shift, and go to state 13
473: TC_QUOTED_STRING shift, and go to state 51
474: '"' shift, and go to state 52
475:
476: cfg_var_ref go to state 53
477:
478:
479: state 32
480:
481: 3 statement: TC_SECTION section_string_or_value ']' .
482:
483: $default reduce using rule 3 (statement)
484:
485:
486: state 33
487:
488: 24 var_string_list_section: var_string_list_section '"' . encapsed_list '"'
489:
490: $default reduce using rule 18 (encapsed_list)
491:
492: encapsed_list go to state 54
493:
494:
495: state 34
496:
497: 22 var_string_list_section: var_string_list_section cfg_var_ref .
498:
499: $default reduce using rule 22 (var_string_list_section)
500:
501:
502: state 35
503:
504: 23 var_string_list_section: var_string_list_section constant_literal .
505:
506: $default reduce using rule 23 (var_string_list_section)
507:
508:
509: state 36
510:
511: 11 string_or_value: BOOL_TRUE .
512:
513: $default reduce using rule 11 (string_or_value)
514:
515:
516: state 37
517:
518: 12 string_or_value: BOOL_FALSE .
519:
520: $default reduce using rule 12 (string_or_value)
521:
522:
523: state 38
524:
525: 13 string_or_value: END_OF_LINE .
526:
527: $default reduce using rule 13 (string_or_value)
528:
529:
530: state 39
531:
532: 34 expr: '~' . expr
533:
534: TC_RAW shift, and go to state 20
535: TC_CONSTANT shift, and go to state 21
536: TC_NUMBER shift, and go to state 22
537: TC_STRING shift, and go to state 23
538: TC_WHITESPACE shift, and go to state 24
539: TC_DOLLAR_CURLY shift, and go to state 13
540: '"' shift, and go to state 25
541: '~' shift, and go to state 39
542: '!' shift, and go to state 40
543: '(' shift, and go to state 41
544:
545: var_string_list go to state 43
546: expr go to state 55
547: cfg_var_ref go to state 28
548: constant_string go to state 29
549:
550:
551: state 40
552:
553: 35 expr: '!' . expr
554:
555: TC_RAW shift, and go to state 20
556: TC_CONSTANT shift, and go to state 21
557: TC_NUMBER shift, and go to state 22
558: TC_STRING shift, and go to state 23
559: TC_WHITESPACE shift, and go to state 24
560: TC_DOLLAR_CURLY shift, and go to state 13
561: '"' shift, and go to state 25
562: '~' shift, and go to state 39
563: '!' shift, and go to state 40
564: '(' shift, and go to state 41
565:
566: var_string_list go to state 43
567: expr go to state 56
568: cfg_var_ref go to state 28
569: constant_string go to state 29
570:
571:
572: state 41
573:
574: 36 expr: '(' . expr ')'
575:
576: TC_RAW shift, and go to state 20
577: TC_CONSTANT shift, and go to state 21
578: TC_NUMBER shift, and go to state 22
579: TC_STRING shift, and go to state 23
580: TC_WHITESPACE shift, and go to state 24
581: TC_DOLLAR_CURLY shift, and go to state 13
582: '"' shift, and go to state 25
583: '~' shift, and go to state 39
584: '!' shift, and go to state 40
585: '(' shift, and go to state 41
586:
587: var_string_list go to state 43
588: expr go to state 57
589: cfg_var_ref go to state 28
590: constant_string go to state 29
591:
592:
593: state 42
594:
595: 4 statement: TC_LABEL '=' string_or_value .
596:
597: $default reduce using rule 4 (statement)
598:
599:
600: state 43
601:
602: 28 var_string_list: var_string_list . cfg_var_ref
603: 29 | var_string_list . constant_string
604: 30 | var_string_list . '"' encapsed_list '"'
605: 31 expr: var_string_list .
606:
607: TC_RAW shift, and go to state 20
608: TC_CONSTANT shift, and go to state 21
609: TC_NUMBER shift, and go to state 22
610: TC_STRING shift, and go to state 23
611: TC_WHITESPACE shift, and go to state 24
612: TC_DOLLAR_CURLY shift, and go to state 13
613: '"' shift, and go to state 47
614:
615: $default reduce using rule 31 (expr)
616:
617: cfg_var_ref go to state 48
618: constant_string go to state 49
619:
620:
621: state 44
622:
623: 10 string_or_value: expr .
624: 32 expr: expr . '|' expr
625: 33 | expr . '&' expr
626:
627: '|' shift, and go to state 58
628: '&' shift, and go to state 59
629:
630: $default reduce using rule 10 (string_or_value)
631:
632:
633: state 45
634:
635: 16 encapsed_list: encapsed_list . cfg_var_ref
636: 17 | encapsed_list . TC_QUOTED_STRING
637: 27 var_string_list: '"' encapsed_list . '"'
638:
639: TC_DOLLAR_CURLY shift, and go to state 13
640: TC_QUOTED_STRING shift, and go to state 51
641: '"' shift, and go to state 60
642:
643: cfg_var_ref go to state 53
644:
645:
646: state 46
647:
648: 5 statement: TC_OFFSET option_offset ']' . '=' string_or_value
649:
650: '=' shift, and go to state 61
651:
652:
653: state 47
654:
655: 30 var_string_list: var_string_list '"' . encapsed_list '"'
656:
657: $default reduce using rule 18 (encapsed_list)
658:
659: encapsed_list go to state 62
660:
661:
662: state 48
663:
664: 28 var_string_list: var_string_list cfg_var_ref .
665:
666: $default reduce using rule 28 (var_string_list)
667:
668:
669: state 49
670:
671: 29 var_string_list: var_string_list constant_string .
672:
673: $default reduce using rule 29 (var_string_list)
674:
675:
676: state 50
677:
678: 37 cfg_var_ref: TC_DOLLAR_CURLY TC_VARNAME '}' .
679:
680: $default reduce using rule 37 (cfg_var_ref)
681:
682:
683: state 51
684:
685: 17 encapsed_list: encapsed_list TC_QUOTED_STRING .
686:
687: $default reduce using rule 17 (encapsed_list)
688:
689:
690: state 52
691:
692: 21 var_string_list_section: '"' encapsed_list '"' .
693:
694: $default reduce using rule 21 (var_string_list_section)
695:
696:
697: state 53
698:
699: 16 encapsed_list: encapsed_list cfg_var_ref .
700:
701: $default reduce using rule 16 (encapsed_list)
702:
703:
704: state 54
705:
706: 16 encapsed_list: encapsed_list . cfg_var_ref
707: 17 | encapsed_list . TC_QUOTED_STRING
708: 24 var_string_list_section: var_string_list_section '"' encapsed_list . '"'
709:
710: TC_DOLLAR_CURLY shift, and go to state 13
711: TC_QUOTED_STRING shift, and go to state 51
712: '"' shift, and go to state 63
713:
714: cfg_var_ref go to state 53
715:
716:
717: state 55
718:
719: 32 expr: expr . '|' expr
720: 33 | expr . '&' expr
721: 34 | '~' expr .
722:
723: $default reduce using rule 34 (expr)
724:
725:
726: state 56
727:
728: 32 expr: expr . '|' expr
729: 33 | expr . '&' expr
730: 35 | '!' expr .
731:
732: $default reduce using rule 35 (expr)
733:
734:
735: state 57
736:
737: 32 expr: expr . '|' expr
738: 33 | expr . '&' expr
739: 36 | '(' expr . ')'
740:
741: '|' shift, and go to state 58
742: '&' shift, and go to state 59
743: ')' shift, and go to state 64
744:
745:
746: state 58
747:
748: 32 expr: expr '|' . expr
749:
750: TC_RAW shift, and go to state 20
751: TC_CONSTANT shift, and go to state 21
752: TC_NUMBER shift, and go to state 22
753: TC_STRING shift, and go to state 23
754: TC_WHITESPACE shift, and go to state 24
755: TC_DOLLAR_CURLY shift, and go to state 13
756: '"' shift, and go to state 25
757: '~' shift, and go to state 39
758: '!' shift, and go to state 40
759: '(' shift, and go to state 41
760:
761: var_string_list go to state 43
762: expr go to state 65
763: cfg_var_ref go to state 28
764: constant_string go to state 29
765:
766:
767: state 59
768:
769: 33 expr: expr '&' . expr
770:
771: TC_RAW shift, and go to state 20
772: TC_CONSTANT shift, and go to state 21
773: TC_NUMBER shift, and go to state 22
774: TC_STRING shift, and go to state 23
775: TC_WHITESPACE shift, and go to state 24
776: TC_DOLLAR_CURLY shift, and go to state 13
777: '"' shift, and go to state 25
778: '~' shift, and go to state 39
779: '!' shift, and go to state 40
780: '(' shift, and go to state 41
781:
782: var_string_list go to state 43
783: expr go to state 66
784: cfg_var_ref go to state 28
785: constant_string go to state 29
786:
787:
788: state 60
789:
790: 27 var_string_list: '"' encapsed_list '"' .
791:
792: $default reduce using rule 27 (var_string_list)
793:
794:
795: state 61
796:
797: 5 statement: TC_OFFSET option_offset ']' '=' . string_or_value
798:
799: TC_RAW shift, and go to state 20
800: TC_CONSTANT shift, and go to state 21
801: TC_NUMBER shift, and go to state 22
802: TC_STRING shift, and go to state 23
803: TC_WHITESPACE shift, and go to state 24
804: TC_DOLLAR_CURLY shift, and go to state 13
805: BOOL_TRUE shift, and go to state 36
806: BOOL_FALSE shift, and go to state 37
807: END_OF_LINE shift, and go to state 38
808: '"' shift, and go to state 25
809: '~' shift, and go to state 39
810: '!' shift, and go to state 40
811: '(' shift, and go to state 41
812:
813: string_or_value go to state 67
814: var_string_list go to state 43
815: expr go to state 44
816: cfg_var_ref go to state 28
817: constant_string go to state 29
818:
819:
820: state 62
821:
822: 16 encapsed_list: encapsed_list . cfg_var_ref
823: 17 | encapsed_list . TC_QUOTED_STRING
824: 30 var_string_list: var_string_list '"' encapsed_list . '"'
825:
826: TC_DOLLAR_CURLY shift, and go to state 13
827: TC_QUOTED_STRING shift, and go to state 51
828: '"' shift, and go to state 68
829:
830: cfg_var_ref go to state 53
831:
832:
833: state 63
834:
835: 24 var_string_list_section: var_string_list_section '"' encapsed_list '"' .
836:
837: $default reduce using rule 24 (var_string_list_section)
838:
839:
840: state 64
841:
842: 36 expr: '(' expr ')' .
843:
844: $default reduce using rule 36 (expr)
845:
846:
847: state 65
848:
849: 32 expr: expr . '|' expr
850: 32 | expr '|' expr .
851: 33 | expr . '&' expr
852:
853: $default reduce using rule 32 (expr)
854:
855:
856: state 66
857:
858: 32 expr: expr . '|' expr
859: 33 | expr . '&' expr
860: 33 | expr '&' expr .
861:
862: $default reduce using rule 33 (expr)
863:
864:
865: state 67
866:
867: 5 statement: TC_OFFSET option_offset ']' '=' string_or_value .
868:
869: $default reduce using rule 5 (statement)
870:
871:
872: state 68
873:
874: 30 var_string_list: var_string_list '"' encapsed_list '"' .
875:
876: $default reduce using rule 30 (var_string_list)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>