summaryrefslogtreecommitdiffstats
path: root/Python/graminit.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-10-27 23:31:49 (GMT)
committerGuido van Rossum <guido@python.org>2006-10-27 23:31:49 (GMT)
commit4f72a78684bbfcdc43ceeabb240ceee54706c4b0 (patch)
tree743c27c5125dcef580cffe77395fe97bedf40d5f /Python/graminit.c
parentfc2a0a8e3cb1d40fd965576060c28c8bd2ea1ad5 (diff)
downloadcpython-4f72a78684bbfcdc43ceeabb240ceee54706c4b0.zip
cpython-4f72a78684bbfcdc43ceeabb240ceee54706c4b0.tar.gz
cpython-4f72a78684bbfcdc43ceeabb240ceee54706c4b0.tar.bz2
Jiwon Seo's PEP 3102 implementation.
See SF#1549670. The compiler package has not yet been updated.
Diffstat (limited to 'Python/graminit.c')
-rw-r--r--Python/graminit.c45
1 files changed, 29 insertions, 16 deletions
diff --git a/Python/graminit.c b/Python/graminit.c
index 912fdf2..0e94db4 100644
--- a/Python/graminit.c
+++ b/Python/graminit.c
@@ -146,14 +146,16 @@ static arc arcs_7_1[3] = {
{27, 5},
{0, 1},
};
-static arc arcs_7_2[1] = {
+static arc arcs_7_2[3] = {
{19, 6},
+ {27, 7},
+ {0, 2},
};
static arc arcs_7_3[1] = {
- {19, 7},
+ {19, 8},
};
static arc arcs_7_4[1] = {
- {26, 8},
+ {26, 9},
};
static arc arcs_7_5[4] = {
{24, 1},
@@ -162,30 +164,41 @@ static arc arcs_7_5[4] = {
{0, 5},
};
static arc arcs_7_6[2] = {
- {27, 9},
+ {27, 7},
{0, 6},
};
-static arc arcs_7_7[1] = {
- {0, 7},
+static arc arcs_7_7[2] = {
+ {19, 10},
+ {29, 3},
};
-static arc arcs_7_8[2] = {
- {27, 5},
+static arc arcs_7_8[1] = {
{0, 8},
};
-static arc arcs_7_9[1] = {
- {29, 3},
+static arc arcs_7_9[2] = {
+ {27, 5},
+ {0, 9},
+};
+static arc arcs_7_10[3] = {
+ {27, 7},
+ {25, 11},
+ {0, 10},
+};
+static arc arcs_7_11[1] = {
+ {26, 6},
};
-static state states_7[10] = {
+static state states_7[12] = {
{3, arcs_7_0},
{3, arcs_7_1},
- {1, arcs_7_2},
+ {3, arcs_7_2},
{1, arcs_7_3},
{1, arcs_7_4},
{4, arcs_7_5},
{2, arcs_7_6},
- {1, arcs_7_7},
- {2, arcs_7_8},
- {1, arcs_7_9},
+ {2, arcs_7_7},
+ {1, arcs_7_8},
+ {2, arcs_7_9},
+ {3, arcs_7_10},
+ {1, arcs_7_11},
};
static arc arcs_8_0[2] = {
{19, 1},
@@ -1766,7 +1779,7 @@ static dfa dfas[83] = {
"\000\010\004\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{262, "parameters", 0, 4, states_6,
"\000\040\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
- {263, "varargslist", 0, 10, states_7,
+ {263, "varargslist", 0, 12, states_7,
"\000\040\010\060\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
{264, "fpdef", 0, 4, states_8,
"\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},