Hostname: page-component-6766d58669-bp2c4 Total loading time: 0 Render date: 2026-05-15T13:02:11.776Z Has data issue: false hasContentIssue false

Typed quote/antiquote or: Compile-time parsing

Published online by Cambridge University Press:  27 May 2011

RALF HINZE*
Affiliation:
Department of Computer Science, University of Oxford, Wolfson Building, Parks Road, Oxford OX1 3QD, England, UK (e-mail: ralf.hinze@cs.ox.ac.uk)
Rights & Permissions [Opens in a new window]

Extract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

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.

Information

Type
Functional Pearl
Copyright
Copyright © Cambridge University Press 2011
Submit a response

Discussions

No Discussions have been published for this article.