【24h】

An Algebraic Foundation for Adaptive Programming

机译:自适应编程的代数基础

获取原文
获取原文并翻译 | 示例

摘要

An adaptive program is an object-oriented program which is abstracted over the particular class structure. This abstraction fosters software reuse, because programmers can concentrate on specifying how to process the objects which are essential to their application. The compiler of an adaptive program takes care of actually locating the objects. The adaptive programmer merely writes a traversal specification decorated with actions. The compiler instantiates the specification with the actual class structure and generates code that traverses a collection of objects, performing visits and actions according to the specification. Previous approaches to compiling adaptive programs rely on standard methods from automata theory and graph theory to achieve their goal. We introduce a new foundation for the compilation of adaptive programs, based on the algebraic properties of traversal specifications. Exploiting these properties, we develop the underlying theory for an efficient compilation algorithm. A key result is the derivation of a normal form for traversal specifications. This normal form is the basis for directly generating a traversal automaton with a uniformly minimal number of states.
机译:自适应程序是在特定类结构上抽象的面向对象程序。这种抽象促进了软件的重用,因为程序员可以专注于指定如何处理对其应用程序必不可少的对象。自适应程序的编译器负责实际定位对象。自适应程序员仅编写一个用动作修饰的遍历规范。编译器使用实际的类结构实例化规范,并生成遍历对象集合,根据规范执行访问和操作的代码。编译自适应程序的先前方法依赖于自动机理论和图论的标准方法来实现其目标。基于遍历规范的代数性质,我们为自适应程序的编译提供了新的基础。利用这些特性,我们为有效的编译算法开发了基础理论。关键结果是派生了遍历规范的范式。此范式是直接生成状态总数最小的遍历自动机的基础。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号