Strumenta / pylasu

Apache License 2.0
23 stars 4 forks source link

Ecore support #15

Open alessiostalla opened 1 year ago

ftomassetti commented 1 year ago

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

alessiostalla commented 1 year ago

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 commented 1 year ago

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.