Skip to content

We need a design for the DSL-based code generator #497

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

Closed
gvanrossum opened this issue Nov 16, 2022 · 1 comment
Closed

We need a design for the DSL-based code generator #497

gvanrossum opened this issue Nov 16, 2022 · 1 comment
Labels
epic-generator DSL-based code generator for the interpreter(s)

Comments

@gvanrossum
Copy link
Collaborator

Mark made some good points: we need to design the code generator as a compiler. I'm not quite sure what the IL (or ILs) should look like. After GH-99526 and GH-99495 have landed I will start thinking about this for real, probably while converting some more families to the non-legacy format. (Doing the conversions is very helpful in forming the right ideas.)

@gvanrossum gvanrossum added the epic-generator DSL-based code generator for the interpreter(s) label Nov 16, 2022
@gvanrossum
Copy link
Collaborator Author

Actually, I misunderstood Mark's comment. The key part is that we have a standard way to read instruction definitions, and we do, in Tools/cases_generator, in the form of the Analyzer class in generate_cases.py. Things could be factored out slightly better, but the basic framework is there and we'll refactor as needed. So I'm going to close this as "done" (or close enough).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic-generator DSL-based code generator for the interpreter(s)
Projects
None yet
Development

No branches or pull requests

1 participant