]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Mon, 25 May 2020 19:51:58 +0000 (22:51 +0300)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 19:51:58 +0000 (20:51 +0100)
commit9645930b5bc1833ef495891d22052d1ba65ab7ea
tree237911f4e1a9db4f00933a9bfc4fea7bacd31bc2
parent448325369ff73011d34d6c3a493014fe3ead8843
bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)

The scripts in `Tools/peg_generator/scripts` mostly assume that
`ast.parse` and `compile` use the old parser, since this was the
state of things, while we were developing them. They need to be
updated to always use the correct parser. `_peg_parser` is being
extended to support both parsing and compiling with both parsers.
Modules/_peg_parser.c
Tools/peg_generator/Makefile
Tools/peg_generator/scripts/benchmark.py
Tools/peg_generator/scripts/show_parse.py
Tools/peg_generator/scripts/test_parse_directory.py
Tools/peg_generator/scripts/test_pypi_packages.py