Logtalk 2.9.3 files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@349 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura 2002-02-08 19:57:23 +00:00
parent 6b29480d4a
commit 89b034ce45
81 changed files with 340 additions and 133 deletions

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -10,6 +10,20 @@ RELEASE NOTES
=============
2.9.3 - February 9, 2002
New current_logtalk_flag/2 and set_logtalk_flag/2 built-in predicates.
Updated documentation on new built-in predicates.
Renamed SWI-Prolog config file swi330.config to swi.config.
Renamed config file predicate lgt_default_compiler_option/2 to lgt_flag/2.
New XSL stylesheets and shell scripts to convert Logtalk XML entity
documenting files to PDF format using XSL Formating Objects.
2.9.2 - January 4, 2002
The Logtalk compiler can now print a warning when compiling source files

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -10,7 +10,9 @@ To load all objects in this example consult the birds.loader utility
file.
You will also need to also load the library/hierarchies.loader file.
Note that the *.loader files are Prolog files.
Note that the *.loader files are Prolog files. Alternatively, you may
load the library all.loader file to load all library entities.
This folder contains an example of a bird identification expert system
adopted with permission from the book "Adventure in Prolog" by Amzi! inc.

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -14,6 +14,8 @@ files).
You will also need to consult the following files in the library directory:
events.loader, types.loader, metapredicates.loader, and hierarchies.loader.
Alternatively, you may load the library all.loader file to load all library
entities.
This folder contains an example of representation and handling of
relations using events. We have instances of class brick and a binary

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1 +1,15 @@
:- object(portability). :- public(predicate/0). predicate :- compare(Result, first, second), retractall(result(Result, _)), sort([], []), consult(file). :- end_object.
:- object(portability).
:- public(predicate/0).
predicate :-
compare(Result, first, second),
retractall(result(Result, _)),
sort([], []),
consult(file).
:- end_object.

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -11,4 +11,6 @@ To load all objects in this example consult the lpa.loader utility
file.
You will also need to consult the library/hierarchies.loader file.
Note that the *.loader files are Prolog files.
Note that the *.loader files are Prolog files. Alternatively, you
may load the library/all.loader file to load all library entities.

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -9,7 +9,9 @@ To load all objects in this library consult the metapredicates.loader utility
file.
You will also need to load the library/types.loader file (note that the
*.loader files are Prolog files).
*.loader files are Prolog files). Alternatively, you may load the
library/all.loader file to load all library entities.
This example shows the use of metapredicates in Logtalk. Metapredicates are
predicates whose head contains arguments that will be called as goals in the

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -8,7 +8,9 @@ Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
To load all objects in this library consult the miscellaneous.loader utility
file (note that the *.loader files are Prolog files).
You will also need to load the library/types.loader file.
You will also need to load the library/types.loader file. Alternatively, you
may load the library/all.loader file to load all library entities.
hanoi.lgt
Towers of Hanoi example

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -15,6 +15,9 @@ files).
You will also need to consult the following files in the library directory:
events.loader, types.loader, metapredicates.loader, and hierarchies.loader.
Alternatively, you may load the library/all.loader file to load all library
entities.
You can find the original description of this example (and a solution using
SICStus Objects) at the URL:

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -14,6 +14,8 @@ files).
You will also need to consult the following files in the library directory:
events.loader, types.loader, metapredicates.loader, and hierarchies.loader.
Alternatively, you may load the library/all.loader file to load all library
entities.
In this example we have several types of polygons that can be concentric.
This is represented by a concentric binary relation ensuring that whenever

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -11,7 +11,9 @@ file.
You will also need to load the following files in the library directory:
types.loader, events.loader, metapredicates.loader, and dates.loader (note
that the *.loader files are Prolog files).
that the *.loader files are Prolog files). Alternatively, you may load the
library/all.loader file to load all library entities.
This is a very simple example of the use of events and monitors to make
profilers for an application. It's easy to modify to make it do much more.

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -10,7 +10,9 @@ To load all objects in this example consult the roots.loader utility
file (note that the *.loader files are Prolog files).
You will need to consult the following files in the library directory:
events.loader, types.loader, and hierarchies.loader.
events.loader, types.loader, and hierarchies.loader. Alternatively, you
may load the library/all.loader file to load all library entities.
This folder contains rewritten versions of some of the objects provided
with previous, 1.x versions, of the Logtalk system. They are intended to

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -11,4 +11,6 @@ To load all objects in this example consult the sicstus.loader utility
file (note that the *.loader files are Prolog files).
You will also need to load the following files in library directory:
hierarchies.loader and types.loader.
hierarchies.loader and types.loader. Alternatively, you may load the
library/all.loader file to load all library entities.

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,7 +1,7 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================

View File

@ -4,14 +4,14 @@
<html>
<head>
<title>Logtalk 2.9.2 Documentation</title>
<title>Logtalk 2.9.3 Documentation</title>
<link rel=stylesheet href="styles.css" type="text/css">
</head>
<body>
<hr />
<h1 class="center">Logtalk 2.9.2</h1>
<h1 class="center">Logtalk 2.9.3</h1>
<h3 class="center">Documentation</h3>
<p class="center">
@ -44,7 +44,7 @@ Portugal
<hr />
<p class="center">
Last updated on: December 30, 2001
Last updated on: February 9, 2002
</p>
<p class="center">
<a href="http://validator.w3.org/check/referer"><img src="vh401.gif" alt="Valid HTML 4.01!" width="88" height="31"></a>

View File

@ -54,10 +54,10 @@ forall(+callable, +callable)
<hr />
<p class="center">
<strong><a href="logtalk_load1.html">Previous</a> | <a href="logtalk_version3.html">Next</a> | <a href="../index.html">Table of Contents</a> | <a href="../../bibliography.html">Bibliography</a> | <a href="../../glossary.html">Glossary</a></strong>
<strong><a href="set_logtalk_flag2.html">Previous</a> | <a href="logtalk_version3.html">Next</a> | <a href="../index.html">Table of Contents</a> | <a href="../../bibliography.html">Bibliography</a> | <a href="../../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: October 21, 2001
Last updated on: February 9, 2002
</p>
<hr />

View File

@ -72,10 +72,10 @@ logtalk_load(+atom_list, +list)
<hr />
<p class="center">
<strong><a href="logtalk_load1.html">Previous</a> | <a href="forall2.html">Next</a> | <a href="../index.html">Table of Contents</a> | <a href="../../bibliography.html">Bibliography</a> | <a href="../../glossary.html">Glossary</a></strong>
<strong><a href="logtalk_load1.html">Previous</a> | <a href="current_logtalk_flag2.html">Next</a> | <a href="../index.html">Table of Contents</a> | <a href="../../bibliography.html">Bibliography</a> | <a href="../../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: October 22, 2001
Last updated on: February 9, 2002
</p>
<hr />

View File

@ -55,7 +55,7 @@ retractall(+callable)
<strong><a href="logtalk_version3.html">Previous</a> | <a href="../methods/parameter2.html">Next</a> | <a href="../index.html">Table of Contents</a> | <a href="../../bibliography.html">Bibliography</a> | <a href="../../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: October 21, 2001
Last updated on: February 9, 2002
</p>
<hr />

View File

@ -4,7 +4,7 @@
<html>
<head>
<title>Logtalk 2.9.2 Reference Manual</title>
<title>Logtalk 2.9.3 Reference Manual</title>
<link rel=stylesheet href="../styles.css" type="text/css">
</head>
@ -122,6 +122,11 @@
<dd><a name="logtalk_load1" href="builtins/logtalk_load1.html"><code>logtalk_load/1</code></a></dd>
<dd><a name="logtalk_load2" href="builtins/logtalk_load2.html"><code>logtalk_load/2</code></a></dd>
</dl>
<dl>
<dt>Flags</dt>
<dd><a name="current_logtalk_flag2" href="builtins/current_logtalk_flag2.html"><code>current_logtalk_flag/2</code></a></dd>
<dd><a name="set_logtalk_flag2" href="builtins/set_logtalk_flag2.html"><code>set_logtalk_flag/2</code></a></dd>
</dl>
<dl>
<dt>Others</dt>
<dd><a name="forall2" href="builtins/forall2.html"><code>forall/2</code></a></dd>
@ -183,7 +188,7 @@
<strong><a href="../userman/index.html">User manual</a> | <a href="../tutorial/index.html">Tutorial</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: November 26, 2001
Last updated on: February 9, 2002
</p>
<hr />

View File

@ -68,7 +68,7 @@ parameter(+integer, ?term)
<strong><a href="../builtins/retractall1.html">Previous</a> | <a href="self1.html">Next</a> | <a href="../index.html">Table of Contents</a> | <a href="../../bibliography.html">Bibliography</a> | <a href="../../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: October 21, 2001
Last updated on: February 9, 2002
</p>
<hr />

View File

@ -4,7 +4,7 @@
<html>
<head>
<title>Logtalk 2.9.2 Tutorial</title>
<title>Logtalk 2.9.3 Tutorial</title>
<link rel=stylesheet href="../styles.css" type="text/css">
</head>
@ -48,7 +48,7 @@
<strong><a href="../userman/index.html">User manual</a> | <a title="Consult reference manual" href="../refman/index.html">Reference manual</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: November 26, 2001
Last updated on: February 9, 2002
</p>
<hr />

View File

@ -4,7 +4,7 @@
<html>
<head>
<title>Logtalk 2.9.2 User Manual</title>
<title>Logtalk 2.9.3 User Manual</title>
<link rel=stylesheet href="../styles.css" type="text/css">
</head>
@ -198,7 +198,7 @@
<dt><a name="installing_running" href="installing.html#running">Running a Logtalk session</a></dt>
<dd><a name="installing_starting" href="installing.html#starting">Starting Logtalk</a></dd>
<dd><a name="installing_compiling" href="installing.html#compiling">Compiling and loading your programs</a></dd>
<dd><a name="installing_options" href="installing.html#options">Compiler options</a></dd>
<dd><a name="installing_options" href="installing.html#options">Compiler option flags</a></dd>
</dl>
<h4><a name="programming" href="programming.html">Programming in Logtalk</a></h4>
@ -216,7 +216,7 @@
<strong><a title="Consult reference manual" href="../refman/index.html">Reference manual</a> | <a href="../tutorial/index.html">Tutorial</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: December 30, 2001
Last updated on: February 9, 2002
</p>
<hr />

View File

@ -201,10 +201,10 @@ Both predicates expect a list of entity names (atoms) as an argument. The Logtal
If you have more than a few source files then you may want to use a loader utility file containing the calls to the <code>logtalk_load/1</code> predicate (see the description above). Consulting or compiling the loader file will then compile and load all your Logtalk entities into memory.
</p>
<h3><a class="back" title="Return to index" name="options" href="index.html#installing_options">Compiler options</a></h3>
<h3><a class="back" title="Return to index" name="options" href="index.html#installing_options">Compiler option flags</a></h3>
<p>
The <a title="Consult reference manual" href="../refman/builtins/logtalk_load1.html"><code>logtalk_load/1</code></a> and <a title="Consult reference manual" href="../refman/builtins/logtalk_compile1.html"><code>logtalk_compile/1</code></a> always use the set of default compiler options specified in the Logtalk configuration files. Although the default options cover the usual cases, you may want to use a different set of options while compiling or loading some of your Logtalk source files. This can be accomplished by using the <a title="Consult reference manual" href="../refman/builtins/logtalk_load2.html"><code>logtalk_load/2</code></a> or the <a title="Consult reference manual" href="../refman/builtins/logtalk_compile2.html"><code>logtalk_compile/2</code></a> built-in predicates. These two predicates accept a list of options affecting how a Logtalk source file is compiled and loaded:
The <a title="Consult reference manual" href="../refman/builtins/logtalk_load1.html"><code>logtalk_load/1</code></a> and <a title="Consult reference manual" href="../refman/builtins/logtalk_compile1.html"><code>logtalk_compile/1</code></a> always use the set of default compiler option flags specified in the Logtalk configuration files. Although the default options cover the usual cases, you may want to use a different set of options while compiling or loading some of your Logtalk source files. This can be accomplished by using the <a title="Consult reference manual" href="../refman/builtins/logtalk_load2.html"><code>logtalk_load/2</code></a> or the <a title="Consult reference manual" href="../refman/builtins/logtalk_compile2.html"><code>logtalk_compile/2</code></a> built-in predicates. These two predicates accept a list of options affecting how a Logtalk source file is compiled and loaded:
</p>
<pre>
| ?- logtalk_compile(Files, Options).
@ -262,12 +262,28 @@ You can use the following options:
<dd>Controls the use of the <code>initialization/1</code> directive in the Logtalk generated Prolog code. Possible option values are <code>true</code> (if the Prolog compiler supports the ISO definition of the directive) and <code>false</code> (if the Prolog compiler either does not implement the directive or if the implementation does not conform to the ISO standard).</dd>
</dl>
<p>
We may also change the default options values from the ones loaded from the config file by using the <a title="Consult reference manual" href="../refman/builtins/set_logtalk_flag2.html"><code>set_logtalk_flag/2</code></a> built-in predicate. For example:
<pre>
| ?- set_logtalk_flag(xml, off).
</pre>
</p>
<p>
The current values of the default flags can be enumerated using the <a title="Consult reference manual" href="../refman/builtins/current_logtalk_flag2.html"><code>current_logtalk_flag/2</code></a> built-in predicate:
</p>
<pre>
| ?- current_logtalk_flag(xml, Value).
Value = off
yes
</pre>
<hr />
<p class="center">
<strong><a href="configuration.html">Previous</a> | <a href="programming.html">Next</a> | <a href="index.html">Table of Contents</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: December 30, 2001
Last updated on: February 9, 2002
</p>
<hr />

View File

@ -1,25 +1,29 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.9.2
Release 2.9.3
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
This folder contains several files that enables .xml documentation files
created when compiling objects, categories, or protocols, to be viewed
in a web browser that supports the W3C standards XML, XSLT, CSS and HTML 4
or to be converted to LateX for printing.
created when compiling objects, categories, or protocols, to be converted
to PDF files, to be viewed in a web browser that supports the W3C standards
XML, XSLT, CSS and HTML 4, or to be converted to LateX for printing.
You will need to either copy your .xml files to this directory or copy
these files to the directory where the .xml files reside. The links to
the .xsl files on the .xml files and the links to the .css files in the
generated .html files assume that all files reside in the same directory.
these files to the directory where the .xml files reside.
Regarding conversion to HTML, the links to the .xsl files on the .xml
files and the links to the .css files in the generated .html files assume
that all files reside in the same directory.
The choice of the default .xsl file to use is made in the config files by
the lgt_default_compiler_option/2 predicate. You can also choose a different
.xsl file by using the xsl/1 compiler option in the logtalk_compile/2 or
logtalk_load/2 calls. The default file is lgtxml.xsl (described below).
Brief description of each file in this folder:
lgthtml.xsl
@ -37,6 +41,13 @@ lgtxml.xsl
HTML files point to related XML files.
lgtpdfa4.xsl lgtpdfus.xsl
XSLT files to generate PDF files from the .xml files (formatted either
for A4 paper or US Letter paper) using XSL Formatting Objects. Tested
with Apache Fop processor (http://xml.apache.org/fop).
texml.xsl
XSLT file to output TeXML files that can be further processed by
@ -47,9 +58,10 @@ texml.xsl
ie5.xsl
XSLT file for viewing .xml files in Microsoft Internet Explorer 5.x
(works with both Macintosh and Windows versions). The links in the
(internally generated) HTML files point to related XML files. It can
be used to browse and view the XML files directly.
(using the outdated Microsoft XML Parser; works with both Macintosh
and Windows versions). The links in the (internally generated) HTML
files point to related XML files. It can be used to browse and view
the XML files directly.
logtalk.dtd
@ -70,18 +82,36 @@ logtalk.css
in a web browser.
script.sh
html.sh
Sample unix shell script to batch convert .xml files to .html files.
Edit the file to match your environment.
Sample Unix shell script to batch convert .xml files to .html files.
Edit the script to match your environment before running it.
Requires James Clarck XT processor (http://www.jclark.com/xml/xt.html).
script.bat
html.bat
Sample dos batch script to convert .xml files to .html files.
Edit the file to match your environment.
Sample DOS batch script to convert .xml files to .html files.
Edit the script to match your environment before running it.
Requires James Clarck XT processor (http://www.jclark.com/xml/xt.html).
pdf.sh
Sample Unix shell script to batch convert .xml files to .pdf files.
Edit the script to match your environment and paper format preference
before running it.
Requires Apache FOP processor (http://xml.apache.org/fop).
pdf.bat
Sample DOS batch script to convert .xml files to .pdf files.
Edit the script to match your environment and paper format preference
before running it.
Requires Apache FOP processor (http://xml.apache.org/fop).
Note that you can write other XSLT files for converting the XML files to
other formats besides HTML or LaTeX. You can also write alternative CSS
and XSLT files to change the appearance of the HTML and LaTeX files.
other formats besides PDF, HTML, or LaTeX. You can also write alternative
CSS and XSLT files to change the appearance of the HTML and LaTeX files.

View File

@ -8,7 +8,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.9.2
% Release 2.9.3
%
% Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
%

View File

@ -14,7 +14,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.9.2
% Release 2.9.3
%
% Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
%

View File

@ -14,7 +14,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.9.2
% Release 2.9.3
%
% Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
%

View File

@ -3,7 +3,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.9.2
% Release 2.9.3
%
% Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
%

View File

@ -15,7 +15,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.9.2
% Release 2.9.3
%
% Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
%

View File

@ -12,7 +12,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.9.2
% Release 2.9.3
%
% Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
%

View File

@ -2,7 +2,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.9.2
% Release 2.9.3
%
% Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
%
@ -121,6 +121,7 @@
:- dynamic(lgt_calls_pred_/1). % lgt_calls_pred_(Functor/Arity)
:- dynamic(lgt_current_compiler_option_/2). % lgt_current_compiler_option_(Option, Value)
:- dynamic(lgt_flag_/2). % lgt_flag_(Option, Value)
:- dynamic(lgt_referenced_object_/1). % lgt_referenced_object_(Object)
:- dynamic(lgt_referenced_protocol_/1). % lgt_referenced_protocol_(Protocol)
@ -839,10 +840,17 @@ abolish_events(after, Obj, Msg, Sender, Monitor) :-
% gets/check the current value of a compiler option
lgt_compiler_option(Option, Value) :-
lgt_current_compiler_option_(Option, Value2) ->
Value = Value2
;
lgt_default_compiler_option(Option, Value).
lgt_current_compiler_option_(Option, Value2),
!,
Value = Value2.
lgt_compiler_option(Option, Value) :-
lgt_flag_(Option, Value2),
!,
Value = Value2.
lgt_compiler_option(Option, Value) :-
lgt_default_flag(Option, Value).
@ -1009,7 +1017,66 @@ logtalk_version(Major, Minor, Patch) :-
\+ integer(Patch),
throw(error(type_error(integer, Patch), logtalk_version(Major, Minor, Patch))).
logtalk_version(2, 9, 2).
logtalk_version(2, 9, 3).
% set_logtalk_flag(+atom, +nonvar)
%
% sets a Logtalk flag
set_logtalk_flag(Flag, Value) :-
var(Flag),
throw(error(instantiation_error, set_logtalk_flag(Flag, Value))).
set_logtalk_flag(Flag, Value) :-
var(Value),
throw(error(instantiation_error, set_logtalk_flag(Flag, Value))).
set_logtalk_flag(Flag, Value) :-
nonvar(Flag),
\+ atom(Flag),
throw(error(type_error(atom, Flag), set_logtalk_flag(Flag, Value))).
set_logtalk_flag(Flag, Value) :-
atom(Flag),
\+ lgt_valid_flag(Flag),
throw(error(domain_error(valid_flag, Flag), set_logtalk_flag(Flag, Value))).
set_logtalk_flag(Flag, Value) :-
\+ lgt_valid_flag(Flag, Value),
throw(error(domain_error(valid_flag_value, Value), set_logtalk_flag(Flag, Value))).
set_logtalk_flag(Flag, Value) :-
lgt_read_only_flag(Flag),
throw(error(domain_error(read_only_flag, Flag), set_logtalk_flag(Flag, Value))).
set_logtalk_flag(Flag, Value) :-
retractall(lgt_flag_(Flag, _)),
assertz(lgt_flag_(Flag, Value)).
% current_logtalk_flag(?atom, ?nonvar)
%
% tests/gets Logtalk flags
current_logtalk_flag(Flag, Value) :-
nonvar(Flag),
\+ atom(Flag),
throw(error(type_error(atom, Flag), current_logtalk_flag(Flag, Value))).
current_logtalk_flag(Flag, Value) :-
atom(Flag),
\+ lgt_valid_flag(Flag),
throw(error(domain_error(valid_flag, Flag), current_logtalk_flag(Flag, Value))).
current_logtalk_flag(Flag, Value) :-
lgt_flag_(Flag, Value).
current_logtalk_flag(Flag, Value) :-
\+ lgt_flag_(Flag, _),
lgt_default_flag(Flag, Value).
@ -2065,6 +2132,7 @@ lgt_dump_all :-
listing(lgt_defs_pred_/1),
listing(lgt_calls_pred_/1),
listing(lgt_current_compiler_option_/2),
listing(lgt_flag_/2),
listing(lgt_referenced_object_/1),
listing(lgt_referenced_protocol_/1),
listing(lgt_referenced_category_/1).
@ -5049,6 +5117,43 @@ lgt_valid_compiler_option(report(Option)) :-
% lgt_valid_flag(@nonvar)
%
% true if the argument is a valid Logtalk flag
lgt_valid_flag(iso_initialization_dir).
lgt_valid_flag(xml).
lgt_valid_flag(xsl).
lgt_valid_flag(unknown).
lgt_valid_flag(singletons).
lgt_valid_flag(misspelt).
lgt_valid_flag(lgtredef).
lgt_valid_flag(plredef).
lgt_valid_flag(portability).
lgt_valid_flag(report).
% lgt_valid_flag(@term, @term)
%
% true if the argument is a valid Logtalk flag-value pair
lgt_valid_flag(Flag, Value) :-
atom(Flag),
Option =.. [Flag, Value],
lgt_valid_compiler_option(Option).
% lgt_read_only_flag(@nonvar)
%
% true if the argument is a read only Logtalk flag
lgt_read_only_flag(_) :-
fail.
% Logtalk built-in predicates
%
% lgt_lgt_built_in(?callable)
@ -5486,6 +5591,8 @@ lgt_write_xml_close_tag(Stream, Tag) :-
%
% table of ISO defined predicates
%
% used in portability checking
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

View File

@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.9.2
% Release 2.9.3
%
% configuration file for YAP Prolog 4.3.x
%
@ -164,28 +164,28 @@ lgt_file_extension(xml, '.xml').
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% default compiler options
% default flag values
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lgt_default_compiler_option(?atom, ?atom)
% lgt_default_flag(?atom, ?atom)
%
% default values for all compiler options
% default values for all flags
lgt_default_compiler_option(iso_initialization_dir, true).
lgt_default_flag(iso_initialization_dir, true).
lgt_default_compiler_option(xml, on).
lgt_default_compiler_option(xsl, 'lgtxml.xsl').
lgt_default_flag(xml, on).
lgt_default_flag(xsl, 'lgtxml.xsl').
lgt_default_compiler_option(unknown, warning).
lgt_default_compiler_option(misspelt, warning).
lgt_default_compiler_option(singletons, warning).
lgt_default_compiler_option(lgtredef, warning).
lgt_default_compiler_option(plredef, silent).
lgt_default_compiler_option(portability, silent).
lgt_default_flag(unknown, warning).
lgt_default_flag(misspelt, warning).
lgt_default_flag(singletons, warning).
lgt_default_flag(lgtredef, warning).
lgt_default_flag(plredef, silent).
lgt_default_flag(portability, silent).
lgt_default_compiler_option(report, on).
lgt_default_flag(report, on).