Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Can Xtext be used to create general-purpose programming languages?
Can Xtext be used to create general-purpose programming languages? [message #1807117] Thu, 23 May 2019 06:20 Go to next message
Millo Evers is currently offline Millo EversFriend
Messages: 2
Registered: April 2019
Junior Member
Same as title. Want to make a general purpose programming language, want to know if its possible with Xtext.
Re: Can Xtext be used to create general-purpose programming languages? [message #1807147 is a reply to message #1807117] Thu, 23 May 2019 17:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
yes this possible. Xtend is built with Xtext as well is Jbase.
is there a specific concern behind your question


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Can Xtext be used to create general-purpose programming languages? [message #1807154 is a reply to message #1807117] Thu, 23 May 2019 19:44 Go to previous messageGo to next message
Millo Evers is currently offline Millo EversFriend
Messages: 2
Registered: April 2019
Junior Member
I was just wondering if it is able to and if so, how easy it would be to make a general-purpose programming language with it?
Re: Can Xtext be used to create general-purpose programming languages? [message #1807155 is a reply to message #1807154] Thu, 23 May 2019 20:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14738
Registered: July 2009
Senior Member
Such a general question has no general answer
But in general the answer is yes, Xtext can be used for gpls too


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Can Xtext be used to create general-purpose programming languages? [message #1807178 is a reply to message #1807155] Fri, 24 May 2019 07:33 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7681
Registered: July 2009
Senior Member
Hi

Most definitely YES. OCL is one example, QVTr another.

The difficulty entirely depends on the language. If you have a friendly/flexible language, you may be able to exploit Xbase and find it fairly easy. Or you may have an awkward/standardized language where you must faithfully accommodate every poor design decision, which of course requires substantially more ingenuity, study and effort.

Ultimately the editor is just the start of the story. Really good language support should have high quality completion assist, refactoring and of course building, code generation and debugging. Xtext provides assistance in these areas but there is no substitute for many hours of effort from skilled programmers.

Regards

Ed Willink
Previous Topic:How to import implicitly the namespace from importURI
Next Topic:Override import behavior to handle C-style includes
Goto Forum:
  


Current Time: Thu Dec 26 14:18:54 GMT 2024

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

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

Back to the top