Base Language Extensions¶
These languages extend Base Language to add further functionality. If a language is reimplemented in MPS, it will be deprecated in the platform and removed at a later time.
BLDoc¶
com.mbeddr.mpsutil.bldoc
This language can attach documentation via the intention Attach Documentation
to any node. The rich text language
provides the concept Text
for writing the documentation. Two interfaces implement IWord ⧉ so that you can
reference any node in the com.mbeddr.doc language: @child ⧉ and
@root ⧉
for referencing child nodes and named nodes, respectively.
Richstring¶
com.mbeddr.mpsutil.richstring
This Base Language extension simplifies the usage of variables and Java String#format ⧉ inside BaseLanguage Strings. Add the language com.mbeddr.mpsutil.richstring to your model.
The following example shows referencing a simple variable, embedding an expression inside a string, and the equivalent of calling String.format()
:
SModule¶
com.mbeddr.mpsutil.smodule
This language adds new operations to modules:
- Add dependencies adds dependencies to one or more models to the module.
- Add DevKits adds devkits to the modules.
- Add languages to the module adds used languages to the module.
- Add model adds a new model with the specified name to the module. Specify the repository as the second parameter. If you press enter after the name, you can add devkits, references to models, and languages to the newly created model. In the inspector, the storage type must be declared: per root or single file persistence.
- Add solution: adds a new solution to the module. The virtual package can be specified (subfolder).