首页> 外文会议>International Symposium on Trends in Functional Programming >Lightweight Higher-Order Rewriting in Haskell
【24h】

Lightweight Higher-Order Rewriting in Haskell

机译:Haskell的轻量级高阶重写

获取原文

摘要

We present a generic Haskell library for expressing rewrite rules with a safe treatment of variables and binders. Both sides of the rules are written as typed EDSL expressions, which leads to syntactically appealing rules and hides the underlying term representation. Matching is defined as an instance of Miller's higher-order pattern unification and has the same complexity as first-order matching. The restrictions of pattern unification are captured in the types of the library, and we show by example that the library is capable of expressing useful simplifications that might be used in a compiler.
机译:我们呈现了一个通用的Haskell库,用于表达重写规则,安全处理变量和粘合剂。规则的双方都作为键入的EDSL表达式写入,这导致了句法上诉规则,并隐藏了基本术语代表性。匹配被定义为米勒的高阶模式统一的实例,并且具有与一阶匹配相同的复杂性。模式统一的限制在库的类型中捕获,并且我们通过示例显示库能够表达在编译器中使用的有用简化。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号