Declarative language extensions for prolog courses

  • Authors:
  • Ulrich Neumerkel;Markus Triska;Jan Wielemaker

  • Affiliations:
  • Technische Universität Wien, Vienna, Austria;Technische Universität Wien, Vienna, Austria;Universiteit van Amsterdam, Amsterdam, Netherlands

  • Venue:
  • Proceedings of the 2008 international workshop on Functional and declarative programming in education
  • Year:
  • 2008

Quantified Score

Hi-index 0.01

Visualization

Abstract

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.