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: 14677
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)


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: Sun May 05 20:51:01 GMT 2024

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

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

Back to the top