Program Transformation with Scoped Dynamic Rewrite Rules

Philosophical Explorations(2006)

引用 127|浏览17
暂无评分
摘要
The applicability of term rewriting to program transformation is limited by the lack of control over rule application and by the context-free nature of rewrite rules. The first problem is addressed by languages supporting user-definable rewriting strategies. The second problem is addressed by the extension of rewriting strategies with scoped dynamic rewrite rules. Dynamic rules are defined at run-time and can access variables available from their definition context. Rules defined within a rule scope are automatically retracted at the end of that scope. In this paper, we explore the design space of dynamic rules, and their application to transformation problems. The technique is formally defined by extending the operational semantics underlying the program transformation language Stratego, and illustrated by means of several program transformations in Stratego, including constant propagation, bound variable renaming, dead code elimination, function inlining, and function specialization.
更多
查看译文
关键词
scoped dynamic rewrite rules,program transformation language stratego,constant propagation,function specialization,scoped dynamic,program transformation,function inlining,rule scope,transformation problem,dynamic rule,rule application,mathematics,operational semantics
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要