How to write a dump of an MPS model to XML based on its structure

This post has been written using material developed in JetBrains MPS 3.3.5. The example project can be found at DSLFoundry’s MPS example github repository under StructureDumpToXML. It is recommended to have this project opened while going through this howto. Suppose you want to dump a model to some simple XML format without wanting to write … Read more

How to add default to a property in a concept

This post assumes that you have an MPS with mbeddr preloaded. Go to the constraints aspect for the concept you want to add a default to a property: Create a new constraint for this concept: Press Ctrl+L and import the language com.mbeddr.mpsutil.propertydefault: Go to the property constraints and press Enter to make a new one: Choose … Read more

First pre-release of mps-textgen-multilanguage plugin

This plugin enables you to use the standard template mechanism of MPS (node macros, loop macros, property macros, etc.) to generate free text. So if you have some custom text format you want to generate to, you will have a more easy and useful mechanism than the standard MPS textgen. Please see the mps-textgen-multilanguage github … Read more

Where are mbeddr builds located?

Go to the mbeddr build page. Login as guest (username: “guest”, password: “guest”) and then go to Build –> the plugin you want to download (e.g. sl-all) –> branch you want to download from. Then choose Latest successful build –> Artifacts –> Download all (zip) See picture below for the example of the sl-all plugin  

Welcome to DSLFoundry!

Here we create and collect tools and libraries for Domain Specific Languages (see about). You can see some of the tools on our projects page. In addition, we will post some handy tips about DSL tools now and in the posts further down this blog. Please feel free to reuse our code and if you … Read more