diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-06 00:16:41 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-06 00:16:41 (GMT) |
commit | 025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1 (patch) | |
tree | d769adcb6d4a557a00923f18ed2b0ca8b515a473 /Python/graminit.c | |
parent | 4ccc1514d070cabe80e8cfa0469dc03c12d08be2 (diff) | |
download | cpython-025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1.zip cpython-025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1.tar.gz cpython-025e9ebd0a0a19f50ca83af6ada0ac65be1fa2a1.tar.bz2 |
PEP 448: additional unpacking generalizations (closes #2292)
Patch by Neil Girdhar.
Diffstat (limited to 'Python/graminit.c')
-rw-r--r-- | Python/graminit.c | 154 |
1 files changed, 76 insertions, 78 deletions
diff --git a/Python/graminit.c b/Python/graminit.c index 9f79d59..1028ffa 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -1569,60 +1569,78 @@ static state states_71[3] = { {2, arcs_71_1}, {2, arcs_71_2}, }; -static arc arcs_72_0[1] = { +static arc arcs_72_0[3] = { {24, 1}, + {32, 2}, + {48, 3}, }; static arc arcs_72_1[4] = { - {25, 2}, - {159, 3}, - {30, 4}, + {25, 4}, + {159, 5}, + {30, 6}, {0, 1}, }; static arc arcs_72_2[1] = { - {24, 5}, + {104, 7}, }; -static arc arcs_72_3[1] = { +static arc arcs_72_3[3] = { + {159, 5}, + {30, 6}, {0, 3}, }; -static arc arcs_72_4[2] = { - {24, 6}, - {0, 4}, +static arc arcs_72_4[1] = { + {24, 7}, }; -static arc arcs_72_5[3] = { - {159, 3}, - {30, 7}, +static arc arcs_72_5[1] = { {0, 5}, }; -static arc arcs_72_6[2] = { - {30, 4}, +static arc arcs_72_6[3] = { + {24, 8}, + {48, 8}, {0, 6}, }; -static arc arcs_72_7[2] = { - {24, 8}, +static arc arcs_72_7[3] = { + {159, 5}, + {30, 9}, {0, 7}, }; -static arc arcs_72_8[1] = { - {25, 9}, +static arc arcs_72_8[2] = { + {30, 6}, + {0, 8}, }; -static arc arcs_72_9[1] = { +static arc arcs_72_9[3] = { {24, 10}, + {32, 11}, + {0, 9}, }; -static arc arcs_72_10[2] = { - {30, 7}, - {0, 10}, +static arc arcs_72_10[1] = { + {25, 12}, +}; +static arc arcs_72_11[1] = { + {104, 13}, +}; +static arc arcs_72_12[1] = { + {24, 13}, }; -static state states_72[11] = { - {1, arcs_72_0}, +static arc arcs_72_13[2] = { + {30, 9}, + {0, 13}, +}; +static state states_72[14] = { + {3, arcs_72_0}, {4, arcs_72_1}, {1, arcs_72_2}, - {1, arcs_72_3}, - {2, arcs_72_4}, - {3, arcs_72_5}, - {2, arcs_72_6}, - {2, arcs_72_7}, - {1, arcs_72_8}, - {1, arcs_72_9}, - {2, arcs_72_10}, + {3, arcs_72_3}, + {1, arcs_72_4}, + {1, arcs_72_5}, + {3, arcs_72_6}, + {3, arcs_72_7}, + {2, arcs_72_8}, + {3, arcs_72_9}, + {1, arcs_72_10}, + {1, arcs_72_11}, + {1, arcs_72_12}, + {2, arcs_72_13}, }; static arc arcs_73_0[1] = { {163, 1}, @@ -1660,67 +1678,47 @@ static state states_73[8] = { {1, arcs_73_6}, {1, arcs_73_7}, }; -static arc arcs_74_0[3] = { +static arc arcs_74_0[1] = { {164, 1}, - {31, 2}, - {32, 3}, }; static arc arcs_74_1[2] = { - {30, 4}, + {30, 2}, {0, 1}, }; -static arc arcs_74_2[1] = { - {24, 5}, -}; -static arc arcs_74_3[1] = { - {24, 6}, -}; -static arc arcs_74_4[4] = { +static arc arcs_74_2[2] = { {164, 1}, - {31, 2}, - {32, 3}, - {0, 4}, -}; -static arc arcs_74_5[2] = { - {30, 7}, - {0, 5}, -}; -static arc arcs_74_6[1] = { - {0, 6}, -}; -static arc arcs_74_7[2] = { - {164, 5}, - {32, 3}, + {0, 2}, }; -static state states_74[8] = { - {3, arcs_74_0}, +static state states_74[3] = { + {1, arcs_74_0}, {2, arcs_74_1}, - {1, arcs_74_2}, - {1, arcs_74_3}, - {4, arcs_74_4}, - {2, arcs_74_5}, - {1, arcs_74_6}, - {2, arcs_74_7}, -}; -static arc arcs_75_0[1] = { + {2, arcs_74_2}, +}; +static arc arcs_75_0[3] = { {24, 1}, + {32, 2}, + {48, 3}, }; static arc arcs_75_1[3] = { - {159, 2}, - {29, 3}, + {159, 3}, + {29, 4}, {0, 1}, }; static arc arcs_75_2[1] = { - {0, 2}, + {104, 3}, }; static arc arcs_75_3[1] = { - {24, 2}, + {0, 3}, }; -static state states_75[4] = { - {1, arcs_75_0}, +static arc arcs_75_4[1] = { + {24, 3}, +}; +static state states_75[5] = { + {3, arcs_75_0}, {3, arcs_75_1}, {1, arcs_75_2}, {1, arcs_75_3}, + {1, arcs_75_4}, }; static arc arcs_76_0[2] = { {159, 1}, @@ -1964,14 +1962,14 @@ static dfa dfas[82] = { "\000\040\040\200\000\000\000\000\000\000\001\000\000\000\000\000\000\014\241\174\000\000"}, {327, "testlist", 0, 3, states_71, "\000\040\040\000\000\000\000\000\000\000\001\000\000\000\041\000\000\014\241\174\000\000"}, - {328, "dictorsetmaker", 0, 11, states_72, - "\000\040\040\000\000\000\000\000\000\000\001\000\000\000\041\000\000\014\241\174\000\000"}, + {328, "dictorsetmaker", 0, 14, states_72, + "\000\040\040\200\001\000\000\000\000\000\001\000\000\000\041\000\000\014\241\174\000\000"}, {329, "classdef", 0, 8, states_73, "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\010\000"}, - {330, "arglist", 0, 8, states_74, + {330, "arglist", 0, 3, states_74, + "\000\040\040\200\001\000\000\000\000\000\001\000\000\000\041\000\000\014\241\174\000\000"}, + {331, "argument", 0, 5, states_75, "\000\040\040\200\001\000\000\000\000\000\001\000\000\000\041\000\000\014\241\174\000\000"}, - {331, "argument", 0, 4, states_75, - "\000\040\040\000\000\000\000\000\000\000\001\000\000\000\041\000\000\014\241\174\000\000"}, {332, "comp_iter", 0, 2, states_76, "\000\000\000\000\000\000\000\000\000\000\000\040\002\000\000\000\000\000\000\000\000\000"}, {333, "comp_for", 0, 6, states_77, |