|
ABSTRACT
Syntactic abbreviations or macros provide a powerful tool to increase the syntactic expressiveness of programming languages. The expansion of these abbreviations can be modeled with substitutions. This paper presents an operational semantics of macro expansions and evaluation where substitutions are handled explicitly. The semantics is defined in terms of a confluent, simple, and intuitive set of rewriting rules. The resulting semantics is also a basis for developing correct implementations.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
 |
1
|
|
| |
2
|
M. Abadi, L. Cardelli, P.L. Curien, and J.J. L~vy. Explicit Substitutions. Technical Report SRC 54, Digital Equipment Corporation, Palo Alto, California, 1990.
|
| |
3
|
H. Barendregt. The Lambda Calculus, Its Syntax and Semantics. North-Holland, Amsterdam, 1981.
|
| |
4
|
A. Bore and L. Arbilla. A Confluent calculus of macro expansion and evaluation. Technical Report INCO-91-01, Instituto de Computaci6n, Universidad de la Repfiblica, Montevideo, Uruguay, 1991.
|
| |
5
|
N. De Bruijn. Lambda-calculus Notation with Nameless Dummies, a Tool for Automatic Formula Manipulation. Indag. Mat., 34:381-392, 1972.
|
 |
6
|
|
 |
7
|
|
| |
8
|
|
| |
9
|
T. Griffin. Notational definition - A formal account. In Proc. Syrup. Logic in Computer Science, pages 372-383, 1988.
|
| |
10
|
|
| |
11
|
T. Hardin and J.J. L6vy. A Confluent Calculus of Substitutions. In Japan Artificial Intelligence and Computer Science Symposium, Izu, December 1989.
|
| |
12
|
|
 |
13
|
|
| |
14
|
G. Huet and D. C. Oppen. Equations and Rewrite Rules: A Survey. In R. V. Book, editor, Formal Language Theory: Perspectives and Open Problems. Academic Press, 1980.
|
| |
15
|
|
| |
16
|
|
 |
17
|
Eugene Kohlbecker , Daniel P. Friedman , Matthias Felleisen , Bruce Duba, Hygienic macro expansion, Proceedings of the 1986 ACM conference on LISP and functional programming, p.151-161, August 1986, Cambridge, Massachusetts, United States
[doi> 10.1145/319838.319859]
|
 |
18
|
|
 |
19
|
|
 |
20
|
|
|