summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-11 13:02:37 (GMT)
committerGitHub <noreply@github.com>2020-06-11 13:02:37 (GMT)
commit961edf7979ca34d6fe104a1cce005aa8cac35821 (patch)
treea5c62b1fea64a1fa70a4566e306cf9e95ffedcac /Makefile.pre.in
parentf6428babb1b9172cc01145d4c091b91dc601d969 (diff)
downloadcpython-961edf7979ca34d6fe104a1cce005aa8cac35821.zip
cpython-961edf7979ca34d6fe104a1cce005aa8cac35821.tar.gz
cpython-961edf7979ca34d6fe104a1cce005aa8cac35821.tar.bz2
bpo-40939: Generate keyword.py using the new parser (GH-20800)
(cherry picked from commit 9727694f08cad4b019d2939224e3416312b1c0e1) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 652efb4..44e9a89 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -895,9 +895,10 @@ regen-token:
.PHONY: regen-keyword
regen-keyword:
- # Regenerate Lib/keyword.py from Grammar/Grammar and Grammar/Tokens
- # using Parser/pgen
- PYTHONPATH=$(srcdir) $(PYTHON_FOR_REGEN) -m Parser.pgen.keywordgen $(srcdir)/Grammar/Grammar \
+ # Regenerate Lib/keyword.py from Grammar/python.gram and Grammar/Tokens
+ # using Tools/peg_generator/pegen
+ PYTHONPATH=$(srcdir)/Tools/peg_generator $(PYTHON_FOR_REGEN) -m pegen.keywordgen \
+ $(srcdir)/Grammar/python.gram \
$(srcdir)/Grammar/Tokens \
$(srcdir)/Lib/keyword.py.new
$(UPDATE_FILE) $(srcdir)/Lib/keyword.py $(srcdir)/Lib/keyword.py.new