Communications of the ACM · 1975 · 119 citations · 13 references
ComputingComputer ScienceMathematicsAlgorithmsSyntaxTheory Of ComputationComputability TheoryComputational ComplexityGrammarSyntactic AnalysisSyntactic ComplexitySyntax AnalysisComplexityComplexity Of Context-free Language ProblemsComputational Complexity Of LanguagesContext-free GrammarsDecidability ProblemsExponential Time ComplexityGrammar Formalisms
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.
13
Stéphane Crépey, Olivier Guéant, David Hobson et al. · HAL (Le Centre pour la Communication Scientifique Directe) · 2011 · 10.2K citations
Semantics of context-free languages
Donald E. Knuth · Theory of Computing Systems · 1968 · 2K citations
Semantic evaluation from left to right
Gregor von Bochmann · Communications of the ACM · 1976 · 191 citations · Full text