Title Details: | |
Built-in Capabilities and Extensions of Prolog |
|
Authors: |
Stamatopoulos, Panagiotis |
Reviewer: |
Rontogiannis, Panagiotis |
Subject: | MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > PROGRAMMING LANGUAGES MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > INTELLIGENT SYSTEMS > BASIC KNOWLEDGE REPRESENTATION AND REASONING MATHEMATICS AND COMPUTER SCIENCE > COMPUTER SCIENCE > PROGRAMMING LANGUAGES > LOGIC PROGRAMMING |
Description: | |
Abstract: |
In this chapter, operators are initially examined, which are nothing more than function symbols and predicates that, once appropriately declared, can be used in a more syntactically readable way than using parentheses, which is the usual practice in Prolog. Additionally, the capabilities Prolog provides for arithmetic processing are presented through appropriate built-in predicates, arithmetic operators that are function symbols, and a built-in predicate for calculating the value of arithmetic expressions, as well as comparison operators that are predicates. There is also a reference to the cut, a built-in predicate that allows us to gain elementary control over the backtracking mechanism, as well as to negation and the way it is supported in Prolog. Finally, a series of other built-in predicates are studied, which are useful in cases where we want to perform tasks that would be very difficult or even impossible to implement directly in Prolog.
|
Type: |
Chapter |
Creation Date: | 2015 |
Item Details: | |
License: |
http://creativecommons.org/licenses/by-nc-nd/3.0/gr |
Handle | http://hdl.handle.net/11419/3591 |
Bibliographic Reference: | Stamatopoulos, P. (2015). Built-in Capabilities and Extensions of Prolog [Chapter]. In Stamatopoulos, P. 2015. Logic and Functional Programming [Undergraduate textbook]. Kallipos, Open Academic Editions. https://hdl.handle.net/11419/3591 |
Language: |
Greek |
Is Part of: |
Logic and Functional Programming |
Publication Origin: |
Kallipos, Open Academic Editions |