Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] Code Generation Architecture advise
[Xpand] Code Generation Architecture advise [message #638191] Wed, 10 November 2010 07:02 Go to next message
Eclipse UserFriend
Hello everyone, I'm learning Xtext/Xpand and so far, I have completed the basic tutorials.

Now, I have to start my code generation project and I need some advise regarding the architecture.

I have created the Xtext project and exported as a plugin, then added de Xtext Nature in my code generation project and it works fine. Then, I think the way to go is to programatically call the Xpand generator (which I suppose I should export as a plugin as well) and generate my source files.

I will need to have many templates for different target languages (I will have to define many different grammars as well, of course)

Is it the best approach?
Thank you very much for your help and advise

[Updated on: Wed, 10 November 2010 07:36] by Moderator

Re: [Xpand] Code Generation Architecture advise [message #638312 is a reply to message #638191] Wed, 10 November 2010 14:32 Go to previous message
Eclipse UserFriend
Hello Refael,

this approach (place the generator into a plugin and start it programatically eg. an editor action) can be used if you do not want to differ between designer<->developer.
If you have long generation times or you want to deploy artefacts into a repository, etc. you can use ant or maven to invoke the generation.

Regards
Previous Topic:[Xpand] Using Xpand programmatically
Next Topic:[Xtend] Problems with editor's content assist
Goto Forum:
  


Current Time: Sat Apr 26 13:52:27 EDT 2025

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

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

Back to the top