Attribute Grammars and Mathematical Semantics
- 1 August 1981
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Computing
- Vol. 10 (3) , 503-518
- https://doi.org/10.1137/0210037
Abstract
Attribute grammars and mathematical semantics are rival language definition methods. We show that any attribute grammar G has a reformulation MS (G) within mathematical semantics. Most attribute grammars have properties that discipline the sets of equations the grammar gives to derivation trees. We list six such properties, and show that for a grammar G with one of these properties both MS (G) and the compiler for G can be simplified. Because these compiler-friendly properties are of independent interest, the paper is written in such a way that the first and last sections do not depend on the other sections.Keywords
This publication has 6 references indexed in Scilit:
- An order-algebraic definition of knuthian semanticsTheory of Computing Systems, 1979
- The Vienna Development Method: The Meta-LanguageLecture Notes in Computer Science, 1978
- The denotational semantics of programming languagesCommunications of the ACM, 1976
- The intrinsically exponential complexity of the circularity problem for attribute grammarsCommunications of the ACM, 1975
- Attributed translationsJournal of Computer and System Sciences, 1974
- Semantics of context-free languagesTheory of Computing Systems, 1968