DclareForMPS adds a language aspect named 'rules' to MPS.
A rule typically derives some part of a model.
Rules can trigger other rules.
A rule runs when something changes in the models that is read by this rule (reactive).
The system terminates on a fixpoint (if no changes occure anymore).
The regular MPS base-language can be used to specify the rules.
Rules definitions typically use quotations (light or not) to define the derivations.
The rules are executed incrementally, meaning they perform a minimal amount of changes to derive the defined patterns (expressed in quotations).
DclareForMPS is in constant progress.
It is available as a standard plugin in MPS, without the need to download it here.
All feedback, functional or technical, is appreciated.
DclareForMPS uses the dclare engine of the Modeling Value Group.
The dclare project can be found here: dclare on GitHub
In an installation of JetBrains MPS (2019.3.4 or higher) ...
- install the DclareForMPS.zip plugin
- open one of the example MPS-Projects (see below)
- switch on the Dclare engine (Settings... > Dclare)
- rebuild the example project
- play with the sandbox-models in the example-project
Multiple MPS-project examples can be found on GitHub:
For more info, please read the README.md files that are part of these examples.