]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42218: Correctly handle errors in left-recursive rules (GH-23065)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Sat, 31 Oct 2020 18:31:41 +0000 (20:31 +0200)
committerGitHub <noreply@github.com>
Sat, 31 Oct 2020 18:31:41 +0000 (20:31 +0200)
commit02cdfc93f82fecdb7eae97a868d4ee222b9875d9
tree85ec4c7f233e9bff63b0e6af21049ec00d7e0af9
parentd21cb2d5ee56b8975d92e2ee094aba81f0801be5
bpo-42218: Correctly handle errors in left-recursive rules (GH-23065)

Left-recursive rules need to check for errors explicitly, since
even if the rule returns NULL, the parsing might continue and lead
to long-distance failures.

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Lib/test/test_syntax.py
Misc/NEWS.d/next/Core and Builtins/2020-10-31-17-50-23.bpo-42218.Dp_Z3v.rst [new file with mode: 0644]
Parser/parser.c
Tools/peg_generator/pegen/c_generator.py