Reputation: 11577
Is there a tool in eclipse similar to T4? T4 is mainly used as a code-generation tool but I use T4 to generate all kind of text artifacts.
I am primarily looking to generate C/C++ code.
Regards
Upvotes: 1
Views: 698
Reputation: 316
Around the Eclipse ecosystem the is a huge work on the EMF project:
Inside this umbrella, there are many tools for code-gen like
If you like something very effective and taking care of separations of concerns avaiable in both Java and .NET world, I would recommend to take a look to StringTemplate.
I already posted some time ago about template engine selection and the benefits of StringTemplate over the rest: no side effects.
Upvotes: 2
Reputation: 528
I did my part of research on that, when I aimed to get unified code generation regardless of IDE/platform/development OS.
I ended up still choosing T4 for the following reasons:
I have developed extensive usage of T4, including any platform code, status tracking and documentation artifacts. The examples also explaining cross-platform IDE usage can be found as well.
http://abstractiondev.wordpress.com/demo-videos/
The video-lists about following topics cover the question at hand, but you might find others interesting as well:
Upvotes: 1