TY - JOUR AU - Okasaki, Chris AB - Techniques for Embedding Post x Languages in Haskell United States Military Academy∗ West Point, New York Chris Okasaki Christopher.Okasaki@usma.edu Abstract One popular use for Haskell in recent years has been as a host language for domain-speci c embedded languages. But how can one embed a post x language in Haskell, given that Haskell only supports pre x and in x syntax? This paper describes several such embeddings for increasingly complex post x languages. Categories and Subject Descriptors D.1.1 [Programming Techniques]: Applicative (Functional) Programming This result further strengthens the position of Haskell as the host language of choice for domain-speci c embedded languages (DSELs). In recent years, hordes of DSELs have emerged that successfully employ Haskell as a host language, in such diverse areas as animation [4], robotics [11], music composition [6], circuit design [2], and parsing [7]. However, most of the current DSELs for Haskell have been designed from scratch, and the designers have carefully tailored the syntax of each to be compatible with Haskell. By showing how to simulate post x syntax in Haskell, we open the door to embedding existing post x DSLs without butchering their œlook and feel . Section 2 describes a solution to TI - Techniques for embedding postfix languages in Haskell DO - 10.1145/581690.581699 DA - 2002-10-03 UR - https://www.deepdyve.com/lp/association-for-computing-machinery/techniques-for-embedding-postfix-languages-in-haskell-Vm1YIfTE5N DP - DeepDyve ER -