How to import/paste existing DSL code into MPS to continue editing?

I have defined a textual DSL in MPS. It consists of some concepts and their editors and constraints solely. I don't have any behavior, typesystem or generators - I do not need them. I just want to be able to comfortably edit documents in my DSL.

I have externally generated source files in this DSL, i.e. these files have been generated outside and independently of JetBrains MPS.

Now I want to import/paste these files - just one in a session - into MPS to continue editing them. And here my problem arises:

How to import/paste existing DSL code into MPS to continue editing? - There is no paste or import command available.

0
1 comment

Hi Paul,

MPS does not provide any such capability. You will need to implement your own importer, perhaps as an action in an MPS plugin solution that would parse your textual documents and convert them into models using yoru DSLs.

Best regards,

Vaclav

0

Please sign in to leave a comment.