Macro-by-example: Deriving syntactic transformations from their specifications
Eugene E. Kohlbecker, Mitchell Wand · ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages (POPL) · 1987
This paper presents two new developments. First, it describes a “macro-by-example” specification language for syntactic abstractions in Lisp and related languages. This specification language allows a more declarative specification of macros than conventional macro facilities do by giving a better treatment of iteration and mapping constructs. Second, it gives a formal semantics for the language and a derivation of a compiler from the semantics. This derivation is a practical application of semantics-directed compiler development methodology.
Cited by 70 works. doi:10.1145/41625.41632
Authors
References
- Revised 3 report on the algorithmic language scheme
- Hygienic macro expansion
- Syntactic extensions in the programming language LISP
- Compilers and staging transformations
- Deriving Target Code as a Representation of Continuation Semantics
- A semantic prototyping system
- Obtaining coroutines with continuations
- A closer look at export and import statements