Thoroughly refactor the cases generator (#107151)

This mostly extracts a whole bunch of stuff out of generate_cases.py into separate files, but there are a few other things going on here.

- analysis.py: `Analyzer` etc.
- instructions.py: `Instruction` etc.
- flags.py: `InstructionFlags`, `variable_used`, `variable_used_unspecialized`
- formatting.py: `Formatter` etc.
- Rename parser.py to parsing.py, to avoid conflict with stdlib parser.py
- Blackify most things
- Fix most mypy errors
- Remove output filenames from Generator state, add them to `write_instructions()` etc.
- Fix unit tests
This commit is contained in:
Guido van Rossum 2023-07-24 09:38:23 -07:00 committed by GitHub
parent ff5f94b72c
commit 032f480909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1304 additions and 1169 deletions

File diff suppressed because it is too large Load diff