arXivDaily arXiv每日学术速递 周一至周五更新
arXiv cs/0203001cs.PL
收藏

面向泛型重构

Towards Generic Refactoring

Ralf Laemmel

摘要:

我们在研究程序重构时,将语言甚至编程范式作为一个参数。我们使用类型化函数程序,即Haskell程序,作为相应重构框架的规范介质。为了将我们自己从语言语法中分离出来,我们的规范遵循以下风格。(I)至于原始算法的程序分析和转换,我们采用通用功能组合支持通用遍历和多态功能的ad-hoc情况下细化。(II)对于重构所涉及的语言抽象,我们设计了一个专用的多参数类。这个类可以被实例化为各种语言中存在的抽象,例如,Java、Prolog或Haskell。

英文摘要:

We study program refactoring while considering the language or even the programming paradigm as a parameter. We use typed functional programs, namely Haskell programs, as the specification medium for a corresponding refactoring framework. In order to detach ourselves from language syntax, our specifications adhere to the following style. (I) As for primitive algorithms for program analysis and transformation, we employ generic function combinators supporting generic traversal and polymorphic functions refined by ad-hoc cases. (II) As for the language abstractions involved in refactorings, we design a dedicated multi-parameter class. This class can be instantiated for abstractions as present in various languages, e.g., Java, Prolog or Haskell.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑