Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Implementing generator for my language(I can't figure out, where to implement the xpand or what so ever templates for my xtext project)
icon9.gif  Implementing generator for my language [message #891578] Mon, 25 June 2012 05:41 Go to next message
Daniel Winkels is currently offline Daniel Winkels
Messages: 19
Registered: October 2010
Junior Member
Hi everyone,

i am not sure, if i understood everything correct, so i thought, i'd ask here:

i want to implement a very simple language to generate some simple code to get a tool chain like this:
xtext-language -> xpand-generator -> specific java code

i know how to generate a xpand-project and set it up to use the xtext meta model. but now here is my problem: i thought, that an xtext-project comes with the ability to implement the xpand template in it's "directory structue", so that i don't have to create my own new xpand project. you then get the advantage to get a working generating framework for your language. did i get that wrong or can someone point me to the correct point, where i can implement these things.

thanks in advance for your time, patience and help!

daniel
Re: Implementing generator for my language [message #891580 is a reply to message #891578] Mon, 25 June 2012 05:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 4552
Registered: July 2009
Senior Member
Hi you statement is correct for Xtext Versions smaller than 2.x
Re: Implementing generator for my language [message #891583 is a reply to message #891580] Mon, 25 June 2012 05:47 Go to previous messageGo to next message
Daniel Winkels is currently offline Daniel Winkels
Messages: 19
Registered: October 2010
Junior Member
Hi Christian,

thank you for your quick response. So in xtext >= v.2 i cannot use xpand "easily"? Is there a similar option or do i have to decide between a downgrade or "manually" implementing the code generator?

Re: Implementing generator for my language [message #891602 is a reply to message #891580] Mon, 25 June 2012 06:40 Go to previous messageGo to next message
Daniel Winkels is currently offline Daniel Winkels
Messages: 19
Registered: October 2010
Junior Member
hey christian,

thank you again for your help. i walked through the xtend tutorial. looks like i have to learn new stuff now Smile
for everyone else: (as i cannot post links Sad ) just google for 'xtend first code generator'


daniel
Re: Implementing generator for my language [message #891603 is a reply to message #891583] Mon, 25 June 2012 06:36 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 4552
Registered: July 2009
Senior Member
Hi it should work if you copy and paste the stuff from 1.x. or let
you inspire by it. btw why don't you consider to use Xtend(2) instead
of Xpand
Re: Implementing generator for my language [message #891624 is a reply to message #891603] Mon, 25 June 2012 07:25 Go to previous message
Daniel Winkels is currently offline Daniel Winkels
Messages: 19
Registered: October 2010
Junior Member
hi christian,

i just started xtend Smile with the tutorial and have some results for my dsl yet.

thank you
Previous Topic:Xtext mwe workflow fails - sometimes
Next Topic:Re-injection
Goto Forum:
  


Current Time: Tue Jun 18 04:00:40 EDT 2013

Powered by FUDForum. Page generated in 0.02716 seconds