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,65 +1,90 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
This file contains detailed instruction for installing and configuring
Logtalk.
1. LOGTALK INSTALLATION
Installing Logtalk is just a matter of decompressing the downloaded archive Installing Logtalk is just a matter of decompressing the downloaded archive
and copying the resulting directory to a suitable location. and copying the resulting directory to a suitable location.
The Logtalk directory can reside in any user accessible location. The Logtalk directory can reside in any user accessible location. This
This location depends on the working environment and on the number of users. location depends on the working environment and on the number of users.
The "misc" sub-directory contains some shell scripts for easy installation
of Logtalk on Windows, Unix, and Unix-like operating systems (for details,
see the misc/NOTES file).
INSTALLING FOR A SINGLE USER * Installing for a single user:
In the case of a single user, the Logtalk directory may simply be copied to In the case of a single user, the Logtalk directory may simply be copied to
the user home directory. the user home directory. In alternative, assuming a user with administrative
rights, the same setup described below for multiple users may be applied.
This has the advantage of allowing the user to freely try and modify the
provided examples, library, and configuration files with the option of, at
any time, restoring the files to its original state by simply running one of
the provided scripts.
INSTALLING FOR MULTIPLE USERS * Installing for multiple users:
In the case of multiple users, the Logtalk directory can be copied to any In the case of multiple users, the Logtalk directory can be copied to any
location that its accessible by all the users (assuming that copying the location that its accessible by all the users (assuming that copying the
Logtalk directory to each user home directory is not feasible or desired). Logtalk directory to each user home directory is, for some reason, not
feasible or desired).
Regarding directory and file permissions, it is advisable to make all files The "misc" sub-directory contains shell scripts for easy installation of
read-only in order to avoid user tempering. However, the library and examples Logtalk on Windows, Unix, and Unix-like operating systems (for details,
sub-directories (and possibly the compiler sub-directory, depending on the see the misc/NOTES file). These scripts make all files read-only in order
chosen Prolog compiler) must be user writable as compiling Logtalk source to avoid user tempering. However, Logtalk directories such as "library"
files generates intermediate Prolog files, which are written to the same or "examples" must be user-writable as compiling Logtalk source files
location as the source files. However, making directories world-writable is a generates intermediate Prolog files, which are written to the same location
security risk. One solution is to copy the Logtalk xml, examples, and library as the source files. In addition, it is convenient that directories such as
directories to each user home directory (the "misc" sub-directory contains "configs", "libpaths", and "xml" be user-writable in order to allow each
some scripts which may be called by the end-users for making these copies). user to customize Logtalk to its needs. Given that making directories
world-writable is a security risk, one solution is to copy the directories
that need to be user-writable to each user home directory. The "misc" sub-
directory contains shell scripts (named "cplgtdirs.*") which may be called
by the end-users for making such copies. This is the preferred setup for a
computer lab. When used with one of the Prolog compilers for which an
integration script is provided on the "misc" directory, this setup allows
end-users to independently customize default compilation options and
library paths.
ENVIRONMENT VARIABLES 2. LOGTALK CONFIGURATION
It is recommended that you define an environment variable named LOGTALKHOME 2.1 Setting environment variables
pointing to the Logtalk installation directory for use with your Prolog
compilers. In addition, you may want to add the Logtalk sub-directory "xml", You need to set two environment variables, LOGTALKHOME and LOGTALKUSER. The
which contains useful scripts for processing XML documenting files, to your environment variable LOGTALKHOME should point to the Logtalk installation
execution path. directory. The environment variable LOGTALKUSER should point to a directory
in your home directory where you want to store the user-specific Logtalk files
(for example, ~/logtalk). Both environment variables may be set for all users
by a user with administration privileges. The two environment variables can
have the same value if you are the only Logtalk user on your computer and if
you have full permissions to the Logtalk installation directory. In addition,
you may want to add the Logtalk sub-directory "xml", which contains useful
scripts for processing XML documenting files, to your execution path.
* Unix and Unix-like systems: * Unix and Unix-like systems:
If you use a csh shell, add the following line to your ~/.cshrc file: If you use a csh shell, add the following line to your ~/.cshrc file:
setenv LOGTALKHOME /your/installation/directory/lgt2216 setenv LOGTALKHOME /your/logtalk/installation/directory
setenv LOGTALKUSER $HOME/logtalk
setenv PATH $PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc setenv PATH $PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc
If you use a bash shell, add the following lines to your ~/.profile file: If you use a bash shell, add the following lines to your ~/.profile file:
LOGTALKHOME=/your/installation/directory/lgt2216 LOGTALKHOME=/your/logtalk/installation/directory
export LOGTALKHOME LOGTALKUSER=$HOME/logtalk
PATH=$PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc PATH=$PATH:$LOGTALKHOME/xml:$LOGTALKHOME/misc
export PATH export PATH LOGTALKHOME LOGTALKUSER
When using the provided shell script for installing Logtalk, a symbolic link When using the provided shell script for installing Logtalk, a symbolic link
to the Logtalk installation directory is automatically created. The link is to the Logtalk installation directory is automatically created. The link is
@ -68,20 +93,33 @@ environment variable in order to avoid breaking it when upgrading Logtalk.
* Windows systems: * Windows systems:
In Windows 95/98/ME, environment variables are defined in the autoexec.bat In Windows 95/98/ME, environment variables are defined in the "autoexec.bat"
file (you will need to reboot after editing the file): file (you will need to reboot after editing the file):
SET LOGTALKHOME=C:\your\installation\folder\ SET LOGTALKHOME=C:\your\installation\folder\
SET LOGTALKUSER=%HOMEPATH%\logtalk
In Windows NT/2000/XP, environment variables are defined using the System In Windows NT/2000/XP, environment variables are defined using the System
properties control panel (if you are a system administrator, you should use properties control panel (if you are a system administrator, you should use
the JScript install script provided in the "misc" sub-directory). the JScript install script provided in the "misc" sub-directory; this script
sets both the LOGTALKHOME and the LOGTALKUSER environment variables).
CUSTOMIZING PROLOG CONFIGURATION FILES 2.2 Setting library paths
In Logtalk, a library is simply a directory containing source files. Library
paths can be declared using a dynamic predicate. This allows compiling and
loading of libraries and library files to be performed without worries about
library paths. In the "libpaths" directory you will find a sample file which
you can copy and edit to match your Logtalk installation and your Prolog
compiler and operating-system requirements. See the "libpaths/NOTES" file for
more details.
2.3 Customizing prolog configuration files
Logtalk interfaces with a specific Prolog compiler via a configuration file Logtalk interfaces with a specific Prolog compiler via a configuration file
that can be found on the $LOGTALKHOME/configs directory. These configuration that can be found on the "$LOGTALKUSER/configs" directory. These configuration
files can be customized by changing the values of the default flags and files can be customized by changing the values of the default flags and
compiler options which are used by Logtalk when compiling source files. For compiler options which are used by Logtalk when compiling source files. For
a full description of these default flags and compiler options, consult the a full description of these default flags and compiler options, consult the
@ -89,7 +127,7 @@ a full description of these default flags and compiler options, consult the
the default flags that you may want to change are: "portability", "altdirs", the default flags that you may want to change are: "portability", "altdirs",
"underscore_vars", "startup_message", "smart_compilation", and the set of "underscore_vars", "startup_message", "smart_compilation", and the set of
documentation-related flags ("xml", "xsl", "xmlspec", and "doctype"). Be sure documentation-related flags ("xml", "xsl", "xmlspec", and "doctype"). Be sure
to read the $LOGTALKHOME/configs/NOTES file for Prolog specific notes; some to read the "$LOGTALKUSER/configs/NOTES" file for Prolog specific notes; some
Prolog compilers do not support the whole range of compilation flags. Prolog compilers do not support the whole range of compilation flags.
@ -100,5 +138,5 @@ is automatically consulted at startup. This initialization file may contain
directives for loading other files, such as the Logtalk configuration file directives for loading other files, such as the Logtalk configuration file
and the Logtalk compiler. The "misc" sub-directory contains several scripts and the Logtalk compiler. The "misc" sub-directory contains several scripts
for automating the creation of these initialization files for some Prolog for automating the creation of these initialization files for some Prolog
compilers. In addition, be sure to read the configs/NOTES file notes on the compilers. In addition, be sure to read the "configs/NOTES" file notes on the
Prolog compilers that you intend to use. Prolog compilers that you intend to use.

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -10,40 +10,46 @@ Quick start
=========== ===========
1. Open the manuals/index.html file with a web browser. 1. Install Logtalk by following the instructions on the "INSTALL" file.
2. Select the Tutorial link. This will provide you with a basic understanding 2. Open the "manuals/index.html" file with a web browser.
3. Select the "Tutorial" link. This will provide you with a basic understanding
of the main Logtalk concepts. of the main Logtalk concepts.
3. Go back to the index.html file and select the User Manual link and then 4. Go back to the "index.html" file and select the "User Manual" link and then
the Installing and running Logtalk links. This will provide you with a basic the Installing and running Logtalk links. This will provide you with a basic
understanding of how to start Logtalk and compile and load Logtalk code. understanding of how to start Logtalk and compile and load Logtalk code.
Assuming that Logtalk supports your Prolog compiler: Assuming that Logtalk supports your Prolog compiler:
1. Read the NOTES file in the configs sub-directory to check if any patch 1. Read the "NOTES" file in the "configs" sub-directory to check if any patch
or workaround is needed for your compiler. or workaround is needed for your compiler.
2. Start your Prolog compiler. 2. Start your Prolog compiler.
3. Change the current working directory of your Prolog session to the Logtalk 3. Change the current working directory of your Prolog session to the Logtalk
installation directory. If you don't know which predicate to use, check the installation directory. If you don't know which predicate to use, check the
configs/NOTES file or your Prolog reference manual. "configs/NOTES" file or your Prolog compiler reference manual.
4. Compile and load the config file for your Prolog compiler. 4. Compile and load the config file for your Prolog compiler.
5. Compile and load the Logtalk pre-processor/runtime found in the compiler 5. Compile and load the Logtalk compiler/runtime found on the "compiler"
sub-directory. sub-directory.
Note that both the configuration files and the compiler/preprocessor files 6. Adapt, if needed, the file "libpaths/libpaths.pl" to match your Logtalk
are Prolog files. The predicate called to load these files depends on your installation, Prolog compiler, and operating-system, and then compile and
Prolog compiler (consult your Prolog compiler documentation or take a look load it.
at the definition of the predicate '$lgt_load_prolog_code'/1 in the config
file. For most command-line compilers, you could type at the Prolog prompt
something like:
| ?- ['configs/foo.config', 'compiler/logtalk.pl']. Note that both the configuration files, the compiler/runtime files, and the
library paths file are Prolog files. The predicate used to load these files
depends on your Prolog compiler (consult your Prolog compiler documentation
or take a look at the definition of the predicate '$lgt_load_prolog_code'/1
in the config file. For most command-line compilers, you could type at the
Prolog prompt something like:
| ?- ['configs/foo.config', 'compiler/logtalk.pl', 'libpaths/libpaths.pl'].
Replace the file name foo.config with the appropriated config file name for Replace the file name foo.config with the appropriated config file name for
your compiler. your compiler.
@ -51,45 +57,24 @@ your compiler.
Now you may try some of the included examples: Now you may try some of the included examples:
1. Change the working directory of your Prolog compiler to the library 1. Open the examples sub-directory. There you find several sub-directories
directory and then type at the Prolog prompt the following query:
| ?- logtalk_load(all_loader).
This will load all the library entities that you will need in order to run
the Logtalk examples.
2. Open the examples sub-directory. There you find several sub-directories
with ready to run examples and a NOTES file containing general instructions with ready to run examples and a NOTES file containing general instructions
and a brief description of each example. Select and open one of the examples and a brief description of each example. Select and open one of the examples
sub-directory. sub-directory.
3. Read the example NOTES file. Some examples are dependent on other examples 2. Read the example NOTES file for a description of the example.
or on library objects (already loaded on step one). You may need to load
additional files before running the chosen example.
4. Change the working directory of your Prolog compiler to the example 3. Open SCRIPT file for instructions on how to load the example and for sample
directory. queries that you may try by copying-and-pasting or dragging-and-droping them
on your Prolog interpreter top-level.
5. Compile and load the loader file for the example as described in the NOTES
and SCRIPT files. For most examples, the loader file is named loader.lgt.
Therefore, you will need to type the query:
| ?- logtalk_load(loader).
This will compile and load all the example files.
6. Open the example SCRIPT file, which contains sample queries that you
may try by copying-and-pasting or dragging-and-droping them on your Prolog
interpreter top-level.
Ready to start writing your own programs? Ready to start writing your own programs?
1. Read the User Manual sections on Programming in Logtalk and Running and 1. Read the User Manual sections on "Programming in Logtalk" and "Running and
debugging Logtalk programs. debugging Logtalk programs".
2. Take a look at the wenv sub-directory. There you will find syntax 2. Take a look at the "wenv" sub-directory. There you will find syntax
configuration files for popular text editors that enable syntax coloring configuration files for popular text editors that enable syntax coloring
when editing Logtalk source files. when editing Logtalk source files.

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -84,7 +84,7 @@ for further instructions.
See the user manual for a description of the source files organization See the user manual for a description of the source files organization
and for using instructions (to read the user manual open the file and for using instructions (to read the user manual open the file
manuals/index.html with a web browser). Most files are formatted using "manuals/index.html" with a web browser). Most files are formatted using
four-space tabs. four-space tabs.
@ -104,9 +104,9 @@ from the Logtalk web site. The PDF files include page numbers, index and a
table of contents and are available for printing in both A4 and US Letter table of contents and are available for printing in both A4 and US Letter
paper formats. paper formats.
The file RELEASE_NOTES contains descriptions of the changes made in The file RELEASE_NOTES contains descriptions of the changes made in Logtalk
Logtalk since the first public version. Read it carefully if you have since the first public version. Read it carefully if you have been using a
been using a previous Logtalk version. previous Logtalk version.
8. UPGRADING 8. UPGRADING
@ -118,7 +118,7 @@ instructions on how to upgrade your programs to run under this new version.
9. CITATIONS 9. CITATIONS
If you want to cite Logtalk in your publications, please consult the file If you want to cite Logtalk in your publications, please consult the file
BIBLIOGRAPHY for BibTeX bibliographic references. BIBLIOGRAPHY for bibliographic references in BibTeX format.
10. CONTRIBUTIONS 10. CONTRIBUTIONS

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -10,6 +10,34 @@ RELEASE NOTES
============= =============
2.22.0 - November 29, 2004
Implemented a notion of library as simply a directory containing source
files. Added a new dynamic predicate, logtalk_library_path/2, for
specifying library paths. Added a sample file (libpaths/libpaths.pl) for
setting library paths for the Logtalk standard library and for all the
supplied examples.
Added support for using the notation <library>(<entity>) with the built-in
predicates logtalk_compile/1-2 and logtalk_load/1-2 for compiling and
loading source files contained on a library, without the need to first
change the current working directory.
Changed the library and the examples loading instructions to use the new
notation <library>(<entity>).
Improved installation instructions and installation scripts. Added a new
environment variable, LOGTALKUSER, for defining the location of the copies
of the user-modifiable Logtalk files in a multiple users setup environment.
Added utility predicates to most configuration files for querying and
changing the current working directory (needed for the <library>(<entity>)
notation to work).
Corrected a bug in the code that checks for file existence when compiling
or loading source files and source metafiles.
2.21.6 - November 15, 2004 2.21.6 - November 15, 2004
Added support for using alternative directories for storing the Prolog files Added support for using alternative directories for storing the Prolog files

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -89,3 +89,9 @@ order to ensure compatibility with the new uses/2 predicate directive).
Logtalk version 2.21.2 adds a new clause to the code generated when compiling Logtalk version 2.21.2 adds a new clause to the code generated when compiling
entity in order to support the new alias/1 predicate property, implying entity in order to support the new alias/1 predicate property, implying
recompilation of all objects, protocols, and categories. recompilation of all objects, protocols, and categories.
Logtalk version 2.22.0 adds support for using the notation <library>(<file>)
when compiling and loading source files. Logtalk applications using this new
notation will need to be modified in order to run in previous Logtalk versions.
In addition, the exceptions generated by the predicates logtalk_compile/1-2
and logtalk_load/1-2 have been updated to take into account this new feature.

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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 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 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 Most of these examples need objects, protocols, and categories which are
defined in the Logtalk standard library or in other examples, so you defined in the Logtalk standard library or in other examples. See the NOTES
should load them first (see the NOTES files inside the library folder and files inside the library folder and the NOTES and SCRIPT files inside each
the NOTES file inside each example folder). example folder).
Some examples may redefine objects already loaded from other examples. Some examples may redefine objects already loaded from other examples.
You may want to restart Logtalk after trying each example. You may want to restart Logtalk after trying each example.

View File

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

View File

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

View File

@ -1,14 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT file.
| ?- logtalk_load(loader).
If your Prolog compiler does not support a module system, then edit the 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. 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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: % start by loading the example:
| ?- logtalk_load(loader). | ?- logtalk_load(benchmarks(loader)).
... ...

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,11 +1,14 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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" This example illustrates some variants of the "diamond problem"
(multi-inheritance conflicts and ambiguities) and its respective (multi-inheritance conflicts and ambiguities) and its respective
solutions on Logtalk. solutions on Logtalk.
@ -45,12 +48,3 @@ using prototype hierarchies:
diamond3 diamond3
presents a solution which allows both inherited definitions to be presents a solution which allows both inherited definitions to be
used in D 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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: % start by loading the example:
| ?- logtalk_load(loader). | ?- logtalk_load(diamonds(loader)).
... ...

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,10 +1,13 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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 No self-respected programming language could do without a "Hello
World" example! World" example!

View File

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

View File

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

View File

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

View File

@ -1,10 +1,11 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
The examples in this folder are adopted from the Logic&Objects system The examples in this folder are adopted from the Logic&Objects system
by Francis G. McCabe. Detailed descriptions and the original source code 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 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT
file.
| ?- logtalk_load(loader).

View File

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

View File

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

View File

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

View File

@ -1,18 +1,13 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT
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.
This example is an adaptation of a LPA Prolog++ example that is This example is an adaptation of a LPA Prolog++ example that is
described in the LPA Prolog++ Reference Manual. This manual can described in the LPA Prolog++ Reference Manual. This manual can

View File

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

View File

@ -1,17 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT 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.
This example shows the use of metapredicates in Logtalk. Metapredicates are This example shows the use of metapredicates in Logtalk. Metapredicates are
predicates whose head contains arguments that will be called as goals in the 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT file.
| ?- logtalk_load(loader).
There are two examples in this folder. The first one is an adoption of a 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 multi-inheritance C++ example found on the D. M. Capper book "Introducing

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,26 +1,17 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT 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.
You can find the original description of this example (and a solution using You can find the original description of this example (and a solution using
SICStus Objects) at the URL: 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 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 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT 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.
In this example we have several types of polygons that can be concentric. In this example we have several types of polygons that can be concentric.
This is represented by a concentric binary relation ensuring that whenever This is represented by a concentric binary relation ensuring that whenever

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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. 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: To load this example and for sample queries, please see the SCRIPT file.
| ?- logtalk_load(loader).
This folder contains an example that shows how to implement a reflective This folder contains an example that shows how to implement a reflective
class-based system. There are three main classes: class-based system. There are three main classes:

View File

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

View File

@ -1,16 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT file.
| ?- logtalk_load(loader).
You will also need to also load the objects in the roots example.
This folder contains rewritten versions of some of the objects provided This folder contains rewritten versions of some of the objects provided
with previous, 1.x versions, of the Logtalk system. They are intended to 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT 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.
This folder contains rewritten versions of some of the objects provided This folder contains rewritten versions of some of the objects provided
with previous, 1.x versions, of the Logtalk system. They are intended to 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 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 support most of the other examples provided with the current Logtalk
package. distribution.
Short description of each example entity: Short description of each example entity:

View File

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

View File

@ -1,14 +1,24 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

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

View File

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

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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: % 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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. 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: To load this example and for sample queries, please see the SCRIPT 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.

View File

@ -1,14 +1,21 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. 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 Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
To load all entities in this example compile and load the loader file: To load this example and for sample queries, please see the SCRIPT 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.
This folder contains an example of using parametric objects to implement This folder contains an example of using parametric objects to implement
symbolic expression differentiation and simplification. symbolic expression differentiation and simplification.

View File

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

View File

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

View File

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

26
Logtalk/libpaths/NOTES Normal file
View File

@ -0,0 +1,26 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
This folder contains a Prolog file, "libpaths.pl", which defines the
library paths for the Logtalk standard library and for all the supplied
examples.
In order to easily compile and load library and example source files
using the notation <library>(<entity>), you will need to load the
"libpaths.pl" into your Prolog compiler after loading the Logtalk
compiler/runtime. You might need to edit the "libpaths.pl" file in
order to adapt it to reflect your Logtalk installation and your Prolog
compiler and operating-system requirements. As defined, the provided
"libpaths.pl" file is already compatible with some of the most popular
Prolog compilers, running on both on Windows, Unix, and Unix-like
operating-systems. The Prolog integration scripts found on the "misc"
directory generate scripts and shortcuts that automatically load the
copy of the "libpaths.pl" file from the Logtalk end-user directory
created by the "misc/cplgtdirs.*" scripts. See the "INSTALL" and the
"misc/NOTES" files for more details. Note that a few Prolog compilers
do not support the <library>(<entity>) notation. See the "configs/NOTES"
file for details.

View File

@ -0,0 +1,50 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.22.0
%
% Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
:- initialization(
(assertz(logtalk_library_path(library, '$LOGTALKUSER/library/')),
assertz(logtalk_library_path(aliases, '$LOGTALKUSER/examples/aliases/')),
assertz(logtalk_library_path(benchmarks, '$LOGTALKUSER/examples/benchmarks/')),
assertz(logtalk_library_path(birds, '$LOGTALKUSER/examples/birds/')),
assertz(logtalk_library_path(bricks, '$LOGTALKUSER/examples/bricks/')),
assertz(logtalk_library_path(classvars, '$LOGTALKUSER/examples/classvars/')),
assertz(logtalk_library_path(dcgs, '$LOGTALKUSER/examples/dcgs/')),
assertz(logtalk_library_path(diamonds, '$LOGTALKUSER/examples/diamonds/')),
assertz(logtalk_library_path(dynpred, '$LOGTALKUSER/examples/dynpred/')),
assertz(logtalk_library_path(engines, '$LOGTALKUSER/examples/engines/')),
assertz(logtalk_library_path(errors, '$LOGTALKUSER/examples/errors/')),
assertz(logtalk_library_path(hello_world, '$LOGTALKUSER/examples/hello_world/')),
assertz(logtalk_library_path(inheritance, '$LOGTALKUSER/examples/inheritance/')),
assertz(logtalk_library_path(instmethods, '$LOGTALKUSER/examples/instmethods/')),
assertz(logtalk_library_path(lo_planner, '$LOGTALKUSER/examples/lo/planner/')),
assertz(logtalk_library_path(lo_travellers, '$LOGTALKUSER/examples/lo/travellers/')),
assertz(logtalk_library_path(logic, '$LOGTALKUSER/examples/logic/')),
assertz(logtalk_library_path(lpa, '$LOGTALKUSER/examples/lpa/')),
assertz(logtalk_library_path(metainterpreters, '$LOGTALKUSER/examples/metainterpreters/')),
assertz(logtalk_library_path(metapredicates, '$LOGTALKUSER/examples/metapredicates/')),
assertz(logtalk_library_path(mi, '$LOGTALKUSER/examples/mi/')),
assertz(logtalk_library_path(miscellaneous, '$LOGTALKUSER/examples/miscellaneous/')),
assertz(logtalk_library_path(msglog, '$LOGTALKUSER/examples/msglog/')),
assertz(logtalk_library_path(operators, '$LOGTALKUSER/examples/operators/')),
assertz(logtalk_library_path(parametric, '$LOGTALKUSER/examples/parametric/')),
assertz(logtalk_library_path(poem, '$LOGTALKUSER/examples/poem/')),
assertz(logtalk_library_path(points, '$LOGTALKUSER/examples/points/')),
assertz(logtalk_library_path(polygons, '$LOGTALKUSER/examples/polygons/')),
assertz(logtalk_library_path(profiling, '$LOGTALKUSER/examples/profiling/')),
assertz(logtalk_library_path(puzzles, '$LOGTALKUSER/examples/puzzles/')),
assertz(logtalk_library_path(reflection, '$LOGTALKUSER/examples/reflection/')),
assertz(logtalk_library_path(relations, '$LOGTALKUSER/examples/relations/')),
assertz(logtalk_library_path(roots, '$LOGTALKUSER/examples/roots/')),
assertz(logtalk_library_path(searching, '$LOGTALKUSER/examples/searching/')),
assertz(logtalk_library_path(shapes_ch, '$LOGTALKUSER/examples/shapes/ch/')),
assertz(logtalk_library_path(shapes_ph, '$LOGTALKUSER/examples/shapes/ph/')),
assertz(logtalk_library_path(sicstus, '$LOGTALKUSER/examples/sicstus/')),
assertz(logtalk_library_path(symdiff, '$LOGTALKUSER/examples/symdiff/')),
assertz(logtalk_library_path(viewpoints, '$LOGTALKUSER/examples/viewpoints/')))).

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.21.6 Release 2.22.0
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -9,10 +9,15 @@ Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
This folder contains some useful objects, categories, and protocols. This folder contains some useful objects, categories, and protocols.
To load a group of objects, protocols, and categories in this library To load a group of objects, protocols, and categories in this library
change your Prolog working directory to this folder and then compile either change your Prolog working directory to this folder and then
and load the corresponding loader utility file. Currently, there are compile and load the corresponding loader utility file or simply use
eight groups of entities defined, each one with a loader and a notes the notation library(<loader file>) as argument for the compiling and
file: loading predicates. For example:
| ?- logtalk_load(library(random_loader)).
Currently, there are eight groups of entities defined, each one with
a loader and a notes file:
dates dates
dates_loader.lgt dates_loader.lgt
@ -47,12 +52,9 @@ file:
types.notes types.notes
There is also a file named all_loader.lgt that will load all entities in the There is also a file named all_loader.lgt that will load all entities in the
groups listed above. groups listed above. Simply type the goal:
To compile and load the loader files type you may use the Logtalk built-in | ?- logtalk_load(library(all_loader)).
predicate logtalk_load/1. For example:
| ?- logtalk_load(all_loader).
Specific notes about each group of objects, categories, and protocols can be Specific notes about each group of objects, categories, and protocols can be
found in the corresponding *.notes files. found in the corresponding *.notes files.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -26,7 +26,7 @@
working_directory(Directory) :- working_directory(Directory) :-
{curdir(Directory, Directory)}. {curdir(Directory)}.
directory_exists(Directory) :- directory_exists(Directory) :-

View File

@ -23,7 +23,7 @@
working_directory(Directory) :- working_directory(Directory) :-
{fail}. {system(pwd, Directory)}.
directory_exists(Directory) :- directory_exists(Directory) :-

View File

@ -28,7 +28,7 @@
working_directory(Directory) :- working_directory(Directory) :-
{fail}. {absolute_file_name('.', Directory)}.
directory_exists(Directory) :- directory_exists(Directory) :-

View File

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

View File

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

View File

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

View File

@ -40,7 +40,7 @@
'Directory does not exists' - existence_error(directory, 'Directory')]]). 'Directory does not exists' - existence_error(directory, 'Directory')]]).
:- public(working_directory/1). :- public(working_directory/1).
:- mode(working_directory(?atom), one). :- mode(working_directory(?atom), zero_or_one).
:- info(working_directory/1, [ :- info(working_directory/1, [
comment is 'Current working directory (as an absolute file name).', comment is 'Current working directory (as an absolute file name).',
argnames is ['Directory'], argnames is ['Directory'],

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More