Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to build JetBrans MPS editor into my program?

Tags:

dsl

mps

They have a tool to design DSLs: https://www.jetbrains.com/mps/

Is it possible to embed editor from there into my program? Or the only purpose is to use it during development only (to compile from DSL)?

like image 992
Dims Avatar asked Dec 22 '16 07:12

Dims


People also ask

What is JetBrains MPS used for?

JetBrains MPS (Meta Programming System) is a language workbench developed by JetBrains. MPS is a tool to design domain-specific languages (DSL). It uses projectional editing which allows users to overcome the limits of language parsers, and build DSL editors, such as ones with tables and diagrams.

What is build language?

Build Language is an extensible build automation DSL for defining builds in a declarative way. Generated into Ant, it leverages Ant execution power while keeping your sources clean and free from clutter and irrelevant details.


1 Answers

In principal, since the MPS editor is a Java Swing application, it could be embedded, however, the current wiring makes it not a trivial process. It is definitely off the beaten path.

The preferred way to create single-purpose IDEs around your DSLs is to build a standalone IDE, which leverages the IntelliJ platform and bundles the desired DSLs - https://confluence.jetbrains.com/display/MPSD34/Building+standalone+IDEs+for+your+languages

like image 188
Vaclav Pech Avatar answered Oct 11 '22 16:10

Vaclav Pech