No description
Find a file
Anders Kaseorg bfd847d04c Parse Python 3.9+ parenthesized context managers
Since the upstream grammar for this is not LR(1), we abuse LALRPOP
macros and the Into/TryInto traits to build a cover grammar that
converts to either tuples or `with` items after additional validation.
It’s annoying and ugly, but something like this is basically our only
option short of switching to a more powerful parser algorithm.

Fixes #4145.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-12 00:47:33 -08:00
ast Fix ast types' _fields and use 0-based column 2022-10-27 03:09:38 +09:00
codegen Fix nightly clippy warnings 2022-12-05 12:18:16 +09:00
core Fix nightly clippy warnings 2022-12-05 12:18:16 +09:00
parser Parse Python 3.9+ parenthesized context managers 2022-12-12 00:47:33 -08:00
src parser::Mode from compile::Mode 2022-08-23 05:08:24 +09:00
Cargo.toml rustpython-bytecode -> rustpython-compiler-core 2022-08-22 08:42:20 +09:00