]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40334: Support CO_FUTURE_BARRY_AS_BDFL in the new parser (GH-19721)
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 27 Apr 2020 17:02:07 +0000 (18:02 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2020 17:02:07 +0000 (18:02 +0100)
commit2b74c835a7280840a853e3a9aaeb83758b13a458
treea8f64047d5872571e12d6c256bbc54a9551f8bb6
parent9adccc1384568f4d46e37f698cb3e3a4f6ca0252
bpo-40334: Support CO_FUTURE_BARRY_AS_BDFL in the new parser (GH-19721)

This commit also allows to pass flags to the new parser in all interfaces and fixes a bug in the parser generator that was causing to inline rules with actions, making them disappear.
12 files changed:
Grammar/python.gram
Include/internal/pegen_interface.h
Lib/test/test_flufl.py
Modules/_peg_parser.c
Parser/pegen/parse.c
Parser/pegen/parse_string.c
Parser/pegen/peg_api.c
Parser/pegen/pegen.c
Parser/pegen/pegen.h
Python/pythonrun.c
Tools/peg_generator/peg_extension/peg_extension.c
Tools/peg_generator/pegen/c_generator.py