Skip to search boxSkip to navigationSkip to main content

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-review

Open access

Publication Information

Output type

Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-review

Original language

English

Publication milestones

  • Published - 2014

Publication status

Published - 2014

Publisher

Association for Computing Machinery, United States
978-1-4503-3284-2

Publication 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

Related Event

Title

26nd Symposium on Implementation and Application of Functional Languages

Event type

Conference

Date

01/10/2014 - 03/10/2014

Location

Northeastern UniversitBoston, MAUnited States