DSL creation: Support for models distributed over multiple model files Follow
I am checking the abilities of MPS to see if it suits creation of a DSL we
need for our business. As a learning project I started a DSL which has aspects similar to the one we need.
I created a DSL to describe a roadmap with multiple roadmap items (inspired on mindmap DSL).
What I want is that multiple model files can be imported such the roadmap items can refer to items in other model files. This way multiple people can create such a roadmap DSL model and store it in a repository.
Preferably the loading of all models is such that the ctrl-space recognizes items from other model files when setting up the dependency relations.
Is this possible?
Is there an example to check ?
Thanks !!
need for our business. As a learning project I started a DSL which has aspects similar to the one we need.
I created a DSL to describe a roadmap with multiple roadmap items (inspired on mindmap DSL).
What I want is that multiple model files can be imported such the roadmap items can refer to items in other model files. This way multiple people can create such a roadmap DSL model and store it in a repository.
Preferably the loading of all models is such that the ctrl-space recognizes items from other model files when setting up the dependency relations.
Is this possible?
Is there an example to check ?
Thanks !!
Please sign in to leave a comment.
What I meant is how can multiple people create their own model file where they store it
under version control (subversion oslt) and that other can (preferably automatically) refer to items in the model made by someone else with/without including it explicitly.
Your language will provide a root concept to represent your "model files" and will hold "model items".
Then you will need a root concept for "roadmap" that can hold "model item references". These references will by default see all "model items" in the current model.
You can check out the SampleJavaExtensions sample and its Constants language for inspiration.