Is there a Eclipse tool similar to T4?

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

Answers (2)

pjmolina
pjmolina

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

  • XPand
  • Jet
  • Acceleo and more...

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

Kallex
Kallex

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:

  1. It's very well supported on MSFT/.NET, and core level - not going to go away
  2. There is complete and compatible open-source alternative through MonoDevelop
  3. When code-generation is separated and recognized, cross-platform IDE support is straightforward

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:

  • Getting Started with Visual Studio T4
  • Multiplatform Native Development Automation

Upvotes: 1

Related Questions