Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to automatically compile and run mydsl application from eclipse?
How to automatically compile and run mydsl application from eclipse? [message #1807730] Thu, 06 June 2019 21:27 Go to next message
Željko Kovačević is currently offline Željko KovačevićFriend
Messages: 16
Registered: March 2019
Junior Member
I designed a small DSL in Xtext and wrote a sample DSL application that is successfully converted to C++ code by using Xtend code generator. What I would like is to be able to click "Run" inside Eclipse and then to automatically compile the generated .cpp file and run it. How to do it?
Re: How to automatically compile and run mydsl application from eclipse? [message #1807735 is a reply to message #1807730] Fri, 07 June 2019 05:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
for me this looks more like a question for the CDT forum.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to automatically compile and run mydsl application from eclipse? [message #1807739 is a reply to message #1807730] Fri, 07 June 2019 06:50 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Adding actions to the menu: https://www.vogella.com/tutorials/EclipseCommands/article.html

Then the code has to be compiled => Usually by configuring a project builder => Consult Eclipse CDT

And finally, what you get is an external program that you need to launch the program by creating a launch configuration and execute it. See e.g. https://stackoverflow.com/a/37330757/512227

But as Christian said, all of this is not related to Xtext. These are questions for Eclipse Platform & CDT.
Re: How to automatically compile and run mydsl application from eclipse? [message #1807741 is a reply to message #1807739] Fri, 07 June 2019 07:46 Go to previous message
Željko Kovačević is currently offline Željko KovačevićFriend
Messages: 16
Registered: March 2019
Junior Member
Thanks. I will examine these links.
Previous Topic:Mapping DSL referencing existing Ecore Elements
Next Topic:Xtext domainmodel error
Goto Forum:
  


Current Time: Fri Apr 26 10:08:25 GMT 2024

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

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

Back to the top