Type-Directed Elaboration of Quasiquotations
Author:
Open Access
- 1 October 2014
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-9
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.Keywords
Funding Information
- Danish National Advanced Technology Foundation (017-2010-3)
This publication has 9 references indexed in Scilit:
- Engineering Proof by Reflection in Agda2013
- Mtac2013
- Idris, a general-purpose dependently typed programming language: Design and implementationJournal of Functional Programming, 2013
- Scala macros: let our powers combine!2013
- Why it's nice to be quoted2007
- Leveraging .NET meta-programming components from F#2006
- A Tactic Language for the System Coq2002
- MetaML and multi-stage programming with explicit annotationsTheoretical Computer Science, 2000
- Cayenne—a language with dependent types1998