Declarative Language Extensions for Prolog Courses

被引:0
作者
Neumerkel, Ulrich [1 ]
Triska, Markus [1 ]
Wielemaker, Jan
机构
[1] Vienna Univ Technol, Vienna, Austria
来源
FDPE'08: PROCEEDINGS OF THE 2008 ACM SIGPLAN WORKSHOP ON FUNCTIONAL AND DECLARATIVE PROGRAMMING IN EDUCATION | 2008年
关键词
Teaching Prolog; side-effect free I/O; occurs-check; constraints;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper we present several extensions to support a more declarative view of programming in Prolog. These extensions enable introductory Prolog courses to concentrate on the pure parts of Prolog for longer periods than without. Even quite complex programs can now be written free of any reference to the more problematic constructs. Our extensions include an alternate way to handle the occurs-check, efficient side-effect free I/O with DCGs, and a uniform approach to integer arithmetic that overcomes the disadvantages of arithmetical evaluation and finite domain constraints, but combines and amplifies their strengths. All extensions have been included recently into the SWI-Prolog distribution(1).
引用
收藏
页码:73 / 77
页数:5
相关论文
共 25 条
  • [1] APT K, 1992, LNCS, V631
  • [2] Barendsen E., 1993, LNCS, V761
  • [3] CARLSSON M, 1997, OPEN ENDED FINITE DO
  • [4] Colmerauer A., 1982, PROLOG INFINITE TREE
  • [5] DERANSART P, 1990, SC22WG17N59 ISOIEC J
  • [6] DERANSART P, 1991, NSTO PROGRAMS
  • [7] Hudak P., 2007, HIST HASKELL BEING L
  • [8] *ISO IEC, 132111 ISOIEC 1
  • [9] MESNARD F, 2001, LNCS, V2126
  • [10] MICHALEWICZ Z, 1998, MODERN HEURISTICS