ACM Home Page
Please provide us with feedback. Feedback
Automatic generation of efficient evaluators for attribute grammars
Full text PdfPdf (1.46 MB)
Source Annual Symposium on Principles of Programming Languages archive
Proceedings of the 3rd ACM SIGACT-SIGPLAN symposium on Principles on programming languages table of contents
Atlanta, Georgia
Pages: 32 - 49  
Year of Publication: 1976
Authors
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 6,   Downloads (12 Months): 32,   Citation Count: 48
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/800168.811538
What is a DOI?

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

Collaborative Colleagues:
Ken Kennedy: colleagues
Scott K. Warren: colleagues