Type-Directed Elaboration of Quasiquotations: A High-Level Syntax for Low-Level Reflection
- David Raymond Christiansen
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOpen access
Publication Information
Output type
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOriginal language
EnglishPublication milestones
- Published - 2014
Publication status
Published - 2014
Publisher
Association for Computing Machinery, United StatesISBN (Print)
978-1-4503-3284-2Publication IDs
- Scopus: 84959387291
Host publication title
Preproceedings of the 26nd Symposium on Implementation and Application of Functional Languages (IFL 2014)Host publication editors
- Sam Tobin-Hochstadt
Abstract
Idris's reflection features allow Idris metaprograms to manipulate a representation of Idris's core language as a datatype, but these reflected terms were designed for ease of type checking and are therefore exceedingly verbose and tedious to work with. A simpler notation would make these programs both easier to read and easier to write. We describe a variation of quasiquotation that uses the language's compiler to translate high-level programs with holes into their corresponding reflected representation, both in pattern-matching and expression contexts. This provides a notation for reflected language that matches the notation used to write programs, allowing readable metaprograms.
Publication metrics
PlumX, opens in new tab
Captures
8
Citations
7
Access to documents
Related Event
Title
26nd Symposium on Implementation and Application of Functional Languages
Event type
ConferenceDate
01/10/2014 - 03/10/2014Location
Northeastern UniversitBoston, MAUnited States
