|
ABSTRACT
The translation process may be divided into a syntactic phase and a semantic phase. Context-free grammars can be used to describe the set of syntactically correct source texts in a formal yet intuitively appealing way, and many techniques are now known for automatically constructing parsers from given CF grammars. Knuth's attribute grammars offer the prospect of similarly automating the implementation of the semantic phase. An attribute grammar is an ordinary CF grammar extended to specify the “meaning” of each string in the language. Each grammar symbol has an associated set of “attributes:”, and each production rule is provided with corresponding semantic rules expressing the relationships between the attributes of symbols in the production. To find the meaning of a string, first we find its parse tree and then we determine the values of all the attributes of symbols in the tree.
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
|
Aho, A.V. Indexed grammars—an extension of context-free grammars. IEEE Conf. Record of 8th Annual Symp. on Switching and Automata Theory. Austin, Texas, October, 1967.
|
| |
2
|
Aho, A.V. and Ullman, J.D. Properties of syntax-directed translations. J. Computer Systems Sci. v.3, pp. 319-334 (1965).
|
| |
3
|
|
| |
4
|
Bochmann, G.V. Semantics evaluated from left to right. Publ. No. 135, Departemente d'Informatique, Universite de Montreal (June 1973).
|
| |
5
|
Bochmann, G.V. Semantic equivalence of syntactically related attribute grammars. Publ. No. 148, Departemente d'Informatique, Universite de Montreal (November 1973).
|
| |
6
|
Culik, K. Attributed grammars and languages. Publ. No. 3, Departemente d'Informatique, University de Montreal (May 1969).
|
| |
7
|
Dreisbach, T.A. A declarative semantic definition of PL360. UCLA-ENG-7289, Computer Science Department, UCLA (October 1972).
|
| |
8
|
Fang, I. FOLDS, a declarative formal language definition system. STAN-72-329, Comp. Sci. Dept., Stanford Univ. (December 1972).
|
| |
9
|
Greibach, S. and Hopcroft, J. Scattered context grammars. Scientific Report, System Development Corp., Santa Monica, California (1967).
|
| |
10
|
Irons, E.T. Towards more versatile mechanical translators. Proc. Symp. on Applied Math., v.15, pp. 41-50 (1963).
|
| |
11
|
|
| |
12
|
Jazayeri, M. Live variable analysis, attribute grammars, and program optimization, draft. Dept. of Comp. Sci., Univ. of N. Carolina, Chapel Hill, N.C. (March 1975).
|
| |
13
|
Knuth, D.E. Semantics of context-free languages. Math. Systems Theory J., v.2, pp. 127-145 (1968).
|
| |
14
|
Knuth, D.E. Semantics of context-free languages: Correction. Math. Systems Theory J., v.5, p.95 (1971).
|
| |
15
|
|
 |
16
|
|
 |
17
|
|
 |
18
|
|
| |
19
|
Stearns, R.E. and Lewis, P.M. Property grammars and table machines. Information and Control v.14, pp. 524-549 (1969)
|
| |
20
|
van Wijngaarden, A. et. al. Report on the Algorithmic Language ALGOL 68. Numerische Mathematik v.14, pp. 79-218 (1969).
|
| |
21
|
Warren, S.K. The efficient evaluation of attribute grammars. M.A. Thesis, Dept. of Math. Sci., Rice University, Houston, Texas (April 1975).
|
| |
22
|
|
| |
23
|
Wilner, W.T. Formal semantic definition using synthesized and inherited attributes.Formal Semantics of Programming Languages (Rustin, ed.), Prentice-Hall (1972).
|
CITED BY 48
|
|
|
|
|
|
|
|
|
|
|
|
|
|
S. Sagiv , O. Edelstein , N. Francez , M. Rodeh, Resolving circularity in attribute grammars with applications to data flow analysis (preliminary version), Proceedings of the 16th ACM SIGPLAN-SIGACT symposium on Principles of programming languages, p.36-48, January 11-13, 1989, Austin, Texas, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
R. Farrow , T. J. Marlowe , D. M. Yellin, Composable attribute grammars: support for modularity in translator design and implementation, Proceedings of the 19th ACM SIGPLAN-SIGACT symposium on Principles of programming languages, p.223-234, January 19-22, 1992, Albuquerque, New Mexico, United States
|
|
|
Karen A. Lemone , Mary Ann A. O'Connor , Jeffrey J. McConnell , Joc Wisnewski, Implementing semantics of object oriented languages using attribute grammars, Proceedings of the 19th annual conference on Computer Science, p.190-202, April 1991, San Antonio, Texas, United States
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|