Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Concrete to abstract syntax
Concrete to abstract syntax [message #1838495] Fri, 26 February 2021 12:54 Go to next message
John Henbergs is currently offline John HenbergsFriend
Messages: 239
Registered: October 2020
Senior Member
Hi all,

I am trying to write an Xtext abstract syntax from an example of the concrete one. However, there is one part as follows.
"port.event1", "port.event2", or "event()".

Any ideas on how that would work or how could be implemented?

Furthermore, do you have any advice on what is the best way to go from an envisioned concrete syntax to an abstract syntax?

Many thanks,
John
Re: Concrete to abstract syntax [message #1838510 is a reply to message #1838495] Fri, 26 February 2021 17:37 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7670
Registered: July 2009
Senior Member
Hi

OCL and QVT have a specification-imposed abstract syntax and a user grammar friendly concrete syntax. This is a very major pain for which some generalized CS2AS tooling was developed by
Adolfo Sanchez-Barbudo Herrera [1] to modelize the manual code in the OCL and QVT projects. You can follow the references to find his EngD.

If you really must have a large gap between CS and AS then a form of transformation is unavoidable.

However I very strongly recommend revisiting the models to make the AS a little more CS friendly so that you can avoid the needless transformation which is poor;y supported by Xtext.

Regards

Ed Willink
Previous Topic:Accessing Standalone Index in O(n) instead of O(1)
Next Topic:Include C++ blocks in Xtext
Goto Forum:
  


Current Time: Wed Sep 25 06:36:32 GMT 2024

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

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

Back to the top