Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to implement a code generators workflow nowadays (MWE2 or Xtend2)?(Advice on porting a code generator from Xtext1 to Xtext2: MWE2 vs. Xtend2 for generators internal workflow)
icon5.gif  How to implement a code generators workflow nowadays (MWE2 or Xtend2)? [message #1018475] Wed, 13 March 2013 22:18 Go to next message
Torsten Juergeleit is currently offline Torsten JuergeleitFriend
Messages: 18
Registered: July 2009
Junior Member
While porting a code generator from Xtext 1.1 to Xtext 2.3 I'm wondering how to implement the generators internal workflow. This workflow consists of a few steps, e.g. reading / validating the model file, multiple m2m transformations with corresponding model validations and the final m2t transformation.

With a code generator which make heavily use of Xtend2 does it make sense implementing the generators workflow with MWE2?
Which advantages has an MWE2-based over an Xtend2-based workflow?

What kind of approach are you using to implement your code generators workflow?

Cheers,
Torsten
Re: How to implement a code generators workflow nowadays (MWE2 or Xtend2)? [message #1020575 is a reply to message #1018475] Mon, 18 March 2013 13:45 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
An MWE2 workflow is interpreted, thus can be run without prior
compilation. That is especially useful on a build server, in case you
don't have to compile your generator.

Except from that, Xtend is of course much more flexible and expressive.

Am 13.03.13 23:18, schrieb Torsten Juergeleit:
> While porting a code generator from Xtext 1.1 to Xtext 2.3 I'm wondering
> how to implement the generators internal workflow. This workflow
> consists of a few steps, e.g. reading / validating the model file,
> multiple m2m transformations with corresponding model validations and
> the final m2t transformation.
>
> With a code generator which make heavily use of Xtend2 does it make
> sense implementing the generators workflow with MWE2?
> Which advantages has an MWE2-based over an Xtend2-based workflow?
>
> What kind of approach are you using to implement your code generators
> workflow?
>
> Cheers,
> Torsten


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Re: How to implement a code generators workflow nowadays (MWE2 or Xtend2)? [message #1020786 is a reply to message #1020575] Mon, 18 March 2013 22:46 Go to previous message
Torsten Juergeleit is currently offline Torsten JuergeleitFriend
Messages: 18
Registered: July 2009
Junior Member
Thanx Jan.
Any pointers on projects which are already using Xtend for the generators internal workflow?
Searching the web I only found projects which are using MWE2 for this.

Jan Kohnlein wrote on Mon, 18 March 2013 09:45
An MWE2 workflow is interpreted, thus can be run without prior
compilation. That is especially useful on a build server, in case you
don't have to compile your generator.

Except from that, Xtend is of course much more flexible and expressive.

Previous Topic:How to support user customization of a code generators Xtend2-based templates?
Next Topic:Xtext scoping with two models
Goto Forum:
  


Current Time: Fri Apr 26 05:27:05 GMT 2024

Powered by FUDForum. Page generated in 0.02922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top