Skip to main content



      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 17:27 Go to next message
Eclipse UserFriend
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 01:39 Go to previous messageGo to next message
Eclipse UserFriend
for me this looks more like a question for the CDT forum.
Re: How to automatically compile and run mydsl application from eclipse? [message #1807739 is a reply to message #1807730] Fri, 07 June 2019 02:50 Go to previous messageGo to next message
Eclipse UserFriend
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 03:46 Go to previous message
Eclipse UserFriend
Thanks. I will examine these links.
Previous Topic:Mapping DSL referencing existing Ecore Elements
Next Topic:Xtext domainmodel error
Goto Forum:
  


Current Time: Mon Apr 21 07:23:15 EDT 2025

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

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

Back to the top