Higher order attribute grammars
Higher order attribute grammars
复制标题
高阶属性语法
DOI:
--
复制
发表时间:
1989
期刊:
影响因子:
--
通讯作者:
M. Kuiper
中科院分区:
文献类型:
--
作者:
H. Vogt;S. Swierstra;M. Kuiper
A new kind of attribute grammars, called higher order attribute grammars, is defined. In higher order attribute grammars the structure tree can be expanded as a result of attribute computation. A structure tree may be stored in an attribute. The term higher order is used because of the analogy with higher order functions, where a function can be the result or parameter of another function. A relatively simple method, using OAGs, is described to derive an evaluation order on the defining attribute occurrences which comprises all possible direct and indirect attribute dependencies. As in OAGs, visit-sequences are computed from which an efficient algorithm for attribute evaluation can be derived.