[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-20 Thread Jiaxin Peng
New submission from Jiaxin Peng : I tried to modify Grammar/python.gram, Grammar/Tokens, Parser/Python.asdl, to add a new token to the grammar. And when using `build.bat --regen`, only parser.c is newly generated. Other files, as mentioned in https://devguide.python.org/grammar/ that should

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-29 Thread Jiaxin Peng
Jiaxin Peng added the comment: I did: - modified Grammar/python.gram - added new operator to compare_op_bitwise_or_pair - added corresponding token to Grammer/Tokens - build.bar --regen - not having Include/Python-ast.h and Python/Python-ast.c I agree that a regen.bat that using a system

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Jiaxin Peng
Change by Jiaxin Peng : -- nosy: -anthonypjshaw, lys.nikolaou, pablogsal, paul.moore, pjx206, steve.dower, tim.golden, vstinner, zach.ware ___ Python tracker <https://bugs.python.org/issue43

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Jiaxin Peng
Jiaxin Peng added the comment: `build.bat --regen` produces such error because it uses build tool from visual studio to build regen.vcxproj, and you do not have v142 toolset. I'm using vs2019 and have v142 toolset installed and regen.vcxproj workd, just cannot actually regenerate

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-30 Thread Jiaxin Peng
Jiaxin Peng added the comment: The regen.vcxproj was modified but not test well. In the first version of regen.vcxproj there were such build targets: _RegenGrammar(BeforeTargets="Build") -> _RegenAST_H -> _RegenAST_C -> _RegenOpcodes -> _RegenTokens -> _RegenKeyw

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-31 Thread Jiaxin Peng
Jiaxin Peng added the comment: Steve's PR zooba:bpo-43567 works as expected. Really clean implementation! Thanks! -- resolution: -> works for me ___ Python tracker <https://bugs.python.org