DSL Product Lines
Hi community,
I'm currently trying to figure out if it is possible to define a DSL product line using MPS. So I want to generate a language module in MPS based on contents I specify using my DSL for DSL product lines. Let's say I have a feature model saying that the DSL has a feature called Color and one called Size. The generation result should be a new language module with two concepts in the structure aspect - namely Color and Size.
The two questions are:
Thank you very much in advance,
LaAck
I'm currently trying to figure out if it is possible to define a DSL product line using MPS. So I want to generate a language module in MPS based on contents I specify using my DSL for DSL product lines. Let's say I have a feature model saying that the DSL has a feature called Color and one called Size. The generation result should be a new language module with two concepts in the structure aspect - namely Color and Size.
The two questions are:
- How can I generate a new language module during generation phase?
- How can I insert contents to the respective aspects of the language, e.g. new ConceptDeclarations to the structure aspect, etc? I know that I can use reduction rules to create the ConceptDeclarations. But how can I "move" them to the desired language?
Thank you very much in advance,
LaAck
Please sign in to leave a comment.
2.
For example:
thank you very much for the response. I will evaluate your solution suggestions!
Regards,
LaAck