Skip to content
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

Cleanup codegen #284

Open
xoofx opened this issue Dec 22, 2020 · 0 comments
Open

Cleanup codegen #284

xoofx opened this issue Dec 22, 2020 · 0 comments
Assignees

Comments

@xoofx
Copy link
Member

xoofx commented Dec 22, 2020

The codegen in Scriban has grown organically with some legacy constraints:

  • AsyncCodeGen: Using Roslyn, requires to launch outside in a separate tool to disable async on Scriban and to re-generate them. This project also generates all the visitors/rewriters (that don't care about async codegen)
  • DelegateCodeGen: Using Cecil. Might not be need anymore with the new delegate approach in Scriban 3.x or could be simplified.
  • DocGen: Use NuDoq to extract the doc and read md files.

We should probably try to have at worst 2 codegen paths:

  • One using source generators: e.g for visitors, delegates (so part of AsyncCodeGen and DelegateCodeGen)
  • An external tool for the async generator part + the doc generation part
@xoofx xoofx self-assigned this Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant