Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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 24 10:08:06 EDT 2025

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

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

Back to the top