Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » eTrice » Customized Code Generation(Customing eTrice to generate custom DSLs)
Customized Code Generation [message #1000396] Mon, 14 January 2013 16:52 Go to next message
Alexander Aavang is currently offline Alexander AavangFriend
Messages: 1
Registered: January 2013
Junior Member
I love the graphical design aspect of eTrice.

I was wondering if there is a way to get at how the code generation works so that I could have it generate code in other languages (Insense in my case) besides Java?
Re: Customized Code Generation [message #1001215 is a reply to message #1000396] Wed, 16 January 2013 08:59 Go to previous messageGo to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
Hi Alexander,

we currently have generators for C, Java and C++ (the latter one as a prototype).
All three make use of generic generator parts from o.e.e.generator.
And all generators benefit from the transformed and aggregated ROOM model called generator model (o.e.e.core.genmodel).

I have updated our published documentation to the current version.
The last chapter gives a little overview about the architecture of eTrice and gives some details about the components:
http://eclipse.org/etrice/documentation/doc/etrice.html#eTriceDevelopersReference

Besides that I would like to create an example in our wiki how to get started with a new generator.
I will add a further comment here as soon as I've completed this.

-Henrik


Am 14.01.2013 20:39, schrieb Alexander Aavang:
> I love the graphical design aspect of eTrice.
>
> I was wondering if there is a way to get at how the code generation works so that I could have it generate code in other languages
> (Insense in my case) besides Java?
Re: Customized Code Generation [message #1001960 is a reply to message #1001215] Thu, 17 January 2013 16:01 Go to previous messageGo to next message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
Am 16.01.2013 09:59, schrieb Henrik Rentz-Reichert:
> Besides that I would like to create an example in our wiki how to get started with a new generator.
> I will add a further comment here as soon as I've completed this.

I have created this example.
See our wiki:
http://wiki.eclipse.org/ETrice/Development/GettingStartedWithEtrice#Deriving_from_an_Existing_Generator

It describes how a generator can be derived from an existing one.

If the task on the other hand is creating a generator for a new language one should start with a plug-in that has a main method
and a Guice module similar to that of the Java or the C generator.

Sorry for the lack of more documentation for developers.
But we are happy about every question related to this on our newsgroup.
We would like to learn which kinds of re-use and extensibility is used by our adopters.

-Henrik
Re: Customized Code Generation [message #1002058 is a reply to message #1001960] Thu, 17 January 2013 21:09 Go to previous message
Thomas Schuetz is currently offline Thomas SchuetzFriend
Messages: 31
Registered: January 2010
Member
Hi Alexander,
I added a link to the examples in the eTrice repository:
http://git.eclipse.org/c/etrice/org.eclipse.etrice.git/tree/examples
http://wiki.eclipse.org/ETrice/Development/GettingStartedWithEtrice#Deriving_from_an_Existing_Generator

- Thomas
Previous Topic:External Interface
Next Topic:self transitions
Goto Forum:
  


Current Time: Thu May 09 21:15:41 GMT 2024

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

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

Back to the top