计算机科学 > 程序设计语言
[提交于 2019年8月29日]
标题:ICurry
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:FlatCurry is a well-established intermediate representation of Curry programs used in compilers that translate Curry code into Prolog and Haskell code. Some FlatCurry constructs have no direct translation into imperative code. These constructs must be each handled differently when translating Curry code into C, C++ and Python code. We introduce a new representation of Curry programs, called ICurry, and derive a translation from all FlatCurry constructs into ICurry. We present the syntax of ICurry and the translation from FlatCurry to ICurry. We present a model of functional logic computations as graph rewriting, show how this model can be implemented in a low-level imperative language, and describe the translation from ICurry to this model.
提交历史
来自:Michael Hanus[v1] 2019年8月29日 星期四 08:47:52 UTC