-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


[ ] JetBrains MPS IDE -

, 25 2017 . 17:38 +


MPS Intellij Idea. , , -, , . : , MPS, . .

? , , , JetBrains.

, , , . JetBrains YouTube, , - , , sample .

, , , . MPS . , , ?


MPS ( / MPS) Language Solution. , - , / , .

Language.

, , .

  1. , , , .
  2. , .
  3. Intellij Idea . , .

, MPS , AST (Abstract Syntax Tree), , AST.

, 1 1 .

MPS


MPS_1_START

, Sandbox solution , , .

image

. . WeatherPrediction structure, editor . , structure , editor , . , MPS. . .

root . , . Java

root Java
public class Weather{

}

, WeatherPrediction -> New -> Concept.

image

3 , :

  1. properties , , boolean , name: string, value: integer, final: boolean

  2. children . , Program Statement

  3. references AST, scope. , ( , ).

PredictionList, root INamedConcept.

image

: , PredictionList, , root INamedConcept. definition (Ctrl + B)

image

, interface concept, property name: string, , ,

, . : jetbrains.mps.lang.structure, .

, , WeatherPrediction.sandbox.

image

sandbox(generation required) -> New -> PredictionList

image

no name Saint Petersburg

! . AST, Alt + X

image

, . , name PredictionList = Saint Petersburg. , , , PredictionList editor aspect. , , Editor -> Concept Editor

image

, PredictionList .
, , [- . : / property / reference / children. , jetbrains.mps.lang.editor.
, :
Weather prediction rules for %name%.

.

image

, {name}, property name.

(Ctrl + F9) Sandbox solution, PredicitonList Saint Petersburg.

image

, AST , .

, , , . , Java.

! , , . , , .
Original source: habrahabr.ru (comments, light).

https://habrahabr.ru/post/334108/

:  

: [1] []
 

:
: 

: ( )

:

  URL