mirror of
https://github.com/python/cpython.git
synced 2024-11-21 21:09:37 +01:00
1f9025a4e7
Cache in C PEG-generator reworked: we save artificial rules in cache by Node string representation as a key instead of Node object itself. As a result total count of artificial rules in parsers.c is lowered from 283 to 170. More natural number ordering is used for the names of artificial rules. Auxiliary method CCallMakerVisitor._generate_artificial_rule_call is added. Its purpose is abstracting work with artificial rules cache. Explicit using of "is_repeat1" kwarg is added to visit_Repeat0 and visit_Repeat1 methods. Its slightly improve code readabitily. |
||
---|---|---|
.. | ||
lexer | ||
tokenizer | ||
action_helpers.c | ||
asdl_c.py | ||
asdl.py | ||
myreadline.c | ||
parser.c | ||
peg_api.c | ||
pegen_errors.c | ||
pegen.c | ||
pegen.h | ||
Python.asdl | ||
string_parser.c | ||
string_parser.h | ||
token.c |