summaryrefslogtreecommitdiffstats
path: root/PCbuild
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 /PCbuild
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 'PCbuild')
-rw-r--r--PCbuild/regen.vcxproj5
1 files changed, 3 insertions, 2 deletions
diff --git a/PCbuild/regen.vcxproj b/PCbuild/regen.vcxproj
index d46fb99..564a4dd 100644
--- a/PCbuild/regen.vcxproj
+++ b/PCbuild/regen.vcxproj
@@ -205,8 +205,9 @@
<Exec Command="&quot;$(PythonExe)&quot; $(PySourcePath)Tools\scripts\generate_token.py py &quot;$(PySourcePath)Grammar\Tokens&quot; &quot;$(PySourcePath)Lib\token.py&quot;" />
</Target>
<Target Name="_RegenKeywords" AfterTargets="_RegenTokens">
- <!-- Regenerate Lib/keyword.py from Grammar/Grammar and Grammar/Tokens using Parser/pgen-->
- <Exec Command="&quot;$(PythonExe)&quot; -m Parser.pgen.keywordgen &quot;$(PySourcePath)Grammar\Grammar&quot; &quot;$(PySourcePath)Grammar\Tokens&quot; &quot;$(IntDir)keyword.py&quot;" />
+ <!-- Regenerate Lib/keyword.py from Grammar/python.gram and Grammar/Tokens using Tools/peg_generator/pegen-->
+ <SetEnv Name="PYTHONPATH" Prefix="true" Value="$(PySourcePath)Tools\peg_generator\" />
+ <Exec Command="&quot;$(PythonExe)&quot; -m pegen.keywordgen &quot;$(PySourcePath)Grammar\python.gram&quot; &quot;$(PySourcePath)Grammar\Tokens&quot; &quot;$(IntDir)keyword.py&quot;" />
<Copy SourceFiles="$(IntDir)keyword.py" DestinationFiles="$(PySourcePath)Lib\keyword.py">
<Output TaskParameter="CopiedFiles" ItemName="_Updated" />
</Copy>