cpython/Parser/pegen
Lysandros Nikolaou a5442b26f4
[3.9] bpo-40334: Produce better error messages on invalid targets (GH-20106) (GH-20973)
* bpo-40334: Produce better error messages on invalid targets (GH-20106)

The following error messages get produced:
- `cannot delete ...` for invalid `del` targets
- `... is an illegal 'for' target` for invalid targets in for
  statements
- `... is an illegal 'with' target` for invalid targets in
  with statements

Additionally, a few `cut`s were added in various places before the
invocation of the `invalid_*` rule, in order to speed things
up.

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 01ece63d42)
2020-06-19 01:03:58 +01:00
..
parse.c [3.9] bpo-40334: Produce better error messages on invalid targets (GH-20106) (GH-20973) 2020-06-19 01:03:58 +01:00
parse_string.c [3.9] Improve readability and style in parser files (GH-20884) (GH-20885) 2020-06-15 15:08:00 +01:00
parse_string.h bpo-40334: Fix error location upon parsing an invalid string literal (GH-19962) 2020-05-07 11:37:51 +01:00
peg_api.c bpo-40334: Make the PyPegen* and PyParser* APIs more consistent (GH-19839) 2020-05-01 18:30:51 +01:00
pegen.c [3.9] bpo-40334: Produce better error messages on invalid targets (GH-20106) (GH-20973) 2020-06-19 01:03:58 +01:00
pegen.h [3.9] bpo-40334: Produce better error messages on invalid targets (GH-20106) (GH-20973) 2020-06-19 01:03:58 +01:00