Conditional Attribute Grammars

15Citations
Citations of this article
12Readers
Mendeley users who have this article in their library.

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, an 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.

Cite

CITATION STYLE

APA

Boyland, J. T. (1996). Conditional Attribute Grammars. ACM Transactions on Programming Languages and Systems, 18(1), 73–108. https://doi.org/10.1145/225540.225544

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free