-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash-5.2-patch-18.patch
More file actions
2634 lines (2434 loc) · 119 KB
/
bash-5.2-patch-18.patch
File metadata and controls
2634 lines (2434 loc) · 119 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
diff --git a/parse.y b/parse.y
--- a/parse.y
+++ b/parse.y
@@ -452,6 +452,21 @@ inputunit: simple_list simple_list_terminator
YYABORT;
}
}
+ | error YYEOF
+ {
+ global_command = (COMMAND *)NULL;
+ if (last_command_exit_value == 0)
+ last_command_exit_value = EX_BADUSAGE; /* force error return */
+ if (interactive && parse_and_execute_level == 0)
+ {
+ handle_eof_input_unit ();
+ YYACCEPT;
+ }
+ else
+ {
+ YYABORT;
+ }
+ }
| yacc_EOF
{
/* Case of EOF seen by itself. Do ignoreeof or
@@ -2897,9 +2912,9 @@ yylex ()
if (current_token < 0)
#if defined (YYERRCODE) && !defined (YYUNDEF)
- current_token = YYERRCODE;
+ current_token = EOF_Reached ? YYEOF : YYERRCODE;
#else
- current_token = YYerror;
+ current_token = EOF_Reached ? YYEOF : YYUNDEF;
#endif
return (current_token);
@@ -3694,6 +3709,7 @@ parse_matched_pair (qc, open, close, lenp, flags)
free (ret);
parser_error (start_lineno, _("unexpected EOF while looking for matching `%c'"), close);
EOF_Reached = 1; /* XXX */
+ parser_state |= PST_NOERROR; /* avoid redundant error message */
return (&matched_pair_error);
}
@@ -4156,6 +4172,7 @@ parse_comsub (qc, open, close, lenp, flags)
expand_aliases = ps.expand_aliases;
/* yyparse() has already called yyerror() and reset_parser() */
+ parser_state |= PST_NOERROR;
return (&matched_pair_error);
}
else if (r != 0)
diff --git a/patchlevel.h b/patchlevel.h
--- a/patchlevel.h
+++ b/patchlevel.h
@@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */
-#define PATCHLEVEL 17
+#define PATCHLEVEL 18
#endif /* _PATCHLEVEL_H_ */
diff --git a/y.tab.c b/y.tab.c
--- a/y.tab.c
+++ b/y.tab.c
@@ -992,7 +992,7 @@ union yyalloc
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 121
+#define YYFINAL 122
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 740
@@ -1001,9 +1001,9 @@ union yyalloc
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 38
/* YYNRULES -- Number of rules. */
-#define YYNRULES 174
+#define YYNRULES 175
/* YYNSTATES -- Number of states. */
-#define YYNSTATES 349
+#define YYNSTATES 350
/* YYMAXUTOK -- Last valid token kind. */
#define YYMAXUTOK 305
@@ -1057,24 +1057,24 @@ static const yytype_int8 yytranslate[] =
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_int16 yyrline[] =
{
- 0, 395, 395, 406, 414, 423, 438, 455, 465, 467,
- 471, 477, 483, 489, 495, 501, 507, 513, 519, 525,
- 531, 537, 543, 549, 555, 561, 568, 575, 582, 589,
- 596, 603, 609, 615, 621, 627, 633, 639, 645, 651,
- 657, 663, 669, 675, 681, 687, 693, 699, 705, 711,
- 717, 723, 729, 735, 743, 745, 747, 751, 755, 766,
- 768, 772, 774, 776, 792, 794, 798, 800, 802, 804,
- 806, 808, 810, 812, 814, 816, 818, 822, 827, 832,
- 837, 842, 847, 852, 857, 864, 870, 876, 882, 890,
- 895, 900, 905, 910, 915, 920, 925, 932, 937, 942,
- 949, 951, 953, 955, 959, 961, 992, 999, 1003, 1009,
- 1014, 1031, 1036, 1053, 1060, 1062, 1064, 1069, 1073, 1077,
- 1081, 1083, 1085, 1089, 1090, 1094, 1096, 1098, 1100, 1104,
- 1106, 1108, 1110, 1112, 1114, 1118, 1120, 1129, 1135, 1141,
- 1142, 1149, 1153, 1155, 1157, 1164, 1166, 1173, 1177, 1178,
- 1181, 1183, 1185, 1189, 1190, 1199, 1214, 1232, 1249, 1251,
- 1253, 1260, 1263, 1267, 1269, 1275, 1281, 1301, 1324, 1326,
- 1349, 1353, 1355, 1357, 1359
+ 0, 395, 395, 406, 414, 423, 438, 455, 470, 480,
+ 482, 486, 492, 498, 504, 510, 516, 522, 528, 534,
+ 540, 546, 552, 558, 564, 570, 576, 583, 590, 597,
+ 604, 611, 618, 624, 630, 636, 642, 648, 654, 660,
+ 666, 672, 678, 684, 690, 696, 702, 708, 714, 720,
+ 726, 732, 738, 744, 750, 758, 760, 762, 766, 770,
+ 781, 783, 787, 789, 791, 807, 809, 813, 815, 817,
+ 819, 821, 823, 825, 827, 829, 831, 833, 837, 842,
+ 847, 852, 857, 862, 867, 872, 879, 885, 891, 897,
+ 905, 910, 915, 920, 925, 930, 935, 940, 947, 952,
+ 957, 964, 966, 968, 970, 974, 976, 1007, 1014, 1018,
+ 1024, 1029, 1046, 1051, 1068, 1075, 1077, 1079, 1084, 1088,
+ 1092, 1096, 1098, 1100, 1104, 1105, 1109, 1111, 1113, 1115,
+ 1119, 1121, 1123, 1125, 1127, 1129, 1133, 1135, 1144, 1150,
+ 1156, 1157, 1164, 1168, 1170, 1172, 1179, 1181, 1188, 1192,
+ 1193, 1196, 1198, 1200, 1204, 1205, 1214, 1229, 1247, 1264,
+ 1266, 1268, 1275, 1278, 1282, 1284, 1290, 1296, 1316, 1339,
+ 1341, 1364, 1368, 1370, 1372, 1374
};
#endif
@@ -1119,7 +1119,7 @@ yysymbol_name (yysymbol_kind_t yysymbol)
}
#endif
-#define YYPACT_NINF (-152)
+#define YYPACT_NINF (-125)
#define yypact_value_is_default(Yyn) \
((Yyn) == YYPACT_NINF)
@@ -1133,41 +1133,41 @@ yysymbol_name (yysymbol_kind_t yysymbol)
STATE-NUM. */
static const yytype_int16 yypact[] =
{
- 328, 80, -152, -11, -1, 3, -152, -152, 15, 637,
- -5, 433, 149, -28, -152, 187, 684, -152, 18, 28,
- 130, 38, 139, 50, 52, 60, 65, 74, -152, -152,
- -152, 89, 104, -152, -152, 97, -152, -152, 246, -152,
- 670, -152, -152, -152, -152, -152, -152, -152, -152, -152,
- -152, -152, -152, 146, 211, -152, 1, 433, -152, -152,
- 135, 484, -152, 59, 61, 90, 167, 171, 10, 71,
- 246, 670, 144, -152, -152, -152, -152, -152, 165, -152,
- 142, 179, 192, 140, 194, 160, 227, 245, 252, 253,
- 260, 261, 262, 162, 269, 178, 270, 272, 273, 274,
- 277, -152, -152, -152, -152, -152, -152, -152, -152, -152,
- -152, -152, -152, -152, -152, 168, 379, -152, -152, 173,
- 244, -152, -152, -152, -152, 670, -152, -152, -152, -152,
- -152, 535, 535, -152, -152, -152, -152, -152, -152, -152,
- 205, -152, 14, -152, 36, -152, -152, -152, -152, 84,
- -152, -152, -152, 249, 670, -152, 670, 670, -152, -152,
- -152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
- -152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
- -152, -152, -152, -152, -152, -152, -152, -152, -152, -152,
- -152, -152, -152, -152, 484, 484, 203, 203, 586, 586,
- 145, -152, -152, -152, -152, -152, -152, 0, -152, 119,
- -152, 291, 248, 66, 88, -152, 119, -152, 296, 297,
- 35, -152, 670, 670, 35, -152, -152, 1, 1, -152,
- -152, -152, 306, 484, 484, 484, 484, 484, 305, 169,
- -152, 7, -152, -152, 302, -152, 131, -152, 265, -152,
- -152, -152, -152, -152, -152, 304, 131, -152, 266, -152,
- -152, -152, 35, -152, 313, 317, -152, -152, -152, 225,
- 225, 225, -152, -152, -152, -152, 206, 25, -152, -152,
- 307, -42, 319, 276, -152, -152, -152, 95, -152, 322,
- 283, 332, 284, -152, -152, 102, -152, -152, -152, -152,
- -152, -152, -152, -152, 45, 323, -152, -152, -152, 106,
- -152, -152, -152, -152, -152, -152, 109, -152, -152, 264,
- -152, -152, -152, 484, -152, -152, 333, 293, -152, -152,
- 338, 300, -152, -152, -152, 484, 345, 303, -152, -152,
- 346, 309, -152, -152, -152, -152, -152, -152, -152
+ 329, 27, -125, 8, 81, 10, -125, -125, 16, 38,
+ 0, 434, -5, -16, -125, 670, 684, -125, 33, 43,
+ 62, 63, 71, 69, 94, 105, 108, 116, -125, -125,
+ -125, 125, 139, -125, -125, 111, -125, -125, 626, -125,
+ 648, -125, -125, -125, -125, -125, -125, -125, -125, -125,
+ -125, -125, -125, 5, -21, -125, -15, 434, -125, -125,
+ -125, 196, 485, -125, 157, 2, 180, 207, 222, 227,
+ 638, 626, 648, 224, -125, -125, -125, -125, -125, 219,
+ -125, 185, 223, 228, 140, 230, 161, 232, 233, 234,
+ 236, 241, 248, 249, 162, 250, 163, 251, 254, 256,
+ 257, 258, -125, -125, -125, -125, -125, -125, -125, -125,
+ -125, -125, -125, -125, -125, -125, 225, 380, -125, -125,
+ 229, 231, -125, -125, -125, -125, 648, -125, -125, -125,
+ -125, -125, 536, 536, -125, -125, -125, -125, -125, -125,
+ -125, 214, -125, -7, -125, 85, -125, -125, -125, -125,
+ 89, -125, -125, -125, 235, 648, -125, 648, 648, -125,
+ -125, -125, -125, -125, -125, -125, -125, -125, -125, -125,
+ -125, -125, -125, -125, -125, -125, -125, -125, -125, -125,
+ -125, -125, -125, -125, -125, -125, -125, -125, -125, -125,
+ -125, -125, -125, -125, -125, 485, 485, 138, 138, 587,
+ 587, 17, -125, -125, -125, -125, -125, -125, 88, -125,
+ 122, -125, 274, 238, 100, 101, -125, 122, -125, 276,
+ 278, 260, -125, 648, 648, 260, -125, -125, -15, -15,
+ -125, -125, -125, 287, 485, 485, 485, 485, 485, 290,
+ 164, -125, 26, -125, -125, 285, -125, 131, -125, 242,
+ -125, -125, -125, -125, -125, -125, 288, 131, -125, 243,
+ -125, -125, -125, 260, -125, 297, 302, -125, -125, -125,
+ 152, 152, 152, -125, -125, -125, -125, 170, 61, -125,
+ -125, 281, -36, 293, 252, -125, -125, -125, 102, -125,
+ 298, 255, 300, 262, -125, -125, 103, -125, -125, -125,
+ -125, -125, -125, -125, -125, -33, 296, -125, -125, -125,
+ 110, -125, -125, -125, -125, -125, -125, 112, -125, -125,
+ 189, -125, -125, -125, 485, -125, -125, 310, 267, -125,
+ -125, 314, 275, -125, -125, -125, 485, 318, 277, -125,
+ -125, 320, 279, -125, -125, -125, -125, -125, -125, -125
};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
@@ -1175,59 +1175,59 @@ static const yytype_int16 yypact[] =
means the default is an error. */
static const yytype_uint8 yydefact[] =
{
- 0, 0, 153, 0, 0, 0, 153, 153, 0, 0,
- 0, 0, 171, 54, 55, 0, 0, 118, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 153, 4,
- 7, 0, 0, 153, 153, 0, 56, 59, 61, 170,
- 62, 66, 76, 70, 67, 64, 72, 3, 65, 71,
- 73, 74, 75, 0, 155, 162, 163, 0, 5, 6,
- 0, 0, 153, 153, 0, 153, 0, 0, 0, 54,
- 113, 109, 0, 151, 150, 152, 167, 164, 172, 173,
+ 0, 0, 154, 0, 0, 0, 154, 154, 0, 0,
+ 0, 0, 172, 55, 56, 0, 0, 119, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 154, 4,
+ 8, 0, 0, 154, 154, 0, 57, 60, 62, 171,
+ 63, 67, 77, 71, 68, 65, 73, 3, 66, 72,
+ 74, 75, 76, 0, 156, 163, 164, 0, 7, 5,
+ 6, 0, 0, 154, 154, 0, 154, 0, 0, 0,
+ 55, 114, 110, 0, 152, 151, 153, 168, 165, 173,
+ 174, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 16, 25, 40, 34, 49, 31, 43, 37, 46,
- 28, 52, 53, 22, 19, 0, 0, 10, 11, 0,
- 0, 1, 54, 60, 57, 63, 148, 149, 2, 153,
- 153, 156, 157, 153, 153, 166, 165, 153, 154, 137,
- 138, 147, 0, 153, 0, 153, 153, 153, 153, 0,
- 153, 153, 153, 153, 104, 102, 111, 110, 119, 174,
- 153, 18, 27, 42, 36, 51, 33, 45, 39, 48,
- 30, 24, 21, 14, 15, 17, 26, 41, 35, 50,
- 32, 44, 38, 47, 29, 23, 20, 12, 13, 107,
- 108, 117, 106, 58, 0, 0, 160, 161, 0, 0,
- 0, 153, 153, 153, 153, 153, 153, 0, 153, 0,
- 153, 0, 0, 0, 0, 153, 0, 153, 0, 0,
- 0, 153, 105, 112, 0, 158, 159, 169, 168, 153,
- 153, 114, 0, 0, 0, 140, 141, 139, 0, 123,
- 153, 0, 153, 153, 0, 8, 0, 153, 0, 87,
- 88, 153, 153, 153, 153, 0, 0, 153, 0, 68,
- 69, 103, 0, 100, 0, 0, 116, 142, 143, 144,
- 145, 146, 99, 129, 131, 133, 124, 0, 97, 135,
- 0, 0, 0, 0, 77, 9, 153, 0, 78, 0,
- 0, 0, 0, 89, 153, 0, 90, 101, 115, 153,
- 130, 132, 134, 98, 0, 0, 153, 79, 80, 0,
- 153, 153, 85, 86, 91, 92, 0, 153, 153, 120,
- 153, 136, 125, 126, 153, 153, 0, 0, 153, 153,
- 0, 0, 153, 122, 127, 128, 0, 0, 83, 84,
- 0, 0, 95, 96, 121, 81, 82, 93, 94
+ 0, 0, 17, 26, 41, 35, 50, 32, 44, 38,
+ 47, 29, 53, 54, 23, 20, 0, 0, 11, 12,
+ 0, 0, 1, 55, 61, 58, 64, 149, 150, 2,
+ 154, 154, 157, 158, 154, 154, 167, 166, 154, 155,
+ 138, 139, 148, 0, 154, 0, 154, 154, 154, 154,
+ 0, 154, 154, 154, 154, 105, 103, 112, 111, 120,
+ 175, 154, 19, 28, 43, 37, 52, 34, 46, 40,
+ 49, 31, 25, 22, 15, 16, 18, 27, 42, 36,
+ 51, 33, 45, 39, 48, 30, 24, 21, 13, 14,
+ 108, 109, 118, 107, 59, 0, 0, 161, 162, 0,
+ 0, 0, 154, 154, 154, 154, 154, 154, 0, 154,
+ 0, 154, 0, 0, 0, 0, 154, 0, 154, 0,
+ 0, 0, 154, 106, 113, 0, 159, 160, 170, 169,
+ 154, 154, 115, 0, 0, 0, 141, 142, 140, 0,
+ 124, 154, 0, 154, 154, 0, 9, 0, 154, 0,
+ 88, 89, 154, 154, 154, 154, 0, 0, 154, 0,
+ 69, 70, 104, 0, 101, 0, 0, 117, 143, 144,
+ 145, 146, 147, 100, 130, 132, 134, 125, 0, 98,
+ 136, 0, 0, 0, 0, 78, 10, 154, 0, 79,
+ 0, 0, 0, 0, 90, 154, 0, 91, 102, 116,
+ 154, 131, 133, 135, 99, 0, 0, 154, 80, 81,
+ 0, 154, 154, 86, 87, 92, 93, 0, 154, 154,
+ 121, 154, 137, 126, 127, 154, 154, 0, 0, 154,
+ 154, 0, 0, 154, 123, 128, 129, 0, 0, 84,
+ 85, 0, 0, 96, 97, 122, 82, 83, 94, 95
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
- -152, -152, 112, -29, -14, -64, 360, -152, -8, -152,
- -152, -152, -152, -152, -151, -152, -152, -152, -152, -152,
- -152, -152, 13, -152, 136, -152, 98, -2, -152, 30,
- -152, -54, -26, -152, -123, 6, 78, -152
+ -125, -125, 126, -25, -28, -65, 335, -125, -8, -125,
+ -125, -125, -125, -125, -96, -125, -125, -125, -125, -125,
+ -125, -125, 28, -125, 109, -125, 68, -2, -125, -11,
+ -125, -54, -26, -125, -124, 6, 34, -125
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
- 0, 35, 246, 36, 37, 125, 38, 39, 40, 41,
- 42, 43, 44, 45, 155, 46, 47, 48, 49, 50,
- 51, 52, 232, 238, 239, 240, 281, 120, 139, 140,
- 128, 76, 61, 53, 54, 141, 56, 57
+ 0, 35, 247, 36, 37, 126, 38, 39, 40, 41,
+ 42, 43, 44, 45, 156, 46, 47, 48, 49, 50,
+ 51, 52, 233, 239, 240, 241, 282, 121, 140, 141,
+ 129, 77, 62, 53, 54, 142, 56, 57
};
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
@@ -1235,157 +1235,157 @@ static const yytype_int16 yydefgoto[] =
number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_int16 yytable[] =
{
- 60, 71, 116, 135, 66, 67, 55, 157, 196, 197,
- 147, 124, 305, 2, 242, 62, 278, 77, 3, 306,
- 4, 5, 6, 7, 123, 63, 115, 72, 10, 65,
- 64, 119, 80, 279, 303, 206, 142, 144, 2, 149,
- 17, 68, 124, 3, 101, 4, 5, 6, 7, 133,
- 208, 279, 138, 10, 102, 134, 123, 209, 243, 138,
- 154, 156, 152, 136, 106, 17, 138, 280, 33, 261,
- 153, 225, 226, 263, 2, 145, 110, 138, 111, 3,
- 251, 4, 5, 6, 7, 280, 112, 138, 138, 10,
- 222, 113, 223, 33, 210, 34, 193, 121, 215, 305,
- 114, 17, 253, 194, 195, 216, 320, 198, 199, 310,
- 143, 297, 73, 74, 75, 117, 317, 207, 138, 146,
- 324, 213, 214, 328, 252, 124, 220, 124, 193, 33,
- 118, 34, 58, 59, 224, 200, 138, 55, 55, 137,
- 138, 148, 217, 211, 212, 245, 254, 138, 218, 219,
- 229, 230, 231, 311, 138, 247, 103, 285, 138, 104,
- 318, 138, 257, 158, 325, 107, 163, 329, 108, 164,
- 73, 74, 75, 78, 79, 233, 234, 235, 236, 237,
- 241, 150, 73, 74, 75, 151, 167, 105, 177, 168,
- 159, 178, 286, 193, 193, 262, 109, 165, 126, 127,
- 55, 55, 294, 160, 181, 161, 244, 182, 248, 273,
- 274, 275, 154, 255, 277, 258, 154, 169, 162, 179,
- 166, 287, 81, 82, 83, 84, 85, 264, 265, 189,
- 86, 295, 191, 87, 88, 183, 129, 130, 201, 202,
- 282, 283, 89, 90, 129, 130, 300, 301, 302, 289,
- 290, 291, 292, 170, 154, 203, 204, 205, 201, 202,
- 309, 131, 132, 267, 268, 269, 270, 271, 316, 332,
- 230, 171, 122, 14, 15, 16, 227, 228, 172, 173,
- 323, 18, 19, 20, 21, 22, 174, 175, 176, 23,
- 24, 25, 26, 27, 335, 180, 184, 319, 185, 186,
- 187, 31, 32, 188, 322, 192, 249, 250, 326, 327,
- 221, 259, 260, 266, 272, 330, 331, 284, 334, 293,
- 298, 299, 336, 337, 288, 296, 340, 341, 256, 1,
- 344, 2, 333, 279, 307, 308, 3, 312, 4, 5,
- 6, 7, 313, 315, 8, 9, 10, 314, 338, 321,
- 11, 12, 339, 342, 13, 14, 15, 16, 17, 343,
- 345, 347, 346, 18, 19, 20, 21, 22, 348, 70,
- 0, 23, 24, 25, 26, 27, 276, 28, 304, 0,
- 29, 30, 2, 31, 32, 0, 33, 3, 34, 4,
- 5, 6, 7, 0, 0, 8, 9, 10, 0, 0,
- 0, 11, 12, 0, 0, 13, 14, 15, 16, 17,
+ 61, 72, 117, 136, 67, 68, 55, 158, 197, 198,
+ 124, 148, 130, 131, 207, 125, 146, 78, 306, 79,
+ 80, 306, 230, 231, 232, 307, 116, 58, 321, 132,
+ 133, 120, 73, 134, 63, 279, 66, 143, 145, 135,
+ 150, 2, 69, 124, 81, 139, 3, 125, 4, 5,
+ 6, 7, 280, 74, 75, 76, 10, 127, 128, 102,
+ 147, 155, 157, 137, 70, 14, 15, 16, 17, 103,
+ 304, 226, 227, 18, 19, 20, 21, 22, 139, 59,
+ 60, 23, 24, 25, 26, 27, 281, 280, 104, 107,
+ 223, 105, 224, 31, 32, 111, 33, 108, 34, 209,
+ 109, 194, 243, 216, 195, 196, 210, 64, 199, 200,
+ 217, 122, 65, 139, 252, 254, 311, 318, 208, 106,
+ 112, 281, 214, 215, 325, 262, 329, 221, 110, 264,
+ 125, 113, 125, 194, 114, 225, 201, 139, 55, 55,
+ 139, 139, 115, 211, 212, 213, 244, 218, 246, 219,
+ 220, 118, 139, 139, 139, 139, 248, 286, 253, 255,
+ 312, 319, 139, 258, 139, 119, 164, 298, 326, 165,
+ 330, 130, 131, 74, 75, 76, 234, 235, 236, 237,
+ 238, 242, 74, 75, 76, 202, 203, 168, 178, 182,
+ 169, 179, 183, 287, 333, 231, 263, 166, 194, 194,
+ 138, 55, 55, 295, 274, 275, 276, 245, 144, 249,
+ 301, 302, 303, 155, 256, 278, 259, 155, 170, 180,
+ 184, 151, 288, 268, 269, 270, 271, 272, 265, 266,
+ 2, 149, 296, 228, 229, 3, 152, 4, 5, 6,
+ 7, 283, 284, 159, 160, 10, 161, 202, 203, 162,
+ 290, 291, 292, 293, 163, 155, 167, 17, 171, 172,
+ 173, 310, 174, 2, 204, 205, 206, 175, 3, 317,
+ 4, 5, 6, 7, 176, 177, 181, 185, 10, 153,
+ 186, 324, 187, 188, 189, 33, 190, 154, 192, 250,
+ 17, 260, 193, 261, 267, 336, 222, 251, 320, 273,
+ 285, 289, 297, 294, 299, 323, 300, 280, 308, 327,
+ 328, 309, 139, 313, 314, 315, 331, 332, 33, 335,
+ 34, 316, 322, 337, 338, 339, 340, 341, 342, 343,
+ 1, 345, 2, 346, 344, 348, 347, 3, 349, 4,
+ 5, 6, 7, 257, 71, 8, 9, 10, 334, 305,
+ 277, 11, 12, 0, 0, 13, 14, 15, 16, 17,
0, 0, 0, 0, 18, 19, 20, 21, 22, 0,
- 0, 0, 23, 24, 25, 26, 27, 0, 0, 0,
- 0, 138, 0, 0, 31, 32, 2, 33, 0, 34,
- 190, 3, 0, 4, 5, 6, 7, 0, 0, 8,
- 9, 10, 0, 0, 0, 11, 12, 0, 0, 13,
- 14, 15, 16, 17, 0, 0, 0, 0, 18, 19,
- 20, 21, 22, 0, 0, 0, 23, 24, 25, 26,
- 27, 0, 0, 0, 73, 74, 75, 2, 31, 32,
- 0, 33, 3, 34, 4, 5, 6, 7, 0, 0,
+ 0, 0, 23, 24, 25, 26, 27, 0, 28, 0,
+ 0, 29, 30, 2, 31, 32, 0, 33, 3, 34,
+ 4, 5, 6, 7, 0, 0, 8, 9, 10, 0,
+ 0, 0, 11, 12, 0, 0, 13, 14, 15, 16,
+ 17, 0, 0, 0, 0, 18, 19, 20, 21, 22,
+ 0, 0, 0, 23, 24, 25, 26, 27, 0, 0,
+ 0, 0, 139, 0, 0, 31, 32, 2, 33, 0,
+ 34, 191, 3, 0, 4, 5, 6, 7, 0, 0,
8, 9, 10, 0, 0, 0, 11, 12, 0, 0,
13, 14, 15, 16, 17, 0, 0, 0, 0, 18,
19, 20, 21, 22, 0, 0, 0, 23, 24, 25,
- 26, 27, 0, 0, 0, 0, 138, 0, 2, 31,
+ 26, 27, 0, 0, 0, 74, 75, 76, 2, 31,
32, 0, 33, 3, 34, 4, 5, 6, 7, 0,
0, 8, 9, 10, 0, 0, 0, 11, 12, 0,
0, 13, 14, 15, 16, 17, 0, 0, 0, 0,
18, 19, 20, 21, 22, 0, 0, 0, 23, 24,
- 25, 26, 27, 0, 0, 0, 0, 0, 0, 2,
+ 25, 26, 27, 0, 0, 0, 0, 139, 0, 2,
31, 32, 0, 33, 3, 34, 4, 5, 6, 7,
- 0, 0, 8, 9, 10, 0, 0, 0, 0, 0,
+ 0, 0, 8, 9, 10, 0, 0, 0, 11, 12,
0, 0, 13, 14, 15, 16, 17, 0, 0, 0,
0, 18, 19, 20, 21, 22, 0, 0, 0, 23,
- 24, 25, 26, 27, 0, 0, 0, 0, 138, 0,
+ 24, 25, 26, 27, 0, 0, 0, 0, 0, 0,
2, 31, 32, 0, 33, 3, 34, 4, 5, 6,
- 7, 0, 0, 0, 0, 10, 0, 0, 0, 0,
- 0, 0, 0, 69, 14, 15, 16, 17, 0, 0,
+ 7, 0, 0, 8, 9, 10, 0, 0, 0, 0,
+ 0, 0, 0, 13, 14, 15, 16, 17, 0, 0,
0, 0, 18, 19, 20, 21, 22, 0, 0, 0,
- 23, 24, 25, 26, 27, 0, 0, 0, 0, 0,
- 0, 0, 31, 32, 0, 33, 0, 34, 15, 16,
- 0, 0, 0, 0, 0, 18, 19, 20, 21, 22,
- 0, 0, 0, 23, 24, 25, 26, 27, 0, 91,
- 92, 93, 94, 95, 0, 31, 32, 96, 0, 0,
- 97, 98, 0, 0, 0, 0, 0, 0, 0, 99,
- 100
+ 23, 24, 25, 26, 27, 0, 0, 0, 0, 139,
+ 0, 2, 31, 32, 0, 33, 3, 34, 4, 5,
+ 6, 7, 123, 14, 15, 16, 10, 0, 0, 0,
+ 0, 18, 19, 20, 21, 22, 0, 0, 17, 23,
+ 24, 25, 26, 27, 0, 0, 15, 16, 0, 0,
+ 0, 31, 32, 18, 19, 20, 21, 22, 0, 0,
+ 0, 23, 24, 25, 26, 27, 33, 0, 34, 0,
+ 0, 0, 0, 31, 32, 82, 83, 84, 85, 86,
+ 0, 0, 0, 87, 0, 0, 88, 89, 0, 92,
+ 93, 94, 95, 96, 0, 90, 91, 97, 0, 0,
+ 98, 99, 0, 0, 0, 0, 0, 0, 0, 100,
+ 101
};
static const yytype_int16 yycheck[] =
{
- 2, 9, 28, 57, 6, 7, 0, 71, 131, 132,
- 64, 40, 54, 3, 14, 26, 9, 11, 8, 61,
- 10, 11, 12, 13, 38, 26, 28, 32, 18, 26,
- 31, 33, 60, 26, 9, 21, 62, 63, 3, 65,
- 30, 26, 71, 8, 26, 10, 11, 12, 13, 48,
- 14, 26, 52, 18, 26, 54, 70, 21, 58, 52,
- 68, 69, 52, 57, 26, 30, 52, 60, 58, 220,
- 60, 194, 195, 224, 3, 14, 26, 52, 26, 8,
- 14, 10, 11, 12, 13, 60, 26, 52, 52, 18,
- 154, 26, 156, 58, 58, 60, 125, 0, 14, 54,
- 26, 30, 14, 129, 130, 21, 61, 133, 134, 14,
- 51, 262, 51, 52, 53, 26, 14, 143, 52, 58,
- 14, 147, 148, 14, 58, 154, 152, 156, 157, 58,
- 26, 60, 52, 53, 160, 137, 52, 131, 132, 4,
- 52, 51, 58, 145, 146, 26, 58, 52, 150, 151,
- 5, 6, 7, 58, 52, 209, 26, 26, 52, 29,
- 58, 52, 216, 19, 58, 26, 26, 58, 29, 29,
- 51, 52, 53, 24, 25, 201, 202, 203, 204, 205,
- 206, 14, 51, 52, 53, 14, 26, 57, 26, 29,
- 25, 29, 246, 222, 223, 221, 57, 57, 52, 53,
- 194, 195, 256, 61, 26, 26, 208, 29, 210, 40,
- 41, 42, 220, 215, 240, 217, 224, 57, 26, 57,
- 26, 247, 35, 36, 37, 38, 39, 229, 230, 61,
- 43, 257, 59, 46, 47, 57, 33, 34, 33, 34,
- 242, 243, 55, 56, 33, 34, 40, 41, 42, 251,
- 252, 253, 254, 26, 262, 50, 51, 52, 33, 34,
- 286, 50, 51, 233, 234, 235, 236, 237, 294, 5,
- 6, 26, 26, 27, 28, 29, 198, 199, 26, 26,
- 306, 35, 36, 37, 38, 39, 26, 26, 26, 43,
- 44, 45, 46, 47, 320, 26, 26, 299, 26, 26,
- 26, 55, 56, 26, 306, 61, 15, 59, 310, 311,
- 61, 15, 15, 7, 9, 317, 318, 15, 320, 15,
- 7, 4, 324, 325, 59, 59, 328, 329, 216, 1,
- 332, 3, 319, 26, 15, 59, 8, 15, 10, 11,
- 12, 13, 59, 59, 16, 17, 18, 15, 15, 26,
- 22, 23, 59, 15, 26, 27, 28, 29, 30, 59,
- 15, 15, 59, 35, 36, 37, 38, 39, 59, 9,
- -1, 43, 44, 45, 46, 47, 240, 49, 280, -1,
- 52, 53, 3, 55, 56, -1, 58, 8, 60, 10,
- 11, 12, 13, -1, -1, 16, 17, 18, -1, -1,
- -1, 22, 23, -1, -1, 26, 27, 28, 29, 30,
+ 2, 9, 28, 57, 6, 7, 0, 72, 132, 133,
+ 38, 65, 33, 34, 21, 40, 14, 11, 54, 24,
+ 25, 54, 5, 6, 7, 61, 28, 0, 61, 50,
+ 51, 33, 32, 48, 26, 9, 26, 63, 64, 54,
+ 66, 3, 26, 71, 60, 52, 8, 72, 10, 11,
+ 12, 13, 26, 51, 52, 53, 18, 52, 53, 26,
+ 58, 69, 70, 57, 26, 27, 28, 29, 30, 26,
+ 9, 195, 196, 35, 36, 37, 38, 39, 52, 52,
+ 53, 43, 44, 45, 46, 47, 60, 26, 26, 26,
+ 155, 29, 157, 55, 56, 26, 58, 26, 60, 14,
+ 29, 126, 14, 14, 130, 131, 21, 26, 134, 135,
+ 21, 0, 31, 52, 14, 14, 14, 14, 144, 57,
+ 26, 60, 148, 149, 14, 221, 14, 153, 57, 225,
+ 155, 26, 157, 158, 26, 161, 138, 52, 132, 133,
+ 52, 52, 26, 58, 146, 147, 58, 58, 26, 151,
+ 152, 26, 52, 52, 52, 52, 210, 26, 58, 58,
+ 58, 58, 52, 217, 52, 26, 26, 263, 58, 29,
+ 58, 33, 34, 51, 52, 53, 202, 203, 204, 205,
+ 206, 207, 51, 52, 53, 33, 34, 26, 26, 26,
+ 29, 29, 29, 247, 5, 6, 222, 57, 223, 224,
+ 4, 195, 196, 257, 40, 41, 42, 209, 51, 211,
+ 40, 41, 42, 221, 216, 241, 218, 225, 57, 57,
+ 57, 14, 248, 234, 235, 236, 237, 238, 230, 231,
+ 3, 51, 258, 199, 200, 8, 14, 10, 11, 12,
+ 13, 243, 244, 19, 25, 18, 61, 33, 34, 26,
+ 252, 253, 254, 255, 26, 263, 26, 30, 26, 26,
+ 26, 287, 26, 3, 50, 51, 52, 26, 8, 295,
+ 10, 11, 12, 13, 26, 26, 26, 26, 18, 52,
+ 26, 307, 26, 26, 26, 58, 61, 60, 59, 15,
+ 30, 15, 61, 15, 7, 321, 61, 59, 300, 9,
+ 15, 59, 59, 15, 7, 307, 4, 26, 15, 311,
+ 312, 59, 52, 15, 59, 15, 318, 319, 58, 321,
+ 60, 59, 26, 325, 326, 15, 59, 329, 330, 15,
+ 1, 333, 3, 15, 59, 15, 59, 8, 59, 10,
+ 11, 12, 13, 217, 9, 16, 17, 18, 320, 281,
+ 241, 22, 23, -1, -1, 26, 27, 28, 29, 30,
-1, -1, -1, -1, 35, 36, 37, 38, 39, -1,
- -1, -1, 43, 44, 45, 46, 47, -1, -1, -1,
- -1, 52, -1, -1, 55, 56, 3, 58, -1, 60,
- 61, 8, -1, 10, 11, 12, 13, -1, -1, 16,
- 17, 18, -1, -1, -1, 22, 23, -1, -1, 26,
- 27, 28, 29, 30, -1, -1, -1, -1, 35, 36,
- 37, 38, 39, -1, -1, -1, 43, 44, 45, 46,
- 47, -1, -1, -1, 51, 52, 53, 3, 55, 56,
- -1, 58, 8, 60, 10, 11, 12, 13, -1, -1,
+ -1, -1, 43, 44, 45, 46, 47, -1, 49, -1,
+ -1, 52, 53, 3, 55, 56, -1, 58, 8, 60,
+ 10, 11, 12, 13, -1, -1, 16, 17, 18, -1,
+ -1, -1, 22, 23, -1, -1, 26, 27, 28, 29,
+ 30, -1, -1, -1, -1, 35, 36, 37, 38, 39,
+ -1, -1, -1, 43, 44, 45, 46, 47, -1, -1,
+ -1, -1, 52, -1, -1, 55, 56, 3, 58, -1,
+ 60, 61, 8, -1, 10, 11, 12, 13, -1, -1,
16, 17, 18, -1, -1, -1, 22, 23, -1, -1,
26, 27, 28, 29, 30, -1, -1, -1, -1, 35,
36, 37, 38, 39, -1, -1, -1, 43, 44, 45,
- 46, 47, -1, -1, -1, -1, 52, -1, 3, 55,
+ 46, 47, -1, -1, -1, 51, 52, 53, 3, 55,
56, -1, 58, 8, 60, 10, 11, 12, 13, -1,
-1, 16, 17, 18, -1, -1, -1, 22, 23, -1,
-1, 26, 27, 28, 29, 30, -1, -1, -1, -1,
35, 36, 37, 38, 39, -1, -1, -1, 43, 44,
- 45, 46, 47, -1, -1, -1, -1, -1, -1, 3,
+ 45, 46, 47, -1, -1, -1, -1, 52, -1, 3,
55, 56, -1, 58, 8, 60, 10, 11, 12, 13,
- -1, -1, 16, 17, 18, -1, -1, -1, -1, -1,
+ -1, -1, 16, 17, 18, -1, -1, -1, 22, 23,
-1, -1, 26, 27, 28, 29, 30, -1, -1, -1,
-1, 35, 36, 37, 38, 39, -1, -1, -1, 43,
- 44, 45, 46, 47, -1, -1, -1, -1, 52, -1,
+ 44, 45, 46, 47, -1, -1, -1, -1, -1, -1,
3, 55, 56, -1, 58, 8, 60, 10, 11, 12,
- 13, -1, -1, -1, -1, 18, -1, -1, -1, -1,
+ 13, -1, -1, 16, 17, 18, -1, -1, -1, -1,
-1, -1, -1, 26, 27, 28, 29, 30, -1, -1,
-1, -1, 35, 36, 37, 38, 39, -1, -1, -1,
- 43, 44, 45, 46, 47, -1, -1, -1, -1, -1,
- -1, -1, 55, 56, -1, 58, -1, 60, 28, 29,
- -1, -1, -1, -1, -1, 35, 36, 37, 38, 39,
- -1, -1, -1, 43, 44, 45, 46, 47, -1, 35,
+ 43, 44, 45, 46, 47, -1, -1, -1, -1, 52,
+ -1, 3, 55, 56, -1, 58, 8, 60, 10, 11,
+ 12, 13, 26, 27, 28, 29, 18, -1, -1, -1,
+ -1, 35, 36, 37, 38, 39, -1, -1, 30, 43,
+ 44, 45, 46, 47, -1, -1, 28, 29, -1, -1,
+ -1, 55, 56, 35, 36, 37, 38, 39, -1, -1,
+ -1, 43, 44, 45, 46, 47, 58, -1, 60, -1,
+ -1, -1, -1, 55, 56, 35, 36, 37, 38, 39,
+ -1, -1, -1, 43, -1, -1, 46, 47, -1, 35,
36, 37, 38, 39, -1, 55, 56, 43, -1, -1,
46, 47, -1, -1, -1, -1, -1, -1, -1, 55,
56
@@ -1400,82 +1400,82 @@ static const yytype_int8 yystos[] =
37, 38, 39, 43, 44, 45, 46, 47, 49, 52,
53, 55, 56, 58, 60, 63, 65, 66, 68, 69,
70, 71, 72, 73, 74, 75, 77, 78, 79, 80,
- 81, 82, 83, 95, 96, 97, 98, 99, 52, 53,
- 89, 94, 26, 26, 31, 26, 89, 89, 26, 26,
- 68, 70, 32, 51, 52, 53, 93, 97, 24, 25,
- 60, 35, 36, 37, 38, 39, 43, 46, 47, 55,
- 56, 35, 36, 37, 38, 39, 43, 46, 47, 55,
- 56, 26, 26, 26, 29, 57, 26, 26, 29, 57,
- 26, 26, 26, 26, 26, 89, 94, 26, 26, 89,
- 89, 0, 26, 66, 65, 67, 52, 53, 92, 33,
- 34, 50, 51, 48, 54, 93, 97, 4, 52, 90,
- 91, 97, 94, 51, 94, 14, 58, 93, 51, 94,
- 14, 14, 52, 60, 70, 76, 70, 67, 19, 25,
- 61, 26, 26, 26, 29, 57, 26, 26, 29, 57,
- 26, 26, 26, 26, 26, 26, 26, 26, 29, 57,
- 26, 26, 29, 57, 26, 26, 26, 26, 26, 61,
- 61, 59, 61, 65, 94, 94, 96, 96, 94, 94,
- 89, 33, 34, 50, 51, 52, 21, 94, 14, 21,
- 58, 89, 89, 94, 94, 14, 21, 58, 89, 89,
- 94, 61, 67, 67, 94, 96, 96, 98, 98, 5,
- 6, 7, 84, 94, 94, 94, 94, 94, 85, 86,
- 87, 94, 14, 58, 89, 26, 64, 93, 89, 15,
- 59, 14, 58, 14, 58, 89, 64, 93, 89, 15,
- 15, 76, 94, 76, 89, 89, 7, 91, 91, 91,
- 91, 91, 9, 40, 41, 42, 86, 94, 9, 26,
- 60, 88, 89, 89, 15, 26, 93, 94, 59, 89,
- 89, 89, 89, 15, 93, 94, 59, 76, 7, 4,
- 40, 41, 42, 9, 88, 54, 61, 15, 59, 94,
- 14, 58, 15, 59, 15, 59, 94, 14, 58, 89,
- 61, 26, 89, 94, 14, 58, 89, 89, 14, 58,
- 89, 89, 5, 84, 89, 94, 89, 89, 15, 59,
- 89, 89, 15, 59, 89, 15, 59, 15, 59
+ 81, 82, 83, 95, 96, 97, 98, 99, 0, 52,
+ 53, 89, 94, 26, 26, 31, 26, 89, 89, 26,
+ 26, 68, 70, 32, 51, 52, 53, 93, 97, 24,
+ 25, 60, 35, 36, 37, 38, 39, 43, 46, 47,
+ 55, 56, 35, 36, 37, 38, 39, 43, 46, 47,
+ 55, 56, 26, 26, 26, 29, 57, 26, 26, 29,
+ 57, 26, 26, 26, 26, 26, 89, 94, 26, 26,
+ 89, 89, 0, 26, 66, 65, 67, 52, 53, 92,
+ 33, 34, 50, 51, 48, 54, 93, 97, 4, 52,
+ 90, 91, 97, 94, 51, 94, 14, 58, 93, 51,
+ 94, 14, 14, 52, 60, 70, 76, 70, 67, 19,
+ 25, 61, 26, 26, 26, 29, 57, 26, 26, 29,
+ 57, 26, 26, 26, 26, 26, 26, 26, 26, 29,
+ 57, 26, 26, 29, 57, 26, 26, 26, 26, 26,
+ 61, 61, 59, 61, 65, 94, 94, 96, 96, 94,
+ 94, 89, 33, 34, 50, 51, 52, 21, 94, 14,
+ 21, 58, 89, 89, 94, 94, 14, 21, 58, 89,
+ 89, 94, 61, 67, 67, 94, 96, 96, 98, 98,
+ 5, 6, 7, 84, 94, 94, 94, 94, 94, 85,
+ 86, 87, 94, 14, 58, 89, 26, 64, 93, 89,
+ 15, 59, 14, 58, 14, 58, 89, 64, 93, 89,
+ 15, 15, 76, 94, 76, 89, 89, 7, 91, 91,
+ 91, 91, 91, 9, 40, 41, 42, 86, 94, 9,
+ 26, 60, 88, 89, 89, 15, 26, 93, 94, 59,
+ 89, 89, 89, 89, 15, 93, 94, 59, 76, 7,
+ 4, 40, 41, 42, 9, 88, 54, 61, 15, 59,
+ 94, 14, 58, 15, 59, 15, 59, 94, 14, 58,
+ 89, 61, 26, 89, 94, 14, 58, 89, 89, 14,
+ 58, 89, 89, 5, 84, 89, 94, 89, 89, 15,
+ 59, 89, 89, 15, 59, 89, 15, 59, 15, 59
};
/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */
static const yytype_int8 yyr1[] =
{
- 0, 62, 63, 63, 63, 63, 63, 63, 64, 64,
- 65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
+ 0, 62, 63, 63, 63, 63, 63, 63, 63, 64,
+ 64, 65, 65, 65, 65, 65, 65, 65, 65, 65,
65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
- 65, 65, 65, 65, 66, 66, 66, 67, 67, 68,
- 68, 69, 69, 69, 69, 69, 70, 70, 70, 70,
- 70, 70, 70, 70, 70, 70, 70, 71, 71, 71,
- 71, 71, 71, 71, 71, 72, 72, 72, 72, 73,
- 73, 73, 73, 73, 73, 73, 73, 74, 74, 74,
- 75, 75, 75, 75, 76, 76, 77, 78, 78, 79,
- 79, 79, 79, 79, 80, 80, 80, 81, 82, 83,
- 84, 84, 84, 85, 85, 86, 86, 86, 86, 87,
- 87, 87, 87, 87, 87, 88, 88, 89, 89, 90,
- 90, 90, 91, 91, 91, 91, 91, 91, 92, 92,
- 93, 93, 93, 94, 94, 95, 95, 95, 96, 96,
- 96, 96, 96, 97, 97, 97, 97, 97, 98, 98,
- 98, 99, 99, 99, 99
+ 65, 65, 65, 65, 65, 66, 66, 66, 67, 67,
+ 68, 68, 69, 69, 69, 69, 69, 70, 70, 70,
+ 70, 70, 70, 70, 70, 70, 70, 70, 71, 71,
+ 71, 71, 71, 71, 71, 71, 72, 72, 72, 72,
+ 73, 73, 73, 73, 73, 73, 73, 73, 74, 74,
+ 74, 75, 75, 75, 75, 76, 76, 77, 78, 78,
+ 79, 79, 79, 79, 79, 80, 80, 80, 81, 82,
+ 83, 84, 84, 84, 85, 85, 86, 86, 86, 86,
+ 87, 87, 87, 87, 87, 87, 88, 88, 89, 89,
+ 90, 90, 90, 91, 91, 91, 91, 91, 91, 92,
+ 92, 93, 93, 93, 94, 94, 95, 95, 95, 96,
+ 96, 96, 96, 96, 97, 97, 97, 97, 97, 98,
+ 98, 98, 99, 99, 99, 99
};
/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */
static const yytype_int8 yyr2[] =
{
- 0, 2, 2, 1, 1, 2, 2, 1, 1, 2,
- 2, 2, 3, 3, 3, 3, 2, 3, 3, 2,
+ 0, 2, 2, 1, 1, 2, 2, 2, 1, 1,
+ 2, 2, 2, 3, 3, 3, 3, 2, 3, 3,
+ 2, 3, 3, 2, 3, 3, 2, 3, 3, 2,
3, 3, 2, 3, 3, 2, 3, 3, 2, 3,
3, 2, 3, 3, 2, 3, 3, 2, 3, 3,
- 2, 3, 3, 2, 3, 3, 2, 3, 3, 2,
- 3, 3, 2, 2, 1, 1, 1, 1, 2, 1,
- 2, 1, 1, 2, 1, 1, 1, 1, 5, 5,
- 1, 1, 1, 1, 1, 1, 1, 6, 6, 7,
- 7, 10, 10, 9, 9, 7, 7, 5, 5, 6,
- 6, 7, 7, 10, 10, 9, 9, 6, 7, 6,
- 5, 6, 3, 5, 1, 2, 3, 3, 3, 2,
- 3, 3, 4, 2, 5, 7, 6, 3, 1, 3,
- 4, 6, 5, 1, 2, 4, 4, 5, 5, 2,
- 3, 2, 3, 2, 3, 1, 3, 2, 2, 3,
- 3, 3, 4, 4, 4, 4, 4, 1, 1, 1,
- 1, 1, 1, 0, 2, 1, 2, 2, 4, 4,
- 3, 3, 1, 1, 2, 2, 2, 2, 4, 4,
- 1, 1, 2, 2, 3
+ 2, 3, 3, 2, 2, 1, 1, 1, 1, 2,
+ 1, 2, 1, 1, 2, 1, 1, 1, 1, 5,
+ 5, 1, 1, 1, 1, 1, 1, 1, 6, 6,
+ 7, 7, 10, 10, 9, 9, 7, 7, 5, 5,
+ 6, 6, 7, 7, 10, 10, 9, 9, 6, 7,
+ 6, 5, 6, 3, 5, 1, 2, 3, 3, 3,
+ 2, 3, 3, 4, 2, 5, 7, 6, 3, 1,
+ 3, 4, 6, 5, 1, 2, 4, 4, 5, 5,
+ 2, 3, 2, 3, 2, 3, 1, 3, 2, 2,
+ 3, 3, 3, 4, 4, 4, 4, 4, 1, 1,
+ 1, 1, 1, 1, 0, 2, 1, 2, 2, 4,
+ 4, 3, 3, 1, 1, 2, 2, 2, 2, 4,
+ 4, 1, 1, 2, 2, 3
};
@@ -2018,8 +2018,27 @@ yyreduce:
#line 2019 "y.tab.c"
break;
- case 7: /* inputunit: yacc_EOF */
+ case 7: /* inputunit: error $end */
#line 456 "/usr/local/src/chet/src/bash/src/parse.y"
+ {
+ global_command = (COMMAND *)NULL;
+ if (last_command_exit_value == 0)
+ last_command_exit_value = EX_BADUSAGE; /* force error return */
+ if (interactive && parse_and_execute_level == 0)
+ {
+ handle_eof_input_unit ();
+ YYACCEPT;
+ }
+ else
+ {
+ YYABORT;
+ }
+ }
+#line 2038 "y.tab.c"
+ break;
+
+ case 8: /* inputunit: yacc_EOF */
+#line 471 "/usr/local/src/chet/src/bash/src/parse.y"
{
/* Case of EOF seen by itself. Do ignoreeof or
not. */
@@ -2027,495 +2046,495 @@ yyreduce:
handle_eof_input_unit ();
YYACCEPT;
}
-#line 2031 "y.tab.c"
+#line 2050 "y.tab.c"
break;
- case 8: /* word_list: WORD */
-#line 466 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 9: /* word_list: WORD */
+#line 481 "/usr/local/src/chet/src/bash/src/parse.y"
{ (yyval.word_list) = make_word_list ((yyvsp[0].word), (WORD_LIST *)NULL); }
-#line 2037 "y.tab.c"
+#line 2056 "y.tab.c"
break;
- case 9: /* word_list: word_list WORD */
-#line 468 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 10: /* word_list: word_list WORD */
+#line 483 "/usr/local/src/chet/src/bash/src/parse.y"
{ (yyval.word_list) = make_word_list ((yyvsp[0].word), (yyvsp[-1].word_list)); }
-#line 2043 "y.tab.c"
+#line 2062 "y.tab.c"
break;
- case 10: /* redirection: '>' WORD */
-#line 472 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 11: /* redirection: '>' WORD */
+#line 487 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = 1;
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_output_direction, redir, 0);
}
-#line 2053 "y.tab.c"
+#line 2072 "y.tab.c"
break;
- case 11: /* redirection: '<' WORD */
-#line 478 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 12: /* redirection: '<' WORD */
+#line 493 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = 0;
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_input_direction, redir, 0);
}
-#line 2063 "y.tab.c"
+#line 2082 "y.tab.c"
break;
- case 12: /* redirection: NUMBER '>' WORD */
-#line 484 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 13: /* redirection: NUMBER '>' WORD */
+#line 499 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = (yyvsp[-2].number);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_output_direction, redir, 0);
}
-#line 2073 "y.tab.c"
+#line 2092 "y.tab.c"
break;
- case 13: /* redirection: NUMBER '<' WORD */
-#line 490 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 14: /* redirection: NUMBER '<' WORD */
+#line 505 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = (yyvsp[-2].number);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_input_direction, redir, 0);
}
-#line 2083 "y.tab.c"
+#line 2102 "y.tab.c"
break;
- case 14: /* redirection: REDIR_WORD '>' WORD */
-#line 496 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 15: /* redirection: REDIR_WORD '>' WORD */
+#line 511 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.filename = (yyvsp[-2].word);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_output_direction, redir, REDIR_VARASSIGN);
}
-#line 2093 "y.tab.c"
+#line 2112 "y.tab.c"
break;
- case 15: /* redirection: REDIR_WORD '<' WORD */
-#line 502 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 16: /* redirection: REDIR_WORD '<' WORD */
+#line 517 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.filename = (yyvsp[-2].word);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_input_direction, redir, REDIR_VARASSIGN);
}
-#line 2103 "y.tab.c"
+#line 2122 "y.tab.c"
break;
- case 16: /* redirection: GREATER_GREATER WORD */
-#line 508 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 17: /* redirection: GREATER_GREATER WORD */
+#line 523 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = 1;
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_appending_to, redir, 0);
}
-#line 2113 "y.tab.c"
+#line 2132 "y.tab.c"
break;
- case 17: /* redirection: NUMBER GREATER_GREATER WORD */
-#line 514 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 18: /* redirection: NUMBER GREATER_GREATER WORD */
+#line 529 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = (yyvsp[-2].number);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_appending_to, redir, 0);
}
-#line 2123 "y.tab.c"
+#line 2142 "y.tab.c"
break;
- case 18: /* redirection: REDIR_WORD GREATER_GREATER WORD */
-#line 520 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 19: /* redirection: REDIR_WORD GREATER_GREATER WORD */
+#line 535 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.filename = (yyvsp[-2].word);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_appending_to, redir, REDIR_VARASSIGN);
}
-#line 2133 "y.tab.c"
+#line 2152 "y.tab.c"
break;
- case 19: /* redirection: GREATER_BAR WORD */
-#line 526 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 20: /* redirection: GREATER_BAR WORD */
+#line 541 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = 1;
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_output_force, redir, 0);
}
-#line 2143 "y.tab.c"
+#line 2162 "y.tab.c"
break;
- case 20: /* redirection: NUMBER GREATER_BAR WORD */
-#line 532 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 21: /* redirection: NUMBER GREATER_BAR WORD */
+#line 547 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = (yyvsp[-2].number);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_output_force, redir, 0);
}
-#line 2153 "y.tab.c"
+#line 2172 "y.tab.c"
break;
- case 21: /* redirection: REDIR_WORD GREATER_BAR WORD */
-#line 538 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 22: /* redirection: REDIR_WORD GREATER_BAR WORD */
+#line 553 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.filename = (yyvsp[-2].word);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_output_force, redir, REDIR_VARASSIGN);
}
-#line 2163 "y.tab.c"
+#line 2182 "y.tab.c"
break;
- case 22: /* redirection: LESS_GREATER WORD */
-#line 544 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 23: /* redirection: LESS_GREATER WORD */
+#line 559 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = 0;
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_input_output, redir, 0);
}
-#line 2173 "y.tab.c"
+#line 2192 "y.tab.c"
break;
- case 23: /* redirection: NUMBER LESS_GREATER WORD */
-#line 550 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 24: /* redirection: NUMBER LESS_GREATER WORD */
+#line 565 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = (yyvsp[-2].number);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_input_output, redir, 0);
}
-#line 2183 "y.tab.c"
+#line 2202 "y.tab.c"
break;
- case 24: /* redirection: REDIR_WORD LESS_GREATER WORD */
-#line 556 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 25: /* redirection: REDIR_WORD LESS_GREATER WORD */
+#line 571 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.filename = (yyvsp[-2].word);
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_input_output, redir, REDIR_VARASSIGN);
}
-#line 2193 "y.tab.c"
+#line 2212 "y.tab.c"
break;
- case 25: /* redirection: LESS_LESS WORD */
-#line 562 "/usr/local/src/chet/src/bash/src/parse.y"
+ case 26: /* redirection: LESS_LESS WORD */
+#line 577 "/usr/local/src/chet/src/bash/src/parse.y"
{
source.dest = 0;
redir.filename = (yyvsp[0].word);
(yyval.redirect) = make_redirection (source, r_reading_until, redir, 0);
push_heredoc ((yyval.redirect));