Using MPS to validate and read DSL into POJOs

I read and viewed videos about MPS for about 3-4 hours and I still unable to answer the question - is MPS is suitable for my need so I will ask it here.

 

There is a YAML DSL defined by the community (http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.0/csprd01/TOSCA-Simple-Profile-YAML-v1.0-csprd01.html#_Toc430015618)

 

I need to:

1. Validate and read this DSL into POJOs (An engine will use these POJOs in order to create the resources).

2. Allow a user that writes such DSLs to use an IDE with syntax coloring, validation and smart completion.

 

Can I achieve these goals with MPS? If so, can you please share an example?

 

Thanks.

1 comment

@1. If I understood you correctly you generate a Plain Old Java Object out of this DSL. MPS works really well with Java. I don't know how this engine works, so I can't give you an answer on that one.
@2. Yeah this is possible.

Syntax Coloring can be done in the editor aspect:

https://confluence.jetbrains.com/display/MPSD30/Editor+cookbook

 

Maybe an existing MPS language for YAML exists already.

0

Please sign in to leave a comment.