ORDER-ALGEBRAIC DEFINITION OF KNUTHIAN SEMANTICS

被引:43
作者
CHIRICA, LM [1 ]
MARTIN, DF [1 ]
机构
[1] UNIV CALIF LOS ANGELES,DEPT COMP SCI,LOS ANGELES,CA 90024
来源
MATHEMATICAL SYSTEMS THEORY | 1979年 / 13卷 / 01期
关键词
D O I
10.1007/BF01744285
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
This paper presents a formulation, within the framework of initial algebra semantics, of Knuthian semantic systems (K-systems) which contain both synthesized and inherited attributes. The approach is based on viewing the semantics of a derivation tree of a context-free grammar as a set of values, called an attribute valuation, assigned to the attributes of all its nodes. Any tree's attribute valuation which is consistent with the semantic rules of the K-system may be chosen as the semantics of that derivation tree. The set of attribute valuations of a given tree is organized as a complete partially ordered set such that the semantic rules define a continuous transformation on this set. The least fixpoint of this transformation is chosen as the semantics of a given derivation tree. The mapping from derivation trees to their least fixpoint semantics is a homomorphism between certain algebras. Thus, the semantics of a K-system is an application of the Initial Algebra Semantics Principle of Goguen and Thatcher. This formulation permits a precise definition of K-systems, and generalizes Knuth's original formulation by defining the meaning of recursive (circular) semantic specifications. The algebraic formulation of K-systems is applied to proving the equivalence of K-systems having the same underlying grammar. Such proofs may require verifying that a K-system possesses certain properties and to this end, a principle of structural induction on many-sorted algebras is formulated, justified, and applied. © 1979 Springer-Verlag New York Inc.
引用
收藏
页码:1 / 27
页数:27
相关论文
共 33 条
[1]  
BERRY DM, 1974, UCLAENG7388 U CAL CO
[2]  
Birkhoff G., 1970, J COMBINATORIAL THEO, V8, P115, DOI DOI 10.1016/S0021-9800(70)80014-X
[3]   SEMANTIC EVALUATION FROM LEFT TO RIGHT [J].
BOCHMANN, GV .
COMMUNICATIONS OF THE ACM, 1976, 19 (02) :55-62
[4]  
CHIRICA L, 1976, UCLAENG7697 U CAL CO
[5]  
CHIRICA LM, 1976, 17TH P IEEE S F COMP, P127
[6]  
CULIC K, 1969, ATTRIBUTED GRAMMARS
[7]  
DEBAKKER JW, 1971, MC24 MATH CTR REP
[8]  
DREISBACH TA, 1972, UCLAENG7289 U CAL CO
[9]  
FANG I, 1972, STANCS329 STANF U CO
[10]   INITIAL ALGEBRA SEMANTICS AND CONTINUOUS ALGEBRAS [J].
GOGUEN, JA ;
THATCHER, JW ;
WAGNER, EG ;
WRIGHT, JB .
JOURNAL OF THE ACM, 1977, 24 (01) :68-95