MPS Intellij Idea. , , -, , . : , MPS, . .
? , , , JetBrains.
, , , .
JetBrains YouTube, , - , , sample .
, , ,
. MPS . , , ?
MPS ( / MPS)
Language Solution.
, - , / , .
Language.
, , .
- , , , .
- , .
- Intellij Idea . , .
, MPS , AST (Abstract Syntax Tree), , AST.
, 1 1 .
MPS
, Sandbox solution , , .
. . WeatherPrediction structure, editor
. ,
structure ,
editor , . , MPS. . .
root . , . Java
, WeatherPrediction -> New -> Concept.
3 , :
- properties , , boolean , name: string, value: integer, final: boolean
- children . , Program Statement
- references AST, scope. , ( , ).
PredictionList,
root INamedConcept.
: , PredictionList, , root INamedConcept. definition
(Ctrl + B)
, interface concept, property name: string, , ,
, . :
jetbrains.mps.lang.structure, .
, , WeatherPrediction.sandbox.
sandbox(generation required) -> New -> PredictionList
no name Saint Petersburg
! . AST,
Alt + X
, . , name PredictionList = Saint Petersburg. , , , PredictionList
editor aspect. , ,
Editor ->
Concept Editor
, PredictionList .
, ,
[- . : / property / reference / children. ,
jetbrains.mps.lang.editor.
, :
Weather prediction rules for %name%.
.
,
{name}, property name.
(Ctrl + F9) Sandbox solution, PredicitonList Saint Petersburg.
, AST , .
, , , . , Java.
! , , . , , .
https://habrahabr.ru/post/334108/