ACM SIGPLAN Notices · 1984 · 40 citations · 14 references
ComputingComputer ScienceCompilersProgramming LanguagesSyntaxCompiler ConstructionGrammarSpecification LanguagesSyntactic AnalysisSyntax AnalysisSyntax-directed TranslationAbstract Syntax Tree RepresentationCompiler DesignCompiler SupportGrammar FormalismsSyntactic DerivationTree Grammars
In this paper, attribute grammars are viewed as specifying translations from source language terms into target language terms. The terms are constructed over a hierarchical signature consisting of a semantic and a syntactic part. Attribute grammars are redefined to become morphisms in the category of such signatures, called attribute coupled grammars, such that they come with an associative composition operation. The composition allows for a new kind of modularity in compiler specifications. The paper also discusses properties of the concept with respect to attribute evaluation and application as a tree transformation device.
14
Semantics of context-free languages
Donald E. Knuth · Theory of Computing Systems · 1968 · 2K citations
Uwe Kastens · Acta Informatica · 1980 · 256 citations
A new method for compiler code generation
R. Steven Glanville, Susan L. Graham · 1978 · 177 citations