Automatically export UML Profile to Xtext DSL [message #1834495] |
Wed, 11 November 2020 08:13  |
Eclipse User |
|
|
|
Hi all,
I have created UML profile in Papyrus and I need to automatically generate the Xtext grammer for it. I believe it goes like this: I generate an ecore model from the UML profile, and then I generate the Xtext grammar from the ecore model. But what do I use for these generations? Any specific instructions you can provide? Thank you!
|
|
|
|
|
|
Re: Automatically export UML Profile to Xtext DSL [message #1834547 is a reply to message #1834543] |
Thu, 12 November 2020 04:22  |
Eclipse User |
|
|
|
Hi
I wrote Quote:If you are producing your own DSL, which may be a good idea, perhaps it is just the UML profile that is a bit mad ...
There is a strong school of thought that Profiles and Stereotypes are an invention of the devil. They make UML tooling unnecessarily complex by creating an illusion that you can define your own inferior language.
In contrast, metamodeling and DSLs really do define your own clean language. I recommend that you continue your work with a DSL and its underlying Ecore metamodel. Forget about your Profiles and Stereotypes, Use Sirius' Ecore Diagram editor if you need metamodel pictures. Use a Sirius-based editor if you fancy a VDSL rather than a DSL. If you are stuck with a UML-obsessed boss/organisation, explain that you are using sensible tools to prototype your solution. Once prototyped and if the obsession persists, you can migrate to a klunky UML equivalent quite possibly using a bidirectional pair of M2Ms so that you don't discard the better solution.
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.10816 seconds