cpython/Lib/test/test_peg_generator
Petr Viktorin f0a0467c17
gh-143054: Disallow non-top-level Cut for now (GH-143622)
The behaviour of Cut in nested parentheses, Repeat, Opt, and similar
is somewhat chaotic. Apparently even the academic papers on PEG aren't
as clear as they could be.

And it doesn't really matter. Python only uses top-level cuts.
When that changes, we can clarify as much as necessary (and even
change the implementation to make sense for what we'll need).

Document that this is deliberately unspecified, and add a test to
make sure any decision is deliberate, tested and documented.
2026-01-13 13:21:59 +01:00
..
__init__.py gh-109653: Remove unused imports in the Lib/ directory (#109803) 2023-09-24 15:07:23 +01:00
__main__.py
test_c_parser.py gh-133951: Fix purelib packages not found in test_peg_generator TestCParser (GH-139607) 2025-10-06 14:40:48 +02:00
test_first_sets.py Update pegen to use the latest upstream developments (GH-27586) 2021-08-12 17:37:30 +01:00
test_grammar_validator.py gh-143054: Disallow non-top-level Cut for now (GH-143622) 2026-01-13 13:21:59 +01:00
test_pegen.py gh-143054: Disallow non-top-level Cut for now (GH-143622) 2026-01-13 13:21:59 +01:00