Abstract
Programs in embedded languages contain invariants that are not automatically detected or enforced by their host language. We show how to use macros to easily implement partial evaluation of embedded interpreters in order to capture invariants encoded in embedded programs and render them explicit in the terms of their host language. We demonstrate the effectiveness of this technique in improving the results of a value flow analysis.
Original language | English |
---|---|
Pages (from-to) | 16-27 |
Number of pages | 12 |
Journal | SIGPLAN Notices (ACM Special Interest Group on Programming Languages) |
Volume | 39 |
Issue number | 9 |
DOIs | |
State | Published - Sep 2004 |
Keywords
- Embedded languages
- Macros
- Partial evaluation
- Value flow analysis