summaryrefslogtreecommitdiffstats
path: root/Lib/keyword.py
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-06-11 12:45:15 (GMT)
committerGitHub <noreply@github.com>2020-06-11 12:45:15 (GMT)
commit9727694f08cad4b019d2939224e3416312b1c0e1 (patch)
treeae224db77e7c22e786876cb195529f88363cc3cf /Lib/keyword.py
parent33faf5c4f43e24766cf567bec89ad4c7f1491ff7 (diff)
downloadcpython-9727694f08cad4b019d2939224e3416312b1c0e1.zip
cpython-9727694f08cad4b019d2939224e3416312b1c0e1.tar.gz
cpython-9727694f08cad4b019d2939224e3416312b1c0e1.tar.bz2
bpo-40939: Generate keyword.py using the new parser (GH-20800)
Diffstat (limited to 'Lib/keyword.py')
-rw-r--r--Lib/keyword.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/keyword.py b/Lib/keyword.py
index ddcbb25..afc3db3 100644
--- a/Lib/keyword.py
+++ b/Lib/keyword.py
@@ -1,13 +1,14 @@
-"""Keywords (from "Grammar/Grammar")
+"""Keywords (from "Grammar/python.gram")
This file is automatically generated; please don't muck it up!
To update the symbols in this file, 'cd' to the top directory of
the python source tree and run:
- python3 -m Parser.pgen.keywordgen Grammar/Grammar \
- Grammar/Tokens \
- Lib/keyword.py
+ PYTHONPATH=Tools/peg_generator python3 -m pegen.keywordgen \
+ Grammar/Grammar \
+ Grammar/Tokens \
+ Lib/keyword.py
Alternatively, you can run 'make regen-keyword'.
"""
@@ -18,6 +19,7 @@ kwlist = [
'False',
'None',
'True',
+ '__new_parser__',
'and',
'as',
'assert',