Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How I can create a generator project for my DSL in Xtext?
How I can create a generator project for my DSL in Xtext? [message #1264850] Wed, 05 March 2014 14:54 Go to next message
Zeinab Amouri is currently offline Zeinab AmouriFriend
Messages: 8
Registered: March 2014
Junior Member
Dear all,

I'm new in Eclipse Modeling Project. I need to implement a small DSL using Xtext, so I read the Xtext documentation and try to define my own language. But I can't create a generator project for my DSL. As written in Xtext Doc I should marked the "Create generator project" checkbox at first dialog box when I try to create my Xtext project. I use Eclipse Kepler Release and Xtext downloaded from Eclipse market. But there isn't such a option in my dialog box for creating Xtext project. How I can create a generator project in order to generate code from my DSL program?

Thanks in advance
Re: How I can create a generator project for my DSL in Xtext? [message #1265133 is a reply to message #1264850] Wed, 05 March 2014 19:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13628
Registered: July 2009
Senior Member
Hi,

are you sure you are using the current doc.
for ages the generator is now contained in the runtime project (MyDslGenerator,xtend)


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How I can create a generator project for my DSL in Xtext? [message #1265134 is a reply to message #1265133] Wed, 05 March 2014 19:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13628
Registered: July 2009
Senior Member
besides this there is http://kthoms.wordpress.com/2011/09/28/moving-an-xtend-generator-into-its-own-plugin/

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How I can create a generator project for my DSL in Xtext? [message #1265513 is a reply to message #1265134] Thu, 06 March 2014 07:38 Go to previous messageGo to next message
Zeinab Amouri is currently offline Zeinab AmouriFriend
Messages: 8
Registered: March 2014
Junior Member
Is it means I should try to generate my code from mydsl.generator package inside the xtend-gen folder in *.mydsl project?
If I do so I will could declare a standalone compiler for my DSL in order to generate java code?
Re: How I can create a generator project for my DSL in Xtext? [message #1265526 is a reply to message #1265513] Thu, 06 March 2014 08:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13628
Registered: July 2009
Senior Member
No the should be a file MyDslGenerator.Xtend you should edit. Please
have a look at the docs at www.eclipse.org/Xtend

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How I can create a generator project for my DSL in Xtext? [message #1265562 is a reply to message #1265526] Thu, 06 March 2014 08:59 Go to previous message
Zeinab Amouri is currently offline Zeinab AmouriFriend
Messages: 8
Registered: March 2014
Junior Member
Thank you
Previous Topic:xtext with non-emf metamodel
Next Topic:XbaseInterpreter evaluation
Goto Forum:
  


Current Time: Thu Oct 22 13:28:36 GMT 2020

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

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

Back to the top