I'm currently working on code generation with C# as target language. I've already read that the default code gen mechanism is a model-to-model transformation. The target model is then be used to generate code. Considering this my current workflow looks as follows:
1. Define the abstract syntax for C# (concepts, ...)
2. Define the concrete syntax for C# (editor, ...)
3. Specify the M2T transformation using the TextGen aspect
4. Create mapping rules to templates
5. Create templates, i.e. write C# class templates, ...
After that I probably will be able to generate code. But I was wondering why so many steps are necessary. E.g. I basically specify the concrete syntax twice - once in step 2 and the second time (in a different way) in step 3. This seems to be kind of redundant. Is this the right way or is there an easier way I overlooked?
Thank you in advance for your help,