summaryrefslogtreecommitdiffstats
path: root/Python/graminit.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-26 22:29:38 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-26 22:29:38 (GMT)
commit59090a73345095fd86b7ccebc54c1382e00abc88 (patch)
treee2fb14fbfa978950071dc383a2a8ead9c2e00833 /Python/graminit.c
parent2b366e41c3eee597923263497fc3a631c049c320 (diff)
downloadcpython-59090a73345095fd86b7ccebc54c1382e00abc88.zip
cpython-59090a73345095fd86b7ccebc54c1382e00abc88.tar.gz
cpython-59090a73345095fd86b7ccebc54c1382e00abc88.tar.bz2
Oops, I forgot to check this in with the change to Grammar/Grammar.
Implement change suggested by Jiwon Seo on python-dev. ['(' gen_for ')'] is redundant with test, so remove it.
Diffstat (limited to 'Python/graminit.c')
-rw-r--r--Python/graminit.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/Python/graminit.c b/Python/graminit.c
index 36839dc..64fbc2e 100644
--- a/Python/graminit.c
+++ b/Python/graminit.c
@@ -1519,26 +1519,13 @@ static arc arcs_69_2[1] = {
{0, 2},
};
static arc arcs_69_3[1] = {
- {26, 4},
-};
-static arc arcs_69_4[2] = {
- {13, 5},
- {0, 4},
-};
-static arc arcs_69_5[1] = {
- {147, 6},
-};
-static arc arcs_69_6[1] = {
- {15, 2},
+ {26, 2},
};
-static state states_69[7] = {
+static state states_69[4] = {
{1, arcs_69_0},
{3, arcs_69_1},
{1, arcs_69_2},
{1, arcs_69_3},
- {2, arcs_69_4},
- {1, arcs_69_5},
- {1, arcs_69_6},
};
static arc arcs_70_0[2] = {
{146, 1},
@@ -1829,7 +1816,7 @@ static dfa dfas[79] = {
"\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\002\000"},
{324, "arglist", 0, 8, states_68,
"\000\040\010\060\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
- {325, "argument", 0, 7, states_69,
+ {325, "argument", 0, 4, states_69,
"\000\040\010\000\000\000\000\000\000\000\000\000\000\002\000\140\010\111\023\000\000"},
{326, "list_iter", 0, 2, states_70,
"\000\000\000\000\000\000\000\000\000\000\000\042\000\000\000\000\000\000\000\000\000"},