melange
melange copied to clipboard
K3 project with Ecore model + Aspects
What happens if I have an Ecore model and Aspects in a K3 project? Will the compilation still work? Or can we make it work?
What I want to achieve is to be able to define new types/classes in a K3 project. Why? Because the K3 project is meant to define the runtime date for my language and in some cases that may require to add new types/classes (consider Petri Net example sketched below). Since we will need an Ecore model and Java code generated from that to make, e.g., the animation of an xDSML model possible, we will need to define the types in an Ecore model. So why not adding an Ecore model to the K3 project to allow the user to do that?
Example: Petri Net Abstract Syntax: Net, Place, Transition, Transition.inputPlaces, Transition.outputPlaces K3 Ecore model: Token K3 Aspect: Place.heldTokens, Place.addToken(), Place.removeToken()