kirancodes.me
To Proof Maintenance & Beyond!

Typed quote/antiquote or: Compile-time parsing

Ralf Hinze

Abstract

Haskell (Peyton Jones, 2003) is often used as a host language for embedding other languages. Typically, the abstract syntax of the guest language is defined by a collection of datatype declarations; parsers and pretty-printers convert between the concrete syntax and its abstract representation. A quote/antiquote mechanism permits a tighter integration of the guest language into the host language by allowing one to use phrases in the guest language's concrete syntax .

Related papers