diff options
author | Lysandros Nikolaou <lisandrosnik@gmail.com> | 2020-06-11 12:45:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 12:45:15 (GMT) |
commit | 9727694f08cad4b019d2939224e3416312b1c0e1 (patch) | |
tree | ae224db77e7c22e786876cb195529f88363cc3cf /PCbuild | |
parent | 33faf5c4f43e24766cf567bec89ad4c7f1491ff7 (diff) | |
download | cpython-9727694f08cad4b019d2939224e3416312b1c0e1.zip cpython-9727694f08cad4b019d2939224e3416312b1c0e1.tar.gz cpython-9727694f08cad4b019d2939224e3416312b1c0e1.tar.bz2 |
bpo-40939: Generate keyword.py using the new parser (GH-20800)
Diffstat (limited to 'PCbuild')
-rw-r--r-- | PCbuild/regen.vcxproj | 5 |
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=""$(PythonExe)" $(PySourcePath)Tools\scripts\generate_token.py py "$(PySourcePath)Grammar\Tokens" "$(PySourcePath)Lib\token.py"" /> </Target> <Target Name="_RegenKeywords" AfterTargets="_RegenTokens"> - <!-- Regenerate Lib/keyword.py from Grammar/Grammar and Grammar/Tokens using Parser/pgen--> - <Exec Command=""$(PythonExe)" -m Parser.pgen.keywordgen "$(PySourcePath)Grammar\Grammar" "$(PySourcePath)Grammar\Tokens" "$(IntDir)keyword.py"" /> + <!-- 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=""$(PythonExe)" -m pegen.keywordgen "$(PySourcePath)Grammar\python.gram" "$(PySourcePath)Grammar\Tokens" "$(IntDir)keyword.py"" /> <Copy SourceFiles="$(IntDir)keyword.py" DestinationFiles="$(PySourcePath)Lib\keyword.py"> <Output TaskParameter="CopiedFiles" ItemName="_Updated" /> </Copy> |