...
首页> 外文期刊>Journal of Functional Programming >A lightweight approach to datatype-generic rewriting
【24h】

A lightweight approach to datatype-generic rewriting

机译:一种轻量级的数据类型通用重写方法

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

获取外文期刊封面封底 >>

       

摘要

Term-rewriting systems can be expressed as generic programs parameterised over the shape of the terms being rewritten. Previous implementations of generic rewriting libraries require users to either adapt the datatypes that are used to describe these terms or to specify rewrite rules as functions. These are fundamental limitations: the former implies a lot of work for the user, while the latter makes it hard if not impossible to document, test, and analyze rewrite rules. In this article, we demonstrate how to overcome these limitations by making essential use of type-indexed datatypes. Our approach is lightweight in that it is entirely expressible in Haskell with GADTs and type families and can be readily packaged for use with contemporary Haskell distributions.
机译:术语重写系统可以表示为根据要重写的术语的形状参数化的通用程序。通用重写库的先前实现要求用户要么修改用于描述这些术语的数据类型,要么将重写规则指定为函数。这些是基本限制:前者为用户带来了很多工作,而后者则使得即使不是不可能的文档,测试和分析重写规则也变得十分困难。在本文中,我们演示了如何通过基本使用类型索引数据类型来克服这些限制。我们的方法是轻量级的,因为它可以完全在Haskell中与GADT和类型家族一起表达,并且可以很容易地打包以与当代Haskell发行版一起使用。

著录项

  • 来源
    《Journal of Functional Programming》 |2010年第4期|p.375-413|共39页
  • 作者单位

    Institute for Computing and Information Sciences, Radboud University Nijmegen, P.O. Box 9010, 6500 GL Nijmegen, The Netherlands;

    rnVector Fabrics, Paradijslaan 28, 5611 KN Eindhoven, The Netherlands;

    rnVector Fabrics, Paradijslaan 28, 5611 KN Eindhoven, The Netherlands;

    rnDepartment of Information and Computing Sciences, Utrecht University, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands, School of Computer Science, Open University of the Netherlands, P.O. Box 2960, 6401 DL Heerlen, The Netherlands;

    rnSchool of Computer Science, Open University of the Netherlands, P.O. Box 2960, 6401 DL Heerlen, The Netherlands;

    rnDepartment of Information and Computing Sciences, Utrecht University, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands;

  • 收录信息 美国《科学引文索引》(SCI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号