mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-40939: Generate keyword.py using the new parser (GH-20800)
This commit is contained in:
parent
33faf5c4f4
commit
9727694f08
6 changed files with 88 additions and 9 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue