OREGON STATE UNIVERSITY

You are here

Formal and Practical Aspects of Domain-Specific LanguagesSemantics-Driven DSL Design

TitleFormal and Practical Aspects of Domain-Specific LanguagesSemantics-Driven DSL Design
Publication TypeBook Chapter
Year of Publication2012
AuthorsErwig, M., and E. Walkingshaw
Secondary AuthorsMernik, M.
Book TitleFormal and Practical Aspects of Domain-Specific Languages: Recent Developments
Chapter3
Pagination56 - 80
Date Published2012
PublisherIGI Global
Abstract

Convention dictates that the design of a language begins with its syntax. The authors of this chapter argue that early emphasis should be placed instead on the identification of general, compositional semantic domains, and that grounding the design process in semantics leads to languages with more consistent and more extensible syntax. They demonstrate this semantics-driven design process through the design and implementation of a DSL for defining and manipulating calendars, using Haskell as a metalanguage to support this discussion. The authors emphasize the importance of compositionality in semantics-driven language design, and describe a set of language operators that support an incremental and modular design process.

DOI10.4018/978-1-4666-2092-6.ch003