diff options
author | Guido van Rossum <guido@python.org> | 1997-04-02 05:24:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-02 05:24:08 (GMT) |
commit | 8ecd1ad785c59edc64d1ed0760b8356bb28a566c (patch) | |
tree | b35e86933ab7e2cedca00d066b472d36ba5259b1 | |
parent | 6dacd90a83d9a84fd0a30fc7cb53d4c1c4ca17c4 (diff) | |
download | cpython-8ecd1ad785c59edc64d1ed0760b8356bb28a566c.zip cpython-8ecd1ad785c59edc64d1ed0760b8356bb28a566c.tar.gz cpython-8ecd1ad785c59edc64d1ed0760b8356bb28a566c.tar.bz2 |
Added assert grammar.
-rw-r--r-- | Include/graminit.h | 65 | ||||
-rw-r--r-- | Python/graminit.c | 1016 |
2 files changed, 555 insertions, 526 deletions
diff --git a/Include/graminit.h b/Include/graminit.h index 66eacbb..ba66456 100644 --- a/Include/graminit.h +++ b/Include/graminit.h @@ -22,35 +22,36 @@ #define dotted_name 277 #define global_stmt 278 #define exec_stmt 279 -#define compound_stmt 280 -#define if_stmt 281 -#define while_stmt 282 -#define for_stmt 283 -#define try_stmt 284 -#define except_clause 285 -#define suite 286 -#define test 287 -#define and_test 288 -#define not_test 289 -#define comparison 290 -#define comp_op 291 -#define expr 292 -#define xor_expr 293 -#define and_expr 294 -#define shift_expr 295 -#define arith_expr 296 -#define term 297 -#define factor 298 -#define power 299 -#define atom 300 -#define lambdef 301 -#define trailer 302 -#define subscriptlist 303 -#define subscript 304 -#define sliceop 305 -#define exprlist 306 -#define testlist 307 -#define dictmaker 308 -#define classdef 309 -#define arglist 310 -#define argument 311 +#define assert_stmt 280 +#define compound_stmt 281 +#define if_stmt 282 +#define while_stmt 283 +#define for_stmt 284 +#define try_stmt 285 +#define except_clause 286 +#define suite 287 +#define test 288 +#define and_test 289 +#define not_test 290 +#define comparison 291 +#define comp_op 292 +#define expr 293 +#define xor_expr 294 +#define and_expr 295 +#define shift_expr 296 +#define arith_expr 297 +#define term 298 +#define factor 299 +#define power 300 +#define atom 301 +#define lambdef 302 +#define trailer 303 +#define subscriptlist 304 +#define subscript 305 +#define sliceop 306 +#define exprlist 307 +#define testlist 308 +#define dictmaker 309 +#define classdef 310 +#define arglist 311 +#define argument 312 diff --git a/Python/graminit.c b/Python/graminit.c index f2442ce..5671792 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -211,7 +211,7 @@ static state states_9[4] = { {2, arcs_9_2}, {1, arcs_9_3}, }; -static arc arcs_10_0[8] = { +static arc arcs_10_0[9] = { {28, 1}, {29, 1}, {30, 1}, @@ -220,12 +220,13 @@ static arc arcs_10_0[8] = { {33, 1}, {34, 1}, {35, 1}, + {36, 1}, }; static arc arcs_10_1[1] = { {0, 1}, }; static state states_10[2] = { - {8, arcs_10_0}, + {9, arcs_10_0}, {1, arcs_10_1}, }; static arc arcs_11_0[1] = { @@ -240,7 +241,7 @@ static state states_11[2] = { {2, arcs_11_1}, }; static arc arcs_12_0[1] = { - {36, 1}, + {37, 1}, }; static arc arcs_12_1[2] = { {21, 2}, @@ -256,10 +257,10 @@ static state states_12[3] = { {2, arcs_12_2}, }; static arc arcs_13_0[1] = { - {37, 1}, + {38, 1}, }; static arc arcs_13_1[1] = { - {38, 2}, + {39, 2}, }; static arc arcs_13_2[1] = { {0, 2}, @@ -270,7 +271,7 @@ static state states_13[3] = { {1, arcs_13_2}, }; static arc arcs_14_0[1] = { - {39, 1}, + {40, 1}, }; static arc arcs_14_1[1] = { {0, 1}, @@ -280,10 +281,10 @@ static state states_14[2] = { {1, arcs_14_1}, }; static arc arcs_15_0[4] = { - {40, 1}, {41, 1}, {42, 1}, {43, 1}, + {44, 1}, }; static arc arcs_15_1[1] = { {0, 1}, @@ -293,7 +294,7 @@ static state states_15[2] = { {1, arcs_15_1}, }; static arc arcs_16_0[1] = { - {44, 1}, + {45, 1}, }; static arc arcs_16_1[1] = { {0, 1}, @@ -303,7 +304,7 @@ static state states_16[2] = { {1, arcs_16_1}, }; static arc arcs_17_0[1] = { - {45, 1}, + {46, 1}, }; static arc arcs_17_1[1] = { {0, 1}, @@ -313,7 +314,7 @@ static state states_17[2] = { {1, arcs_17_1}, }; static arc arcs_18_0[1] = { - {46, 1}, + {47, 1}, }; static arc arcs_18_1[2] = { {9, 2}, @@ -328,7 +329,7 @@ static state states_18[3] = { {1, arcs_18_2}, }; static arc arcs_19_0[1] = { - {47, 1}, + {48, 1}, }; static arc arcs_19_1[1] = { {21, 2}, @@ -360,21 +361,21 @@ static state states_19[7] = { {1, arcs_19_6}, }; static arc arcs_20_0[2] = { - {48, 1}, - {50, 2}, + {49, 1}, + {51, 2}, }; static arc arcs_20_1[1] = { - {49, 3}, + {50, 3}, }; static arc arcs_20_2[1] = { - {49, 4}, + {50, 4}, }; static arc arcs_20_3[2] = { {22, 1}, {0, 3}, }; static arc arcs_20_4[1] = { - {48, 5}, + {49, 5}, }; static arc arcs_20_5[2] = { {23, 6}, @@ -405,7 +406,7 @@ static arc arcs_21_0[1] = { {12, 1}, }; static arc arcs_21_1[2] = { - {51, 0}, + {52, 0}, {0, 1}, }; static state states_21[2] = { @@ -413,7 +414,7 @@ static state states_21[2] = { {2, arcs_21_1}, }; static arc arcs_22_0[1] = { - {52, 1}, + {53, 1}, }; static arc arcs_22_1[1] = { {12, 2}, @@ -428,13 +429,13 @@ static state states_22[3] = { {2, arcs_22_2}, }; static arc arcs_23_0[1] = { - {53, 1}, + {54, 1}, }; static arc arcs_23_1[1] = { - {54, 2}, + {55, 2}, }; static arc arcs_23_2[2] = { - {55, 3}, + {56, 3}, {0, 2}, }; static arc arcs_23_3[1] = { @@ -459,59 +460,46 @@ static state states_23[7] = { {1, arcs_23_5}, {1, arcs_23_6}, }; -static arc arcs_24_0[6] = { - {56, 1}, +static arc arcs_24_0[1] = { {57, 1}, - {58, 1}, - {59, 1}, - {10, 1}, - {60, 1}, }; static arc arcs_24_1[1] = { - {0, 1}, -}; -static state states_24[2] = { - {6, arcs_24_0}, - {1, arcs_24_1}, -}; -static arc arcs_25_0[1] = { - {61, 1}, -}; -static arc arcs_25_1[1] = { {21, 2}, }; -static arc arcs_25_2[1] = { - {14, 3}, +static arc arcs_24_2[2] = { + {22, 3}, + {0, 2}, }; -static arc arcs_25_3[1] = { - {15, 4}, +static arc arcs_24_3[1] = { + {21, 4}, }; -static arc arcs_25_4[3] = { - {62, 1}, - {63, 5}, +static arc arcs_24_4[1] = { {0, 4}, }; -static arc arcs_25_5[1] = { - {14, 6}, +static state states_24[5] = { + {1, arcs_24_0}, + {1, arcs_24_1}, + {2, arcs_24_2}, + {1, arcs_24_3}, + {1, arcs_24_4}, }; -static arc arcs_25_6[1] = { - {15, 7}, +static arc arcs_25_0[6] = { + {58, 1}, + {59, 1}, + {60, 1}, + {61, 1}, + {10, 1}, + {62, 1}, }; -static arc arcs_25_7[1] = { - {0, 7}, +static arc arcs_25_1[1] = { + {0, 1}, }; -static state states_25[8] = { - {1, arcs_25_0}, +static state states_25[2] = { + {6, arcs_25_0}, {1, arcs_25_1}, - {1, arcs_25_2}, - {1, arcs_25_3}, - {3, arcs_25_4}, - {1, arcs_25_5}, - {1, arcs_25_6}, - {1, arcs_25_7}, }; static arc arcs_26_0[1] = { - {64, 1}, + {63, 1}, }; static arc arcs_26_1[1] = { {21, 2}, @@ -522,8 +510,9 @@ static arc arcs_26_2[1] = { static arc arcs_26_3[1] = { {15, 4}, }; -static arc arcs_26_4[2] = { - {63, 5}, +static arc arcs_26_4[3] = { + {64, 1}, + {65, 5}, {0, 4}, }; static arc arcs_26_5[1] = { @@ -540,83 +529,73 @@ static state states_26[8] = { {1, arcs_26_1}, {1, arcs_26_2}, {1, arcs_26_3}, - {2, arcs_26_4}, + {3, arcs_26_4}, {1, arcs_26_5}, {1, arcs_26_6}, {1, arcs_26_7}, }; static arc arcs_27_0[1] = { - {65, 1}, + {66, 1}, }; static arc arcs_27_1[1] = { - {38, 2}, + {21, 2}, }; static arc arcs_27_2[1] = { - {55, 3}, + {14, 3}, }; static arc arcs_27_3[1] = { - {9, 4}, + {15, 4}, }; -static arc arcs_27_4[1] = { - {14, 5}, +static arc arcs_27_4[2] = { + {65, 5}, + {0, 4}, }; static arc arcs_27_5[1] = { - {15, 6}, + {14, 6}, }; -static arc arcs_27_6[2] = { - {63, 7}, - {0, 6}, +static arc arcs_27_6[1] = { + {15, 7}, }; static arc arcs_27_7[1] = { - {14, 8}, -}; -static arc arcs_27_8[1] = { - {15, 9}, -}; -static arc arcs_27_9[1] = { - {0, 9}, + {0, 7}, }; -static state states_27[10] = { +static state states_27[8] = { {1, arcs_27_0}, {1, arcs_27_1}, {1, arcs_27_2}, {1, arcs_27_3}, - {1, arcs_27_4}, + {2, arcs_27_4}, {1, arcs_27_5}, - {2, arcs_27_6}, + {1, arcs_27_6}, {1, arcs_27_7}, - {1, arcs_27_8}, - {1, arcs_27_9}, }; static arc arcs_28_0[1] = { - {66, 1}, + {67, 1}, }; static arc arcs_28_1[1] = { - {14, 2}, + {39, 2}, }; static arc arcs_28_2[1] = { - {15, 3}, + {56, 3}, }; -static arc arcs_28_3[2] = { - {67, 4}, - {68, 5}, +static arc arcs_28_3[1] = { + {9, 4}, }; static arc arcs_28_4[1] = { - {14, 6}, + {14, 5}, }; static arc arcs_28_5[1] = { - {14, 7}, + {15, 6}, }; -static arc arcs_28_6[1] = { - {15, 8}, +static arc arcs_28_6[2] = { + {65, 7}, + {0, 6}, }; static arc arcs_28_7[1] = { - {15, 9}, + {14, 8}, }; -static arc arcs_28_8[3] = { - {67, 4}, - {63, 5}, - {0, 8}, +static arc arcs_28_8[1] = { + {15, 9}, }; static arc arcs_28_9[1] = { {0, 9}, @@ -625,157 +604,191 @@ static state states_28[10] = { {1, arcs_28_0}, {1, arcs_28_1}, {1, arcs_28_2}, - {2, arcs_28_3}, + {1, arcs_28_3}, {1, arcs_28_4}, {1, arcs_28_5}, - {1, arcs_28_6}, + {2, arcs_28_6}, {1, arcs_28_7}, - {3, arcs_28_8}, + {1, arcs_28_8}, {1, arcs_28_9}, }; static arc arcs_29_0[1] = { - {69, 1}, + {68, 1}, }; -static arc arcs_29_1[2] = { - {21, 2}, - {0, 1}, +static arc arcs_29_1[1] = { + {14, 2}, }; -static arc arcs_29_2[2] = { - {22, 3}, - {0, 2}, +static arc arcs_29_2[1] = { + {15, 3}, }; -static arc arcs_29_3[1] = { - {21, 4}, +static arc arcs_29_3[2] = { + {69, 4}, + {70, 5}, }; static arc arcs_29_4[1] = { - {0, 4}, + {14, 6}, +}; +static arc arcs_29_5[1] = { + {14, 7}, +}; +static arc arcs_29_6[1] = { + {15, 8}, +}; +static arc arcs_29_7[1] = { + {15, 9}, +}; +static arc arcs_29_8[3] = { + {69, 4}, + {65, 5}, + {0, 8}, +}; +static arc arcs_29_9[1] = { + {0, 9}, }; -static state states_29[5] = { +static state states_29[10] = { {1, arcs_29_0}, - {2, arcs_29_1}, - {2, arcs_29_2}, - {1, arcs_29_3}, + {1, arcs_29_1}, + {1, arcs_29_2}, + {2, arcs_29_3}, {1, arcs_29_4}, + {1, arcs_29_5}, + {1, arcs_29_6}, + {1, arcs_29_7}, + {3, arcs_29_8}, + {1, arcs_29_9}, }; -static arc arcs_30_0[2] = { - {3, 1}, - {2, 2}, +static arc arcs_30_0[1] = { + {71, 1}, }; -static arc arcs_30_1[1] = { +static arc arcs_30_1[2] = { + {21, 2}, {0, 1}, }; -static arc arcs_30_2[1] = { - {70, 3}, +static arc arcs_30_2[2] = { + {22, 3}, + {0, 2}, }; static arc arcs_30_3[1] = { - {6, 4}, + {21, 4}, }; -static arc arcs_30_4[2] = { - {6, 4}, - {71, 1}, +static arc arcs_30_4[1] = { + {0, 4}, }; static state states_30[5] = { - {2, arcs_30_0}, - {1, arcs_30_1}, - {1, arcs_30_2}, + {1, arcs_30_0}, + {2, arcs_30_1}, + {2, arcs_30_2}, {1, arcs_30_3}, - {2, arcs_30_4}, + {1, arcs_30_4}, }; static arc arcs_31_0[2] = { - {72, 1}, - {74, 2}, + {3, 1}, + {2, 2}, }; -static arc arcs_31_1[2] = { - {73, 3}, +static arc arcs_31_1[1] = { {0, 1}, }; static arc arcs_31_2[1] = { - {0, 2}, + {72, 3}, }; static arc arcs_31_3[1] = { - {72, 1}, + {6, 4}, +}; +static arc arcs_31_4[2] = { + {6, 4}, + {73, 1}, }; -static state states_31[4] = { +static state states_31[5] = { {2, arcs_31_0}, - {2, arcs_31_1}, + {1, arcs_31_1}, {1, arcs_31_2}, {1, arcs_31_3}, + {2, arcs_31_4}, }; -static arc arcs_32_0[1] = { - {75, 1}, +static arc arcs_32_0[2] = { + {74, 1}, + {76, 2}, }; static arc arcs_32_1[2] = { - {76, 0}, + {75, 3}, {0, 1}, }; -static state states_32[2] = { - {1, arcs_32_0}, +static arc arcs_32_2[1] = { + {0, 2}, +}; +static arc arcs_32_3[1] = { + {74, 1}, +}; +static state states_32[4] = { + {2, arcs_32_0}, {2, arcs_32_1}, + {1, arcs_32_2}, + {1, arcs_32_3}, }; -static arc arcs_33_0[2] = { +static arc arcs_33_0[1] = { {77, 1}, - {78, 2}, }; -static arc arcs_33_1[1] = { - {75, 2}, +static arc arcs_33_1[2] = { + {78, 0}, + {0, 1}, +}; +static state states_33[2] = { + {1, arcs_33_0}, + {2, arcs_33_1}, }; -static arc arcs_33_2[1] = { +static arc arcs_34_0[2] = { + {79, 1}, + {80, 2}, +}; +static arc arcs_34_1[1] = { + {77, 2}, +}; +static arc arcs_34_2[1] = { {0, 2}, }; -static state states_33[3] = { - {2, arcs_33_0}, - {1, arcs_33_1}, - {1, arcs_33_2}, +static state states_34[3] = { + {2, arcs_34_0}, + {1, arcs_34_1}, + {1, arcs_34_2}, }; -static arc arcs_34_0[1] = { - {54, 1}, +static arc arcs_35_0[1] = { + {55, 1}, }; -static arc arcs_34_1[2] = { - {79, 0}, +static arc arcs_35_1[2] = { + {81, 0}, {0, 1}, }; -static state states_34[2] = { - {1, arcs_34_0}, - {2, arcs_34_1}, +static state states_35[2] = { + {1, arcs_35_0}, + {2, arcs_35_1}, }; -static arc arcs_35_0[10] = { - {80, 1}, - {81, 1}, +static arc arcs_36_0[10] = { {82, 1}, {83, 1}, {84, 1}, {85, 1}, {86, 1}, - {55, 1}, - {77, 2}, - {87, 3}, + {87, 1}, + {88, 1}, + {56, 1}, + {79, 2}, + {89, 3}, }; -static arc arcs_35_1[1] = { +static arc arcs_36_1[1] = { {0, 1}, }; -static arc arcs_35_2[1] = { - {55, 1}, +static arc arcs_36_2[1] = { + {56, 1}, }; -static arc arcs_35_3[2] = { - {77, 1}, +static arc arcs_36_3[2] = { + {79, 1}, {0, 3}, }; -static state states_35[4] = { - {10, arcs_35_0}, - {1, arcs_35_1}, - {1, arcs_35_2}, - {2, arcs_35_3}, -}; -static arc arcs_36_0[1] = { - {88, 1}, -}; -static arc arcs_36_1[2] = { - {89, 0}, - {0, 1}, -}; -static state states_36[2] = { - {1, arcs_36_0}, - {2, arcs_36_1}, +static state states_36[4] = { + {10, arcs_36_0}, + {1, arcs_36_1}, + {1, arcs_36_2}, + {2, arcs_36_3}, }; static arc arcs_37_0[1] = { {90, 1}, @@ -802,21 +815,20 @@ static state states_38[2] = { static arc arcs_39_0[1] = { {94, 1}, }; -static arc arcs_39_1[3] = { +static arc arcs_39_1[2] = { {95, 0}, - {96, 0}, {0, 1}, }; static state states_39[2] = { {1, arcs_39_0}, - {3, arcs_39_1}, + {2, arcs_39_1}, }; static arc arcs_40_0[1] = { - {97, 1}, + {96, 1}, }; static arc arcs_40_1[3] = { + {97, 0}, {98, 0}, - {99, 0}, {0, 1}, }; static state states_40[2] = { @@ -824,260 +836,256 @@ static state states_40[2] = { {3, arcs_40_1}, }; static arc arcs_41_0[1] = { - {100, 1}, + {99, 1}, }; -static arc arcs_41_1[4] = { - {23, 0}, +static arc arcs_41_1[3] = { + {100, 0}, {101, 0}, - {102, 0}, {0, 1}, }; static state states_41[2] = { {1, arcs_41_0}, - {4, arcs_41_1}, + {3, arcs_41_1}, }; -static arc arcs_42_0[4] = { - {98, 1}, - {99, 1}, - {103, 1}, - {104, 2}, +static arc arcs_42_0[1] = { + {102, 1}, }; -static arc arcs_42_1[1] = { - {100, 2}, +static arc arcs_42_1[4] = { + {23, 0}, + {103, 0}, + {104, 0}, + {0, 1}, }; -static arc arcs_42_2[1] = { +static state states_42[2] = { + {1, arcs_42_0}, + {4, arcs_42_1}, +}; +static arc arcs_43_0[4] = { + {100, 1}, + {101, 1}, + {105, 1}, + {106, 2}, +}; +static arc arcs_43_1[1] = { + {102, 2}, +}; +static arc arcs_43_2[1] = { {0, 2}, }; -static state states_42[3] = { - {4, arcs_42_0}, - {1, arcs_42_1}, - {1, arcs_42_2}, +static state states_43[3] = { + {4, arcs_43_0}, + {1, arcs_43_1}, + {1, arcs_43_2}, }; -static arc arcs_43_0[1] = { - {105, 1}, +static arc arcs_44_0[1] = { + {107, 1}, }; -static arc arcs_43_1[3] = { - {106, 1}, +static arc arcs_44_1[3] = { + {108, 1}, {24, 2}, {0, 1}, }; -static arc arcs_43_2[1] = { - {100, 3}, +static arc arcs_44_2[1] = { + {102, 3}, }; -static arc arcs_43_3[2] = { +static arc arcs_44_3[2] = { {24, 2}, {0, 3}, }; -static state states_43[4] = { - {1, arcs_43_0}, - {3, arcs_43_1}, - {1, arcs_43_2}, - {2, arcs_43_3}, +static state states_44[4] = { + {1, arcs_44_0}, + {3, arcs_44_1}, + {1, arcs_44_2}, + {2, arcs_44_3}, }; -static arc arcs_44_0[7] = { +static arc arcs_45_0[7] = { {16, 1}, - {107, 2}, - {109, 3}, - {112, 4}, + {109, 2}, + {111, 3}, + {114, 4}, {12, 5}, - {113, 5}, - {114, 6}, + {115, 5}, + {116, 6}, }; -static arc arcs_44_1[2] = { +static arc arcs_45_1[2] = { {9, 7}, {18, 5}, }; -static arc arcs_44_2[2] = { +static arc arcs_45_2[2] = { {9, 8}, - {108, 5}, + {110, 5}, }; -static arc arcs_44_3[2] = { - {110, 9}, - {111, 5}, +static arc arcs_45_3[2] = { + {112, 9}, + {113, 5}, }; -static arc arcs_44_4[1] = { +static arc arcs_45_4[1] = { {9, 10}, }; -static arc arcs_44_5[1] = { +static arc arcs_45_5[1] = { {0, 5}, }; -static arc arcs_44_6[2] = { - {114, 6}, +static arc arcs_45_6[2] = { + {116, 6}, {0, 6}, }; -static arc arcs_44_7[1] = { +static arc arcs_45_7[1] = { {18, 5}, }; -static arc arcs_44_8[1] = { - {108, 5}, +static arc arcs_45_8[1] = { + {110, 5}, }; -static arc arcs_44_9[1] = { - {111, 5}, +static arc arcs_45_9[1] = { + {113, 5}, }; -static arc arcs_44_10[1] = { - {112, 5}, +static arc arcs_45_10[1] = { + {114, 5}, }; -static state states_44[11] = { - {7, arcs_44_0}, - {2, arcs_44_1}, - {2, arcs_44_2}, - {2, arcs_44_3}, - {1, arcs_44_4}, - {1, arcs_44_5}, - {2, arcs_44_6}, - {1, arcs_44_7}, - {1, arcs_44_8}, - {1, arcs_44_9}, - {1, arcs_44_10}, +static state states_45[11] = { + {7, arcs_45_0}, + {2, arcs_45_1}, + {2, arcs_45_2}, + {2, arcs_45_3}, + {1, arcs_45_4}, + {1, arcs_45_5}, + {2, arcs_45_6}, + {1, arcs_45_7}, + {1, arcs_45_8}, + {1, arcs_45_9}, + {1, arcs_45_10}, }; -static arc arcs_45_0[1] = { - {115, 1}, +static arc arcs_46_0[1] = { + {117, 1}, }; -static arc arcs_45_1[2] = { +static arc arcs_46_1[2] = { {17, 2}, {14, 3}, }; -static arc arcs_45_2[1] = { +static arc arcs_46_2[1] = { {14, 3}, }; -static arc arcs_45_3[1] = { +static arc arcs_46_3[1] = { {21, 4}, }; -static arc arcs_45_4[1] = { +static arc arcs_46_4[1] = { {0, 4}, }; -static state states_45[5] = { - {1, arcs_45_0}, - {2, arcs_45_1}, - {1, arcs_45_2}, - {1, arcs_45_3}, - {1, arcs_45_4}, +static state states_46[5] = { + {1, arcs_46_0}, + {2, arcs_46_1}, + {1, arcs_46_2}, + {1, arcs_46_3}, + {1, arcs_46_4}, }; -static arc arcs_46_0[3] = { +static arc arcs_47_0[3] = { {16, 1}, - {107, 2}, - {51, 3}, + {109, 2}, + {52, 3}, }; -static arc arcs_46_1[2] = { - {116, 4}, +static arc arcs_47_1[2] = { + {118, 4}, {18, 5}, }; -static arc arcs_46_2[1] = { - {117, 6}, +static arc arcs_47_2[1] = { + {119, 6}, }; -static arc arcs_46_3[1] = { +static arc arcs_47_3[1] = { {12, 5}, }; -static arc arcs_46_4[1] = { +static arc arcs_47_4[1] = { {18, 5}, }; -static arc arcs_46_5[1] = { +static arc arcs_47_5[1] = { {0, 5}, }; -static arc arcs_46_6[1] = { - {108, 5}, +static arc arcs_47_6[1] = { + {110, 5}, }; -static state states_46[7] = { - {3, arcs_46_0}, - {2, arcs_46_1}, - {1, arcs_46_2}, - {1, arcs_46_3}, - {1, arcs_46_4}, - {1, arcs_46_5}, - {1, arcs_46_6}, +static state states_47[7] = { + {3, arcs_47_0}, + {2, arcs_47_1}, + {1, arcs_47_2}, + {1, arcs_47_3}, + {1, arcs_47_4}, + {1, arcs_47_5}, + {1, arcs_47_6}, }; -static arc arcs_47_0[1] = { - {118, 1}, +static arc arcs_48_0[1] = { + {120, 1}, }; -static arc arcs_47_1[2] = { +static arc arcs_48_1[2] = { {22, 2}, {0, 1}, }; -static arc arcs_47_2[2] = { - {118, 1}, +static arc arcs_48_2[2] = { + {120, 1}, {0, 2}, }; -static state states_47[3] = { - {1, arcs_47_0}, - {2, arcs_47_1}, - {2, arcs_47_2}, +static state states_48[3] = { + {1, arcs_48_0}, + {2, arcs_48_1}, + {2, arcs_48_2}, }; -static arc arcs_48_0[3] = { - {51, 1}, +static arc arcs_49_0[3] = { + {52, 1}, {21, 2}, {14, 3}, }; -static arc arcs_48_1[1] = { - {51, 4}, +static arc arcs_49_1[1] = { + {52, 4}, }; -static arc arcs_48_2[2] = { +static arc arcs_49_2[2] = { {14, 3}, {0, 2}, }; -static arc arcs_48_3[3] = { +static arc arcs_49_3[3] = { {21, 5}, - {119, 6}, + {121, 6}, {0, 3}, }; -static arc arcs_48_4[1] = { - {51, 6}, +static arc arcs_49_4[1] = { + {52, 6}, }; -static arc arcs_48_5[2] = { - {119, 6}, +static arc arcs_49_5[2] = { + {121, 6}, {0, 5}, }; -static arc arcs_48_6[1] = { +static arc arcs_49_6[1] = { {0, 6}, }; -static state states_48[7] = { - {3, arcs_48_0}, - {1, arcs_48_1}, - {2, arcs_48_2}, - {3, arcs_48_3}, - {1, arcs_48_4}, - {2, arcs_48_5}, - {1, arcs_48_6}, -}; -static arc arcs_49_0[1] = { - {14, 1}, -}; -static arc arcs_49_1[2] = { - {21, 2}, - {0, 1}, -}; -static arc arcs_49_2[1] = { - {0, 2}, -}; -static state states_49[3] = { - {1, arcs_49_0}, - {2, arcs_49_1}, - {1, arcs_49_2}, +static state states_49[7] = { + {3, arcs_49_0}, + {1, arcs_49_1}, + {2, arcs_49_2}, + {3, arcs_49_3}, + {1, arcs_49_4}, + {2, arcs_49_5}, + {1, arcs_49_6}, }; static arc arcs_50_0[1] = { - {54, 1}, + {14, 1}, }; static arc arcs_50_1[2] = { - {22, 2}, + {21, 2}, {0, 1}, }; -static arc arcs_50_2[2] = { - {54, 1}, +static arc arcs_50_2[1] = { {0, 2}, }; static state states_50[3] = { {1, arcs_50_0}, {2, arcs_50_1}, - {2, arcs_50_2}, + {1, arcs_50_2}, }; static arc arcs_51_0[1] = { - {21, 1}, + {55, 1}, }; static arc arcs_51_1[2] = { {22, 2}, {0, 1}, }; static arc arcs_51_2[2] = { - {21, 1}, + {55, 1}, {0, 2}, }; static state states_51[3] = { @@ -1088,104 +1096,120 @@ static state states_51[3] = { static arc arcs_52_0[1] = { {21, 1}, }; -static arc arcs_52_1[1] = { +static arc arcs_52_1[2] = { + {22, 2}, + {0, 1}, +}; +static arc arcs_52_2[2] = { + {21, 1}, + {0, 2}, +}; +static state states_52[3] = { + {1, arcs_52_0}, + {2, arcs_52_1}, + {2, arcs_52_2}, +}; +static arc arcs_53_0[1] = { + {21, 1}, +}; +static arc arcs_53_1[1] = { {14, 2}, }; -static arc arcs_52_2[1] = { +static arc arcs_53_2[1] = { {21, 3}, }; -static arc arcs_52_3[2] = { +static arc arcs_53_3[2] = { {22, 4}, {0, 3}, }; -static arc arcs_52_4[2] = { +static arc arcs_53_4[2] = { {21, 1}, {0, 4}, }; -static state states_52[5] = { - {1, arcs_52_0}, - {1, arcs_52_1}, - {1, arcs_52_2}, - {2, arcs_52_3}, - {2, arcs_52_4}, +static state states_53[5] = { + {1, arcs_53_0}, + {1, arcs_53_1}, + {1, arcs_53_2}, + {2, arcs_53_3}, + {2, arcs_53_4}, }; -static arc arcs_53_0[1] = { - {120, 1}, +static arc arcs_54_0[1] = { + {122, 1}, }; -static arc arcs_53_1[1] = { +static arc arcs_54_1[1] = { {12, 2}, }; -static arc arcs_53_2[2] = { +static arc arcs_54_2[2] = { {16, 3}, {14, 4}, }; -static arc arcs_53_3[1] = { +static arc arcs_54_3[1] = { {9, 5}, }; -static arc arcs_53_4[1] = { +static arc arcs_54_4[1] = { {15, 6}, }; -static arc arcs_53_5[1] = { +static arc arcs_54_5[1] = { {18, 7}, }; -static arc arcs_53_6[1] = { +static arc arcs_54_6[1] = { {0, 6}, }; -static arc arcs_53_7[1] = { +static arc arcs_54_7[1] = { {14, 4}, }; -static state states_53[8] = { - {1, arcs_53_0}, - {1, arcs_53_1}, - {2, arcs_53_2}, - {1, arcs_53_3}, - {1, arcs_53_4}, - {1, arcs_53_5}, - {1, arcs_53_6}, - {1, arcs_53_7}, +static state states_54[8] = { + {1, arcs_54_0}, + {1, arcs_54_1}, + {2, arcs_54_2}, + {1, arcs_54_3}, + {1, arcs_54_4}, + {1, arcs_54_5}, + {1, arcs_54_6}, + {1, arcs_54_7}, }; -static arc arcs_54_0[1] = { - {121, 1}, +static arc arcs_55_0[1] = { + {123, 1}, }; -static arc arcs_54_1[2] = { +static arc arcs_55_1[2] = { {22, 2}, {0, 1}, }; -static arc arcs_54_2[2] = { - {121, 1}, +static arc arcs_55_2[2] = { + {123, 1}, {0, 2}, }; -static state states_54[3] = { - {1, arcs_54_0}, - {2, arcs_54_1}, - {2, arcs_54_2}, +static state states_55[3] = { + {1, arcs_55_0}, + {2, arcs_55_1}, + {2, arcs_55_2}, }; -static arc arcs_55_0[1] = { +static arc arcs_56_0[1] = { {21, 1}, }; -static arc arcs_55_1[2] = { +static arc arcs_56_1[2] = { {20, 2}, {0, 1}, }; -static arc arcs_55_2[1] = { +static arc arcs_56_2[1] = { {21, 3}, }; -static arc arcs_55_3[1] = { +static arc arcs_56_3[1] = { {0, 3}, }; -static state states_55[4] = { - {1, arcs_55_0}, - {2, arcs_55_1}, - {1, arcs_55_2}, - {1, arcs_55_3}, +static state states_56[4] = { + {1, arcs_56_0}, + {2, arcs_56_1}, + {1, arcs_56_2}, + {1, arcs_56_3}, }; -static dfa dfas[56] = { +static dfa dfas[57] = { {256, "single_input", 0, 3, states_0, - "\004\030\001\000\260\360\065\040\007\040\000\000\214\050\017\001"}, + "\004\030\001\000\140\341\153\202\034\200\000\000\060\242\074\004"}, {257, "file_input", 0, 2, states_1, - "\204\030\001\000\260\360\065\040\007\040\000\000\214\050\017\001"}, + "\204\030\001\000\140\341\153\202\034\200\000\000\060\242\074\004"}, {258, "eval_input", 0, 3, states_2, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\017\000"}, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\074\000"}, {259, "funcdef", 0, 6, states_3, "\000\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000"}, {260, "parameters", 0, 4, states_4, @@ -1197,125 +1221,127 @@ static dfa dfas[56] = { {263, "fplist", 0, 3, states_7, "\000\020\001\000\000\000\000\000\000\000\000\000\000\000\000\000"}, {264, "stmt", 0, 2, states_8, - "\000\030\001\000\260\360\065\040\007\040\000\000\214\050\017\001"}, + "\000\030\001\000\140\341\153\202\034\200\000\000\060\242\074\004"}, {265, "simple_stmt", 0, 4, states_9, - "\000\020\001\000\260\360\065\000\000\040\000\000\214\050\017\000"}, + "\000\020\001\000\140\341\153\002\000\200\000\000\060\242\074\000"}, {266, "small_stmt", 0, 2, states_10, - "\000\020\001\000\260\360\065\000\000\040\000\000\214\050\017\000"}, + "\000\020\001\000\140\341\153\002\000\200\000\000\060\242\074\000"}, {267, "expr_stmt", 0, 2, states_11, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\017\000"}, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\074\000"}, {268, "print_stmt", 0, 3, states_12, - "\000\000\000\000\020\000\000\000\000\000\000\000\000\000\000\000"}, - {269, "del_stmt", 0, 3, states_13, "\000\000\000\000\040\000\000\000\000\000\000\000\000\000\000\000"}, + {269, "del_stmt", 0, 3, states_13, + "\000\000\000\000\100\000\000\000\000\000\000\000\000\000\000\000"}, {270, "pass_stmt", 0, 2, states_14, - "\000\000\000\000\200\000\000\000\000\000\000\000\000\000\000\000"}, + "\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000"}, {271, "flow_stmt", 0, 2, states_15, - "\000\000\000\000\000\360\000\000\000\000\000\000\000\000\000\000"}, + "\000\000\000\000\000\340\001\000\000\000\000\000\000\000\000\000"}, {272, "break_stmt", 0, 2, states_16, - "\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000\000"}, - {273, "continue_stmt", 0, 2, states_17, "\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000\000"}, - {274, "return_stmt", 0, 3, states_18, + {273, "continue_stmt", 0, 2, states_17, "\000\000\000\000\000\100\000\000\000\000\000\000\000\000\000\000"}, - {275, "raise_stmt", 0, 7, states_19, + {274, "return_stmt", 0, 3, states_18, "\000\000\000\000\000\200\000\000\000\000\000\000\000\000\000\000"}, + {275, "raise_stmt", 0, 7, states_19, + "\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000"}, {276, "import_stmt", 0, 9, states_20, - "\000\000\000\000\000\000\005\000\000\000\000\000\000\000\000\000"}, + "\000\000\000\000\000\000\012\000\000\000\000\000\000\000\000\000"}, {277, "dotted_name", 0, 2, states_21, "\000\020\000\000\000\000\000\000\000\000\000\000\000\000\000\000"}, {278, "global_stmt", 0, 3, states_22, - "\000\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000"}, - {279, "exec_stmt", 0, 7, states_23, "\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000"}, - {280, "compound_stmt", 0, 2, states_24, - "\000\010\000\000\000\000\000\040\007\000\000\000\000\000\000\001"}, - {281, "if_stmt", 0, 8, states_25, - "\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000"}, - {282, "while_stmt", 0, 8, states_26, - "\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000"}, - {283, "for_stmt", 0, 10, states_27, - "\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000"}, - {284, "try_stmt", 0, 10, states_28, + {279, "exec_stmt", 0, 7, states_23, + "\000\000\000\000\000\000\100\000\000\000\000\000\000\000\000\000"}, + {280, "assert_stmt", 0, 5, states_24, + "\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000"}, + {281, "compound_stmt", 0, 2, states_25, + "\000\010\000\000\000\000\000\200\034\000\000\000\000\000\000\004"}, + {282, "if_stmt", 0, 8, states_26, + "\000\000\000\000\000\000\000\200\000\000\000\000\000\000\000\000"}, + {283, "while_stmt", 0, 8, states_27, "\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000"}, - {285, "except_clause", 0, 5, states_29, - "\000\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000"}, - {286, "suite", 0, 5, states_30, - "\004\020\001\000\260\360\065\000\000\040\000\000\214\050\017\000"}, - {287, "test", 0, 4, states_31, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\017\000"}, - {288, "and_test", 0, 2, states_32, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\007\000"}, - {289, "not_test", 0, 3, states_33, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\007\000"}, - {290, "comparison", 0, 2, states_34, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {291, "comp_op", 0, 4, states_35, - "\000\000\000\000\000\000\200\000\000\040\377\000\000\000\000\000"}, - {292, "expr", 0, 2, states_36, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {293, "xor_expr", 0, 2, states_37, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {294, "and_expr", 0, 2, states_38, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {295, "shift_expr", 0, 2, states_39, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {296, "arith_expr", 0, 2, states_40, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {297, "term", 0, 2, states_41, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {298, "factor", 0, 3, states_42, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {299, "power", 0, 4, states_43, - "\000\020\001\000\000\000\000\000\000\000\000\000\000\050\007\000"}, - {300, "atom", 0, 11, states_44, - "\000\020\001\000\000\000\000\000\000\000\000\000\000\050\007\000"}, - {301, "lambdef", 0, 5, states_45, - "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\010\000"}, - {302, "trailer", 0, 7, states_46, - "\000\000\001\000\000\000\010\000\000\000\000\000\000\010\000\000"}, - {303, "subscriptlist", 0, 3, states_47, - "\000\120\001\000\000\000\010\000\000\040\000\000\214\050\017\000"}, - {304, "subscript", 0, 7, states_48, - "\000\120\001\000\000\000\010\000\000\040\000\000\214\050\017\000"}, - {305, "sliceop", 0, 3, states_49, + {284, "for_stmt", 0, 10, states_28, + "\000\000\000\000\000\000\000\000\010\000\000\000\000\000\000\000"}, + {285, "try_stmt", 0, 10, states_29, + "\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000"}, + {286, "except_clause", 0, 5, states_30, + "\000\000\000\000\000\000\000\000\200\000\000\000\000\000\000\000"}, + {287, "suite", 0, 5, states_31, + "\004\020\001\000\140\341\153\002\000\200\000\000\060\242\074\000"}, + {288, "test", 0, 4, states_32, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\074\000"}, + {289, "and_test", 0, 2, states_33, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\034\000"}, + {290, "not_test", 0, 3, states_34, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\034\000"}, + {291, "comparison", 0, 2, states_35, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {292, "comp_op", 0, 4, states_36, + "\000\000\000\000\000\000\000\001\000\200\374\003\000\000\000\000"}, + {293, "expr", 0, 2, states_37, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {294, "xor_expr", 0, 2, states_38, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {295, "and_expr", 0, 2, states_39, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {296, "shift_expr", 0, 2, states_40, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {297, "arith_expr", 0, 2, states_41, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {298, "term", 0, 2, states_42, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {299, "factor", 0, 3, states_43, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {300, "power", 0, 4, states_44, + "\000\020\001\000\000\000\000\000\000\000\000\000\000\240\034\000"}, + {301, "atom", 0, 11, states_45, + "\000\020\001\000\000\000\000\000\000\000\000\000\000\240\034\000"}, + {302, "lambdef", 0, 5, states_46, + "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\040\000"}, + {303, "trailer", 0, 7, states_47, + "\000\000\001\000\000\000\020\000\000\000\000\000\000\040\000\000"}, + {304, "subscriptlist", 0, 3, states_48, + "\000\120\001\000\000\000\020\000\000\200\000\000\060\242\074\000"}, + {305, "subscript", 0, 7, states_49, + "\000\120\001\000\000\000\020\000\000\200\000\000\060\242\074\000"}, + {306, "sliceop", 0, 3, states_50, "\000\100\000\000\000\000\000\000\000\000\000\000\000\000\000\000"}, - {306, "exprlist", 0, 3, states_50, - "\000\020\001\000\000\000\000\000\000\000\000\000\214\050\007\000"}, - {307, "testlist", 0, 3, states_51, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\017\000"}, - {308, "dictmaker", 0, 5, states_52, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\017\000"}, - {309, "classdef", 0, 8, states_53, - "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001"}, - {310, "arglist", 0, 3, states_54, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\017\000"}, - {311, "argument", 0, 4, states_55, - "\000\020\001\000\000\000\000\000\000\040\000\000\214\050\017\000"}, -}; -static label labels[122] = { + {307, "exprlist", 0, 3, states_51, + "\000\020\001\000\000\000\000\000\000\000\000\000\060\242\034\000"}, + {308, "testlist", 0, 3, states_52, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\074\000"}, + {309, "dictmaker", 0, 5, states_53, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\074\000"}, + {310, "classdef", 0, 8, states_54, + "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\004"}, + {311, "arglist", 0, 3, states_55, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\074\000"}, + {312, "argument", 0, 4, states_56, + "\000\020\001\000\000\000\000\000\000\200\000\000\060\242\074\000"}, +}; +static label labels[124] = { {0, "EMPTY"}, {256, 0}, {4, 0}, {265, 0}, - {280, 0}, + {281, 0}, {257, 0}, {264, 0}, {0, 0}, {258, 0}, - {307, 0}, + {308, 0}, {259, 0}, {1, "def"}, {1, 0}, {260, 0}, {11, 0}, - {286, 0}, + {287, 0}, {7, 0}, {261, 0}, {8, 0}, {262, 0}, {22, 0}, - {287, 0}, + {288, 0}, {12, 0}, {16, 0}, {36, 0}, @@ -1330,9 +1356,10 @@ static label labels[122] = { {276, 0}, {278, 0}, {279, 0}, + {280, 0}, {1, "print"}, {1, "del"}, - {306, 0}, + {307, 0}, {1, "pass"}, {272, 0}, {273, 0}, @@ -1348,32 +1375,33 @@ static label labels[122] = { {23, 0}, {1, "global"}, {1, "exec"}, - {292, 0}, + {293, 0}, {1, "in"}, - {281, 0}, + {1, "__assert__"}, {282, 0}, {283, 0}, {284, 0}, - {309, 0}, + {285, 0}, + {310, 0}, {1, "if"}, {1, "elif"}, {1, "else"}, {1, "while"}, {1, "for"}, {1, "try"}, - {285, 0}, + {286, 0}, {1, "finally"}, {1, "except"}, {5, 0}, {6, 0}, - {288, 0}, - {1, "or"}, - {301, 0}, {289, 0}, + {1, "or"}, + {302, 0}, + {290, 0}, {1, "and"}, {1, "not"}, - {290, 0}, {291, 0}, + {292, 0}, {20, 0}, {21, 0}, {28, 0}, @@ -1382,44 +1410,44 @@ static label labels[122] = { {29, 0}, {29, 0}, {1, "is"}, - {293, 0}, - {18, 0}, {294, 0}, - {33, 0}, + {18, 0}, {295, 0}, - {19, 0}, + {33, 0}, {296, 0}, + {19, 0}, + {297, 0}, {34, 0}, {35, 0}, - {297, 0}, + {298, 0}, {14, 0}, {15, 0}, - {298, 0}, + {299, 0}, {17, 0}, {24, 0}, {32, 0}, - {299, 0}, {300, 0}, - {302, 0}, + {301, 0}, + {303, 0}, {9, 0}, {10, 0}, {26, 0}, - {308, 0}, + {309, 0}, {27, 0}, {25, 0}, {2, 0}, {3, 0}, {1, "lambda"}, - {310, 0}, - {303, 0}, + {311, 0}, {304, 0}, {305, 0}, + {306, 0}, {1, "class"}, - {311, 0}, + {312, 0}, }; grammar gram = { - 56, + 57, dfas, - {122, labels}, + {124, labels}, 256 }; |