summaryrefslogtreecommitdiffstats
path: root/Python/graminit.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-12-17 21:33:47 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-12-17 21:33:47 (GMT)
commitf599f424a2c8cfc490111a11203c93d23706379f (patch)
tree972d455572879ef5b9b3979d16fb4dab0f44d9b4 /Python/graminit.c
parentadb69fcdffdc50ee3e1d33b00cd874020197b445 (diff)
downloadcpython-f599f424a2c8cfc490111a11203c93d23706379f.zip
cpython-f599f424a2c8cfc490111a11203c93d23706379f.tar.gz
cpython-f599f424a2c8cfc490111a11203c93d23706379f.tar.bz2
SF patch #1355913, PEP 341 - Unification of try/except and try/finally
Modified since ast-arenas was implemented.
Diffstat (limited to 'Python/graminit.c')
-rw-r--r--Python/graminit.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/Python/graminit.c b/Python/graminit.c
index 769532a..a5bf3a4 100644
--- a/Python/graminit.c
+++ b/Python/graminit.c
@@ -841,15 +841,26 @@ static arc arcs_39_6[1] = {
static arc arcs_39_7[1] = {
{22, 9},
};
-static arc arcs_39_8[3] = {
+static arc arcs_39_8[4] = {
{95, 4},
- {91, 5},
+ {91, 10},
+ {96, 5},
{0, 8},
};
static arc arcs_39_9[1] = {
{0, 9},
};
-static state states_39[10] = {
+static arc arcs_39_10[1] = {
+ {21, 11},
+};
+static arc arcs_39_11[1] = {
+ {22, 12},
+};
+static arc arcs_39_12[2] = {
+ {96, 5},
+ {0, 12},
+};
+static state states_39[13] = {
{1, arcs_39_0},
{1, arcs_39_1},
{1, arcs_39_2},
@@ -858,8 +869,11 @@ static state states_39[10] = {
{1, arcs_39_5},
{1, arcs_39_6},
{1, arcs_39_7},
- {3, arcs_39_8},
+ {4, arcs_39_8},
{1, arcs_39_9},
+ {1, arcs_39_10},
+ {1, arcs_39_11},
+ {2, arcs_39_12},
};
static arc arcs_40_0[1] = {
{97, 1},
@@ -1754,7 +1768,7 @@ static dfa dfas[79] = {
"\000\000\000\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000"},
{294, "for_stmt", 0, 10, states_38,
"\000\000\000\000\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000"},
- {295, "try_stmt", 0, 10, states_39,
+ {295, "try_stmt", 0, 13, states_39,
"\000\000\000\000\000\000\000\000\000\000\000\100\000\000\000\000\000\000\000\000\000"},
{296, "except_clause", 0, 5, states_40,
"\000\000\000\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000"},