This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/docs/md/yap.md
Vitor Santos Costa 3e3893ceff docs
2017-05-08 18:55:34 +01:00

3.3 KiB

YAP 6-3.5 Manual

![The YAP Logo](docs/icons/yap_128x128x32.png)

NOTE: this version of YAP is still experimental, documentation may be out of date.

Introduction

This document provides User information on version 6.3.4 of YAP (Yet Another Prolog). The YAP Prolog System is a high-performance Prolog compiler developed at Universidade do Porto.

The manual is organised as follows:

  • @subpage install

  • @subpage run

  • @subpage load_files

  • @subpage builtins

  • @subpage Extensions

  • @subpage library

  • @subpage packages

  • @subpage YAPProgramming

  • @subpage fli_c_cxx

\author Vitor Santos Costa, \author Luís Damas, \author Rogério Reis \author Rúben Azevedo

© 1989-201 L. Damas, V. Santos Costa and Universidade do Porto. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.

This manual was written by Vítor Santos Costa, Luís Damas, Rogério Reis, and Rúben Azevedo. The manual is largely based on the DECsystem-10 Prolog User's Manual by D.L. Bowen, L. Byrd, F. C. N. Pereira, L. M. Pereira, and D. H. D. Warren. We have used comments from the Edinburgh Prolog library written by R. O'Keefe. Documentation from many built-ins is originally from the SWI-Prolog manual, with the gracious authorization from Jan Wielemaker. We would also like to gratefully acknowledge the contributions from Ashwin Srinivasian.

@page builtins YAP Core Built-ins

This chapter describes the core predicates that control the execution of Prolog programs, provide fundamental functionality such as termm manipulation or arithmetic, and support interaction with external resources, Many of the predicates described here have been standardised by the ISO. The standartised subset of Prolog also known as ISO-Prolog.

In the description of the arguments of predicates the following notation will be used:

  • a preceding plus sign will denote an argument as an "input argument" - it cannot be a free variable at the time of the call;
  • a preceding minus sign will denote an "output argument";
  • an argument with no preceding symbol can be used in both ways.

@page Library YAP Library

the library_directory path (set by the LIBDIR variable in the Makefile for YAP). Several files in the library are originally from the public-domain Edinburgh Prolog library.

@defgroup extensions YAP Extensions @{

@page Extensions YAP Extensions

YAP includes a number of extensions over the original Prolog language. @subpage atts

@}

@page YAPProgramming Programming in YAP

@subpage yapsyntax.md

@page packages Packages for YAP YAP includes a number of packages.

@subpage real.md

@subpage chr.md