Extending other languages

I keep hearing in the video presentations and such, that MPS makes it possible to extend languages.

Do you mean it's possible to extend the syntax of other existing programming languages (such as C or JavaScript) with this system? Or are you just talking about extending another DSL created in MPS?

It's my understanding that MPS essentially compiles from DSL code (in a DSL defined with MPS) down to another programming language, and in most of the examples, that language seems to be Java. Is it possible to target any arbitrary language (without extending the platform itself to support another language) via some sort of template system, or was it build specifically (or primarily) for Java?

Thanks!
1 comment
Do you mean it's possible to extend the syntax of other existing programming languages (such as C or JavaScript) with this system? Or are you just talking about extending another DSL created in MPS?


It means you can extend another DSL described in MPS.

Is it possible to target any arbitrary language (without extending the platform itself to support another language) via some sort of template system, or was it build specifically (or primarily) for Java?


Sure it's possible. E.g. here http://confluence.jetbrains.com/display/MPS/Welcome+to+JetBrains+MPS+Space and here http://www.jetbrains.com/mps/documentation/index.html#MPS_Use_Cases_and_Other_Related_Reading you can find a list of projects using MPS. There's the C language implementation in MPS, as well as ActionScript, XHTML, C# and some others.
0

Please sign in to leave a comment.