cpython/Parser
Pablo Galindo 58fb156edd
bpo-42997: Improve error message for missing : before suites (GH-24292)
* Add to the peg generator a new directive ('&&') that allows to expect
  a token and hard fail the parsing if the token is not found. This
  allows to quickly emmit syntax errors for missing tokens.

* Use the new grammar element to hard-fail if the ':' is missing before
  suites.
2021-02-02 19:54:22 +00:00
..
asdl_c.py bpo-1635741: _ast uses PyModule_AddObjectRef() (GH-23146) 2020-11-04 16:37:07 +01:00
asdl.py bpo-40528: Improve and clear several aspects of the ASDL definition code for the AST (GH-19952) 2020-05-06 15:29:32 +01:00
myreadline.c bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721) 2020-08-04 02:38:16 +02:00
parser.c bpo-42997: Improve error message for missing : before suites (GH-24292) 2021-02-02 19:54:22 +00:00
peg_api.c bpo-40939: Rename PyPegen* functions to PyParser* (GH-21016) 2020-06-22 00:47:46 +01:00
pegen.c bpo-42997: Improve error message for missing : before suites (GH-24292) 2021-02-02 19:54:22 +00:00
pegen.h bpo-42997: Improve error message for missing : before suites (GH-24292) 2021-02-02 19:54:22 +00:00
Python.asdl bpo-40528: Improve and clear several aspects of the ASDL definition code for the AST (GH-19952) 2020-05-06 15:29:32 +01:00
string_parser.c Remove full stop from a bytes-related SyntaxError message (GH-24300) 2021-01-23 22:56:57 +00:00
string_parser.h bpo-40939: Remove the old parser (GH-20768) 2020-06-11 17:30:46 +01:00
token.c bpo-35975: Support parsing earlier minor versions of Python 3 (GH-12086) 2019-03-07 12:38:08 -08:00
tokenizer.c bpo-40176: Improve error messages for unclosed string literals (GH-19346) 2021-01-20 13:38:47 -08:00
tokenizer.h bpo-42864: Improve error messages regarding unclosed parentheses (GH-24161) 2021-01-19 23:59:33 +00:00