This is an experimental project exploring the viability of a visual FLINT editor based on MPS
- Install Java 11
- Clone the repository
- Run
gradlew initProject
- Start the ide for your specific platform. The executables are locatied in
build/mps/bin
Complete IDE with all required plugins and custom branding.
To build the FlintIDE run gradlew buildFlintIde
. This will generate compressed artifacts in code/build/artifacts/FlintIdeDistribution
.
To install the IDE unpack the archive for your platform to an empty directory. Then run executable from the bin directory.
MPS IDE, FlintPlugin and dependant plugins must be manually installed.
To build the FlintIDE run gradlew buildFlintPlugin
. This will generate a zip in code/build/artifacts/FlintPluginDistribution/
.
- Download and install mps from here
- Download the mbeddr platform distribution plugins zip
- Extract the files and folders from the com.mbeddr.platform directory in mbeddr platform-distribution.zip file to the plugins folder (
{mps-installation-dir}/plugins
) in your mps installation. - Extract the Flint plugin from Flint.zip to the plugins folder in your mps installation.
- Click create a new project. Name the project and solution whatever you want.
- Right click on the solution and create a new model. Name it whatever you like.
- In the used languages tab select Flint and press OK.
- Right click on the created model and select
New > FlintModel
or selectImport FlintModel from json
. - Create a Flint model. (Tip: Use control space to get suggestions)
- To use the block editor press
alt+enter
while focused on a fact or act and selectShow Block Diagram Editor
. - To preview the generated json right click in the Flint model and select preview generated text. The file is located at
{project-location}/solutions/{solution-name}/source_gen/{solution-name}/{model-name]/{flint-model-name}.flint.json
. - Right click on the created model and select
New > FlintModelRunner
- Configure the runner.
- To open the Compliance By Design demo generate de model (ctrl + F9), right click on the FlintModelRunner and select Run FlintModel.