Developing DSLs Using Combinators. A Design Pattern

Date Added: Oct 2009
Format: PDF

The development of Domain-Specific Languages (DSLs) is considered by many authors as a hard task. To simplify the design of DSLs the authors describe a design pattern based on the combinators technique, which can also provide guidelines for previous domain analysis phase because it is based on equational reasoning over the domain knowledge. Combinators is a common technique from functional programming to write programs. It was used many times to implement Domain-Specific Embedded Languages (DSELs) but that implementation approach is not the only one. In this paper, they present the pattern together with the underlying and basic ideas behind it. They also show benefits of using it and illustrate the use of this pattern with some examples.