咨询与建议

看过本文的还看了

相关文献

该作者的其他文献

文献详情 >Reporting Failures in Function... 收藏

Reporting Failures in Functional Logic Programs

在功能逻辑程序的报导失败

作     者:Hanus, Michael 

作者机构:Univ Kiel Inst Informat D-24098 Kiel Germany 

出 版 物:《ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE》 (理论计算机科学电子札记)

年 卷 期:2007年第177卷第1期

页      面:59-73页

核心收录:

学科分类:08[工学] 0812[工学-计算机科学与技术(可授工学、理学学位)] 

基  金:German Research Council (DFG) [Ha 2457/5-1] 

主  题:Functional logic programming debugging implementation 

摘      要:Computing with failures is a typical programming technique in functional logic programs. However, there are also situations where a program should not fail (e.g., in a deterministic top-level computation) but the evaluation fails accidentally, e.g., due to missing pattern combinations in an operation defined by pattern matching. In this case, the programmer is interested in the context of the failed program point in order to analyze the reason of the failure. Therefore, this paper discusses techniques for reporting failures and proposes a new one that has been integrated in a Prolog-based compiler for the declarative multi-paradigm language Curry. Our new technique supports separate compilation of modules, i.e., the compilation of modules has not taken into account whether failures should be reported or not. The failure reporting is only considered in some linking code for modules. In contrast to previous approaches, the execution of programs in the failure reporting mode causes only a small overhead so that it can be also used in larger applications.

读者评论 与其他读者分享你的观点

用户名:未登录
我的评分