diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-08-04 17:29:52 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-08-04 17:29:52 (GMT) |
commit | 00f1e3f5a54adb0a7159a446edeca2e36da4092e (patch) | |
tree | 86d731c4fd7c0141686044f5eefbb7f475da9647 /Python/graminit.c | |
parent | a729daf2e43f3ffa2d1b3b6cd31491c840091e66 (diff) | |
download | cpython-00f1e3f5a54adb0a7159a446edeca2e36da4092e.zip cpython-00f1e3f5a54adb0a7159a446edeca2e36da4092e.tar.gz cpython-00f1e3f5a54adb0a7159a446edeca2e36da4092e.tar.bz2 |
Patch #534304: Implement phase 1 of PEP 263.
Diffstat (limited to 'Python/graminit.c')
-rw-r--r-- | Python/graminit.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Python/graminit.c b/Python/graminit.c index ef7d467..98bad94 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -1463,7 +1463,17 @@ static state states_66[2] = { {1, arcs_66_0}, {2, arcs_66_1}, }; -static dfa dfas[67] = { +static arc arcs_67_0[1] = { + {12, 1}, +}; +static arc arcs_67_1[1] = { + {0, 1}, +}; +static state states_67[2] = { + {1, arcs_67_0}, + {1, arcs_67_1}, +}; +static dfa dfas[68] = { {256, "single_input", 0, 3, states_0, "\004\030\001\000\000\000\124\360\213\011\162\000\002\000\140\210\244\005\001"}, {257, "file_input", 0, 2, states_1, @@ -1598,8 +1608,10 @@ static dfa dfas[67] = { "\000\000\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\000"}, {322, "testlist1", 0, 2, states_66, "\000\020\001\000\000\000\000\000\000\000\000\000\002\000\140\210\244\005\000"}, + {323, "encoding_decl", 0, 2, states_67, + "\000\020\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"}, }; -static label labels[148] = { +static label labels[149] = { {0, "EMPTY"}, {256, 0}, {4, 0}, @@ -1748,10 +1760,11 @@ static label labels[148] = { {318, 0}, {319, 0}, {321, 0}, + {323, 0}, }; grammar _PyParser_Grammar = { - 67, + 68, dfas, - {148, labels}, + {149, labels}, 256 }; |