mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Extract visitors from the grammar nodes and call makers in the peg generator (GH-28172)
Simplify the peg generator logic by extracting as much visitors as possible to disentangle the flow and separate concerns.
This commit is contained in:
parent
28264269de
commit
b01fd533fe
13 changed files with 419 additions and 415 deletions
|
@ -1,7 +1,6 @@
|
|||
import argparse
|
||||
import sys
|
||||
|
||||
from typing import Any, Iterator, Callable
|
||||
from typing import Any, Callable, Iterator
|
||||
|
||||
from pegen.build import build_parser
|
||||
from pegen.grammar import Grammar, Rule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue