pylasu icon indicating copy to clipboard operation
pylasu copied to clipboard

Ecore support

Open alessiostalla opened this issue 3 years ago • 3 comments

alessiostalla avatar Sep 08 '22 16:09 alessiostalla

Regarding this, I am starting to wonder if it would make sense to have one Kolasu metamodel (probably to be renamed StarLasu metamodel!) stored somewhere and used by every project. Right now Kolasu is defining its own programmatically:

https://github.com/Strumenta/kolasu/blob/71c8ef38f43bd58604c4cd9d7b8c58950d999a2e/emf/src/main/kotlin/com/strumenta/kolasu/emf/kolasu_metamodel.kt#L13

ftomassetti avatar Sep 09 '22 06:09 ftomassetti

We could export the one defined in Kolasu and store it in the StarLasu repository. Then the build process of the other projects could download it.

alessiostalla avatar Sep 09 '22 11:09 alessiostalla

So I've experimented a bit with this. Unfortunately due to limitations in Pyecore we cannot yet do everything automatically. The imported model needs some slight editing so it cannot be generated on-the-fly by some build script.

alessiostalla avatar Sep 12 '22 12:09 alessiostalla