Affiliation:
1. Univ. of California, Berkeley
Abstract
Attribute grammars are a useful formalism for the specification of computations on structured terms. The classical definition of attribute grammars, however, has no way of treating conditionals nonstrictly. Consequently, the natural way of expressing many otherwise well-behaved computations involves a circularity. This article presents
conditional attribute grammars
, and extension of attribute grammars that enables more precise analysis of conditionals. In conditional attribute grammars, attribute equations may have guards. Equations are active only when their guards are satisfied. The standard attribute grammar evaluation classes are definable for conditional attribute grammars, and the corresponding evaluation techniques can be easily adapted. However, determining membership in standard evaluation classes such as 1-SWEEP, OAG, and SNC is NP-hard.
Publisher
Association for Computing Machinery (ACM)
Reference21 articles.
1. Semantic evaluation from left to right
2. Attribute grammars and recursive program schemes;COUR ELLE;Theor. Comp. Sci.,1982
3. Lecture Notes in Computer Science;DERANSART P.,1988
Cited by
13 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献