ACM Home Page
Please provide us with feedback. Feedback
The intrinsically exponential complexity of the circularity problem for attribute grammars
Full text PdfPdf (888 KB)
Source
Communications of the ACM archive
Volume 18 ,  Issue 12  (December 1975) table of contents
Pages: 697 - 706  
Year of Publication: 1975
ISSN:0001-0782
Authors
Mehdi Jazayeri  Univ. of North Carolina, Chapel Hill
William F. Ogden  Case Western Reserve Univ., Cleveland, OH
William C. Rounds  Univ. of Michigan, Ann Arbor
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 20,   Citation Count: 33
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/361227.361231
What is a DOI?

ABSTRACT

Attribute grammars are an extension of context-free grammars devised by Knuth as a mechanism for including the semantics of a context-free language with the syntax of the language. The circularity problem for a grammar is to determine whether the semantics for all possible sentences (programs) in fact will be well defined. It is proved that this problem is, in general, computationally intractable. Specifically, it is shown that any deterministic algorithm which solves the problem must for infinitely many cases use an exponential amount of time. An improved version of Knuth's circularity testing algorithm is also given, which actually solves the problem within exponential time.


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
 
3
Aho, A.V., and Ullman, J.D. Translations on a context-free grammar. Inform. Contr. 19, 5 (Dec. 1971), 439-475.
4
5
 
6
Dreisbach, T.W. A declarative semantic definition of PL360. UCLA-ENG-7289, Computer Languages Group, Computer Sci. Dep., UCLA, 1972.
7
 
8
 
9
 
10
Knuth, D.E. Examples of formal semantics. Symposium on Semantics of Algorithmic Languages, Lecture Notes in Mathematics, Vol. 188, Springer-Verlag, New York, 1971.
 
11
Knuth, D.E. Semantics of context free languages. Math. Syst. Th. 2 (1968), pp. 127-145; correction to article in Math. Syst. Th. 5 (1971), p. 95.
12
 
13
Mager, G. Writing pushdown acceptors. J. Comp. Syst. Sci. 3 (1969), 276-318.
 
14
15
 
16
Petrick, S.R. Semantic interpretation in the REQUEST system. IBM Res. Rep. RC 4457, July, 1973.
 
17
Wilner, W.T. Declarative semantic definition. Rep. STAN- CS-233-71, Computer Sci. Dep., Stanford U., 1971.
 
18
Wilner, W.T. Formal semantic definition using synthesized and inherited attributes. In Formal Semantics of Programming Languages, Courant Computer Science Symposium 2, R. Rustin (Ed.), Prentice-Hall, Englewood Cliffs, N.J., 1972.

CITED BY  33

Collaborative Colleagues:
Mehdi Jazayeri: colleagues
William F. Ogden: colleagues
William C. Rounds: colleagues