Strategic Tree Rewriting in Attribute Grammars
Mon 16 Nov 2020 06:00 - 06:20 at SPLASH-III - Chair(s): Friedrich Steimann
This paper presents strategy attributes, a seamless integration of strategic term rewriting into attribute grammars. Strategy attributes are specified using rewrite rules with strategies that control their application. The rules can reference contextual information held in attributes on the trees being rewritten. This use of attributes leads to rewriting on decorated trees instead of undecorated terms. During rewriting, attributes are (lazily) computed on new trees to ensure they are correct with respect to their defining equations. Attributes and strategic rewriting can each be used where most appropriate, thus avoiding the cumbersome aspects of each.
Strategy attributes are essentially higher-order attributes for which the defining equations are automatically generated from the attributes' strategy expressions. They are thus compatible with other attribute grammar features such as reference attributes, forwarding, and attribute flow analyses for well-definedness. A conservative static analysis checks if a strategy is intended to always succeed or to be partial, thus simplifying its use and optimizing its translation. Strategy attributes are demonstrated in the optimization of a simple expression language, evaluation of the lambda calculus, and optimization of strategy attribute translations.
Sun 15 NovDisplayed time zone: Central Time (US & Canada) change
17:00 - 18:20 | |||
17:00 20mTalk | VarSem: Declarative Expression and Automated Inference of Variable Usage Semantics GPCE Link to publication DOI Media Attached | ||
17:20 20mTalk | Monadification of Attribute Grammars SLE Link to publication DOI Pre-print Media Attached | ||
17:40 20mTalk | Fluid Quotes: Metaprogramming across Abstraction Boundaries with Dependent Types GPCE Shadaj Laddad University of California at Berkeley, Koushik Sen University of California at Berkeley Link to publication DOI Pre-print Media Attached | ||
18:00 20mTalk | Strategic Tree Rewriting in Attribute Grammars SLE Link to publication DOI Pre-print Media Attached |
Mon 16 NovDisplayed time zone: Central Time (US & Canada) change
05:00 - 06:20 | |||
05:00 20mTalk | VarSem: Declarative Expression and Automated Inference of Variable Usage Semantics GPCE Link to publication DOI Media Attached | ||
05:20 20mTalk | Monadification of Attribute Grammars SLE Link to publication DOI Pre-print Media Attached | ||
05:40 20mTalk | Fluid Quotes: Metaprogramming across Abstraction Boundaries with Dependent Types GPCE Shadaj Laddad University of California at Berkeley, Koushik Sen University of California at Berkeley Link to publication DOI Pre-print Media Attached | ||
06:00 20mTalk | Strategic Tree Rewriting in Attribute Grammars SLE Link to publication DOI Pre-print Media Attached |