mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Issue #1066: implement PEP 3109, 2/3 of PEP 3134.
This commit is contained in:
parent
150b7d7d02
commit
828f04ac3f
32 changed files with 761 additions and 253 deletions
|
@ -503,34 +503,25 @@ static arc arcs_24_1[2] = {
|
|||
{0, 1},
|
||||
};
|
||||
static arc arcs_24_2[2] = {
|
||||
{30, 3},
|
||||
{71, 3},
|
||||
{0, 2},
|
||||
};
|
||||
static arc arcs_24_3[1] = {
|
||||
{24, 4},
|
||||
};
|
||||
static arc arcs_24_4[2] = {
|
||||
{30, 5},
|
||||
static arc arcs_24_4[1] = {
|
||||
{0, 4},
|
||||
};
|
||||
static arc arcs_24_5[1] = {
|
||||
{24, 6},
|
||||
};
|
||||
static arc arcs_24_6[1] = {
|
||||
{0, 6},
|
||||
};
|
||||
static state states_24[7] = {
|
||||
static state states_24[5] = {
|
||||
{1, arcs_24_0},
|
||||
{2, arcs_24_1},
|
||||
{2, arcs_24_2},
|
||||
{1, arcs_24_3},
|
||||
{2, arcs_24_4},
|
||||
{1, arcs_24_5},
|
||||
{1, arcs_24_6},
|
||||
{1, arcs_24_4},
|
||||
};
|
||||
static arc arcs_25_0[2] = {
|
||||
{71, 1},
|
||||
{72, 1},
|
||||
{73, 1},
|
||||
};
|
||||
static arc arcs_25_1[1] = {
|
||||
{0, 1},
|
||||
|
@ -540,10 +531,10 @@ static state states_25[2] = {
|
|||
{1, arcs_25_1},
|
||||
};
|
||||
static arc arcs_26_0[1] = {
|
||||
{73, 1},
|
||||
{74, 1},
|
||||
};
|
||||
static arc arcs_26_1[1] = {
|
||||
{74, 2},
|
||||
{75, 2},
|
||||
};
|
||||
static arc arcs_26_2[1] = {
|
||||
{0, 2},
|
||||
|
@ -554,7 +545,7 @@ static state states_26[3] = {
|
|||
{1, arcs_26_2},
|
||||
};
|
||||
static arc arcs_27_0[1] = {
|
||||
{75, 1},
|
||||
{71, 1},
|
||||
};
|
||||
static arc arcs_27_1[3] = {
|
||||
{76, 2},
|
||||
|
@ -565,10 +556,10 @@ static arc arcs_27_2[4] = {
|
|||
{76, 2},
|
||||
{77, 2},
|
||||
{12, 3},
|
||||
{73, 4},
|
||||
{74, 4},
|
||||
};
|
||||
static arc arcs_27_3[1] = {
|
||||
{73, 4},
|
||||
{74, 4},
|
||||
};
|
||||
static arc arcs_27_4[3] = {
|
||||
{31, 5},
|
||||
|
@ -1733,9 +1724,9 @@ static state states_80[3] = {
|
|||
};
|
||||
static dfa dfas[81] = {
|
||||
{256, "single_input", 0, 3, states_0,
|
||||
"\004\050\060\200\000\000\000\050\170\052\034\144\011\040\004\000\200\041\224\017\101"},
|
||||
"\004\050\060\200\000\000\000\050\370\044\034\144\011\040\004\000\200\041\224\017\101"},
|
||||
{257, "file_input", 0, 2, states_1,
|
||||
"\204\050\060\200\000\000\000\050\170\052\034\144\011\040\004\000\200\041\224\017\101"},
|
||||
"\204\050\060\200\000\000\000\050\370\044\034\144\011\040\004\000\200\041\224\017\101"},
|
||||
{258, "eval_input", 0, 3, states_2,
|
||||
"\000\040\040\200\000\000\000\000\000\040\000\000\000\040\004\000\200\041\224\017\000"},
|
||||
{259, "decorator", 0, 7, states_3,
|
||||
|
@ -1757,11 +1748,11 @@ static dfa dfas[81] = {
|
|||
{267, "vfpdef", 0, 2, states_11,
|
||||
"\000\000\040\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
{268, "stmt", 0, 2, states_12,
|
||||
"\000\050\060\200\000\000\000\050\170\052\034\144\011\040\004\000\200\041\224\017\101"},
|
||||
"\000\050\060\200\000\000\000\050\370\044\034\144\011\040\004\000\200\041\224\017\101"},
|
||||
{269, "simple_stmt", 0, 4, states_13,
|
||||
"\000\040\040\200\000\000\000\050\170\052\034\000\000\040\004\000\200\041\224\017\100"},
|
||||
"\000\040\040\200\000\000\000\050\370\044\034\000\000\040\004\000\200\041\224\017\100"},
|
||||
{270, "small_stmt", 0, 2, states_14,
|
||||
"\000\040\040\200\000\000\000\050\170\052\034\000\000\040\004\000\200\041\224\017\100"},
|
||||
"\000\040\040\200\000\000\000\050\370\044\034\000\000\040\004\000\200\041\224\017\100"},
|
||||
{271, "expr_stmt", 0, 6, states_15,
|
||||
"\000\040\040\200\000\000\000\000\000\040\000\000\000\040\004\000\200\041\224\017\000"},
|
||||
{272, "augassign", 0, 2, states_16,
|
||||
|
@ -1780,14 +1771,14 @@ static dfa dfas[81] = {
|
|||
"\000\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
{279, "yield_stmt", 0, 2, states_23,
|
||||
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\100"},
|
||||
{280, "raise_stmt", 0, 7, states_24,
|
||||
{280, "raise_stmt", 0, 5, states_24,
|
||||
"\000\000\000\000\000\000\000\000\100\000\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
{281, "import_stmt", 0, 2, states_25,
|
||||
"\000\000\000\000\000\000\000\000\000\012\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
"\000\000\000\000\000\000\000\000\200\004\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
{282, "import_name", 0, 3, states_26,
|
||||
"\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
"\000\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
{283, "import_from", 0, 8, states_27,
|
||||
"\000\000\000\000\000\000\000\000\000\010\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
"\000\000\000\000\000\000\000\000\200\000\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
{284, "import_as_name", 0, 4, states_28,
|
||||
"\000\000\040\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
|
||||
{285, "dotted_as_name", 0, 4, states_29,
|
||||
|
@ -1821,7 +1812,7 @@ static dfa dfas[81] = {
|
|||
{299, "except_clause", 0, 5, states_43,
|
||||
"\000\000\000\000\000\000\000\000\000\000\000\000\100\000\000\000\000\000\000\000\000"},
|
||||
{300, "suite", 0, 5, states_44,
|
||||
"\004\040\040\200\000\000\000\050\170\052\034\000\000\040\004\000\200\041\224\017\100"},
|
||||
"\004\040\040\200\000\000\000\050\370\044\034\000\000\040\004\000\200\041\224\017\100"},
|
||||
{301, "test", 0, 6, states_45,
|
||||
"\000\040\040\200\000\000\000\000\000\040\000\000\000\040\004\000\200\041\224\017\000"},
|
||||
{302, "test_nocond", 0, 2, states_46,
|
||||
|
@ -1967,11 +1958,11 @@ static label labels[167] = {
|
|||
{1, "continue"},
|
||||
{1, "return"},
|
||||
{1, "raise"},
|
||||
{1, "from"},
|
||||
{282, 0},
|
||||
{283, 0},
|
||||
{1, "import"},
|
||||
{287, 0},
|
||||
{1, "from"},
|
||||
{23, 0},
|
||||
{52, 0},
|
||||
{286, 0},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue