MPS 2019.1ヘルプ

MPS言語プラグインの構築

Distributing languages as plugins for MPS is very similar to packaging languages for IntelliJ IDEA.You follow the same instructions described in IntelliJ IDEA言語プラグインの構築 with two important differences:

  1. Your build script should depend on mps as you can see in the attached screen-shot.

    build15

    Additionally, by depending on mps your languages can leverage the whole MPS infrastructure and the whole set of languages, while mpsPlugin restricts IDEA plugins to only the subset of functionality that is available in IntelliJ IDEA.

  2. When running your Ant build script from the command line, you set an artifacts.mps property (instead of artifacts.mpsPlugin ) and make it point to an MPS installation home directory.

    build16

    メモ: Since in the example build script above we set the artifacts location for mps to $mps_home , we may set -Dmps_home instead (necessary only if the MPS location on the build machine differs from the path set in the build script).

The generated plugin can then be imported into MPS. You can install the plugin either manually or through the MPS plugin manager. If installing manually, the downloaded plugin zip file must be unzipped into the MPS plugin folder.

  • WindowsおよびLinux : 通常USER_HOME/MPS_version/config/pluginsまたはMPS_HOME/plugins

  • MacOS : ~/Library/Application Support/MPS_version/またはMPS_HOME/plugins

After restart the imported languages will become available in MPS.

最終更新日: 2019年6月7日