cpython/Tools/peg_generator/pegen
Pablo Galindo a5634c4067
bpo-41746: Add type information to asdl_seq objects (GH-22223)
* Add new capability to the PEG parser to type variable assignments. For instance:
```
       | a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a }
```

* Add new sequence types from the asdl definition (automatically generated)
* Make `asdl_seq` type a generic aliasing pointer type.
* Create a new `asdl_generic_seq` for the generic case using `void*`.
* The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed.
* New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences.
* Changes all possible `asdl_seq` types to use specific versions everywhere.
2020-09-16 19:42:00 +01:00
..
__init__.py bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00
__main__.py bpo-40334: Refactor peg_generator to receive a Tokens file when building c code (GH-19745) 2020-04-28 13:11:55 +01:00
ast_dump.py Fix some scripts in the peg generator folder (GH-19853) 2020-05-02 05:23:06 +01:00
build.py bpo-40939: Remove the old parser (GH-20768) 2020-06-11 17:30:46 +01:00
c_generator.py bpo-41746: Add type information to asdl_seq objects (GH-22223) 2020-09-16 19:42:00 +01:00
first_sets.py Clean up unused imports for the peg generator module (GH-19891) 2020-05-04 03:03:05 +01:00
grammar.py bpo-41746: Add type information to asdl_seq objects (GH-22223) 2020-09-16 19:42:00 +01:00
grammar_parser.py bpo-41746: Add type information to asdl_seq objects (GH-22223) 2020-09-16 19:42:00 +01:00
grammar_visualizer.py Clean up unused imports for the peg generator module (GH-19891) 2020-05-04 03:03:05 +01:00
keywordgen.py Delete remaining references to Grammar/Grammar from docs (#21624) 2020-07-26 08:27:52 -07:00
metagrammar.gram bpo-41746: Add type information to asdl_seq objects (GH-22223) 2020-09-16 19:42:00 +01:00
parser.py bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00
parser_generator.py Fix typing problems reported by mypy in pegen (GH-20297) 2020-05-21 21:39:44 +01:00
python_generator.py Fix 'gather' rules in the python parser generator (GH-22021) 2020-09-03 15:29:55 +01:00
sccutils.py Fix all Python Cookbook links (#22205) 2020-09-15 21:13:26 +01:00
testutil.py bpo-40750: Support -d flag in the new parser (GH-20340) 2020-05-25 18:38:45 +01:00
tokenizer.py bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503) 2020-04-22 23:29:27 +01:00