summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
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 /Makefile.pre.in
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 '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 7c16d29..9a82729 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