Closed Corniel closed 4 years ago
Hi! It is a very interesting idea, however I don't think it has a place in this project. I'd much more likely see this as an actual plugin project.
This project only delivers bare minimum framework to run your generators with.
Of course, if such a plugin would be written, we could feature it as a good starting point.
@AArnott what do you think?
I agree.
Using code snippets as starting point for code generation can make the code generator much easier to read/maintain. Writing code with the
SyntaxTreeFactory
can be hard.So how does should this work?
We have some file (embedded, or disk)
With some simple generator files. What kind of transform you want to apply should be as free as possible, so let the generator decide for its own. In this example its a simple string replace.
This can be used like this: