Import Ecore model mapping [message #1866144] |
Wed, 22 May 2024 09:12 |
Klarise Hund Messages: 25 Registered: October 2022 |
Junior Member |
|
|
Hi,
When defining an Xtext grammar for an already existing Ecore model (hence importing the Ecore model) , can you add concepts to the grammar which are not in the Ecore model?
More specifically, should the grammar and imported Ecore model (consider it is just one Ecore model being imported):
1- have a one to one match (I believe it is possible that the textual grammar can cover also just part of the Ecore model),
2- or it could be also that you can add concepts in the grammar not present in the Ecore model, or for instance if there is a concept A in the Ecore model, this concept A in the Ecore model to be matches partly with concept B and partly with concept C in the grammar (e.g., State in the Ecore model be mapped to either Initialstate or State in the grammar).
To the best of my knowledge, it is the first case, but maybe I am missing something. Any input on this is appreciated.
Thank you!
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03492 seconds