Type systems as macros

2Citations
Citations of this article
52Readers
Mendeley users who have this article in their library.
Get full text

Abstract

We present Turnstile, a metalanguage for creating typed embedded languages. To implement the type system, programmers write type checking rules resembling traditional judgment syntax. To implement the semantics, they incorporate elaborations into these rules. Turnstile critically depends on the idea of linguistic reuse. It exploits a macro system in a novel way to simultaneously type check and rewrite a surface program into a target language. Reusing a macro system also yields modular implementations whose rules may be mixed and matched to create other languages. Combined with typical compiler and runtime reuse, Turnstile produces performant typed embedded languages with little effort.

Cite

CITATION STYLE

APA

Chang, S., Knauth, A., & Greenman, B. (2017). Type systems as macros. ACM SIGPLAN Notices, 52(1), 694–705. https://doi.org/10.1145/3009837.3009886

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free