From 59090a73345095fd86b7ccebc54c1382e00abc88 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 26 Feb 2006 22:29:38 +0000 Subject: [PATCH] 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. --- Python/graminit.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/Python/graminit.c b/Python/graminit.c index 36839dc8a2b..64fbc2e0764 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}, + {26, 2}, }; -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}, -}; -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"},