]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 25 May 2020 20:11:36 +0000 (13:11 -0700)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 20:11:36 +0000 (13:11 -0700)
commit3c6c86ab77464e6bcb489064d0ec1be5d1b19f3a
tree59defc555399f9962e7de0834096672c6f548de1
parent318a18eb889e8733ffb25ada139fdd423606a609
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.
(cherry picked from commit 9645930b5bc1833ef495891d22052d1ba65ab7ea)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
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