summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-03-31 18:50:52 (GMT)
committerGuido van Rossum <guido@python.org>1992-03-31 18:50:52 (GMT)
commit2c81957ba1ee4b76a4af7cbc7ff26d3a5ede9cc0 (patch)
treee570e91dee1c31192c7af77bb30a44d7038908b7 /Python
parentaf82141bb6ca0ac4728df76184634e947a7cc2e4 (diff)
downloadcpython-2c81957ba1ee4b76a4af7cbc7ff26d3a5ede9cc0.zip
cpython-2c81957ba1ee4b76a4af7cbc7ff26d3a5ede9cc0.tar.gz
cpython-2c81957ba1ee4b76a4af7cbc7ff26d3a5ede9cc0.tar.bz2
tightened try statement syntax
Diffstat (limited to 'Python')
-rw-r--r--Python/graminit.c32
1 files changed, 22 insertions, 10 deletions
diff --git a/Python/graminit.c b/Python/graminit.c
index 8baac39..8a3cbd4 100644
--- a/Python/graminit.c
+++ b/Python/graminit.c
@@ -529,28 +529,40 @@ static arc arcs_27_1[1] = {
static arc arcs_27_2[1] = {
{16, 3},
};
-static arc arcs_27_3[3] = {
- {63, 1},
- {64, 4},
- {0, 3},
+static arc arcs_27_3[2] = {
+ {63, 4},
+ {64, 5},
};
static arc arcs_27_4[1] = {
- {15, 5},
+ {15, 6},
};
static arc arcs_27_5[1] = {
- {16, 6},
+ {15, 7},
};
static arc arcs_27_6[1] = {
- {0, 6},
+ {16, 8},
+};
+static arc arcs_27_7[1] = {
+ {16, 9},
+};
+static arc arcs_27_8[2] = {
+ {63, 4},
+ {0, 8},
+};
+static arc arcs_27_9[1] = {
+ {0, 9},
};
-static state states_27[7] = {
+static state states_27[10] = {
{1, arcs_27_0},
{1, arcs_27_1},
{1, arcs_27_2},
- {3, arcs_27_3},
+ {2, arcs_27_3},
{1, arcs_27_4},
{1, arcs_27_5},
{1, arcs_27_6},
+ {1, arcs_27_7},
+ {2, arcs_27_8},
+ {1, arcs_27_9},
};
static arc arcs_28_0[1] = {
{65, 1},
@@ -1058,7 +1070,7 @@ static dfa dfas[51] = {
"\000\000\000\000\000\000\000\010\000\000\000\000\000\000\000"},
{282, "for_stmt", 0, 10, states_26,
"\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000"},
- {283, "try_stmt", 0, 7, states_27,
+ {283, "try_stmt", 0, 10, states_27,
"\000\000\000\000\000\000\000\100\000\000\000\000\000\000\000"},
{284, "except_clause", 0, 5, states_28,
"\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000"},