Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] how to create a compiler with xtext and Acceleo ?(I d like to create a compiler for a dsl and I don't find any piece of information)
[Acceleo] how to create a compiler with xtext and Acceleo ? [message #897270] Mon, 23 July 2012 09:21 Go to next message
baldwin dumortier is currently offline baldwin dumortier
Messages: 1
Registered: July 2012
Junior Member
hello,

I am trying to create a compiler for a research project, and I chose Acceleo and xtext as tools to develop it.

Actually I have no difficulties to use xtext to create a syntaxic editor from a specific grammar, or to use Acceleo on a ecore metalmodel.

But my problem is : I don't understand how I can use Acceleo on a model defined by the source file written by the final user of my project : I don't want acceleo to generate text from the metamodel ( created by xtext ) but from the model.

Somebody could help me please ?
I have been looking for information about it and I didn"t find anything on that issue

PS : sorry for my awful english I guess. I'm a french student and technical vocabulary isn't good enough for now.
Re: [Acceleo] how to create a compiler with xtext and Acceleo ? [message #898692 is a reply to message #897270] Fri, 27 July 2012 04:35 Go to previous message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

Since both Xtext and Acceleo are using EMF, it is quite simple, have a look at this example here: https://github.com/eclipse-soc
In this example, you can find an Android DSL based on Xtext with an Acceleo generator for the model created by the Xtext generated tooling for this grammar.

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau & @acceleo
Google+: stephane.begaudeau & acceleo
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo



Previous Topic:[Acceleo] Class 'System' is not found or is abstract
Next Topic:[Acceleo] Getting errors when invoking sortedBy
Goto Forum:
  


Current Time: Thu Jul 31 23:52:11 EDT 2014

Powered by FUDForum. Page generated in 0.05838 seconds