Learn Meta Programming with Us
Design your own Domain Specific Language with full development environment. Get code editor with completion, semantics and type checking with one click. Write generators to compile your DSL into multiple target languages, such as Java, C, XML, and many more.
Download IntelliJ IDEA from the JetBrains website. Community edition will work just fine.
- Fork the MPS GitHub repository into your own space using the GitHub UI (go to the MPS repo and press the fork button at the top. This will create a fork of the repository in your github space).
- Clone your fork to your local machine: git clone git@github.com:/MPS.git. Depending on your internet connection, this may take a long time, MPS is big. Consider using the --depth git parameter to clone only part of the history of the project to save time and space.
- It is preferable to work in your own branch, so create a new branch to work in git checkout -b my_branch_name
- Open the project in IntelliJ IDEA (either Community or Ultimate Edition)
- Attach JB JDK 11 to the project
- Download latest JB JDK 11 for your OS from https://bintray.com/jetbrains/intellij-jbr/
- Main menu -> File -> Project Structure opens the Project Structure dialog
- Under Platform Settings -> SDK, add a new JDK named "JB JDK 11"
- Additionally, create an IntelliJ Platform Plugin SDK in the same Platform Settings -> SDK dialog and name it "IDEA IC". The ideaIntegrationCommon, IDEAPlugin and ups-idea-plugin modules need this SDK and they will be using it automatically as soon as you create it and give it the "IDEA IC" name. For more details on how to add an IntelliJ Platform Plugin SDK, consult this help page.
- Rebuild the project from the Build menu (it will take quite a while the first time)
- Run the MPS -> Run run configuration in the Run menu
- Once MPS starts, open the MPS project (point MPS to the root folder of what you've cloned)
If you'd prefer a ready-to-use build, please head over to the Download page and grab an installation package of your choice.
MPS is licensed under the Apache 2 open-source license. See the complete MPS license agreement for full details.
To build JetBrains MPS from sources you need JDK 11. Older JDK versions are currently not supported for building MPS from sources.
IntelliJ IDEA Community or Ultimate edition shall be used to open the project. The versions of IntelliJ IDEA must reflect the version (branch) of the MPS project that you are opening:
- IDEA 2019.3.* for MPS 2019.3 and the 193.* branches
- The latest Idea EAP for the MPS master branch
For MacOS users it is required to use the JetBrains JDK (https://bintray.com/jetbrains/intellij-jdk/).
Develop with pleasure! JetBrains MPS Team