计算机科学 > 程序设计语言
[提交于 2021年8月14日]
标题:Data Type Inference for Logic Programming
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In this paper we present a new static data type inference algorithm for logic programming. Without the need of declaring types for predicates, our algorithm is able to automatically assign types to predicates which, in most cases, correspond to the data types processed by their intended meaning. The algorithm is also able to infer types given data type definitions similar to data definitions in Haskell and, in this case, the inferred types are more informative in general. We present the type inference algorithm, prove some properties and finally, we evaluate our approach on example programs that deal with different data structures.
提交历史
来自:Joao Barbosa[v1] 2021年8月14日 星期六 15:26:20 UTC