Logtalk 2.29.5 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1858 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
9cdf70aa41
commit
4569fca292
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -24,7 +24,7 @@ Inside your Logtalk user folder, you will find a "libpaths" folder containing
|
||||
a sample file which, when loaded, defines the library paths for the Logtalk
|
||||
standard library and for all the supplied examples. This file may need to be
|
||||
edited to match both your Logtalk installation and your Prolog compiler and
|
||||
operating-system requirements. For details, see the file "libpaths/NOTES".
|
||||
operating-system requirements. For details, see the "libpaths/NOTES.txt" file.
|
||||
|
||||
|
||||
2. CUSTOMIZING PROLOG CONFIGURATION FILES
|
||||
@ -38,8 +38,8 @@ Logtalk programs" section of the User Manual. Some of the default flags that
|
||||
you may want to change include: "smart_compilation", "startup_message",
|
||||
"portability", "underscore_vars", "altdirs", and the set of documentation-
|
||||
related flags ("xmldocs", "xslfile", "xmlspec", and "xmlsref"). Be sure to
|
||||
read the "configs/NOTES" file for Prolog specific notes; some Prolog compilers
|
||||
do not support the whole range of compilation flag values.
|
||||
read the "configs/NOTES.txt" file for Prolog specific notes; some Prolog
|
||||
compilers do not support the whole range of compilation flag values.
|
||||
|
||||
|
||||
3. CUSTOMIZING DOCUMENTATION PROCESSING SCRIPTS AND SUPPORTING FILES
|
||||
@ -52,12 +52,12 @@ files to modify the layout or style of the resulting PDF/(X)HTML files or to
|
||||
write new scripts and transformations to generate other formats. You may also
|
||||
edit the file "custom.ent" in order to specify XML entities for your personal
|
||||
data that can be used on Logtalk documenting directives. For details, see the
|
||||
file "xml/NOTES".
|
||||
"xml/NOTES.txt" file.
|
||||
|
||||
|
||||
4. ADDING SUPPORT FOR EDITING LOGTALK SOURCE FILES TO TEXT EDITORS
|
||||
|
||||
Inside your Logtalk user folder, you will find a "wenv" folder, containing
|
||||
configuration files for several text editors, which add support for syntax
|
||||
coloring and other editing services of Logtalk source files. For details,
|
||||
see the file "wenv/NOTES".
|
||||
highlighting and other text editing services for Logtalk source files.
|
||||
For details, see the "wenv/NOTES.txt" file.
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -9,9 +9,9 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
The recommended way of installing Logtalk is to use, whenever possible, one
|
||||
of the provided installers. This file contains detailed instructions for
|
||||
manual installation and configuration of Logtalk. You should also consult
|
||||
the "scripts/NOTES" file for a description of a set of shell scripts that
|
||||
might be used for Logtalk installation on some operating-systems and for
|
||||
easy Logtalk integration with popular Prolog compilers.
|
||||
the "scripts/NOTES.txt" file for a description of a set of shell scripts
|
||||
that might be used for Logtalk installation on some operating-systems and
|
||||
for easy Logtalk integration with popular Prolog compilers.
|
||||
|
||||
Note that the broad compatibility of Logtalk, both with Prolog compilers and
|
||||
operating-systems, together with all the possible user scenarios, means that
|
||||
@ -48,7 +48,7 @@ for some reason, not feasible or desired).
|
||||
|
||||
The "scripts" sub-directory contains shell scripts for easy installation of
|
||||
Logtalk on MacOS X, Windows, Linux, and Unix-like (POSIX) operating systems
|
||||
(see the "scripts/NOTES" file for details).
|
||||
(see the "scripts/NOTES.txt" file for details).
|
||||
|
||||
>> POSIX systems installation (starting from the Logtalk directory):
|
||||
|
||||
@ -119,7 +119,7 @@ Each user must make a local copy of the Logtalk user-modifiable files to its
|
||||
home directory. This setup allows each user to easily and independently
|
||||
customize Logtalk to its needs. These copies can be easily made by instructing
|
||||
end-users to simply run the shell scripts "cplgtdirs.*" (which are described
|
||||
in the "scripts/NOTES" file).
|
||||
in the "scripts/NOTES.txt" file).
|
||||
|
||||
>> POSIX systems:
|
||||
|
||||
@ -144,8 +144,8 @@ directives for loading other files, such as the Logtalk configuration file
|
||||
and the Logtalk compiler. The "$LOGTALKHOME/scripts" sub-directory contains
|
||||
several scripts (named "make_*lgt.*") 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 Prolog compilers that you intend to use.
|
||||
There are also "makeall_lgt.*" scripts that try to run all the individual
|
||||
the "configs/NOTES.txt" file notes on the Prolog compilers that you intend to
|
||||
use. There are also "makeall_lgt.*" scripts that try to run all the individual
|
||||
"make_*lgt.*" scripts:
|
||||
|
||||
>> POSIX systems:
|
||||
@ -160,7 +160,7 @@ There are also "makeall_lgt.*" scripts that try to run all the individual
|
||||
|
||||
This assumes that your favorite Prolog compilers are supported by the
|
||||
"make_*lgt.*" scripts. If that is not the case, don't worry: just follow
|
||||
the steps described in the "QUICK_START" file.
|
||||
the steps described in the "QUICK_START.txt" file.
|
||||
|
||||
|
||||
5. CUSTOMIZING LOGTALK
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -10,35 +10,39 @@ Quick start
|
||||
===========
|
||||
|
||||
|
||||
Starting up Logtalk
|
||||
-------------------
|
||||
|
||||
1. Install Logtalk by using either the installer provided for your
|
||||
operating-system (when available) or by following the instructions
|
||||
on the "INSTALL" file. Depending on your operating-system, working
|
||||
on the "INSTALL.txt" file. Depending on your operating-system, working
|
||||
environment, and favorite Prolog compiler, you may already have a
|
||||
script or a shortcut installed for easily running Logtalk with your
|
||||
favorite Prolog compiler. If so, skip the instructions below for
|
||||
starting up Logtalk.
|
||||
favorite Prolog compiler. In this case, skip the instructions below
|
||||
for starting up Logtalk and go straight to the instructions on running
|
||||
the examples.
|
||||
|
||||
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.
|
||||
|
||||
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 understanding of how to start Logtalk and
|
||||
compile and load Logtalk code.
|
||||
4. Go back to the "index.html" file, select the "User Manual" link,
|
||||
then the "Installing Logtalk" and "Running and debugging Logtalk
|
||||
programs" links. This will provide you with a basic understanding of
|
||||
how to start Logtalk as well as how to compile and load Logtalk code.
|
||||
|
||||
|
||||
Assuming that Logtalk supports your Prolog compiler:
|
||||
|
||||
1. Read the "NOTES" file in the "configs" sub-directory to check if
|
||||
1. Read the "NOTES.txt" file in the "configs" sub-directory to check if
|
||||
any patch or workaround is needed for your compiler.
|
||||
|
||||
2. Start your Prolog compiler.
|
||||
|
||||
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 "configs/NOTES" file or your Prolog compiler reference
|
||||
use, check the "configs/NOTES.txt" file or your Prolog compiler reference
|
||||
manual.
|
||||
|
||||
4. Compile and load the config file for your Prolog compiler.
|
||||
@ -47,7 +51,7 @@ manual.
|
||||
sub-directory.
|
||||
|
||||
6. Adapt, if needed, the file "libpaths/libpaths.pl" to match your Logtalk
|
||||
installation, Prolog compiler, and operating-system, and then compile and
|
||||
installation, Prolog compiler, operating-system, and then compile and
|
||||
load it.
|
||||
|
||||
Note that both the configuration files, the compiler/runtime files, and the
|
||||
@ -59,23 +63,29 @@ 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 appropriate config file name for
|
||||
your compiler.
|
||||
|
||||
|
||||
Now you may try some of the included examples:
|
||||
Running the examples
|
||||
--------------------
|
||||
|
||||
1. Open the examples sub-directory. There you find several sub-directories
|
||||
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
|
||||
sub-directory.
|
||||
You may now try some of the provided examples:
|
||||
|
||||
2. Read the example NOTES file for a description of the example.
|
||||
1. Open the "examples" sub-directory. There you find several sub-directories
|
||||
with ready to run examples and a "NOTES.txt" file containing general
|
||||
instructions and a brief description of each example. Select and open one
|
||||
of the examples sub-directory.
|
||||
|
||||
3. Open the SCRIPT file for instructions on how to load the example and for
|
||||
sample queries that you may try by copying-and-pasting or dragging-and-droping
|
||||
them on your Prolog interpreter top-level.
|
||||
2. Read the example "NOTES.txt" file for a description of the example.
|
||||
|
||||
3. Open the "SCRIPT.txt" file for instructions on how to load the example
|
||||
and for sample queries that you may try by copying-and-pasting them to
|
||||
your Prolog interpreter top-level.
|
||||
|
||||
|
||||
Writing your own programs
|
||||
_________________________
|
||||
|
||||
Ready to start writing your own programs?
|
||||
|
||||
@ -83,11 +93,11 @@ Ready to start writing your own programs?
|
||||
and debugging Logtalk programs".
|
||||
|
||||
2. Take a look at the "wenv" sub-directory. There you will find syntax
|
||||
configuration files for popular text editors that enable syntax coloring
|
||||
and other goodies when editing Logtalk source files.
|
||||
configuration files for popular text editors which enable syntax coloring
|
||||
and other text services when editing Logtalk source files.
|
||||
|
||||
3. Create a sub-directory with a suitable name to hold all the files of
|
||||
your application. You may want to add the directory path to the libpaths.pl
|
||||
your application. You may want to add the directory path to the "libpaths.pl"
|
||||
file mentioned above in order to easily load your application.
|
||||
|
||||
4. Copy to this sub-directory a loader file from one of the example
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -23,11 +23,11 @@ CONTENTS
|
||||
|
||||
1. LICENSE
|
||||
|
||||
The overall copyright and permission notice for Logtalk can be found in the
|
||||
LICENSE file in this directory. Logtalk follows the Artistic License 2.0.
|
||||
The copyright notice and license applies to all files in this release
|
||||
(including sources, documentation, and examples) unless otherwise explicitly
|
||||
stated.
|
||||
The overall copyright and permission notice for Logtalk can be found
|
||||
in the "LICENSE.txt" file in this directory. Logtalk follows the
|
||||
Artistic License 2.0. The copyright notice and license applies to all
|
||||
files in this release (including sources, documentation, and examples)
|
||||
unless otherwise explicitly stated.
|
||||
|
||||
|
||||
2. HOME OF LOGTALK PACKAGE
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -10,6 +10,73 @@ RELEASE NOTES
|
||||
=============
|
||||
|
||||
|
||||
2.29.5 - March 28, 2007
|
||||
|
||||
Added a new built-in predicate, "threaded/1", for proving each goal in
|
||||
a conjunction in its own thread, simplifying common multi-threading
|
||||
tasks that previously required sequences of calls to the built-in
|
||||
predicates threaded_call/1 and threaded_exit/1.
|
||||
|
||||
Simplified and optimized the implementation of Logtalk multi-threading
|
||||
support.
|
||||
|
||||
Simplified implementation of the database built-in methods. Simplified
|
||||
caching of dynamic predicate lookups. Improved performance of the
|
||||
built-in methods retract/1 and retractall/1.
|
||||
|
||||
Simplified the code generated when compiling entities in debugging mode.
|
||||
|
||||
Corrected a bug in the built-in debugger when processing actions at a
|
||||
port that implies reading a port action again (e.g. print exception term,
|
||||
print debugging status, and help options). Allow the debugger command
|
||||
"skip" to work as the command "creep" in ports other than "call" and
|
||||
"redo". Added a new debugger command, "ignore". Suspend debugging when
|
||||
using the "break" debugger command.
|
||||
|
||||
Generate a compilation error instead of just printing a warning when
|
||||
compiling calls to the multi-threading built-in predicates within an
|
||||
object with no threaded/0 directive present.
|
||||
|
||||
Corrected a bug when compiling entities containing synchronization
|
||||
directives on single-threaded Prolog configurations.
|
||||
|
||||
Improving reporting of working directory when loading or compiling source
|
||||
files by expanding any environment variables occurring in the path.
|
||||
|
||||
Added a new compiler option, "reload", for defining the Logtalk behavior
|
||||
when reloading source files. Valid values are "always" (default value;
|
||||
defined in the config files) and "skip".
|
||||
|
||||
Updated the programming examples to use the new "reload" compiler option
|
||||
when loading library entities. Simplified loading of example source files
|
||||
(by updating the utility loader files to automatically load all required
|
||||
library files).
|
||||
|
||||
Updated GNU Prolog config file to take advantage of some built-in list
|
||||
predicates (requires version 1.2.14 or later); changed the compiler flag
|
||||
"underscore_vars" value to "dont_care" to avoid spurious warnings with
|
||||
some examples.
|
||||
|
||||
Added a config file for B-Prolog 7.0b1.
|
||||
|
||||
Updated the POSIX integration shell scripts to pass along any command
|
||||
line options to the corresponding Prolog compiler and to prevent some
|
||||
problems with paths containing spaces.
|
||||
|
||||
Much improved syntax coloring and code completion support for the jEdit
|
||||
text editor.
|
||||
|
||||
Updated the "threads/primes" example to use the new "threaded/1" built-in
|
||||
predicate. Updated the "threads/birthdays" example to better illustrate
|
||||
the use of the built-in multi-threading predicates. Added a new
|
||||
multi-threading example, "msort", implementing single-threaded and
|
||||
multi-threaded versions of the merge sort algorithm.
|
||||
|
||||
Expanded the "operators" example to illustrate a simple solution for
|
||||
making operators local to source files (but global to all entities
|
||||
defined within the source files).
|
||||
|
||||
|
||||
2.29.4 - February 19, 2007
|
||||
|
||||
Added a new library category, "listing", defining listing/0 and
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -154,3 +154,7 @@ and "synchronized" entity properties implies recompilation of all objects
|
||||
and categories.
|
||||
|
||||
Logtalk 2.29.2 removes the built-in predicate threaded_discard/1.
|
||||
|
||||
Logtalk 2.29.5 adds a new compiler option, "reload", whose default value is
|
||||
defined in the config files. This makes previous config files incompatible
|
||||
with this new Logtalk version.
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -9,20 +9,20 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
This folder contains several examples of Logtalk programs. A brief
|
||||
description of each example is included below.
|
||||
|
||||
Each example folder contains a NOTES file and a loader helper file which
|
||||
may be used to load all the example entities. In addition, most examples
|
||||
contain a SCRIPT file with instructions on how to load the example and
|
||||
sample queries for your to try.
|
||||
Each example folder contains a "NOTES.txt" file and a loader helper
|
||||
file that may be used to load all the example entities. In addition,
|
||||
most examples contain a "SCRIPT.txt" file with instructions on how to
|
||||
load the example and sample queries for your to try.
|
||||
|
||||
Most of these examples need objects, protocols, and categories which are
|
||||
defined in the Logtalk standard library or in other examples. See the NOTES
|
||||
files inside the library folder, plus the NOTES and SCRIPT files inside each
|
||||
example folder.
|
||||
Most of these examples need objects, protocols, and categories that
|
||||
are defined in the Logtalk standard library or in other examples. See
|
||||
the "NOTES.txt" files inside the library folder, plus the "NOTES.txt"
|
||||
and "SCRIPT.txt" files inside each example folder.
|
||||
|
||||
Some examples may redefine objects already loaded from other examples.
|
||||
You may want to restart Logtalk after trying each example.
|
||||
|
||||
Some of the examples code have been adopted from public available Prolog
|
||||
Some of the examples have been adopted from public available Prolog
|
||||
code or from known Prolog text books and are copyrighted by the respective
|
||||
authors.
|
||||
|
||||
@ -33,27 +33,28 @@ solutions for deployment code.
|
||||
|
||||
All examples are formatted using four spaces tabs.
|
||||
|
||||
By default, compiling an example generates a .xml documenting file for each
|
||||
compiled entity (object, category, or protocol). See the "xml" folder for
|
||||
instructions on how to browse the .xml files for on-line reading or how to
|
||||
convert the files to a print-ready format such as PDF.
|
||||
By default, compiling an example generates a XML documenting file for
|
||||
each compiled entity (object, category, or protocol). See the "xml"
|
||||
folder for instructions on how to browse the XML files for on-line
|
||||
reading or how to convert the files to a print-ready format such as PDF.
|
||||
|
||||
|
||||
Here is a short description of each included example:
|
||||
|
||||
aliases
|
||||
example of using the alias/3 predicate directive to provide alternative
|
||||
names to inherited predicates in order to improve readability or to solve
|
||||
multi-inheritance conflicts
|
||||
example of using the alias/3 predicate directive to provide
|
||||
alternative names to inherited predicates in order to improve
|
||||
readability or to solve multi-inheritance conflicts
|
||||
|
||||
assignvars
|
||||
example of using assignable variables in the context of parametric objects
|
||||
in order to represent object state
|
||||
example of using assignable variables in the context of parametric
|
||||
objects in order to represent object state
|
||||
|
||||
benchmarks
|
||||
simple benchmarks for helping measuring performance of Logtalk message
|
||||
sending between Prolog compilers and for comparing performance of message
|
||||
sending calls with predicate calls in plain Prolog
|
||||
simple benchmarks for helping measuring performance of Logtalk
|
||||
message sending between Prolog compilers and for comparing
|
||||
performance of message sending calls with predicate calls in
|
||||
plain Prolog
|
||||
|
||||
birds
|
||||
bird identification expert system
|
||||
@ -78,16 +79,16 @@ diamonds
|
||||
(multi-inheritance conflicts and ambiguities)
|
||||
|
||||
dynpred
|
||||
example of using some of the built-in database handling methods in
|
||||
order to implement dynamic object state
|
||||
example of using some of the built-in database handling methods
|
||||
in order to implement dynamic object state
|
||||
|
||||
encodings
|
||||
very simple example of using the new, experimental encoding/1
|
||||
directive (requires Logtalk to be run with the SWI-Prolog compiler)
|
||||
|
||||
engines
|
||||
example of category composition (importation of categories by other
|
||||
categories) using car engines
|
||||
example of category composition (importation of categories by
|
||||
other categories) using car engines
|
||||
|
||||
errors
|
||||
example showing the Logtalk compiler warning and error reporting
|
||||
@ -121,8 +122,8 @@ metapredicates
|
||||
example of using meta-predicates in Logtalk objects
|
||||
|
||||
metainterpreters
|
||||
some examples of simple meta-interpreters defined as categories which
|
||||
may be imported by "database" objects
|
||||
some examples of simple meta-interpreters defined as categories
|
||||
that can be imported by "database" objects
|
||||
|
||||
mi
|
||||
simple multi-inheritance examples
|
||||
@ -134,8 +135,8 @@ modules
|
||||
simple example of compiling Prolog module files as objects
|
||||
|
||||
msglog
|
||||
example of using events and monitors for recording, replaying, and
|
||||
printing user messages
|
||||
example of using events and monitors for recording, replaying,
|
||||
and printing user messages
|
||||
|
||||
operators
|
||||
example of using operators local to objects and categories
|
||||
@ -147,9 +148,9 @@ poem
|
||||
examples adopted from the Ben Staveley-Taylor POEM system
|
||||
|
||||
points
|
||||
example adopted from SICStus Objects documentation; defines a simple
|
||||
class hierarchy of points illustrating how to use categories as
|
||||
object components
|
||||
example adopted from SICStus Objects documentation; defines
|
||||
a simple class hierarchy of points illustrating how to use
|
||||
categories as object components
|
||||
|
||||
polygons
|
||||
example of representation and handling of relations using events
|
||||
@ -172,30 +173,31 @@ relations
|
||||
constrained relations between objects; used by other examples
|
||||
|
||||
roots
|
||||
objects, protocols, and categories needed by most of the other examples;
|
||||
illustrates how you can define object creation and abolishing methods,
|
||||
complete with initialization and termination options
|
||||
objects, protocols, and categories needed by most of the other
|
||||
examples; illustrates how you can define object creation and
|
||||
abolishing methods, complete with initialization and termination
|
||||
options
|
||||
|
||||
searching
|
||||
state-space searching framework
|
||||
(example adopted from Ivan Bratko's "Prolog Programming for Artificial
|
||||
Intelligence" book)
|
||||
(example adopted from Ivan Bratko's "Prolog Programming for
|
||||
Artificial Intelligence" book)
|
||||
|
||||
shapes
|
||||
simple geometric shapes implemented as both a prototype hierarchy and a
|
||||
class hierarchy
|
||||
simple geometric shapes implemented as both a prototype hierarchy
|
||||
and a class hierarchy
|
||||
|
||||
sicstus
|
||||
examples adopted from SICStus Objects documentation
|
||||
|
||||
symdiff
|
||||
example of using parametric objects to implement symbolic expression
|
||||
differentiation and simplification
|
||||
example of using parametric objects to implement symbolic
|
||||
expression differentiation and simplification
|
||||
|
||||
threads
|
||||
several simple examples of multi-threading programming
|
||||
(requires Logtalk to be run with either YAP or SWI-Prolog)
|
||||
|
||||
viewpoints
|
||||
example on how to implement property sharing and value sharing with
|
||||
prototypes
|
||||
example on how to implement property sharing and value sharing
|
||||
with prototypes
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[aliases])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[aliases], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load(aliases)).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,18 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the "assignvars" category:
|
||||
|
||||
| ?- logtalk_load(library(assignvars)).
|
||||
...
|
||||
|
||||
|
||||
% now you are ready for loading the example:
|
||||
% start by loading the "assignvars" category and the example:
|
||||
|
||||
| ?- logtalk_load(assignvars(loader)).
|
||||
...
|
||||
|
@ -1,13 +1,4 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[fsm3, rectangle3])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[fsm3, rectangle3], [xmlsref(standalone)])).
|
||||
*/
|
||||
:- initialization((
|
||||
logtalk_load(library(assignvars), [reload(skip)]),
|
||||
logtalk_load([fsm3, rectangle3]))).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -3,8 +3,4 @@
|
||||
%:- ensure_loaded(module).
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
benchmark,
|
||||
plain,
|
||||
object,
|
||||
database])).
|
||||
logtalk_load([benchmark, plain, object, database])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,19 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the necessary library support files (if not
|
||||
% already loaded):
|
||||
|
||||
| ?- logtalk_load(library(hierarchies_loader)).
|
||||
...
|
||||
|
||||
|
||||
% now you are ready for loading the example:
|
||||
% start by loading the example and the required library files:
|
||||
|
||||
| ?- logtalk_load(birds(loader)).
|
||||
...
|
||||
|
@ -1,15 +1,4 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
descriptors,
|
||||
birds,
|
||||
expert])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[birds], [xmlsref(standalone)])).
|
||||
*/
|
||||
:- initialization((
|
||||
logtalk_load(library(hierarchies_loader), [reload(skip)]),
|
||||
logtalk_load([descriptors, birds, expert]))).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,11 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(bottles)).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(bottles, [events(on), xmlsref(standalone)])).
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,25 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the necessary library and support example files (if not
|
||||
% already loaded):
|
||||
|
||||
| ?- logtalk_load(library(all_loader)).
|
||||
...
|
||||
|
||||
| ?- logtalk_load(roots(loader)).
|
||||
...
|
||||
|
||||
| ?- logtalk_load(relations(loader)).
|
||||
...
|
||||
|
||||
|
||||
% now you are ready for loading the example:
|
||||
% start by loading the example and the required library files:
|
||||
|
||||
| ?- logtalk_load(bricks(loader)).
|
||||
...
|
||||
@ -27,16 +14,7 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
|
||||
% create four bricks, all standing on the "ground" (use your imagination... ;-)
|
||||
|
||||
| ?- brick::new(a, [position-(8, 1)]).
|
||||
yes
|
||||
|
||||
| ?- brick::new(b, [position-(6, 1)]).
|
||||
yes
|
||||
|
||||
| ?- brick::new(c, [position-(4, 1)]).
|
||||
yes
|
||||
|
||||
| ?- brick::new(d, [position-(2, 1)]).
|
||||
| ?- brick::(new(a, [position-(8, 1)]), new(b, [position-(6, 1)]), new(c, [position-(4, 1)]), new(d, [position-(2, 1)])).
|
||||
yes
|
||||
|
||||
% set up ascii stack monitor so we can watch the bricks moving
|
||||
@ -47,20 +25,14 @@ yes
|
||||
|
||||
% make the stack
|
||||
|
||||
| ?- brick_stack::add_tuple([c,d]).
|
||||
| ?- brick_stack::(add_tuple([c,d]), add_tuple([b,c]), add_tuple([a,b])).
|
||||
|.c......
|
||||
|.d...b.a
|
||||
---------
|
||||
yes
|
||||
|
||||
| ?- brick_stack::add_tuple([b,c]).
|
||||
|.b......
|
||||
|.c......
|
||||
|.d.....a
|
||||
---------
|
||||
yes
|
||||
|
||||
| ?- brick_stack::add_tuple([a,b]).
|
||||
|.a
|
||||
|.b
|
||||
|.c
|
||||
|
@ -1,13 +1,6 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[bricks], [events(on)])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[bricks], [events(on), xmlsref(standalone)])).
|
||||
*/
|
||||
:- initialization((
|
||||
logtalk_load(library(all_loader), [reload(skip)]),
|
||||
logtalk_load(roots(loader), [reload(skip)]),
|
||||
logtalk_load(relations(loader), [reload(skip)]),
|
||||
logtalk_load(bricks, [events(on)]))).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[classvars])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[classvars], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load(classvars)).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -16,26 +16,3 @@
|
||||
faa,
|
||||
bypass,
|
||||
dcgtest])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[parsep,
|
||||
calculator,
|
||||
enigma,
|
||||
parsetree,
|
||||
sentences,
|
||||
tokenizer,
|
||||
macaddr,
|
||||
url,
|
||||
xml,
|
||||
shell,
|
||||
walker,
|
||||
bom,
|
||||
faa,
|
||||
bypass,
|
||||
dcgtest], [xmlsref(standalone)])).
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[diamond1, diamond2, diamond3])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[diamond1, diamond2, diamond3], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load([diamond1, diamond2, diamond3])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,17 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
protos,
|
||||
classes,
|
||||
prototype])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[protos,
|
||||
classes,
|
||||
prototype], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load([protos, classes, prototype])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[babel, latin])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[babel, latin], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load([babel, latin])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[engines])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[engines], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load(engines)).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[warnings],
|
||||
warnings,
|
||||
[unknown(warning), misspelt(warning), singletons(warning), plredef(warning), lgtredef(warning), portability(warning), report(on)])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -8,7 +8,7 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
|
||||
% start by loading the example:
|
||||
|
||||
| ?- logtalk_load([library(term_expansionp), expansion(loader)]).
|
||||
| ?- logtalk_load(expansion(loader)).
|
||||
...
|
||||
|
||||
|
||||
|
@ -1,9 +1,3 @@
|
||||
|
||||
:- initialization(logtalk_load(expansion)).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(logtalk_load(expansion, [xmlsref(standalone)])).
|
||||
*/
|
||||
:- initialization(
|
||||
logtalk_load([library(term_expansionp), expansion])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
hello_world])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[hello_world], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load(hello_world)).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,11 +1,4 @@
|
||||
|
||||
:- initialization(
|
||||
(logtalk_load(hook),
|
||||
logtalk_load(object, [hook(hook::hook), xmldocs(on)]))).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(logtalk_load(hooks, [hook(hook::hook), xmldocs(on), xmlsref(standalone)])).
|
||||
*/
|
||||
:- initialization((
|
||||
logtalk_load(hook),
|
||||
logtalk_load(object, [hook(hook::hook), xmldocs(on)]))).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -19,7 +19,6 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
public/0 - public
|
||||
protected/0 - protected
|
||||
private/0 - private
|
||||
interface/0 - public
|
||||
|
||||
yes
|
||||
|
||||
@ -28,7 +27,6 @@ yes
|
||||
|
||||
| ?- prototype1::interface.
|
||||
|
||||
interface/0 - public
|
||||
public/0 - public
|
||||
protected/0 - protected
|
||||
|
||||
@ -39,7 +37,6 @@ yes
|
||||
|
||||
| ?- prototype2::interface.
|
||||
|
||||
interface/0 - public
|
||||
public/0 - protected
|
||||
protected/0 - protected
|
||||
|
||||
@ -50,7 +47,6 @@ yes
|
||||
|
||||
| ?- prototype3::interface.
|
||||
|
||||
interface/0 - public
|
||||
public/0 - private
|
||||
protected/0 - private
|
||||
|
||||
@ -61,7 +57,6 @@ yes
|
||||
|
||||
| ?- descendant1::interface.
|
||||
|
||||
interface/0 - public
|
||||
public/0 - public
|
||||
protected/0 - protected
|
||||
|
||||
@ -72,7 +67,6 @@ yes
|
||||
|
||||
| ?- descendant2::interface.
|
||||
|
||||
interface/0 - public
|
||||
public/0 - protected
|
||||
protected/0 - protected
|
||||
|
||||
@ -83,8 +77,6 @@ yes
|
||||
|
||||
| ?- descendant3::interface.
|
||||
|
||||
interface/0 - public
|
||||
|
||||
yes
|
||||
|
||||
|
||||
@ -95,7 +87,6 @@ yes
|
||||
public/0 - public
|
||||
protected/0 - protected
|
||||
private/0 - private
|
||||
interface/0 - public
|
||||
|
||||
yes
|
||||
|
||||
@ -104,7 +95,6 @@ yes
|
||||
|
||||
| ?- instance1::interface.
|
||||
|
||||
interface/0 - public
|
||||
public/0 - public
|
||||
protected/0 - protected
|
||||
|
||||
@ -115,7 +105,6 @@ yes
|
||||
|
||||
| ?- instance2::interface.
|
||||
|
||||
interface/0 - public
|
||||
public/0 - protected
|
||||
protected/0 - protected
|
||||
|
||||
@ -126,7 +115,6 @@ yes
|
||||
|
||||
| ?- instance3::interface.
|
||||
|
||||
interface/0 - public
|
||||
public/0 - private
|
||||
protected/0 - private
|
||||
|
||||
|
@ -15,7 +15,8 @@ object predicates.
|
||||
interface :-
|
||||
forall(
|
||||
(::current_predicate(Functor/Arity),
|
||||
functor(Pred, Functor, Arity)),
|
||||
functor(Pred, Functor, Arity),
|
||||
Pred \= interface),
|
||||
(::predicate_property(Pred, Prop),
|
||||
scope_property(Prop), % we are only interested on scope properties
|
||||
writeq(Functor/Arity), write(' - '), writeq(Prop), nl)).
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[predicates, interface, prototypes, classes])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[predicates, interface, prototypes, classes], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load([predicates, interface, prototypes, classes])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[instmethods])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[instmethods], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load(instmethods)).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
planner])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[planner], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load(planner)).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[sorting, towns, salesman])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[sorting, towns, salesman], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load([sorting, towns, salesman])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -6,14 +6,4 @@
|
||||
:- op(40, xfx, <=>).
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
translator])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[translator], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load(translator)).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,19 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the necessary library support files (if not
|
||||
% already loaded):
|
||||
|
||||
| ?- logtalk_load(library(hierarchies_loader)).
|
||||
...
|
||||
|
||||
|
||||
% now you are ready for loading the example:
|
||||
% start by loading the example and the required library files:
|
||||
|
||||
| ?- logtalk_load(lpa_faults(loader)).
|
||||
...
|
||||
|
@ -1,13 +1,4 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
faults])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[faults], [xmlsref(standalone)])).
|
||||
*/
|
||||
:- initialization((
|
||||
logtalk_load(library(hierarchies_loader), [reload(skip)]),
|
||||
logtalk_load(faults))).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,19 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the necessary library support example files (if not
|
||||
% already loaded):
|
||||
|
||||
| ?- logtalk_load(library(types_loader)).
|
||||
...
|
||||
|
||||
|
||||
% now you are ready for loading the example:
|
||||
% start by loading the example and the required library files:
|
||||
|
||||
| ?- logtalk_load(lpa_timetables(loader)).
|
||||
...
|
||||
|
@ -1,8 +1,4 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
timetable,
|
||||
forms,
|
||||
periods,
|
||||
subjects,
|
||||
teachers])).
|
||||
:- initialization((
|
||||
logtalk_load(library(types_loader), [reload(skip)]),
|
||||
logtalk_load([timetable, forms, periods, subjects, teachers]))).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[metainterpreters, database, rules])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[metainterpreters, database], [xmlsref(standalone), rules])).
|
||||
*/
|
||||
logtalk_load([metainterpreters, database, rules])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,19 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the necessary library support files (if not
|
||||
% already loaded):
|
||||
|
||||
| ?- logtalk_load(library(types_loader)).
|
||||
...
|
||||
|
||||
|
||||
% now you are ready for loading the example:
|
||||
% start by loading the example and the required library files:
|
||||
|
||||
| ?- logtalk_load(metapredicates(loader)).
|
||||
...
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
/* Logtalk meta-predicates accept not only goals but also closures
|
||||
/* Logtalk meta-predicates accept both goals and closures
|
||||
as meta-arguments as illustrated in this example
|
||||
*/
|
||||
|
||||
|
@ -1,15 +1,4 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
closures,
|
||||
metapredicates])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
closures,
|
||||
metapredicates], [xmlsref(standalone)])).
|
||||
*/
|
||||
:- initialization((
|
||||
logtalk_load(library(types_loader), [reload(skip)]),
|
||||
logtalk_load([closures, metapredicates]))).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,13 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[mi])).
|
||||
|
||||
/*
|
||||
If you intend to use the FOP XSL:FO processor for generating PDF documenting
|
||||
files, comment the directive above and uncomment the directive below
|
||||
|
||||
:- initialization(
|
||||
logtalk_load(
|
||||
[mi], [xmlsref(standalone)])).
|
||||
*/
|
||||
logtalk_load(mi)).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,19 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the necessary library support files (if not
|
||||
% already loaded):
|
||||
|
||||
| ?- logtalk_load(library(types_loader)).
|
||||
...
|
||||
|
||||
|
||||
% now you are ready for loading the example:
|
||||
% start by loading the example and the required library files:
|
||||
|
||||
| ?- logtalk_load(miscellaneous(loader)).
|
||||
...
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
hanoi,
|
||||
queens])).
|
||||
:- initialization((
|
||||
logtalk_load(library(types_loader), [reload(skip)]),
|
||||
logtalk_load([hanoi, queens]))).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,7 +1,3 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
exports,
|
||||
list,
|
||||
meta,
|
||||
test])).
|
||||
logtalk_load([exports, list, meta, test])).
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,19 +1,12 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.29.4
|
||||
Release 2.29.5
|
||||
|
||||
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the necessary library support files (if not
|
||||
% already loaded):
|
||||
|
||||
| ?- logtalk_load(library(types_loader)).
|
||||
...
|
||||
|
||||
|
||||
% now you are ready for loading the example:
|
||||
% start by loading the example and the required library files:
|
||||
|
||||
| ?- logtalk_load(msglog(loader)).
|
||||
...
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user