【24h】

Using types as approximations for type checking prolog programs

机译:使用类型作为近似来检查类型Prolog程序

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

摘要

Subtyping tends to undermine the effects of parametric poly-morphism as far as the static detection of type errors is concerned. Starting with this observation we present a new approach for type checking logic programs to overcome these difficulties. The two basic ideas are, first, to interpret a predicate type declaration as an approximation for the success set of the predicate. Second, declarations are extended with type constraints such that they can be more refined than in other conventional type systems. The type system has been implemented in a system called Typical which provides a type checker for Standard Prolog enriched with type annotations.
机译:就类型错误的静态检测而言,子类型化往往会破坏参数多态性的影响。从这一观察开始,我们提出了一种用于类型检查逻辑程序的新方法,以克服这些困难。这两个基本思想是,首先,将谓词类型声明解释为谓词成功集的近似值。其次,声明使用类型约束进行了扩展,这样它们可以比其他常规类型系统更完善。类型系统已在称为Typical的系统中实现,该系统为标准Prolog提供了类型检查器,该检查器具有丰富的类型注释。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号