No CrossRef data available.
Article contents
Typed quote/antiquote or: Compile-time parsing
Part of:
JFP Functional Pearls
Published online by Cambridge University Press: 27 May 2011
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.
- Type
- Functional Pearl
- Information
- Copyright
- Copyright © Cambridge University Press 2011
References
Aho, A. V., Lam, M. S., Sethi, R. & Ullman, J. D. (2006) Compilers: Principles, Techniques, and Tools. 2nd ed.Addison-Wesley.Google Scholar
Okasaki, C. (2002) Techniques for embedding postfix languages in Haskell. In Proceedings of the 2002 ACM SIGPLAN Haskell Workshop, Chakravarty, M. (ed), ACM, pp. 105–113.CrossRefGoogle Scholar
Okasaki, C. (2003) Theoretical Pearls: Flattening combinators: Surviving without parentheses. J. Funct. Program., 13 (4), 815–822.CrossRefGoogle Scholar
Peyton Jones, S. (2003) Haskell 98 Language and Libraries. Cambridge University Press.Google Scholar
Wadler, P. (1989) Theorems for free! In the Fourth International Conference on Functional Programming Languages and Computer Architecture (FPCA'89). London, UK: Addison-Wesley, pp. 347–359.CrossRefGoogle Scholar
You have
Access
Discussions
No Discussions have been published for this article.