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:
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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:
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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).
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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,
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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!
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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:
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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:
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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:
|
||||
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
=================================================================
|
||||
|
@@ -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,
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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)).
|
||||
...
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user