Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generating Xtend code
icon5.gif  Generating Xtend code [message #1677149] Sun, 15 March 2015 19:53 Go to next message
Daniel Cardin is currently offline Daniel CardinFriend
Messages: 109
Registered: July 2009
Senior Member
From my understanding, the only generator included with Xtext is the JvmModelGenerator which generates java source code. Is there a generator for xtend source files or does it have to be Java only?

Thanks!
Re: Generating Xtend code [message #1678181 is a reply to message #1677149] Mon, 16 March 2015 05:16 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
Hi,

depends on your usecase. every IGenerator generates Text in the first place. for xbase a IDerivedStateComputer aka JvmModelInferrer translates the dsl model to a java model (m2m) that is then translated to java text code. of course you can create whatever text you want, but generating xtend code makes only limited sense (since it has to be translated to java anyway)


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: Generating Xtend code [message #1688531 is a reply to message #1678181] Fri, 20 March 2015 23:37 Go to previous message
Daniel Cardin is currently offline Daniel CardinFriend
Messages: 109
Registered: July 2009
Senior Member
The idea of generating xtend vs xtext was that the language is way more expressive. I was wondering if there was any easy way to do that. Thanks for the answer!
Previous Topic:Deadlock during injector initialization
Next Topic:Create IDE for existing language
Goto Forum:
  


Current Time: Fri May 14 04:45:54 GMT 2021

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

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

Back to the top