Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to enable running functionality in a new dsl
How to enable running functionality in a new dsl [message #1771084] Mon, 21 August 2017 18:59 Go to next message
Udeshika Sewwandi is currently offline Udeshika SewwandiFriend
Messages: 118
Registered: March 2017
Senior Member
Hi,
I searched through internet and couldn't find any documentation on implementing running functionality for a newly created dsl using xtext. Can you provide some reference for this?

Thank you.
Re: How to enable running functionality in a new dsl [message #1771088 is a reply to message #1771084] Mon, 21 August 2017 19:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
what do you mean by "running functionality"?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to enable running functionality in a new dsl [message #1771106 is a reply to message #1771088] Tue, 22 August 2017 03:34 Go to previous messageGo to next message
Udeshika Sewwandi is currently offline Udeshika SewwandiFriend
Messages: 118
Registered: March 2017
Senior Member
Hi,
How the user can run the .mydsl file, for example like running java and get an output?
Thank you.
Re: How to enable running functionality in a new dsl [message #1771122 is a reply to message #1771084] Tue, 22 August 2017 07:33 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

You can either implement a code generator that produces executable code (e.g. Java, but could be any target language) or write an interpreter. Both have to be implemented manually. For code generation you have already a stub.
Re: How to enable running functionality in a new dsl [message #1771259 is a reply to message #1771122] Wed, 23 August 2017 12:57 Go to previous message
Udeshika Sewwandi is currently offline Udeshika SewwandiFriend
Messages: 118
Registered: March 2017
Senior Member
Hi,
Thank you very much for the information.
Previous Topic:SecurityException when I use my modified org.eclipse.xtext to run "Generate Xtext Artifacts&
Next Topic:How to infer a method with generics?
Goto Forum:
  


Current Time: Tue Mar 19 06:56:29 GMT 2024

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

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

Back to the top