Chapter

Central European Functional Programming School

Volume 8606 of the series Lecture Notes in Computer Science pp 1-28

Date:

Functional Programming for Domain-Specific Languages

  • Jeremy GibbonsAffiliated withDepartment of Computer Science, University of Oxford Email author 

* Final gross prices may vary according to local VAT.

Get Access

Abstract

Domain-specific languages are a popular application area for functional programming; and conversely, functional programming is a popular implementation vehicle for domain-specific languages—at least, for embedded ones. Why is this? The appeal of embedded domain-specific languages is greatly enhanced by the presence of convenient lightweight tools for defining, implementing, and optimising new languages; such tools represent one of functional programming’s strengths. In these lectures we discuss functional programming techniques for embedded domain-specific languages; we focus especially on algebraic datatypes and higher-order functions, and their influence on deep and shallow embeddings.