8000 gh-124889: Remove redundant artificial rules in PEG parser by efimov-mikhail · Pull Request #124893 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-124889: Remove redundant artificial rules in PEG parser #124893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-124889: Remove redundant artificial rules in PEG parser
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.
  • Loading branch information
efimov-mikhail committed Oct 2, 2024
commit b9f82de3a6ca25b17923ad1416a76f03004097af
Loading
0