summaryrefslogtreecommitdiff
path: root/perly.tab
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-08-22 06:13:17 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-08-24 19:02:58 -0700
commit5c86b6dfc4a5c74dad9f83a08d08b4536632cda1 (patch)
tree3649921a238463e4cf488051f1501c39570dfb72 /perly.tab
parent8f0d8652cd7599dde9c54931b556782c1275ff88 (diff)
downloadperl-5c86b6dfc4a5c74dad9f83a08d08b4536632cda1.tar.gz
Set PL_expect only once after curly subscripts
When curly subscripts are parsed, the lexer (toke.c:yylex) notes that the value of PL_expect needs to be set to XSTATE (expecting a state- ment) after the final brace. When the final brace is encountered, PL_expect is set to that recorded value. But then the parser (perly.y) sets it to XOPERATOR immediately thereafter. This approach requires a plethora of identical statements in perly.y. If we just set PL_expect to the right value to begin with, we can avoid all those assignments.
Diffstat (limited to 'perly.tab')
-rw-r--r--perly.tab30
1 files changed, 15 insertions, 15 deletions
diff --git a/perly.tab b/perly.tab
index a371c09e2d..a8d8e790a5 100644
--- a/perly.tab
+++ b/perly.tab
@@ -198,20 +198,20 @@ static const yytype_uint16 yyrline[] =
536, 541, 546, 547, 552, 553, 558, 559, 561, 566,
568, 573, 575, 574, 593, 603, 604, 608, 610, 612,
614, 618, 620, 625, 629, 633, 637, 643, 648, 654,
- 660, 662, 665, 664, 675, 676, 680, 686, 689, 694,
- 699, 703, 709, 715, 718, 723, 727, 730, 732, 734,
- 739, 741, 743, 748, 750, 752, 754, 756, 758, 760,
- 762, 764, 766, 768, 773, 775, 778, 780, 782, 785,
- 788, 799, 802, 809, 811, 813, 815, 817, 824, 826,
- 830, 831, 832, 833, 834, 836, 838, 840, 842, 844,
- 846, 848, 850, 852, 854, 856, 858, 860, 870, 880,
- 891, 902, 904, 906, 909, 914, 918, 920, 922, 924,
- 927, 929, 932, 934, 936, 938, 940, 942, 944, 946,
- 948, 951, 953, 955, 957, 959, 961, 965, 968, 967,
- 980, 981, 982, 987, 991, 993, 998, 1000, 1003, 1005,
- 1007, 1012, 1014, 1019, 1020, 1026, 1030, 1034, 1038, 1044,
- 1050, 1052, 1056, 1060, 1061, 1065, 1066, 1070, 1071, 1076,
- 1078, 1080, 1083
+ 660, 662, 665, 664, 675, 676, 680, 684, 687, 692,
+ 697, 700, 704, 708, 711, 716, 720, 723, 725, 727,
+ 732, 734, 736, 741, 743, 745, 747, 749, 751, 753,
+ 755, 757, 759, 761, 766, 768, 771, 773, 775, 778,
+ 781, 792, 795, 802, 804, 806, 808, 810, 817, 819,
+ 823, 824, 825, 826, 827, 829, 831, 833, 835, 837,
+ 839, 841, 843, 845, 847, 849, 851, 853, 863, 873,
+ 883, 893, 895, 897, 900, 905, 909, 911, 913, 915,
+ 918, 920, 923, 925, 927, 929, 931, 933, 935, 937,
+ 939, 942, 944, 946, 948, 950, 952, 956, 959, 958,
+ 971, 972, 973, 978, 982, 984, 989, 991, 994, 996,
+ 998, 1003, 1005, 1010, 1011, 1017, 1021, 1025, 1029, 1035,
+ 1041, 1043, 1047, 1051, 1052, 1056, 1057, 1061, 1062, 1067,
+ 1069, 1071, 1074
};
#endif
@@ -1121,6 +1121,6 @@ static const toketypes yy_type_tab[] =
};
/* Generated from:
- * e89acf986fa79bb74d827a4fd4823d07ff25bd99c2087cf4e7a7e6ae41d7a246 perly.y
+ * 83084fd3dca0e3c3a6f15a4ebdb137fc8ab3aa93ca0f1c04ea06228ac4ea79c3 perly.y
* d1d4df7b8e30ac9dede664af9179e6e5e7ddc7f2ad9c4eff9e2e5b32c9e16a6e regen_perly.pl
* ex: set ro: */