Logtalk 2.22.0 files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1191 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura
2004-11-29 20:36:31 +00:00
parent 2feba3d528
commit d6bbeaa734
165 changed files with 1120 additions and 861 deletions

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -11,12 +11,13 @@ description of each example is included below.
Each example folder contains a NOTES file and a loader helper file which
may be used to load all the example entities. In addition, most examples
contain a SCRIPT file with sample queries for your to try.
contain a SCRIPT file with instructions on how to load the example and
sample queries for your to try.
Most of these examples need objects, protocols, and categories which are
defined in the Logtalk standard library or in other examples, so you
should load them first (see the NOTES files inside the library folder and
the NOTES file inside each example folder).
defined in the Logtalk standard library or in other examples. See the NOTES
files inside the library folder and the NOTES and SCRIPT files inside each
example folder).
Some examples may redefine objects already loaded from other examples.
You may want to restart Logtalk after trying each example.

View File

@@ -1,18 +1,13 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
or, in alternative, compile and load the example metafile:
| ?- logtalk_load(aliases).
To load this example and for sample queries, please see the SCRIPT
file.
For a description of this example, please see the comments in the
aliases.mlgt metafile.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(aliases(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
If your Prolog compiler does not support a module system, then edit the
loader.lgt file and comment out the directive that loads the module code.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(benchmarks(loader)).
...

View File

@@ -1,19 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will also need to also load the library/hierarchies_loader file.
Alternatively, you may load the library loader file to load all
library entities.
To load this example and for sample queries, please see the SCRIPT file.
This folder contains an example of a bird identification expert system
adopted with permission from the book "Adventure in Prolog" by Amzi! inc.
@@ -63,5 +56,3 @@ order
swan
trumpeter_swan
whistling_swan

View File

@@ -1,14 +1,21 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library support files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load(library(hierarchies_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(birds(loader)).
...

View File

@@ -1,16 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will need to load the objects in the roots and relations examples.
To load this example and for sample queries, please see the SCRIPT file.
You will also need to load the following files in the library directory:
events_loader, types_loader, metapredicates_loader, and hierarchies_loader.

View File

@@ -1,14 +1,27 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library and support example files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load(library(all_loader)).
...
| ?- logtalk_load(roots(loader)).
...
| ?- logtalk_load(relations(loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(bricks(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This folder contains an example that shows how to implement class variables
as defined in Smalltalk. The name shared instance variables is however much

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(classvars(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This folder contains the following examples of using DCGs inside
objects and categories:

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(dcgs(loader)).
...

View File

@@ -1,11 +1,14 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load this example and for sample queries, please see the SCRIPT
file.
This example illustrates some variants of the "diamond problem"
(multi-inheritance conflicts and ambiguities) and its respective
solutions on Logtalk.
@@ -45,12 +48,3 @@ using prototype hierarchies:
diamond3
presents a solution which allows both inherited definitions to be
used in D
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load only a specific variant, compile and load the respective metafile.
For example:
| ?- logtalk_load(diamond2).

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(diamonds(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This folder contains examples of using some of the built-in database
handling methods. Two hierarchies are provided, one prototype-based,

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(dynpred(loader)).
...

View File

@@ -1,18 +1,13 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
or, in alternative, compile and load the example metafile:
| ?- logtalk_load(engines).
To load this example and for sample queries, please see the SCRIPT
file.
For a description of this example, please see the comments in the
engines.mlgt metafile.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(engines(loader)).
...

View File

@@ -1,17 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
The entities on this example are divided in two sets. To load the two
sets of entities, compile and load the corresponding loader files:
| ?- logtalk_load(warnings_loader).
| ?- logtalk_load(errors_loader).
To load this example, please see the SCRIPT file.
This folder contains examples of objects, categories, and protocols
containing errors that will trigger Logtalk compiler warnings and

View File

@@ -1,10 +1,13 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load this example and for sample queries, please see the SCRIPT
file.
No self-respected programming language could do without a "Hello
World" example!

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,5 +8,5 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% just load the example and check the output message:
| ?- logtalk_load(loader).
| ?- logtalk_load(hello_world(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This folder contains examples of public, protected, and private inheritance,
for both prototype-based and class-based hierarchies.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(inheritance(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This folder contains an example of instance defined methods. When using
classes and instances, methods must be declared in a class but the method

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(instmethods(loader)).
...

View File

@@ -1,10 +1,11 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
The examples in this folder are adopted from the Logic&Objects system
by Francis G. McCabe. Detailed descriptions and the original source code
can be found on the book "Logic and Objects" by the author published by

View File

@@ -1,12 +1,10 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT
file.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(lo_planner(loader)).
...

View File

@@ -1,11 +1,10 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT
file.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(lo_travellers(loader)).
...

View File

@@ -1,14 +1,13 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT
file.
This folder contains an object which implements a translator from
logic propositions to a set of clauses in conjunctive normal form.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(logic(loader)).
...

View File

@@ -1,18 +1,13 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will also need to load the library file hierarchies_loader.
Alternatively, you may load the library all_loader file to load all
library entities.
To load this example and for sample queries, please see the SCRIPT
file.
This example is an adaptation of a LPA Prolog++ example that is
described in the LPA Prolog++ Reference Manual. This manual can

View File

@@ -1,14 +1,21 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library support files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load(library(hierarchies_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(lpa(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This example contains simple meta-interpreters for pure Prolog encapsulated
in Logtalk objects:
@@ -17,8 +15,9 @@ in Logtalk objects:
simple meta-interpreter for pure Prolog
proof_tree
simple meta-interpreter for pure Prolog returning the proof tree
for successful queries
simple meta-interpreter for pure Prolog returning the proof
tree for successful queries
tracer
simple meta-interpreter for pure Prolog that traces proof construction
simple meta-interpreter for pure Prolog that traces proof
construction

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(metainterpreters(loader)).
...

View File

@@ -1,17 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
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.
To load this example and for sample queries, please see the SCRIPT file.
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,14 +1,21 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library support files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load(library(types_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(metapredicates(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
There are two examples in this folder. The first one is an adoption of a
multi-inheritance C++ example found on the D. M. Capper book "Introducing

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(mi(loader)).
...

View File

@@ -1,17 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
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.
To load this example and for sample queries, please see the SCRIPT file.
hanoi.lgt
Towers of Hanoi example

View File

@@ -1,14 +1,21 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library support files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load(library(types_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(miscellaneous(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
If you need more than one message recorder, just create a new prototype
as an extension of the object msglog.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(msglog(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This folder contains examples of the used of operators inside objects
and categories:

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(operators(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This folder contains two examples of parametric objects dealing with
time and date values.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(parametric(loader)).
...

View File

@@ -1,26 +1,17 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will need to load the objects in the roots and relations examples.
You will also need to load 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.
To load this example and for sample queries, please see the SCRIPT file.
You can find the original description of this example (and a solution using
SICStus Objects) at the URL:
http://www.sics.se/ps/sicstus/sicstus_32.html#SEC254
http://www.sics.se/ps/sicstus/sicstus_32.html#SEC254
Suppose you wish to represent points in a two-dimensional space. The
protocol you will have to define consists on the operation move/2, which

View File

@@ -1,14 +1,27 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library and support example files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load([library(events_loader), library(types_loader), library(metapredicates_loader), library(hierarchies_loader)]).
...
| ?- logtalk_load(roots(loader)).
...
| ?- logtalk_load(relations(loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(points(loader)).
...

View File

@@ -1,21 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will need to load the objects in the roots and relations examples.
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.
To load this example and for sample queries, please see the SCRIPT file.
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,14 +1,27 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library and support example files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load([library(events_loader), library(types_loader), library(metapredicates_loader), library(hierarchies_loader)]).
...
| ?- logtalk_load(roots(loader)).
...
| ?- logtalk_load(relations(loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(polygons(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
You will also need to load the following files in the library directory:
types_loader, events_loader, metapredicates_loader, and dates_loader.

View File

@@ -1,14 +1,21 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library support files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load(library(all_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(profiling(loader)).
...

View File

@@ -1,14 +1,13 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT
file.
This folder contains examples of Logtalk implementations for popular
logical puzzles. The description of each puzzle can be found on the

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(puzzles(loader)).
...

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,9 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
Run this example with no other examples loaded at the same time.
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
This folder contains an example that shows how to implement a reflective
class-based system. There are three main classes:

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(reflection(loader)).
...

View File

@@ -1,16 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will also need to also load the objects in the roots example.
To load this example and for sample queries, please see the SCRIPT file.
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,14 +1,24 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library and support example files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load([library(events_loader), library(types_loader), library(hierarchies_loader)]).
...
| ?- logtalk_load(roots(loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(relations(loader)).
...

View File

@@ -1,24 +1,18 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will need to consult the following files in the library directory:
events_loader, types_loader, and hierarchies_loader. Alternatively, you
may simply load the library all_loader file to load all library entities.
To load this example and for sample queries, please see the SCRIPT file.
This folder contains rewritten versions of some of the objects provided
with previous, 1.x versions, of the Logtalk system. They are intended to
help the conversion of applications from Logtalk 1.x to 2.x and to
support most of the other examples provided with the current Logtalk
package.
distribution.
Short description of each example entity:

View File

@@ -1,14 +1,21 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library support files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load([library(events_loader), library(types_loader), library(hierarchies_loader)]).
...
% now you are ready for loading the example:
| ?- logtalk_load(roots(loader)).
...

View File

@@ -1,16 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will need to also load the objects in the roots example.
To load this example and for sample queries, please see the SCRIPT file.
You will also need to load the following files in the library directory:
dates_loader, types_loader, events_loader, metapredicates_loader, and

View File

@@ -1,14 +1,24 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library and support example files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load(library(all_loader)).
...
| ?- logtalk_load(roots(loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(searching(loader)).
...

View File

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

View File

@@ -1,16 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will need to also load the objects in the roots example.
To load this example and for sample queries, please see the SCRIPT file.
You will need to load the following files in the library directory:
events_loader, types_loader, and hierarchies_loader. Alternatively,

View File

@@ -1,14 +1,24 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library and support example files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load(library(all_loader)).
...
| ?- logtalk_load(roots(loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(shapes_ch(loader)).
...

View File

@@ -1,11 +1,10 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT
file.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(shapes_ph(loader)).
...

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,11 +8,4 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
The examples in this folder are adopted from the SICStus Prolog manual.
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will also need to load the following files in library directory:
hierarchies_loader and types_loader. Alternatively, you may load the
library all_loader file to load all library entities.
To load this example and for sample queries, please see the SCRIPT file.

View File

@@ -1,14 +1,21 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
% start by loading the example:
% start by loading the necessary library support files (if not
% already loaded):
| ?- logtalk_load(loader).
| ?- logtalk_load([library(hierarchies_loader), library(types_loader)]).
...
% now you are ready for loading the example:
| ?- logtalk_load(sicstus(loader)).
...

View File

@@ -1,18 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
You will also need to load the library hierarchies_loader file.
Alternatively, you may load the library all_loader file to load
all library entities.
To load this example and for sample queries, please see the SCRIPT file.
This folder contains an example of using parametric objects to implement
symbolic expression differentiation and simplification.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(symdiff(loader)).
...

View File

@@ -1,14 +1,12 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
To load this example and for sample queries, please see the SCRIPT file.
Example adopted from the paper "Classifying Prototype-Based Programming
Languages" by Christophe Dony, Jacques Malenfant and Daniel Bardou.

View File

@@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.21.6
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
@@ -8,7 +8,7 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
% start by loading the example:
| ?- logtalk_load(loader).
| ?- logtalk_load(viewpoints(loader)).
...