Unembedding domain-specific languages

  • Authors:
  • Robert Atkey;Sam Lindley;Jeremy Yallop

  • Affiliations:
  • University of Edinburgh, Edinburgh, Scotland Uk;University of Edinburgh, Edinburgh, Scotland Uk;University of Edinburgh, Edinburgh, Scotland Uk

  • Venue:
  • Proceedings of the 2nd ACM SIGPLAN symposium on Haskell
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

Higher-order abstract syntax provides a convenient way of embedding domain-specific languages, but is awkward to analyse and manipulate directly. We explore the boundaries of higher-order abstract syntax. Our key tool is the unembedding of embedded terms as de Bruijn terms, enabling intensional analysis. As part of our solution we present techniques for separating the definition of an embedded program from its interpretation, giving modular extensions of the embedded language, and different ways to encode the types of the embedded language.