Attribute Krammars are an extension of contextfree 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, eomputationally intractable. Specifically, it is shown that any deterministic algorithm which solves the problem must for infinitely many eases use an exponential amount of time. An improved version of Knuth's cireularity testing algorithm is also given, which actually solves the prohlem within exponential time.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.