|
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
|
P. M. Lewis , D. J. Rosenkrantz , R. E. Stearns, Attributed translations(Extended Abstract), Proceedings of the fifth annual ACM symposium on Theory of computing, p.160-171, April 30-May 02, 1973, Austin, Texas, United States
[doi> 10.1145/800125.804047]
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reinhard Wilhelm , Knut Ripken , Joachim Ciesinger , Harald Ganzinger , Walter Lahner , Rolf Nollmann, Design evaluation of the compiler generating system MUG1, Proceedings of the 2nd international conference on Software engineering, p.571-576, October 13-15, 1976, San Francisco, California, United States
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|