0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
cpython/Python/graminit.c
Raymond Hettinger 354433a59d SF patch #872326: Generator expression implementation
(Code contributed by Jiwon Seo.)

The documentation portion of the patch is being re-worked and will be
checked-in soon.  Likewise, PEP 289 will be updated to reflect Guido's
rationale for the design decisions on binding behavior (as described in
in his patch comments and in discussions on python-dev).

The test file, test_genexps.py, is written in doctest format and is
meant to exercise all aspects of the the patch.  Further additions are
welcome from everyone.  Please stress test this new feature as much as
possible before the alpha release.
2004-05-19 08:20:33 +00:00

1872 lines
32 KiB
C

#include "pgenheaders.h"
#include "grammar.h"
static arc arcs_0_0[3] = {
{2, 1},
{3, 1},
{4, 2},
};
static arc arcs_0_1[1] = {
{0, 1},
};
static arc arcs_0_2[1] = {
{2, 1},
};
static state states_0[3] = {
{3, arcs_0_0},
{1, arcs_0_1},
{1, arcs_0_2},
};
static arc arcs_1_0[3] = {
{2, 0},
{6, 0},
{7, 1},
};
static arc arcs_1_1[1] = {
{0, 1},
};
static state states_1[2] = {
{3, arcs_1_0},
{1, arcs_1_1},
};
static arc arcs_2_0[1] = {
{9, 1},
};
static arc arcs_2_1[2] = {
{2, 1},
{7, 2},
};
static arc arcs_2_2[1] = {
{0, 2},
};
static state states_2[3] = {
{1, arcs_2_0},
{2, arcs_2_1},
{1, arcs_2_2},
};
static arc arcs_3_0[1] = {
{11, 1},
};
static arc arcs_3_1[1] = {
{12, 2},
};
static arc arcs_3_2[1] = {
{13, 3},
};
static arc arcs_3_3[1] = {
{14, 4},
};
static arc arcs_3_4[1] = {
{15, 5},
};
static arc arcs_3_5[1] = {
{0, 5},
};
static state states_3[6] = {
{1, arcs_3_0},
{1, arcs_3_1},
{1, arcs_3_2},
{1, arcs_3_3},
{1, arcs_3_4},
{1, arcs_3_5},
};
static arc arcs_4_0[1] = {
{16, 1},
};
static arc arcs_4_1[2] = {
{17, 2},
{18, 3},
};
static arc arcs_4_2[1] = {
{18, 3},
};
static arc arcs_4_3[1] = {
{0, 3},
};
static state states_4[4] = {
{1, arcs_4_0},
{2, arcs_4_1},
{1, arcs_4_2},
{1, arcs_4_3},
};
static arc arcs_5_0[3] = {
{19, 1},
{23, 2},
{24, 3},
};
static arc arcs_5_1[3] = {
{20, 4},
{22, 5},
{0, 1},
};
static arc arcs_5_2[1] = {
{12, 6},
};
static arc arcs_5_3[1] = {
{12, 7},
};
static arc arcs_5_4[1] = {
{21, 8},
};
static arc arcs_5_5[4] = {
{19, 1},
{23, 2},
{24, 3},
{0, 5},
};
static arc arcs_5_6[2] = {
{22, 9},
{0, 6},
};
static arc arcs_5_7[1] = {
{0, 7},
};
static arc arcs_5_8[2] = {
{22, 5},
{0, 8},
};
static arc arcs_5_9[1] = {
{24, 3},
};
static state states_5[10] = {
{3, arcs_5_0},
{3, arcs_5_1},
{1, arcs_5_2},
{1, arcs_5_3},
{1, arcs_5_4},
{4, arcs_5_5},
{2, arcs_5_6},
{1, arcs_5_7},
{2, arcs_5_8},
{1, arcs_5_9},
};
static arc arcs_6_0[2] = {
{12, 1},
{16, 2},
};
static arc arcs_6_1[1] = {
{0, 1},
};
static arc arcs_6_2[1] = {
{25, 3},
};
static arc arcs_6_3[1] = {
{18, 1},
};
static state states_6[4] = {
{2, arcs_6_0},
{1, arcs_6_1},
{1, arcs_6_2},
{1, arcs_6_3},
};
static arc arcs_7_0[1] = {
{19, 1},
};
static arc arcs_7_1[2] = {
{22, 2},
{0, 1},
};
static arc arcs_7_2[2] = {
{19, 1},
{0, 2},
};
static state states_7[3] = {
{1, arcs_7_0},
{2, arcs_7_1},
{2, arcs_7_2},
};
static arc arcs_8_0[2] = {
{3, 1},
{4, 1},
};
static arc arcs_8_1[1] = {
{0, 1},
};
static state states_8[2] = {
{2, arcs_8_0},
{1, arcs_8_1},
};
static arc arcs_9_0[1] = {
{26, 1},
};
static arc arcs_9_1[2] = {
{27, 2},
{2, 3},
};
static arc arcs_9_2[2] = {
{26, 1},
{2, 3},
};
static arc arcs_9_3[1] = {
{0, 3},
};
static state states_9[4] = {
{1, arcs_9_0},
{2, arcs_9_1},
{2, arcs_9_2},
{1, arcs_9_3},
};
static arc arcs_10_0[9] = {
{28, 1},
{29, 1},
{30, 1},
{31, 1},
{32, 1},
{33, 1},
{34, 1},
{35, 1},
{36, 1},
};
static arc arcs_10_1[1] = {
{0, 1},
};
static state states_10[2] = {
{9, arcs_10_0},
{1, arcs_10_1},
};
static arc arcs_11_0[1] = {
{9, 1},
};
static arc arcs_11_1[3] = {
{37, 2},
{20, 3},
{0, 1},
};
static arc arcs_11_2[1] = {
{9, 4},
};
static arc arcs_11_3[1] = {
{9, 5},
};
static arc arcs_11_4[1] = {
{0, 4},
};
static arc arcs_11_5[2] = {
{20, 3},
{0, 5},
};
static state states_11[6] = {
{1, arcs_11_0},
{3, arcs_11_1},
{1, arcs_11_2},
{1, arcs_11_3},
{1, arcs_11_4},
{2, arcs_11_5},
};
static arc arcs_12_0[12] = {
{38, 1},
{39, 1},
{40, 1},
{41, 1},
{42, 1},
{43, 1},
{44, 1},
{45, 1},
{46, 1},
{47, 1},
{48, 1},
{49, 1},
};
static arc arcs_12_1[1] = {
{0, 1},
};
static state states_12[2] = {
{12, arcs_12_0},
{1, arcs_12_1},
};
static arc arcs_13_0[1] = {
{50, 1},
};
static arc arcs_13_1[3] = {
{21, 2},
{51, 3},
{0, 1},
};
static arc arcs_13_2[2] = {
{22, 4},
{0, 2},
};
static arc arcs_13_3[1] = {
{21, 5},
};
static arc arcs_13_4[2] = {
{21, 2},
{0, 4},
};
static arc arcs_13_5[2] = {
{22, 6},
{0, 5},
};
static arc arcs_13_6[1] = {
{21, 7},
};
static arc arcs_13_7[2] = {
{22, 8},
{0, 7},
};
static arc arcs_13_8[2] = {
{21, 7},
{0, 8},
};
static state states_13[9] = {
{1, arcs_13_0},
{3, arcs_13_1},
{2, arcs_13_2},
{1, arcs_13_3},
{2, arcs_13_4},
{2, arcs_13_5},
{1, arcs_13_6},
{2, arcs_13_7},
{2, arcs_13_8},
};
static arc arcs_14_0[1] = {
{52, 1},
};
static arc arcs_14_1[1] = {
{53, 2},
};
static arc arcs_14_2[1] = {
{0, 2},
};
static state states_14[3] = {
{1, arcs_14_0},
{1, arcs_14_1},
{1, arcs_14_2},
};
static arc arcs_15_0[1] = {
{54, 1},
};
static arc arcs_15_1[1] = {
{0, 1},
};
static state states_15[2] = {
{1, arcs_15_0},
{1, arcs_15_1},
};
static arc arcs_16_0[5] = {
{55, 1},
{56, 1},
{57, 1},
{58, 1},
{59, 1},
};
static arc arcs_16_1[1] = {
{0, 1},
};
static state states_16[2] = {
{5, arcs_16_0},
{1, arcs_16_1},
};
static arc arcs_17_0[1] = {
{60, 1},
};
static arc arcs_17_1[1] = {
{0, 1},
};
static state states_17[2] = {
{1, arcs_17_0},
{1, arcs_17_1},
};
static arc arcs_18_0[1] = {
{61, 1},
};
static arc arcs_18_1[1] = {
{0, 1},
};
static state states_18[2] = {
{1, arcs_18_0},
{1, arcs_18_1},
};
static arc arcs_19_0[1] = {
{62, 1},
};
static arc arcs_19_1[2] = {
{9, 2},
{0, 1},
};
static arc arcs_19_2[1] = {
{0, 2},
};
static state states_19[3] = {
{1, arcs_19_0},
{2, arcs_19_1},
{1, arcs_19_2},
};
static arc arcs_20_0[1] = {
{63, 1},
};
static arc arcs_20_1[1] = {
{9, 2},
};
static arc arcs_20_2[1] = {
{0, 2},
};
static state states_20[3] = {
{1, arcs_20_0},
{1, arcs_20_1},
{1, arcs_20_2},
};
static arc arcs_21_0[1] = {
{64, 1},
};
static arc arcs_21_1[2] = {
{21, 2},
{0, 1},
};
static arc arcs_21_2[2] = {
{22, 3},
{0, 2},
};
static arc arcs_21_3[1] = {
{21, 4},
};
static arc arcs_21_4[2] = {
{22, 5},
{0, 4},
};
static arc arcs_21_5[1] = {
{21, 6},
};
static arc arcs_21_6[1] = {
{0, 6},
};
static state states_21[7] = {
{1, arcs_21_0},
{2, arcs_21_1},
{2, arcs_21_2},
{1, arcs_21_3},
{2, arcs_21_4},
{1, arcs_21_5},
{1, arcs_21_6},
};
static arc arcs_22_0[2] = {
{65, 1},
{67, 2},
};
static arc arcs_22_1[1] = {
{66, 3},
};
static arc arcs_22_2[1] = {
{68, 4},
};
static arc arcs_22_3[2] = {
{22, 1},
{0, 3},
};
static arc arcs_22_4[1] = {
{65, 5},
};
static arc arcs_22_5[2] = {
{23, 6},
{69, 7},
};
static arc arcs_22_6[1] = {
{0, 6},
};
static arc arcs_22_7[2] = {
{22, 8},
{0, 7},
};
static arc arcs_22_8[1] = {
{69, 7},
};
static state states_22[9] = {
{2, arcs_22_0},
{1, arcs_22_1},
{1, arcs_22_2},
{2, arcs_22_3},
{1, arcs_22_4},
{2, arcs_22_5},
{1, arcs_22_6},
{2, arcs_22_7},
{1, arcs_22_8},
};
static arc arcs_23_0[1] = {
{12, 1},
};
static arc arcs_23_1[2] = {
{12, 2},
{0, 1},
};
static arc arcs_23_2[1] = {
{12, 3},
};
static arc arcs_23_3[1] = {
{0, 3},
};
static state states_23[4] = {
{1, arcs_23_0},
{2, arcs_23_1},
{1, arcs_23_2},
{1, arcs_23_3},
};
static arc arcs_24_0[1] = {
{68, 1},
};
static arc arcs_24_1[2] = {
{12, 2},
{0, 1},
};
static arc arcs_24_2[1] = {
{12, 3},
};
static arc arcs_24_3[1] = {
{0, 3},
};
static state states_24[4] = {
{1, arcs_24_0},
{2, arcs_24_1},
{1, arcs_24_2},
{1, arcs_24_3},
};
static arc arcs_25_0[1] = {
{12, 1},
};
static arc arcs_25_1[2] = {
{70, 0},
{0, 1},
};
static state states_25[2] = {
{1, arcs_25_0},
{2, arcs_25_1},
};
static arc arcs_26_0[1] = {
{71, 1},
};
static arc arcs_26_1[1] = {
{12, 2},
};
static arc arcs_26_2[2] = {
{22, 1},
{0, 2},
};
static state states_26[3] = {
{1, arcs_26_0},
{1, arcs_26_1},
{2, arcs_26_2},
};
static arc arcs_27_0[1] = {
{72, 1},
};
static arc arcs_27_1[1] = {
{73, 2},
};
static arc arcs_27_2[2] = {
{74, 3},
{0, 2},
};
static arc arcs_27_3[1] = {
{21, 4},
};
static arc arcs_27_4[2] = {
{22, 5},
{0, 4},
};
static arc arcs_27_5[1] = {
{21, 6},
};
static arc arcs_27_6[1] = {
{0, 6},
};
static state states_27[7] = {
{1, arcs_27_0},
{1, arcs_27_1},
{2, arcs_27_2},
{1, arcs_27_3},
{2, arcs_27_4},
{1, arcs_27_5},
{1, arcs_27_6},
};
static arc arcs_28_0[1] = {
{75, 1},
};
static arc arcs_28_1[1] = {
{21, 2},
};
static arc arcs_28_2[2] = {
{22, 3},
{0, 2},
};
static arc arcs_28_3[1] = {
{21, 4},
};
static arc arcs_28_4[1] = {
{0, 4},
};
static state states_28[5] = {
{1, arcs_28_0},
{1, arcs_28_1},
{2, arcs_28_2},
{1, arcs_28_3},
{1, arcs_28_4},
};
static arc arcs_29_0[6] = {
{76, 1},
{77, 1},
{78, 1},
{79, 1},
{10, 1},
{80, 1},
};
static arc arcs_29_1[1] = {
{0, 1},
};
static state states_29[2] = {
{6, arcs_29_0},
{1, arcs_29_1},
};
static arc arcs_30_0[1] = {
{81, 1},
};
static arc arcs_30_1[1] = {
{21, 2},
};
static arc arcs_30_2[1] = {
{14, 3},
};
static arc arcs_30_3[1] = {
{15, 4},
};
static arc arcs_30_4[3] = {
{82, 1},
{83, 5},
{0, 4},
};
static arc arcs_30_5[1] = {
{14, 6},
};
static arc arcs_30_6[1] = {
{15, 7},
};
static arc arcs_30_7[1] = {
{0, 7},
};
static state states_30[8] = {
{1, arcs_30_0},
{1, arcs_30_1},
{1, arcs_30_2},
{1, arcs_30_3},
{3, arcs_30_4},
{1, arcs_30_5},
{1, arcs_30_6},
{1, arcs_30_7},
};
static arc arcs_31_0[1] = {
{84, 1},
};
static arc arcs_31_1[1] = {
{21, 2},
};
static arc arcs_31_2[1] = {
{14, 3},
};
static arc arcs_31_3[1] = {
{15, 4},
};
static arc arcs_31_4[2] = {
{83, 5},
{0, 4},
};
static arc arcs_31_5[1] = {
{14, 6},
};
static arc arcs_31_6[1] = {
{15, 7},
};
static arc arcs_31_7[1] = {
{0, 7},
};
static state states_31[8] = {
{1, arcs_31_0},
{1, arcs_31_1},
{1, arcs_31_2},
{1, arcs_31_3},
{2, arcs_31_4},
{1, arcs_31_5},
{1, arcs_31_6},
{1, arcs_31_7},
};
static arc arcs_32_0[1] = {
{85, 1},
};
static arc arcs_32_1[1] = {
{53, 2},
};
static arc arcs_32_2[1] = {
{74, 3},
};
static arc arcs_32_3[1] = {
{9, 4},
};
static arc arcs_32_4[1] = {
{14, 5},
};
static arc arcs_32_5[1] = {
{15, 6},
};
static arc arcs_32_6[2] = {
{83, 7},
{0, 6},
};
static arc arcs_32_7[1] = {
{14, 8},
};
static arc arcs_32_8[1] = {
{15, 9},
};
static arc arcs_32_9[1] = {
{0, 9},
};
static state states_32[10] = {
{1, arcs_32_0},
{1, arcs_32_1},
{1, arcs_32_2},
{1, arcs_32_3},
{1, arcs_32_4},
{1, arcs_32_5},
{2, arcs_32_6},
{1, arcs_32_7},
{1, arcs_32_8},
{1, arcs_32_9},
};
static arc arcs_33_0[1] = {
{86, 1},
};
static arc arcs_33_1[1] = {
{14, 2},
};
static arc arcs_33_2[1] = {
{15, 3},
};
static arc arcs_33_3[2] = {
{87, 4},
{88, 5},
};
static arc arcs_33_4[1] = {
{14, 6},
};
static arc arcs_33_5[1] = {
{14, 7},
};
static arc arcs_33_6[1] = {
{15, 8},
};
static arc arcs_33_7[1] = {
{15, 9},
};
static arc arcs_33_8[3] = {
{87, 4},
{83, 5},
{0, 8},
};
static arc arcs_33_9[1] = {
{0, 9},
};
static state states_33[10] = {
{1, arcs_33_0},
{1, arcs_33_1},
{1, arcs_33_2},
{2, arcs_33_3},
{1, arcs_33_4},
{1, arcs_33_5},
{1, arcs_33_6},
{1, arcs_33_7},
{3, arcs_33_8},
{1, arcs_33_9},
};
static arc arcs_34_0[1] = {
{89, 1},
};
static arc arcs_34_1[2] = {
{21, 2},
{0, 1},
};
static arc arcs_34_2[2] = {
{22, 3},
{0, 2},
};
static arc arcs_34_3[1] = {
{21, 4},
};
static arc arcs_34_4[1] = {
{0, 4},
};
static state states_34[5] = {
{1, arcs_34_0},
{2, arcs_34_1},
{2, arcs_34_2},
{1, arcs_34_3},
{1, arcs_34_4},
};
static arc arcs_35_0[2] = {
{3, 1},
{2, 2},
};
static arc arcs_35_1[1] = {
{0, 1},
};
static arc arcs_35_2[1] = {
{90, 3},
};
static arc arcs_35_3[1] = {
{6, 4},
};
static arc arcs_35_4[2] = {
{6, 4},
{91, 1},
};
static state states_35[5] = {
{2, arcs_35_0},
{1, arcs_35_1},
{1, arcs_35_2},
{1, arcs_35_3},
{2, arcs_35_4},
};
static arc arcs_36_0[2] = {
{92, 1},
{94, 2},
};
static arc arcs_36_1[2] = {
{93, 3},
{0, 1},
};
static arc arcs_36_2[1] = {
{0, 2},
};
static arc arcs_36_3[1] = {
{92, 1},
};
static state states_36[4] = {
{2, arcs_36_0},
{2, arcs_36_1},
{1, arcs_36_2},
{1, arcs_36_3},
};
static arc arcs_37_0[1] = {
{95, 1},
};
static arc arcs_37_1[2] = {
{96, 0},
{0, 1},
};
static state states_37[2] = {
{1, arcs_37_0},
{2, arcs_37_1},
};
static arc arcs_38_0[2] = {
{97, 1},
{98, 2},
};
static arc arcs_38_1[1] = {
{95, 2},
};
static arc arcs_38_2[1] = {
{0, 2},
};
static state states_38[3] = {
{2, arcs_38_0},
{1, arcs_38_1},
{1, arcs_38_2},
};
static arc arcs_39_0[1] = {
{73, 1},
};
static arc arcs_39_1[2] = {
{99, 0},
{0, 1},
};
static state states_39[2] = {
{1, arcs_39_0},
{2, arcs_39_1},
};
static arc arcs_40_0[10] = {
{100, 1},
{101, 1},
{102, 1},
{103, 1},
{104, 1},
{105, 1},
{106, 1},
{74, 1},
{97, 2},
{107, 3},
};
static arc arcs_40_1[1] = {
{0, 1},
};
static arc arcs_40_2[1] = {
{74, 1},
};
static arc arcs_40_3[2] = {
{97, 1},
{0, 3},
};
static state states_40[4] = {
{10, arcs_40_0},
{1, arcs_40_1},
{1, arcs_40_2},
{2, arcs_40_3},
};
static arc arcs_41_0[1] = {
{108, 1},
};
static arc arcs_41_1[2] = {
{109, 0},
{0, 1},
};
static state states_41[2] = {
{1, arcs_41_0},
{2, arcs_41_1},
};
static arc arcs_42_0[1] = {
{110, 1},
};
static arc arcs_42_1[2] = {
{111, 0},
{0, 1},
};
static state states_42[2] = {
{1, arcs_42_0},
{2, arcs_42_1},
};
static arc arcs_43_0[1] = {
{112, 1},
};
static arc arcs_43_1[2] = {
{113, 0},
{0, 1},
};
static state states_43[2] = {
{1, arcs_43_0},
{2, arcs_43_1},
};
static arc arcs_44_0[1] = {
{114, 1},
};
static arc arcs_44_1[3] = {
{115, 0},
{51, 0},
{0, 1},
};
static state states_44[2] = {
{1, arcs_44_0},
{3, arcs_44_1},
};
static arc arcs_45_0[1] = {
{116, 1},
};
static arc arcs_45_1[3] = {
{117, 0},
{118, 0},
{0, 1},
};
static state states_45[2] = {
{1, arcs_45_0},
{3, arcs_45_1},
};
static arc arcs_46_0[1] = {
{119, 1},
};
static arc arcs_46_1[5] = {
{23, 0},
{120, 0},
{121, 0},
{122, 0},
{0, 1},
};
static state states_46[2] = {
{1, arcs_46_0},
{5, arcs_46_1},
};
static arc arcs_47_0[4] = {
{117, 1},
{118, 1},
{123, 1},
{124, 2},
};
static arc arcs_47_1[1] = {
{119, 2},
};
static arc arcs_47_2[1] = {
{0, 2},
};
static state states_47[3] = {
{4, arcs_47_0},
{1, arcs_47_1},
{1, arcs_47_2},
};
static arc arcs_48_0[1] = {
{125, 1},
};
static arc arcs_48_1[3] = {
{126, 1},
{24, 2},
{0, 1},
};
static arc arcs_48_2[1] = {
{119, 3},
};
static arc arcs_48_3[1] = {
{0, 3},
};
static state states_48[4] = {
{1, arcs_48_0},
{3, arcs_48_1},
{1, arcs_48_2},
{1, arcs_48_3},
};
static arc arcs_49_0[7] = {
{16, 1},
{128, 2},
{131, 3},
{134, 4},
{12, 5},
{136, 5},
{137, 6},
};
static arc arcs_49_1[2] = {
{127, 7},
{18, 5},
};
static arc arcs_49_2[2] = {
{129, 8},
{130, 5},
};
static arc arcs_49_3[2] = {
{132, 9},
{133, 5},
};
static arc arcs_49_4[1] = {
{135, 10},
};
static arc arcs_49_5[1] = {
{0, 5},
};
static arc arcs_49_6[2] = {
{137, 6},
{0, 6},
};
static arc arcs_49_7[1] = {
{18, 5},
};
static arc arcs_49_8[1] = {
{130, 5},
};
static arc arcs_49_9[1] = {
{133, 5},
};
static arc arcs_49_10[1] = {
{134, 5},
};
static state states_49[11] = {
{7, arcs_49_0},
{2, arcs_49_1},
{2, arcs_49_2},
{2, arcs_49_3},
{1, arcs_49_4},
{1, arcs_49_5},
{2, arcs_49_6},
{1, arcs_49_7},
{1, arcs_49_8},
{1, arcs_49_9},
{1, arcs_49_10},
};
static arc arcs_50_0[1] = {
{21, 1},
};
static arc arcs_50_1[3] = {
{138, 2},
{22, 3},
{0, 1},
};
static arc arcs_50_2[1] = {
{0, 2},
};
static arc arcs_50_3[2] = {
{21, 4},
{0, 3},
};
static arc arcs_50_4[2] = {
{22, 3},
{0, 4},
};
static state states_50[5] = {
{1, arcs_50_0},
{3, arcs_50_1},
{1, arcs_50_2},
{2, arcs_50_3},
{2, arcs_50_4},
};
static arc arcs_51_0[1] = {
{21, 1},
};
static arc arcs_51_1[3] = {
{139, 2},
{22, 3},
{0, 1},
};
static arc arcs_51_2[1] = {
{0, 2},
};
static arc arcs_51_3[2] = {
{21, 4},
{0, 3},
};
static arc arcs_51_4[2] = {
{22, 3},
{0, 4},
};
static state states_51[5] = {
{1, arcs_51_0},
{3, arcs_51_1},
{1, arcs_51_2},
{2, arcs_51_3},
{2, arcs_51_4},
};
static arc arcs_52_0[1] = {
{140, 1},
};
static arc arcs_52_1[2] = {
{17, 2},
{14, 3},
};
static arc arcs_52_2[1] = {
{14, 3},
};
static arc arcs_52_3[1] = {
{21, 4},
};
static arc arcs_52_4[1] = {
{0, 4},
};
static state states_52[5] = {
{1, arcs_52_0},
{2, arcs_52_1},
{1, arcs_52_2},
{1, arcs_52_3},
{1, arcs_52_4},
};
static arc arcs_53_0[3] = {
{16, 1},
{128, 2},
{70, 3},
};
static arc arcs_53_1[2] = {
{141, 4},
{18, 5},
};
static arc arcs_53_2[1] = {
{142, 6},
};
static arc arcs_53_3[1] = {
{12, 5},
};
static arc arcs_53_4[1] = {
{18, 5},
};
static arc arcs_53_5[1] = {
{0, 5},
};
static arc arcs_53_6[1] = {
{130, 5},
};
static state states_53[7] = {
{3, arcs_53_0},
{2, arcs_53_1},
{1, arcs_53_2},
{1, arcs_53_3},
{1, arcs_53_4},
{1, arcs_53_5},
{1, arcs_53_6},
};
static arc arcs_54_0[1] = {
{143, 1},
};
static arc arcs_54_1[2] = {
{22, 2},
{0, 1},
};
static arc arcs_54_2[2] = {
{143, 1},
{0, 2},
};
static state states_54[3] = {
{1, arcs_54_0},
{2, arcs_54_1},
{2, arcs_54_2},
};
static arc arcs_55_0[3] = {
{70, 1},
{21, 2},
{14, 3},
};
static arc arcs_55_1[1] = {
{70, 4},
};
static arc arcs_55_2[2] = {
{14, 3},
{0, 2},
};
static arc arcs_55_3[3] = {
{21, 5},
{144, 6},
{0, 3},
};
static arc arcs_55_4[1] = {
{70, 6},
};
static arc arcs_55_5[2] = {
{144, 6},
{0, 5},
};
static arc arcs_55_6[1] = {
{0, 6},
};
static state states_55[7] = {
{3, arcs_55_0},
{1, arcs_55_1},
{2, arcs_55_2},
{3, arcs_55_3},
{1, arcs_55_4},
{2, arcs_55_5},
{1, arcs_55_6},
};
static arc arcs_56_0[1] = {
{14, 1},
};
static arc arcs_56_1[2] = {
{21, 2},
{0, 1},
};
static arc arcs_56_2[1] = {
{0, 2},
};
static state states_56[3] = {
{1, arcs_56_0},
{2, arcs_56_1},
{1, arcs_56_2},
};
static arc arcs_57_0[1] = {
{73, 1},
};
static arc arcs_57_1[2] = {
{22, 2},
{0, 1},
};
static arc arcs_57_2[2] = {
{73, 1},
{0, 2},
};
static state states_57[3] = {
{1, arcs_57_0},
{2, arcs_57_1},
{2, arcs_57_2},
};
static arc arcs_58_0[1] = {
{21, 1},
};
static arc arcs_58_1[2] = {
{22, 2},
{0, 1},
};
static arc arcs_58_2[2] = {
{21, 1},
{0, 2},
};
static state states_58[3] = {
{1, arcs_58_0},
{2, arcs_58_1},
{2, arcs_58_2},
};
static arc arcs_59_0[1] = {
{21, 1},
};
static arc arcs_59_1[2] = {
{22, 2},
{0, 1},
};
static arc arcs_59_2[1] = {
{21, 3},
};
static arc arcs_59_3[2] = {
{22, 4},
{0, 3},
};
static arc arcs_59_4[2] = {
{21, 3},
{0, 4},
};
static state states_59[5] = {
{1, arcs_59_0},
{2, arcs_59_1},
{1, arcs_59_2},
{2, arcs_59_3},
{2, arcs_59_4},
};
static arc arcs_60_0[1] = {
{21, 1},
};
static arc arcs_60_1[1] = {
{14, 2},
};
static arc arcs_60_2[1] = {
{21, 3},
};
static arc arcs_60_3[2] = {
{22, 4},
{0, 3},
};
static arc arcs_60_4[2] = {
{21, 1},
{0, 4},
};
static state states_60[5] = {
{1, arcs_60_0},
{1, arcs_60_1},
{1, arcs_60_2},
{2, arcs_60_3},
{2, arcs_60_4},
};
static arc arcs_61_0[1] = {
{146, 1},
};
static arc arcs_61_1[1] = {
{12, 2},
};
static arc arcs_61_2[2] = {
{16, 3},
{14, 4},
};
static arc arcs_61_3[1] = {
{9, 5},
};
static arc arcs_61_4[1] = {
{15, 6},
};
static arc arcs_61_5[1] = {
{18, 7},
};
static arc arcs_61_6[1] = {
{0, 6},
};
static arc arcs_61_7[1] = {
{14, 4},
};
static state states_61[8] = {
{1, arcs_61_0},
{1, arcs_61_1},
{2, arcs_61_2},
{1, arcs_61_3},
{1, arcs_61_4},
{1, arcs_61_5},
{1, arcs_61_6},
{1, arcs_61_7},
};
static arc arcs_62_0[3] = {
{147, 1},
{23, 2},
{24, 3},
};
static arc arcs_62_1[2] = {
{22, 4},
{0, 1},
};
static arc arcs_62_2[1] = {
{21, 5},
};
static arc arcs_62_3[1] = {
{21, 6},
};
static arc arcs_62_4[4] = {
{147, 1},
{23, 2},
{24, 3},
{0, 4},
};
static arc arcs_62_5[2] = {
{22, 7},
{0, 5},
};
static arc arcs_62_6[1] = {
{0, 6},
};
static arc arcs_62_7[1] = {
{24, 3},
};
static state states_62[8] = {
{3, arcs_62_0},
{2, arcs_62_1},
{1, arcs_62_2},
{1, arcs_62_3},
{4, arcs_62_4},
{2, arcs_62_5},
{1, arcs_62_6},
{1, arcs_62_7},
};
static arc arcs_63_0[1] = {
{21, 1},
};
static arc arcs_63_1[3] = {
{20, 2},
{139, 3},
{0, 1},
};
static arc arcs_63_2[1] = {
{21, 4},
};
static arc arcs_63_3[1] = {
{0, 3},
};
static arc arcs_63_4[2] = {
{139, 3},
{0, 4},
};
static state states_63[5] = {
{1, arcs_63_0},
{3, arcs_63_1},
{1, arcs_63_2},
{1, arcs_63_3},
{2, arcs_63_4},
};
static arc arcs_64_0[2] = {
{138, 1},
{149, 1},
};
static arc arcs_64_1[1] = {
{0, 1},
};
static state states_64[2] = {
{2, arcs_64_0},
{1, arcs_64_1},
};
static arc arcs_65_0[1] = {
{85, 1},
};
static arc arcs_65_1[1] = {
{53, 2},
};
static arc arcs_65_2[1] = {
{74, 3},
};
static arc arcs_65_3[1] = {
{145, 4},
};
static arc arcs_65_4[2] = {
{148, 5},
{0, 4},
};
static arc arcs_65_5[1] = {
{0, 5},
};
static state states_65[6] = {
{1, arcs_65_0},
{1, arcs_65_1},
{1, arcs_65_2},
{1, arcs_65_3},
{2, arcs_65_4},
{1, arcs_65_5},
};
static arc arcs_66_0[1] = {
{81, 1},
};
static arc arcs_66_1[1] = {
{21, 2},
};
static arc arcs_66_2[2] = {
{148, 3},
{0, 2},
};
static arc arcs_66_3[1] = {
{0, 3},
};
static state states_66[4] = {
{1, arcs_66_0},
{1, arcs_66_1},
{2, arcs_66_2},
{1, arcs_66_3},
};
static arc arcs_67_0[2] = {
{139, 1},
{151, 1},
};
static arc arcs_67_1[1] = {
{0, 1},
};
static state states_67[2] = {
{2, arcs_67_0},
{1, arcs_67_1},
};
static arc arcs_68_0[1] = {
{85, 1},
};
static arc arcs_68_1[1] = {
{53, 2},
};
static arc arcs_68_2[1] = {
{74, 3},
};
static arc arcs_68_3[1] = {
{21, 4},
};
static arc arcs_68_4[2] = {
{150, 5},
{0, 4},
};
static arc arcs_68_5[1] = {
{0, 5},
};
static state states_68[6] = {
{1, arcs_68_0},
{1, arcs_68_1},
{1, arcs_68_2},
{1, arcs_68_3},
{2, arcs_68_4},
{1, arcs_68_5},
};
static arc arcs_69_0[1] = {
{81, 1},
};
static arc arcs_69_1[1] = {
{21, 2},
};
static arc arcs_69_2[2] = {
{150, 3},
{0, 2},
};
static arc arcs_69_3[1] = {
{0, 3},
};
static state states_69[4] = {
{1, arcs_69_0},
{1, arcs_69_1},
{2, arcs_69_2},
{1, arcs_69_3},
};
static arc arcs_70_0[1] = {
{21, 1},
};
static arc arcs_70_1[2] = {
{22, 0},
{0, 1},
};
static state states_70[2] = {
{1, arcs_70_0},
{2, arcs_70_1},
};
static arc arcs_71_0[1] = {
{12, 1},
};
static arc arcs_71_1[1] = {
{0, 1},
};
static state states_71[2] = {
{1, arcs_71_0},
{1, arcs_71_1},
};
static dfa dfas[72] = {
{256, "single_input", 0, 3, states_0,
"\004\030\001\000\000\000\124\360\213\011\162\000\002\000\140\010\111\023\004\000"},
{257, "file_input", 0, 2, states_1,
"\204\030\001\000\000\000\124\360\213\011\162\000\002\000\140\010\111\023\004\000"},
{258, "eval_input", 0, 3, states_2,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{259, "funcdef", 0, 6, states_3,
"\000\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{260, "parameters", 0, 4, states_4,
"\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{261, "varargslist", 0, 10, states_5,
"\000\020\201\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{262, "fpdef", 0, 4, states_6,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{263, "fplist", 0, 3, states_7,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{264, "stmt", 0, 2, states_8,
"\000\030\001\000\000\000\124\360\213\011\162\000\002\000\140\010\111\023\004\000"},
{265, "simple_stmt", 0, 4, states_9,
"\000\020\001\000\000\000\124\360\213\011\000\000\002\000\140\010\111\023\000\000"},
{266, "small_stmt", 0, 2, states_10,
"\000\020\001\000\000\000\124\360\213\011\000\000\002\000\140\010\111\023\000\000"},
{267, "expr_stmt", 0, 6, states_11,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{268, "augassign", 0, 2, states_12,
"\000\000\000\000\300\377\003\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{269, "print_stmt", 0, 9, states_13,
"\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{270, "del_stmt", 0, 3, states_14,
"\000\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{271, "pass_stmt", 0, 2, states_15,
"\000\000\000\000\000\000\100\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{272, "flow_stmt", 0, 2, states_16,
"\000\000\000\000\000\000\000\360\001\000\000\000\000\000\000\000\000\000\000\000"},
{273, "break_stmt", 0, 2, states_17,
"\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000\000\000\000"},
{274, "continue_stmt", 0, 2, states_18,
"\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000\000\000\000"},
{275, "return_stmt", 0, 3, states_19,
"\000\000\000\000\000\000\000\100\000\000\000\000\000\000\000\000\000\000\000\000"},
{276, "yield_stmt", 0, 3, states_20,
"\000\000\000\000\000\000\000\200\000\000\000\000\000\000\000\000\000\000\000\000"},
{277, "raise_stmt", 0, 7, states_21,
"\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000"},
{278, "import_stmt", 0, 9, states_22,
"\000\000\000\000\000\000\000\000\012\000\000\000\000\000\000\000\000\000\000\000"},
{279, "import_as_name", 0, 4, states_23,
"\000\020\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{280, "dotted_as_name", 0, 4, states_24,
"\000\020\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{281, "dotted_name", 0, 2, states_25,
"\000\020\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{282, "global_stmt", 0, 3, states_26,
"\000\000\000\000\000\000\000\000\200\000\000\000\000\000\000\000\000\000\000\000"},
{283, "exec_stmt", 0, 7, states_27,
"\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000"},
{284, "assert_stmt", 0, 5, states_28,
"\000\000\000\000\000\000\000\000\000\010\000\000\000\000\000\000\000\000\000\000"},
{285, "compound_stmt", 0, 2, states_29,
"\000\010\000\000\000\000\000\000\000\000\162\000\000\000\000\000\000\000\004\000"},
{286, "if_stmt", 0, 8, states_30,
"\000\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000\000"},
{287, "while_stmt", 0, 8, states_31,
"\000\000\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000"},
{288, "for_stmt", 0, 10, states_32,
"\000\000\000\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000"},
{289, "try_stmt", 0, 10, states_33,
"\000\000\000\000\000\000\000\000\000\000\100\000\000\000\000\000\000\000\000\000"},
{290, "except_clause", 0, 5, states_34,
"\000\000\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000"},
{291, "suite", 0, 5, states_35,
"\004\020\001\000\000\000\124\360\213\011\000\000\002\000\140\010\111\023\000\000"},
{292, "test", 0, 4, states_36,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{293, "and_test", 0, 2, states_37,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\003\000\000"},
{294, "not_test", 0, 3, states_38,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\003\000\000"},
{295, "comparison", 0, 2, states_39,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{296, "comp_op", 0, 4, states_40,
"\000\000\000\000\000\000\000\000\000\004\000\000\362\017\000\000\000\000\000\000"},
{297, "expr", 0, 2, states_41,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{298, "xor_expr", 0, 2, states_42,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{299, "and_expr", 0, 2, states_43,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{300, "shift_expr", 0, 2, states_44,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{301, "arith_expr", 0, 2, states_45,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{302, "term", 0, 2, states_46,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{303, "factor", 0, 3, states_47,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{304, "power", 0, 4, states_48,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\000\000\111\003\000\000"},
{305, "atom", 0, 11, states_49,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\000\000\111\003\000\000"},
{306, "listmaker", 0, 5, states_50,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{307, "testlist_gexp", 0, 5, states_51,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{308, "lambdef", 0, 5, states_52,
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\020\000\000"},
{309, "trailer", 0, 7, states_53,
"\000\000\001\000\000\000\000\000\100\000\000\000\000\000\000\000\001\000\000\000"},
{310, "subscriptlist", 0, 3, states_54,
"\000\120\001\000\000\000\000\000\100\000\000\000\002\000\140\010\111\023\000\000"},
{311, "subscript", 0, 7, states_55,
"\000\120\001\000\000\000\000\000\100\000\000\000\002\000\140\010\111\023\000\000"},
{312, "sliceop", 0, 3, states_56,
"\000\100\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{313, "exprlist", 0, 3, states_57,
"\000\020\001\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000\000"},
{314, "testlist", 0, 3, states_58,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{315, "testlist_safe", 0, 5, states_59,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{316, "dictmaker", 0, 5, states_60,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{317, "classdef", 0, 8, states_61,
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\004\000"},
{318, "arglist", 0, 8, states_62,
"\000\020\201\001\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{319, "argument", 0, 5, states_63,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{320, "list_iter", 0, 2, states_64,
"\000\000\000\000\000\000\000\000\000\000\042\000\000\000\000\000\000\000\000\000"},
{321, "list_for", 0, 6, states_65,
"\000\000\000\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000"},
{322, "list_if", 0, 4, states_66,
"\000\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000\000"},
{323, "gen_iter", 0, 2, states_67,
"\000\000\000\000\000\000\000\000\000\000\042\000\000\000\000\000\000\000\000\000"},
{324, "gen_for", 0, 6, states_68,
"\000\000\000\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000"},
{325, "gen_if", 0, 4, states_69,
"\000\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000\000"},
{326, "testlist1", 0, 2, states_70,
"\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{327, "encoding_decl", 0, 2, states_71,
"\000\020\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
};
static label labels[153] = {
{0, "EMPTY"},
{256, 0},
{4, 0},
{265, 0},
{285, 0},
{257, 0},
{264, 0},
{0, 0},
{258, 0},
{314, 0},
{259, 0},
{1, "def"},
{1, 0},
{260, 0},
{11, 0},
{291, 0},
{7, 0},
{261, 0},
{8, 0},
{262, 0},
{22, 0},
{292, 0},
{12, 0},
{16, 0},
{36, 0},
{263, 0},
{266, 0},
{13, 0},
{267, 0},
{269, 0},
{270, 0},
{271, 0},
{272, 0},
{278, 0},
{282, 0},
{283, 0},
{284, 0},
{268, 0},
{37, 0},
{38, 0},
{39, 0},
{40, 0},
{41, 0},
{42, 0},
{43, 0},
{44, 0},
{45, 0},
{46, 0},
{47, 0},
{49, 0},
{1, "print"},
{35, 0},
{1, "del"},
{313, 0},
{1, "pass"},
{273, 0},
{274, 0},
{275, 0},
{277, 0},
{276, 0},
{1, "break"},
{1, "continue"},
{1, "return"},
{1, "yield"},
{1, "raise"},
{1, "import"},
{280, 0},
{1, "from"},
{281, 0},
{279, 0},
{23, 0},
{1, "global"},
{1, "exec"},
{297, 0},
{1, "in"},
{1, "assert"},
{286, 0},
{287, 0},
{288, 0},
{289, 0},
{317, 0},
{1, "if"},
{1, "elif"},
{1, "else"},
{1, "while"},
{1, "for"},
{1, "try"},
{290, 0},
{1, "finally"},
{1, "except"},
{5, 0},
{6, 0},
{293, 0},
{1, "or"},
{308, 0},
{294, 0},
{1, "and"},
{1, "not"},
{295, 0},
{296, 0},
{20, 0},
{21, 0},
{28, 0},
{31, 0},
{30, 0},
{29, 0},
{29, 0},
{1, "is"},
{298, 0},
{18, 0},
{299, 0},
{33, 0},
{300, 0},
{19, 0},
{301, 0},
{34, 0},
{302, 0},
{14, 0},
{15, 0},
{303, 0},
{17, 0},
{24, 0},
{48, 0},
{32, 0},
{304, 0},
{305, 0},
{309, 0},
{307, 0},
{9, 0},
{306, 0},
{10, 0},
{26, 0},
{316, 0},
{27, 0},
{25, 0},
{326, 0},
{2, 0},
{3, 0},
{321, 0},
{324, 0},
{1, "lambda"},
{318, 0},
{310, 0},
{311, 0},
{312, 0},
{315, 0},
{1, "class"},
{319, 0},
{320, 0},
{322, 0},
{323, 0},
{325, 0},
{327, 0},
};
grammar _PyParser_Grammar = {
72,
dfas,
{153, labels},
256
};