Loading...
Please wait, while we are loading the content...
Similar Documents
Decorated attribute grammars. Attribute evaluation meets strategic programming (2008).
| Content Provider | CiteSeerX |
|---|---|
| Author | Kats, Lennart C. L. Sloane, Anthony M. Visser, Eelco |
| Abstract | Attribute grammars are a powerful specification formalism for tree-based computation, particularly for software language processing. Various extensions have been proposed to abstract over common patterns in attribute grammar specifications. These include various forms of copy rules to support non-local dependencies, collection attributes, and expressing dependencies that are evaluated to a fixed point. Rather than implementing extensions natively in an attribute evaluator, we propose attribute decorators that describe an abstract evaluation mechanism for attributes, making it possible to provide such extensions as part of a library of decorators. Inspired by strategic programming, they are specified using generic traversal operators. To demonstrate their effectiveness, we describe how to employ decorators in name, type, and flow analysis. |
| File Format | |
| Publisher Date | 2008-01-01 |
| Access Restriction | Open |
| Content Type | Text |