Skip to content

Refactor pegen C generation into explicit compilation phases - #157501

Merged
pablogsal merged 7 commits into
python:mainfrom
pablogsal:pegen-c-generator-refactor
Sep 24, 2026
Merged

pablogsal merged 7 commits into
python:mainfrom
pablogsal:pegen-c-generator-refactor

Conversation

@pablogsal

@pablogsal pablogsal commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

The C pegen generator currently mixes grammar analysis, call selection, and C output in one class. This moves analysis into its own module, prepares immutable rule models, and gives the output steps focused emitters. Tests cover repeatable generation and shared-prefix behavior.

@pablogsal
pablogsal force-pushed the pegen-c-generator-refactor branch from 0b9b5ac to d74b8a8 Compare September 24, 2026 15:52
@pablogsal
pablogsal enabled auto-merge (squash) September 24, 2026 16:01
@pablogsal
pablogsal merged commit b7f81d4 into python:main Sep 24, 2026
58 checks passed
@pablogsal
pablogsal deleted the pegen-c-generator-refactor branch September 24, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant