Skip to main content

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 13:21 Go to next message
baldwin dumortier is currently offline baldwin dumortierFriend
Messages: 1
Registered: July 2012
Junior Member

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 08:35 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member


Since both Xtext and Acceleo are using EMF, it is quite simple, have a look at this example here:
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.


Stephane Begaudeau, Obeo

Twitter: @sbegaudeau & @acceleo
Google+: stephane.begaudeau & acceleo
Acceleo Documentation:
Previous Topic:[Acceleo] Class 'System' is not found or is abstract
Next Topic:[Acceleo] Getting errors when invoking sortedBy
Goto Forum:

Current Time: Sat Aug 13 09:39:34 GMT 2022

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

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

Back to the top