The intrinsically exponential complexity of the circularity problem for attribute grammars
- 1 December 1975
- journal article
- Published by Association for Computing Machinery (ACM) in Communications of the ACM
- Vol. 18 (12), 697-706
- https://doi.org/10.1145/361227.361231
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.Keywords
This publication has 8 references indexed in Scilit:
- Semantic evaluation from left to rightCommunications of the ACM, 1976
- Correctness-preserving program transformationsPublished by Association for Computing Machinery (ACM) ,1975
- Semantic attributes and improvement of generated codePublished by Association for Computing Machinery (ACM) ,1974
- Attributed translations(Extended Abstract)Published by Association for Computing Machinery (ACM) ,1973
- Translations on a context free grammarInformation and Control, 1971
- Characterizations of Pushdown Machines in Terms of Time-Bounded ComputersJournal of the ACM, 1971
- Writing pushdown acceptorsJournal of Computer and System Sciences, 1969
- Semantics of context-free languagesTheory of Computing Systems, 1968