Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » using xtend or xpand for code generation
using xtend or xpand for code generation [message #1721735] Fri, 29 January 2016 15:03 Go to next message
AYMEN SALMAN is currently offline AYMEN SALMANFriend
Messages: 18
Registered: October 2015
Location: England
Junior Member
Hi
Am already a biginner in the eclipse and xtext
Kindly am already in the middle of a project to develop a high level DSL language, where this language will be used by the user, and the output after compiling this DSL is to to generate a C language code.
That mean I have to develop a code generator that will convert the compiled AST into a C language code. That beside I have already build the dsl UI and commands library and the compiler using xtext and emf models.


And now am wondering which one I should use to build my C language generator, xpand or xtend and why?

Appreciate your kind help and support
Thanks
Aymen
Re: using xtend or xpand for code generation [message #1721738 is a reply to message #1721735] Fri, 29 January 2016 15:15 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 350
Registered: July 2009
Senior Member
Hi,

you should look at Xtend. Xpand is obsolete and Xtend is far superior.

Start here:
https://www.eclipse.org/xtend/


HTH,
Axel

Am 29.01.2016 um 16:03 schrieb AYMEN SALMAN:
> Hi
> Am already a biginner in the eclipse and xtext
> Kindly am already in the middle of a project to develop a high level DSL
> language, where this language will be used by the user, and the output
> after compiling this DSL is to to generate a C language code.
> That mean I have to develop a code generator that will convert the
> compiled AST into a C language code. That beside I have already build
> the dsl UI and commands library and the compiler using xtext and emf
> models.
>
>
> And now am wondering which one I should use to build my C language
> generator, xpand or xtend and why?
>
> Appreciate your kind help and support
> Thanks
> Aymen
Re: using xtend or xpand for code generation [message #1721753 is a reply to message #1721738] Fri, 29 January 2016 19:20 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14062
Registered: July 2009
Senior Member
i would use xtend as well

- is statically compiled and thus faster if done correct
- i more actively developed
- is supported better by the default generator infrastructure (in eclipse builder, standalone maven/gradle etc)


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: using xtend or xpand for code generation [message #1721766 is a reply to message #1721738] Fri, 29 January 2016 23:57 Go to previous message
AYMEN SALMAN is currently offline AYMEN SALMANFriend
Messages: 18
Registered: October 2015
Location: England
Junior Member
Thanks for your advice, and I will try using xtend and see how it will goes with me.

[Updated on: Fri, 29 January 2016 23:59]

Report message to a moderator

Previous Topic:Linking of duplicate objects in Xtext
Next Topic:Xcore with xtext-maven-plugin: unmapped paths
Goto Forum:
  


Current Time: Mon Sep 20 00:06:30 GMT 2021

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

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

Back to the top