Logtalk 2.13.0 release files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@535 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura 2002-06-15 13:18:34 +00:00
parent 9809cca4d5
commit 3638b381dd
86 changed files with 602 additions and 502 deletions

View File

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

View File

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

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.12.0
Release 2.13.0
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -10,6 +10,24 @@ RELEASE NOTES
=============
2.13.0 - June 15, 2002
Logtalk now outputs Prolog code using write_canonical/2 instead of
write_term/3. Goals are better portability of the generated Prolog files
and avoid issues with clauses with long bodies for Prolog compilers that
use a term print depth limit to prevent problems with cyclic terms.
Added report of default flag values at Logtalk startup.
Logtalk now prints a warning when redefining parametric objects.
Removed need of an abort/0 predicate from the Logtalk debugger example.
Removed any definition of this predicate from the config files.
Added missing definitions for some ISO built-in predicates to the Amzi!
Prolog 6.2.2 config file.
2.12.0 - May 25, 2002
New read-only Logtalk flag "version". Corrected exception term generated

View File

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

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.12.0
Release 2.13.0
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -8,8 +8,8 @@ Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
This folder contains several examples of Logtalk programs. Most of
these examples need objects, protocols, and categories that are
defined in the Logtalk standard library or in other examples, so
you should load them first (see the NOTES file inside each example
folder).
you should load them first (see the NOTES file inside the library
folder and inside each example folder).
Some examples may redefine objects already loaded from other examples.
You may want to restart Logtalk after trying each example.
@ -18,7 +18,7 @@ Some of the examples code have been adopted from public available
Prolog code and from known Prolog text books and are copyrighted by
the respective authors.
These are programming examples, meaning that you should look at the
These are programming examples, meaning that you should study the
source files to fully understand them.
All examples are formatted using four spaces tabs.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +1,6 @@
:- object(instance, instantiates(class)). :- end_object.
:- object(instance,
instantiates(class)).
:- end_object.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.12.0
Release 2.13.0
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -17,9 +17,9 @@ Day = 15
Yes
| ?- date(Year, _, _)::(today, leap_year).
| ?- date(Year, _, _)::(today, \+ leap_year).
Year = 2000
Year = 2002
yes

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.12.0
Release 2.13.0
Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
=================================================================
@ -9,8 +9,9 @@ This folder contains objects, categories, and protocols that implement
predicates for dealing with common Prolog types and structures.
To load a group of objects, protocols, and categories in this library
consult the corresponding *.loader utility file. Currently, there are
seven groups of entities defined:
change your Prolog working directory to this folder and then consult
the corresponding *.loader utility file. Currently, there are seven
groups of entities defined:
dates
debugging

View File

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

View File

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

View File

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

View File

@ -137,7 +137,7 @@
!.
execute_option(a) :-
abort.
throw(error(logtalk_execution_aborted)).
execute_option(h) :-
::stream(output, Output),

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,14 +4,14 @@
<html>
<head>
<title>Logtalk 2.12.0 Documentation</title>
<title>Logtalk 2.13.0 Documentation</title>
<link rel=stylesheet href="styles.css" type="text/css">
</head>
<body>
<hr />
<h1 class="center">Logtalk 2.12.0</h1>
<h1 class="center">Logtalk 2.13.0</h1>
<h3 class="center">Documentation</h3>
<p class="center">
@ -42,7 +42,7 @@
<hr />
<p class="center">
Last updated on: May 19, 2002
Last updated on: June 15, 2002
</p>
<p class="center">
<a href="http://validator.w3.org/check/referer"><img src="vh401.gif" alt="Valid HTML 4.01!" width="88" height="31"></a>

View File

@ -38,10 +38,9 @@ In writing Logtalk I have tried to follow the recently approved Prolog ISO stand
</p>
<ul>
<li>access to predicate properties (<code>dynamic</code>, <code>static</code>, <code>built_in</code>)</li>
<li><code>abort/0</code> predicate</li>
</ul>
<p>
Logtalk needs access to the predicate property<code>built_in</code> to properly compile objects and categories that contain Prolog built-in predicates calls. In addition, some Logtalk built-ins need to know the dynamic/static status of predicates to ensure correct application. The current draft for the ISO standard for Prolog modules defines a <code>predicate_property/2</code> predicate that is already implemented by most Prolog compilers. The Logtalk compiler and runtime use the <code>abort/0</code> predicate for error handling. Note that if these capabilities are not built-in the user cannot easily define them.</p>
Logtalk needs access to the predicate property<code>built_in</code> to properly compile objects and categories that contain Prolog built-in predicates calls. In addition, some Logtalk built-ins need to know the dynamic/static status of predicates to ensure correct application. The ISO standard for Prolog modules defines a <code>predicate_property/2</code> predicate that is already implemented by most Prolog compilers. Note that if these capabilities are not built-in the user cannot easily define them.</p>
<p>
For optimal performance, Logtalk requires that the Prolog compiler supports <strong>first-argument indexing</strong> for both static and dynamic code (most modern compilers support this feature).
</p>
@ -70,7 +69,7 @@ If you are unsure that your Prolog compiler provides all the ISO predicates need
<strong><a href="documenting.html">Previous</a> | <a href="installing.html">Next</a> | <a href="index.html">Table of Contents</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: May 6, 2002
Last updated on: June 15, 2002
</p>
<hr />

View File

@ -218,7 +218,7 @@
<strong><a title="Consult reference manual" href="../refman/index.html">Reference manual</a> | <a href="../tutorial/index.html">Tutorial</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: May 6, 2002
Last updated on: June 15, 2002
</p>
<hr />

View File

@ -92,6 +92,9 @@ In the Logtalk installation directory, you will find the following files and dir
<dd><code>glossary.html</code> - glossary</dd>
<dd><code>index.html</code> - root document for all documentation</dd>
<dd><code>...</code> - other documentation files</dd>
<dt><code>wenv</code></dt>
<dd><code>NOTES</code> - notes on the text editors syntax configuration files providing syntax coloring for editing Logtalk source files</dd>
<dd><code>...</code> - syntax configuration files</dd>
<dt><code>xml</code></dt>
<dd><code>NOTES</code> - notes on the automatic generation of XML documentation files</dd>
<dd><code>logtalk.css</code> - cascade style sheet file for the HTML output of the XSLT conversion of the XML files</dd>
@ -304,7 +307,7 @@ Some caveats that you should be aware. First, some warnings that might be produc
If you use Logtalk for batch processing, you probably want to supress most, if not all, banners, messages, and warnings that are normally printed by the system.
</p>
<p>
To supress printing of the Logtalk startup banner, turn off the option <code>startup_message</code> in the config file that you are using.
To supress printing of the Logtalk startup banner and default flags, turn off the option <code>startup_message</code> in the config file that you are using.
</p>
<p>
To supress printing of compiling and loading messages (including compiling warnings but not error messages), turn off the option <code>report</code> in the used config file.
@ -315,7 +318,7 @@ To supress printing of compiling and loading messages (including compiling warni
<strong><a href="configuration.html">Previous</a> | <a href="programming.html">Next</a> | <a href="index.html">Table of Contents</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong>
</p>
<p class="center">
Last updated on: May 6, 2002
Last updated on: June 12, 2002
</p>
<hr />

View File

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

View File

@ -1 +1,52 @@
! Syntax highlighting patterns file for Logtalk (http://www.logtalk.org) ! ! Author: Paulo Moura (pmoura at logtalk.org) ! ! Last changed in: May, 21 ! ! ! To install this patterns file: ! ! 1. Load this file by starting nedit from the command line: ! ! % nedit -import logtalk.pats ! ! 2. Go to the Preferences menu and verify that the patterns were loaded ! correctly. ! ! 3. If everything is correct, choose the option Save Defaults from the ! Preferences menu. ! ! nedit.fileVersion: 5.2 nedit.highlightPatterns: Logtalk:1:0{\n\ Entity directives:":\\-\\sobject|:\\-\\sprotocol|:\\-\\scategory|:\\-\\send_object|:\\-\\send_protocol|:\\-\\send_category":::Keyword::\n\ Entity relations:"<(instantiates|specializes|extends|imports|implements)>":::Keyword::\n\ Directives:":\\-\\sinitialization|:\\-\\sinfo|:\\-\\smode|:\\-\\sdynamic|:\\-\\sdiscontiguous|:\\-\\spublic|:\\-\\sprotected|:\\-\\sprivate|:\\-\\smetapredicate|:\\-\\sop|:\\-\\scalls|:\\-\\suses":::Keyword::\n\ Clause operators:":\\-|\\.":::Keyword::\n\ Term testing:"<[^+?@-](var|atom|integer|float|atomic|compound|nonvar|number)>":::Subroutine1::\n\ Message sending operators:"::|\\^\\^":::Keyword::\n\ Control constructs:"!|,|;|\\-\\>|<(true|fail|call|catch|throw)>":::Subroutine::\n\ Block comment:"/\\*":"\\*/"::Comment::\n\ Line comment:"%":"$"::Comment::\n\ String:"'":"'"::String::\n\ Built-in methods:"<(parameter|self|sender|this|current_predicate|predicate_property|abolish|asserta|assertz|retractall|retract|bagof|findall|forall|setof|before|after)>":::Subroutine::\n\ Arithmetic operators:"<is>|\\+|\\*|\\-|/|=:=|=\\\\=|=\\<|\\>=|\\<|\\>":::Subroutine1::\n\ Built-in predicates:"<(current_object|current_protocol|current_category|create_object|create_protocol|create_category|object_property|protocol_property|category_property|abolish_object|abolish_protocol|abolish_vategory|extends_object|extends_protocol|omplements_protocol|instantiates_object|specializes_object|imports_category|abolish_events|current_events|define_events|current_logtalk_flag|set_logtalk_flag|logtalk_compile|logtalk_load|forall|logtalk_version|retractall)>":::Subroutine1::\n\ Term unification:"=|<unify_with_occurs_check>|\\\\=":::Subroutine1::\n\ Term comparison:"@=\\<|==|\\\\==|@\\>=|@\\<|@\\>":::Subroutine1::\n\ Term creation and decomposition:"<(functor|arg|copy_term)>|=\\.\\.":::Subroutine1::\n\ Mode operators:"\\?|@":::Subroutine1::\n\ Stream selection and control:"<(current_input|current_output|set_input|set_output|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)>":::Subroutine1::\n\ Character input-output:"<(get_char|get_code|peek_char|peek_code|put_char|put_code|nl)>":::Subroutine1::\n\ Byte input-output:"<(get_byte|peek_byte|put_byte)>":::Subroutine1::\n\ Term input-output:"<(read_term|read|write_canonical|write_term|writeq|write|current_op|op|current_char_conversion|char_conversion)>":::Subroutine1::\n\ Logic and control:"\\\\\\+|<(once|repeat)>":::Subroutine::\n\ Atomic term processing:"<(atom_length|atom_concat|sub_atom|atom_chars|atom_codes|char_code|number_chars|number_codes)>":::Subroutine1::\n\ Implementation defined hooks:"<(set_prolog_flag|current_prolog_flag)>":::Subroutine1::\n\ Evaluable functors:"\\+|-|\\*|//|/|<(rem|mod|abs|sign|float_integer_part|float_fractional_part|float|floor|truncate|round|ceiling)>":::Subroutine1::\n\ Other arithemtic functors:"\\*\\*|<(sin|cos|atan|exp|log|sqrt)>":::Subroutine1::\n\ Bitwise functors:">>|<<|/\\\\|\\\\/|\\\\":::Subroutine1::\n\ } nedit.languageModes: Logtalk:.lgt::::4:4:\n\
! Syntax highlighting patterns file for Logtalk (http://www.logtalk.org)
!
! Author: Paulo Moura (pmoura at logtalk.org)
!
! Last changed in: May, 21
!
!
! To install this patterns file:
!
! 1. Load this file by starting nedit from the command line:
!
! % nedit -import logtalk.pats
!
! 2. Go to the Preferences menu and verify that the patterns were loaded
! correctly.
!
! 3. If everything is correct, choose the option Save Defaults from the
! Preferences menu.
!
!
nedit.fileVersion: 5.2
nedit.highlightPatterns: Logtalk:1:0{\n\
Entity directives:":\\-\\sobject|:\\-\\sprotocol|:\\-\\scategory|:\\-\\send_object|:\\-\\send_protocol|:\\-\\send_category":::Keyword::\n\
Entity relations:"<(instantiates|specializes|extends|imports|implements)>":::Keyword::\n\
Directives:":\\-\\sinitialization|:\\-\\sinfo|:\\-\\smode|:\\-\\sdynamic|:\\-\\sdiscontiguous|:\\-\\spublic|:\\-\\sprotected|:\\-\\sprivate|:\\-\\smetapredicate|:\\-\\sop|:\\-\\scalls|:\\-\\suses":::Keyword::\n\
Clause operators:":\\-|\\.":::Keyword::\n\
Term testing:"<[^+?@-](var|atom|integer|float|atomic|compound|nonvar|number)>":::Subroutine1::\n\
Message sending operators:"::|\\^\\^":::Keyword::\n\
Control constructs:"!|,|;|\\-\\>|<(true|fail|call|catch|throw)>":::Subroutine::\n\
Block comment:"/\\*":"\\*/"::Comment::\n\
Line comment:"%":"$"::Comment::\n\
String:"'":"'"::String::\n\
Built-in methods:"<(parameter|self|sender|this|current_predicate|predicate_property|abolish|asserta|assertz|retractall|retract|bagof|findall|forall|setof|before|after)>":::Subroutine::\n\
Arithmetic operators:"<is>|\\+|\\*|\\-|/|=:=|=\\\\=|=\\<|\\>=|\\<|\\>":::Subroutine1::\n\
Built-in predicates:"<(current_object|current_protocol|current_category|create_object|create_protocol|create_category|object_property|protocol_property|category_property|abolish_object|abolish_protocol|abolish_vategory|extends_object|extends_protocol|omplements_protocol|instantiates_object|specializes_object|imports_category|abolish_events|current_events|define_events|current_logtalk_flag|set_logtalk_flag|logtalk_compile|logtalk_load|forall|logtalk_version|retractall)>":::Subroutine1::\n\
Term unification:"=|<unify_with_occurs_check>|\\\\=":::Subroutine1::\n\
Term comparison:"@=\\<|==|\\\\==|@\\>=|@\\<|@\\>":::Subroutine1::\n\
Term creation and decomposition:"<(functor|arg|copy_term)>|=\\.\\.":::Subroutine1::\n\
Mode operators:"\\?|@":::Subroutine1::\n\
Stream selection and control:"<(current_input|current_output|set_input|set_output|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)>":::Subroutine1::\n\
Character input-output:"<(get_char|get_code|peek_char|peek_code|put_char|put_code|nl)>":::Subroutine1::\n\
Byte input-output:"<(get_byte|peek_byte|put_byte)>":::Subroutine1::\n\
Term input-output:"<(read_term|read|write_canonical|write_term|writeq|write|current_op|op|current_char_conversion|char_conversion)>":::Subroutine1::\n\
Logic and control:"\\\\\\+|<(once|repeat)>":::Subroutine::\n\
Atomic term processing:"<(atom_length|atom_concat|sub_atom|atom_chars|atom_codes|char_code|number_chars|number_codes)>":::Subroutine1::\n\
Implementation defined hooks:"<(set_prolog_flag|current_prolog_flag)>":::Subroutine1::\n\
Evaluable functors:"\\+|-|\\*|//|/|<(rem|mod|abs|sign|float_integer_part|float_fractional_part|float|floor|truncate|round|ceiling)>":::Subroutine1::\n\
Other arithemtic functors:"\\*\\*|<(sin|cos|atan|exp|log|sqrt)>":::Subroutine1::\n\
Bitwise functors:">>|<<|/\\\\|\\\\/|\\\\":::Subroutine1::\n\
}
nedit.languageModes: Logtalk:.lgt::::4:4:\n\

View File

@ -1,310 +1,310 @@
; TextPad syntax definitions for Logtalk (http://www.logtalk.org/)
;
; Author: Paulo Moura
; Last changed in: May 21, 2002
;
; Tags used and sugested colors:
; Keywords 1 message sending operators blue
; Keywords 2 entity enclosing directives purple
; Keywords 3 entity directives purple
; Keywords 4 built-in predicates
; Keywords 5 built-in methods
C=1
[Syntax]
Namespace1 = 6
IgnoreCase = NO
InitKeyWordChars =
KeyWordChars = a-zA-Z0-9_:^;*+,-./;<=>?@[\]^{|}
KeyWordLength =
BracketChars =
OperatorChars = <=>?@[\]|
PreprocStart =
SyntaxStart =
SyntaxEnd =
HexPrefix = 0x
CommentStart = /*
CommentEnd = */
CommentStartAlt =
CommentEndAlt =
SingleComment = %
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = Yes
StringStart = '
StringEnd = '
StringAlt = "
StringEsc = '
CharStart =
CharEnd =
CharEsc =
[Keywords 1]
; Logtalk message sending operators
^^
:-
.
,
;
::
; Logtalk external call
{
}
[Keywords 2]
; Logtalk opening entity directives
object
protocol
category
; Logtalk closing entity directives
end_object
end_protocol
end_category
; Logtalk entity relations
instantiates
specializes
extends
imports
implements
[Keywords 3]
; Logtalk directives
initialization
info
mode
dynamic
discontiguous
public
protected
private
metapredicate
op
calls
uses
[Keywords 4]
; Logtalk built-in predicates
current_object
current_protocol
current_category
create_object
create_protocol
create_category
object_property
protocol_property
category_property
abolish_object
abolish_protocol
abolish_category
extends_object
extends_protocol
implements_protocol
instantiates_object
specializes_object
imports_category
abolish_events
current_event
define_events
current_logtalk_flag
set_logtalk_flag
logtalk_compile
logtalk_load
forall
logtalk_version
retractall
[Keywords 5]
; Logtalk built-in methods
parameter
self
sender
this
current_predicate
predicate_property
abolish
asserta
assertz
clause
retract
retractall
bagof
findall
forall
setof
before
after
; Mode operators
?
@
; Control constructs
true
fail
call
!
,
;
->
catch
throw
; Term unification
=
unify_with_occurs_check
\=
; Term testing
var
atom
integer
float
atomic
compound
nonvar
number
; Term comparison
@=<
==
\==
@<
@>
@>=
; Term creation and decomposition
functor
arg
=..
copy_term
; Arithemtic evaluation
is
; Arithemtic comparison
=:=
=\=
<
=<
>
>=
; Stream selection and control
current_input
current_output
set_input
set_output
open
close
flush_output
stream_property
at_end_of_stream
set_stream_position
; Character input/output
get_char
get_code
peek_char
peek_code
put_char
put_code
nl
; Byte input/output
get_byte
peek_byte
put_byte
; Term input/output
read_term
read
write_term
write
writeq
write_canonical
op
current_op
char_conversion
current_char_conversion
; Logic and control
\+
once
repeat
; Atomic term processing
atom_length
atom_concat
sub_atom
atom_chars
atom_codes
char_code
number_chars
number_codes
; Implementation defined hooks functions
set_prolog_flag
current_prolog_flag
halt
; Evaluable functors
+
-
*
//
/
rem
mod
abs
sign
float_integer_part
float_fractional_part
float
floor
truncate
round
ceiling
; Other arithemtic functors
**
sin
cos
atan
exp
log
sqrt
; Bitwise functors
>>
<<
/\
\/
\
; Logtalk end-of-clause
.
; Logtalk list operator
|
; TextPad syntax definitions for Logtalk (http://www.logtalk.org/)
;
; Author: Paulo Moura
; Last changed in: May 21, 2002
;
; Tags used and sugested colors:
; Keywords 1 message sending operators blue
; Keywords 2 entity enclosing directives purple
; Keywords 3 entity directives purple
; Keywords 4 built-in predicates
; Keywords 5 built-in methods
C=1
[Syntax]
Namespace1 = 6
IgnoreCase = NO
InitKeyWordChars =
KeyWordChars = a-zA-Z0-9_:^;*+,-./;<=>?@[\]^{|}
KeyWordLength =
BracketChars =
OperatorChars = <=>?@[\]|
PreprocStart =
SyntaxStart =
SyntaxEnd =
HexPrefix = 0x
CommentStart = /*
CommentEnd = */
CommentStartAlt =
CommentEndAlt =
SingleComment = %
SingleCommentCol =
SingleCommentAlt =
SingleCommentColAlt =
SingleCommentEsc =
StringsSpanLines = Yes
StringStart = '
StringEnd = '
StringAlt = "
StringEsc = '
CharStart =
CharEnd =
CharEsc =
[Keywords 1]
; Logtalk message sending operators
^^
:-
.
,
;
::
; Logtalk external call
{
}
[Keywords 2]
; Logtalk opening entity directives
object
protocol
category
; Logtalk closing entity directives
end_object
end_protocol
end_category
; Logtalk entity relations
instantiates
specializes
extends
imports
implements
[Keywords 3]
; Logtalk directives
initialization
info
mode
dynamic
discontiguous
public
protected
private
metapredicate
op
calls
uses
[Keywords 4]
; Logtalk built-in predicates
current_object
current_protocol
current_category
create_object
create_protocol
create_category
object_property
protocol_property
category_property
abolish_object
abolish_protocol
abolish_category
extends_object
extends_protocol
implements_protocol
instantiates_object
specializes_object
imports_category
abolish_events
current_event
define_events
current_logtalk_flag
set_logtalk_flag
logtalk_compile
logtalk_load
forall
logtalk_version
retractall
[Keywords 5]
; Logtalk built-in methods
parameter
self
sender
this
current_predicate
predicate_property
abolish
asserta
assertz
clause
retract
retractall
bagof
findall
forall
setof
before
after
; Mode operators
?
@
; Control constructs
true
fail
call
!
,
;
->
catch
throw
; Term unification
=
unify_with_occurs_check
\=
; Term testing
var
atom
integer
float
atomic
compound
nonvar
number
; Term comparison
@=<
==
\==
@<
@>
@>=
; Term creation and decomposition
functor
arg
=..
copy_term
; Arithemtic evaluation
is
; Arithemtic comparison
=:=
=\=
<
=<
>
>=
; Stream selection and control
current_input
current_output
set_input
set_output
open
close
flush_output
stream_property
at_end_of_stream
set_stream_position
; Character input/output
get_char
get_code
peek_char
peek_code
put_char
put_code
nl
; Byte input/output
get_byte
peek_byte
put_byte
; Term input/output
read_term
read
write_term
write
writeq
write_canonical
op
current_op
char_conversion
current_char_conversion
; Logic and control
\+
once
repeat
; Atomic term processing
atom_length
atom_concat
sub_atom
atom_chars
atom_codes
char_code
number_chars
number_codes
; Implementation defined hooks functions
set_prolog_flag
current_prolog_flag
halt
; Evaluable functors
+
-
*
//
/
rem
mod
abs
sign
float_integer_part
float_fractional_part
float
floor
truncate
round
ceiling
; Other arithemtic functors
**
sin
cos
atan
exp
log
sqrt
; Bitwise functors
>>
<<
/\
\/
\
; Logtalk end-of-clause
.
; Logtalk list operator
|

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -11741,7 +11741,7 @@ predicate, the system is not packaged as a module not does it use
modules in its implementation.
Logtalk documentation is included in the Logtalk directory. For the
latest news, please see the URL @url{http://www.ci.uc.pt/logtalk/logtalk.html}.
latest news, please see the URL @url{http://www.logtalk.org/}.
@node Parallelism, Tabling, Logtalk, Extensions

View File

@ -2,7 +2,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.12.0
% Release 2.13.0
%
% Copyright (c) 1998-2002 Paulo Moura. All Rights Reserved.
%
@ -1019,7 +1019,7 @@ logtalk_version(Major, Minor, Patch) :-
\+ integer(Patch),
throw(error(type_error(integer, Patch), logtalk_version(Major, Minor, Patch))).
logtalk_version(2, 12, 0).
logtalk_version(2, 13, 0).
@ -1080,7 +1080,7 @@ current_logtalk_flag(Flag, Value) :-
\+ lgt_flag_(Flag, _),
lgt_default_flag(Flag, Value).
current_logtalk_flag(version, version(2, 12, 0)).
current_logtalk_flag(version, version(2, 13, 0)).
@ -1874,13 +1874,22 @@ lgt_load_entity(Entity) :-
% lgt_report_redefined_entity(+atom)
%
% prints a warning if an entity of the same name is already loaded
% does not work for parametric objects...
lgt_report_redefined_entity(Entity) :-
lgt_current_object_(Entity, _, _, _, _),
!,
write('WARNING! redefining '), write(Entity), write(' object'), nl.
lgt_report_redefined_entity(Entity) :- % parametric objects
atom_codes(Entity, Codes),
lgt_append(Codes1, Codes2, Codes),
catch(number_codes(Arity, Codes2), _, fail),
atom_codes(Functor, Codes1),
functor(Loaded, Functor, Arity),
lgt_current_object_(Loaded, _, _, _, _),
!,
write('WARNING! redefining '), write(Entity), write(' object'), nl.
lgt_report_redefined_entity(Entity) :-
lgt_current_protocol_(Entity, _),
!,
@ -4579,44 +4588,16 @@ lgt_report_misspelt_calls([Pred| Preds]) :-
% lgt_write_directives(+stream)
%
% writes the Logtalk and user directives
% writes the directives
lgt_write_directives(Stream) :-
lgt_write_lgt_directives(Stream),
lgt_write_user_directives(Stream).
% lgt_write_lgt_directives(+stream)
%
% writes the Logtalk message sending operator directives
lgt_write_lgt_directives(Stream) :-
write_term(Stream, ':- ', []),
write_term(Stream, op(600, xfy, ::), [quoted(true)]),
write_term(Stream, '.', []), nl(Stream),
write_term(Stream, ':- ', []),
write_term(Stream, op(600, fy, ::), [quoted(true)]),
write_term(Stream, '.', []), nl(Stream),
write_term(Stream, ':- ', []),
write_term(Stream, op(600, fx, ^^), [quoted(true)]),
write_term(Stream, '.', []), nl(Stream).
% lgt_write_user_directives(+stream)
%
% writes the user directives
lgt_write_user_directives(Stream) :-
lgt_directive_(Dir),
write_term(Stream, ':- ', []),
write_term(Stream, Dir, [quoted(true)]),
write_term(Stream, '.', []),
write_canonical(Stream, (:- Dir)),
write(Stream, '.'),
nl(Stream),
fail.
lgt_write_user_directives(_).
lgt_write_directives(_).
@ -4632,16 +4613,16 @@ lgt_write_clauses(Stream) :-
lgt_write_functors_clause(Stream) :-
lgt_entity_functors_(Clause),
write_term(Stream, Clause, [quoted(true)]),
write_term(Stream, '.', []),
write_canonical(Stream, Clause),
write(Stream, '.'),
nl(Stream).
lgt_write_def_clauses(Stream) :-
lgt_def_(Clause),
write_term(Stream, Clause, [quoted(true)]),
write_term(Stream, '.', []), nl(Stream),
write_canonical(Stream, Clause),
write(Stream, '.'), nl(Stream),
fail.
lgt_write_def_clauses(_).
@ -4650,8 +4631,8 @@ lgt_write_def_clauses(_).
lgt_write_ddef_clauses(Stream) :-
lgt_ddef_(Clause),
write_term(Stream, Clause, [quoted(true)]),
write_term(Stream, '.', []), nl(Stream),
write_canonical(Stream, Clause),
write(Stream, '.'), nl(Stream),
fail.
lgt_write_ddef_clauses(_).
@ -4660,8 +4641,8 @@ lgt_write_ddef_clauses(_).
lgt_write_dcl_clauses(Stream) :-
lgt_dcl_(Clause),
write_term(Stream, Clause, [quoted(true)]),
write_term(Stream, '.', []),
write_canonical(Stream, Clause),
write(Stream, '.'),
nl(Stream),
fail.
@ -4671,8 +4652,8 @@ lgt_write_dcl_clauses(_).
lgt_write_super_clauses(Stream) :-
lgt_super_(Clause),
write_term(Stream, Clause, [quoted(true)]),
write_term(Stream, '.', []),
write_canonical(Stream, Clause),
write(Stream, '.'),
nl(Stream),
fail.
@ -4682,8 +4663,8 @@ lgt_write_super_clauses(_).
lgt_write_entity_clauses(Stream) :-
lgt_feclause_(Clause),
write_term(Stream, Clause, [quoted(true)]),
write_term(Stream, '.', []),
write_canonical(Stream, Clause),
write(Stream, '.'),
nl(Stream),
fail.
@ -4701,25 +4682,19 @@ lgt_write_init_call(Stream) :-
lgt_compiler_option(iso_initialization_dir, true),
!,
findall(Clause, lgt_rclause_(Clause), Clauses),
write_term(Stream, ':- initialization((lgt_assert_relation_clauses(', []),
write_term(Stream, Clauses, [quoted(true)]),
write_term(Stream, ')', []),
(lgt_fentity_init_(Call) ->
write_term(Stream, ', ', []),
write_term(Stream, Call, [quoted(true)])
write_canonical(Stream, (:- initialization((lgt_assert_relation_clauses(Clauses), Call))))
;
true),
write_term(Stream, ')).', []), nl(Stream).
write_canonical(Stream, (:- initialization(lgt_assert_relation_clauses(Clauses))))),
write(Stream, '.'), nl(Stream).
lgt_write_init_call(Stream) :-
findall(Clause, lgt_rclause_(Clause), Clauses),
write_term(Stream, ':- lgt_assert_relation_clauses(', []),
write_term(Stream, Clauses, [quoted(true)]),
write_term(Stream, ').', []), nl(Stream),
write_canonical(Stream, (:- initialization(lgt_assert_relation_clauses(Clauses)))),
write(Stream, '.'), nl(Stream),
(lgt_fentity_init_(Call) ->
write_term(Stream, ':- ', []),
write_term(Stream, Call, [quoted(true)]),
write_term(Stream, '.', []),
write_canonical(Stream, (:- Call)),
write(Stream, '.'),
nl(Stream)
;
true).
@ -5396,11 +5371,11 @@ lgt_write_xml_file(Stream) :-
lgt_write_xml_header(Stream) :-
lgt_write_xml_open_tag(Stream, '?xml version="1.0"?', []),
write_term(Stream, '<!DOCTYPE logtalk SYSTEM "logtalk.dtd">', []), nl(Stream),
write(Stream, '<!DOCTYPE logtalk SYSTEM "logtalk.dtd">'), nl(Stream),
lgt_compiler_option(xsl, XSL),
write_term(Stream, '<?xml-stylesheet type="text/xsl" href="', []),
write_term(Stream, XSL, []),
write_term(Stream, '"?>', []), nl(Stream),
write(Stream, '<?xml-stylesheet type="text/xsl" href="'),
write(Stream, XSL),
write(Stream, '"?>'), nl(Stream),
lgt_write_xml_open_tag(Stream, logtalk, []).
@ -5688,10 +5663,10 @@ lgt_write_xml_relation(Stream, Entity, Relation, Tag) :-
% writes <Tag Att1="V1" Att2="V2" ...>
lgt_write_xml_open_tag(Stream, Tag, Atts) :-
write_term(Stream, '<', []),
write_term(Stream, Tag, []),
write(Stream, '<'),
write(Stream, Tag),
lgt_write_xml_tag_attributes(Stream, Atts),
write_term(Stream, '>', []), nl(Stream).
write(Stream, '>'), nl(Stream).
@ -5700,14 +5675,14 @@ lgt_write_xml_open_tag(Stream, Tag, Atts) :-
% writes <Tag Att1="V1" Att2="V2" ...>Text</Tag>
lgt_write_xml_element(Stream, Tag, Atts, Text) :-
write_term(Stream, '<', []),
write_term(Stream, Tag, []),
write(Stream, '<'),
write(Stream, Tag),
lgt_write_xml_tag_attributes(Stream, Atts),
write_term(Stream, '>', []),
write_term(Stream, Text, []),
write_term(Stream, '</', []),
write_term(Stream, Tag, []),
write_term(Stream, '>', []), nl(Stream).
write(Stream, '>'),
write(Stream, Text),
write(Stream, '</'),
write(Stream, Tag),
write(Stream, '>'), nl(Stream).
@ -5716,14 +5691,14 @@ lgt_write_xml_element(Stream, Tag, Atts, Text) :-
% writes <Tag Att1="V1" Att2="V2" ...><![CDATA[Text]]></Tag>
lgt_write_xml_cdata_element(Stream, Tag, Atts, Text) :-
write_term(Stream, '<', []),
write_term(Stream, Tag, []),
write(Stream, '<'),
write(Stream, Tag),
lgt_write_xml_tag_attributes(Stream, Atts),
write_term(Stream, '><![CDATA[', []),
write_term(Stream, Text, []),
write_term(Stream, ']]></', []),
write_term(Stream, Tag, []),
write_term(Stream, '>', []), nl(Stream).
write(Stream, '><![CDATA['),
write(Stream, Text),
write(Stream, ']]></'),
write(Stream, Tag),
write(Stream, '>'), nl(Stream).
@ -5733,11 +5708,11 @@ lgt_write_xml_tag_attributes(_, []) :-
!.
lgt_write_xml_tag_attributes(Stream, [Attribute-Value| Rest]) :-
write_term(Stream, ' ', []),
write_term(Stream, Attribute, []),
write_term(Stream, '="', []),
write_term(Stream, Value, []),
write_term(Stream, '"', []),
write(Stream, ' '),
write(Stream, Attribute),
write(Stream, '="'),
write(Stream, Value),
write(Stream, '"'),
lgt_write_xml_tag_attributes(Stream, Rest).
@ -5747,9 +5722,9 @@ lgt_write_xml_tag_attributes(Stream, [Attribute-Value| Rest]) :-
% writes </Tag>
lgt_write_xml_close_tag(Stream, Tag) :-
write_term(Stream, '</', []),
write_term(Stream, Tag, []),
write_term(Stream, '>', []),
write(Stream, '</'),
write(Stream, Tag),
write(Stream, '>'),
nl(Stream).
@ -5901,16 +5876,50 @@ lgt_iso_def_pred(halt(_)).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
lgt_banner :-
lgt_compiler_option(startup_message, on) ->
logtalk_version(Major, Minor, Patch),
write('Logtalk '), write(Major), write('.'), write(Minor), write('.'), write(Patch), nl,
write('Copyright (c) 1998-2002 Paulo Moura'), nl
lgt_startup_message :-
lgt_default_flag(startup_message, on) ->
lgt_banner,
lgt_default_flags
;
true.
:- initialization(lgt_banner).
lgt_banner :-
current_logtalk_flag(version, version(Major, Minor, Patch)),
nl, write('Logtalk '), write(Major), write('.'), write(Minor), write('.'), write(Patch), nl,
write('Copyright (c) 1998-2002 Paulo Moura'), nl, nl.
lgt_default_flags :-
write('Default compilation flags:'), nl,
lgt_default_flag(iso_initialization_dir, ISO),
write(' ISO initialization/1 directive: '), write(ISO), nl,
lgt_default_flag(xml, XML),
write(' XML documenting files: '), write(XML), nl,
lgt_default_flag(xsl, XSL),
write(' XSL stylesheet: '), write(XSL), nl,
lgt_default_flag(unknown, Unknown),
write(' Unknown entities: '), write(Unknown), nl,
lgt_default_flag(misspelt, Misspelt),
write(' Misspelt predicates: '), write(Misspelt), nl,
lgt_default_flag(singletons, Singletons),
write(' Singletons variables: '), write(Singletons), nl,
lgt_default_flag(lgtredef, Lgtredef),
write(' Logtalk built-ins redefinition: '), write(Lgtredef), nl,
lgt_default_flag(plredef, Plredef),
write(' Prolog built-ins redefinition: '), write(Plredef), nl,
lgt_default_flag(portability, Portability),
write(' Non portable calls: '), write(Portability), nl,
lgt_default_flag(report, Report),
write(' Compilation report: '), write(Report), nl,
lgt_default_flag(smart_compilation, Smart),
write(' Smart compilation: '), write(Smart), nl, nl.
:- initialization(lgt_startup_message).

View File

@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Logtalk - Object oriented extension to Prolog
% Release 2.12.0
% Release 2.13.0
%
% configuration file for YAP Prolog 4.3.x
%