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 2019.3.4 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.
- Select the
Flint
project template. - Input project settings and press OK.
- Project name - The name of the project
- Project location - The folder of the project
- Solution name - The name of the solution(virtual folder the model is placed in)
- Model name - The name of the model
- If a window pops up click Migrate and then Finish.
- In the project viewer you'll find a your model under
{project_name}/{solution_name}/{model_name}/{model_name}
- Fill your 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.