Logtalk 2.15.4 release files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@843 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
3751bd451f
commit
e8e39e597b
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -103,7 +103,7 @@ Logtalk since the first public version. Read it carefully if you have
|
||||
been using a previous Logtalk version.
|
||||
|
||||
The file QUICK_START provides quick instructions for those of you in a hurry
|
||||
to run Logtalk, provided that your usual Prolog compiler is supported.
|
||||
to run Logtalk, provided that your favorite Prolog compiler is supported.
|
||||
|
||||
|
||||
7. UPGRADING
|
||||
@ -114,7 +114,7 @@ instructions on how to upgrade your programs to run under this new version.
|
||||
|
||||
8. CONTRIBUTIONS
|
||||
|
||||
Contributions, constructive criticisms, code and suggestions are always
|
||||
Contributions, constructive criticisms, code, and suggestions are always
|
||||
welcome. If you want to contribute to this project, drop me a line to the
|
||||
support address given above.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -10,6 +10,26 @@ RELEASE NOTES
|
||||
=============
|
||||
|
||||
|
||||
2.15.4 - July 9, 2003
|
||||
|
||||
Corrected a spurious backtracking bug in the DCG rule translator. Added
|
||||
two more examples of DCGs.
|
||||
|
||||
New config file for XSB 2.6. Updated Logtalk compiler to compile cleanly
|
||||
under XSB after applying the patch described in configs/NOTES.
|
||||
|
||||
Updated SWI-Prolog config file to hide compiled entity predicates (requires
|
||||
SWI-Prolog 5.2.3 or later version). New optional file configs/swihook.pl
|
||||
contains hook code that allows Logtalk entities to be compiled and loaded
|
||||
using SWI-Prolog load_files/2 and consult/1 predicates.
|
||||
|
||||
Syntax definition file for the Hydra 1.1 (MacOS X) text editor providing
|
||||
syntax coloring for editing Logtalk source files.
|
||||
|
||||
Updated syntax coloring files for jEdit, NEdit, Vim, and TextPad in order
|
||||
to recognize character code constants (0'x) and the DCG operator -->/2.
|
||||
|
||||
|
||||
2.15.3 - June 27, 2003
|
||||
|
||||
Updated experimental support for DCG rules to prevent over-simplification
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@ -33,3 +33,45 @@ yes
|
||||
|
||||
Tree = Tree = s(np(d(the), n(girl)), vp(v(likes), np(d(the), n(boy))))
|
||||
yes
|
||||
|
||||
|
||||
% conversion between compound terms and XML
|
||||
|
||||
| ?- xml::convert(word(child, children), word(singular, plural), XML).
|
||||
|
||||
XML = '<word><singular>child</singular><plural>children</plural></word>'
|
||||
yes
|
||||
|
||||
| ?- xml::convert(Term, Interpretation, '<word><singular>child</singular><plural>children</plural></word>').
|
||||
|
||||
Term = word(child, children)
|
||||
Interpretation = word(singular, plural)
|
||||
yes
|
||||
|
||||
|
||||
% parsing URLs
|
||||
|
||||
| ?- url::parse("http://www.logtalk.org", Components).
|
||||
|
||||
Components = [protocol(http), address([www, logtalk, org]), path([]), file('')]
|
||||
yes
|
||||
|
||||
| ?- url::parse("http://www.logtalk.org/", Components).
|
||||
|
||||
Components = [protocol(http), address([www, logtalk, org]), path(['']), file('')]
|
||||
yes
|
||||
|
||||
| ?- url::parse("http://www.logtalk.org/cvs", Components).
|
||||
|
||||
Components = [protocol(http), address([www, logtalk, org]), path([cvs]), file('')]
|
||||
yes
|
||||
|
||||
| ?- url::parse("http://www.logtalk.org/cvs.html", Components).
|
||||
|
||||
Components = [protocol(http), address([www, logtalk, org]), path([]), file('cvs.html')]
|
||||
yes
|
||||
|
||||
| ?- url::parse("http://193.136.64.5/files/update", Components).
|
||||
|
||||
Components = [protocol(http), address([193, 136, 64, 5]), path([files, update]), file('')]
|
||||
yes
|
||||
|
@ -7,4 +7,6 @@
|
||||
determiners,
|
||||
nouns,
|
||||
verbs,
|
||||
sentence])).
|
||||
sentence,
|
||||
url,
|
||||
xml])).
|
||||
|
67
Logtalk/examples/dcgs/url.lgt
Normal file
67
Logtalk/examples/dcgs/url.lgt
Normal file
@ -0,0 +1,67 @@
|
||||
:- object(url).
|
||||
|
||||
|
||||
:- info([
|
||||
version is 1.0,
|
||||
date is 2003/7/7,
|
||||
author is 'Paulo Moura',
|
||||
comment is 'Simple example of URL parsing.']).
|
||||
|
||||
|
||||
:- public(parse/2).
|
||||
|
||||
:- mode(parse(@list, -list), zero_or_one).
|
||||
|
||||
:- info(parse/2, [
|
||||
comment is 'Parses a URL into its components.',
|
||||
argnames is ['URL', 'Components']]).
|
||||
|
||||
|
||||
parse(URL, [protocol(Protocol), address(Address), path(Path), file(File)]) :-
|
||||
phrase(url(Protocol, Address, Path, File), URL).
|
||||
|
||||
|
||||
url(Protocol, Address, Path, File) --> protocol(Protocol), "://", address(Address), path(Path), file(File).
|
||||
|
||||
|
||||
protocol(ftp) --> "ftp".
|
||||
protocol(http) --> "http".
|
||||
protocol(https) --> "https".
|
||||
protocol(rtsp) --> "rtsp".
|
||||
|
||||
|
||||
address(Address) --> ip_number(Address).
|
||||
address([Identifier| Identifiers]) --> identifier(Identifier), dot_identifiers(Identifiers).
|
||||
|
||||
|
||||
ip_number([N1, N2, N3, N4]) --> ip_subnumber(N1), ".", ip_subnumber(N2), ".", ip_subnumber(N3), ".", ip_subnumber(N4).
|
||||
|
||||
ip_subnumber(N) --> [N1, N2, N3], {N is N3 - 0'0 + 10*(N2 - 0'0) + 100*(N1 - 0'0), N >= 0, N =< 255}.
|
||||
ip_subnumber(N) --> [N1, N2], {N is N2 - 0'0 + 10*(N1 - 0'0), N >= 0, N =< 255}.
|
||||
ip_subnumber(N) --> [N1], {N is N1 - 0'0, N >= 0, N =< 255}.
|
||||
|
||||
|
||||
identifier(Identifier) --> characters(Codes), {atom_codes(Identifier, Codes)}.
|
||||
|
||||
|
||||
characters([]) --> [].
|
||||
characters([Code| Codes]) --> [Code], {character(Code)}, characters(Codes).
|
||||
|
||||
|
||||
character(Code) :- Code @>= 0'a, Code @=< 0'z, !.
|
||||
character(Code) :- Code @>= 0'A, Code @=< 0'Z.
|
||||
|
||||
|
||||
dot_identifiers([]) --> [].
|
||||
dot_identifiers([Identifier| Identifiers]) --> ".", identifier(Identifier), dot_identifiers(Identifiers).
|
||||
|
||||
|
||||
path([]) --> [].
|
||||
path([Identifier| Path]) --> "/", identifier(Identifier), path(Path).
|
||||
|
||||
|
||||
file('') --> [].
|
||||
file(File) --> "/", identifier(Name), ".", identifier(Extension), {atom_concat(Name, '.', Aux), atom_concat(Aux, Extension, File)}.
|
||||
|
||||
|
||||
:- end_object.
|
78
Logtalk/examples/dcgs/xml.lgt
Normal file
78
Logtalk/examples/dcgs/xml.lgt
Normal file
@ -0,0 +1,78 @@
|
||||
|
||||
:- object(xml).
|
||||
|
||||
|
||||
:- info([
|
||||
version is 1.0,
|
||||
date is 2003/7/7,
|
||||
author is 'Paulo Moura',
|
||||
comment is 'Conversion between compound terms and XML.']).
|
||||
|
||||
|
||||
:- public(convert/3).
|
||||
|
||||
:- mode(convert(@compound, @compound, -atom), zero_or_one).
|
||||
:- mode(convert(-compound, -compound, +atom), zero_or_one).
|
||||
|
||||
:- info(convert/3, [
|
||||
comment is 'Converts between a compound term and an interpretation and XML.',
|
||||
argnames is ['Term', 'Interpretation', 'XML']]).
|
||||
|
||||
|
||||
convert(Term, Interpretation, XML) :-
|
||||
var(XML) ->
|
||||
phrase(term(Term, Interpretation), List),
|
||||
atom_codes(XML, List)
|
||||
;
|
||||
atom_codes(XML, List),
|
||||
phrase(term(Term, Interpretation), List).
|
||||
|
||||
|
||||
term(Term, Interpretation) -->
|
||||
{nonvar(Term), nonvar(Interpretation),
|
||||
Interpretation =.. [Functor| Tags], Term =.. [Functor| Args]},
|
||||
open_tag(Functor),
|
||||
arguments(Tags, Args),
|
||||
close_tag(Functor).
|
||||
|
||||
term(Term, Interpretation) -->
|
||||
{var(Term), var(Interpretation)},
|
||||
open_tag(Functor),
|
||||
arguments(Tags, Args),
|
||||
close_tag(Functor),
|
||||
{Interpretation =.. [Functor| Tags], Term =.. [Functor| Args]}.
|
||||
|
||||
|
||||
arguments([], []) -->
|
||||
[].
|
||||
|
||||
arguments([Tag| Tags], [Arg| Args]) -->
|
||||
open_tag(Tag),
|
||||
value(Arg),
|
||||
close_tag(Tag),
|
||||
arguments(Tags, Args).
|
||||
|
||||
|
||||
open_tag(Tag) -->
|
||||
"<", value(Tag), ">".
|
||||
|
||||
close_tag(Tag) -->
|
||||
"</", value(Tag), ">".
|
||||
|
||||
|
||||
value(Value) -->
|
||||
{nonvar(Value), atom_codes(Value, Codes)}, characters(Codes).
|
||||
|
||||
value(Value) -->
|
||||
{var(Value)}, characters(Codes), {atom_codes(Value, Codes)}.
|
||||
|
||||
|
||||
characters([]) --> [].
|
||||
characters([Code| Codes]) --> [Code], {character(Code)}, characters(Codes).
|
||||
|
||||
|
||||
character(Code) :- Code @>= 0'a, Code @=< 0'z, !.
|
||||
character(Code) :- Code @>= 0'A, Code @=< 0'Z.
|
||||
|
||||
|
||||
:- end_object.
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -7,14 +7,14 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
|
||||
<head>
|
||||
<title>Logtalk 2.15.3 Documentation</title>
|
||||
<title>Logtalk 2.15.4 Documentation</title>
|
||||
<link rel="stylesheet" href="styles.css" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<hr />
|
||||
<h1 class="center">Logtalk 2.15.3</h1>
|
||||
<h1 class="center">Logtalk 2.15.4</h1>
|
||||
|
||||
<h3 class="center">Documentation</h3>
|
||||
<p class="center">
|
||||
@ -45,7 +45,7 @@
|
||||
|
||||
<hr />
|
||||
<p class="center">
|
||||
Last updated on: June 4, 2003
|
||||
Last updated on: July 7, 2003
|
||||
</p>
|
||||
<p class="center">
|
||||
<a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" width="88" height="31" /></a>
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
18
Logtalk/wenv/hydra/NOTES
Normal file
18
Logtalk/wenv/hydra/NOTES
Normal file
@ -0,0 +1,18 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
This directory contains files that provide syntax highlighting
|
||||
for editing Logtalk source files with the Hydra text editor
|
||||
(http://hydra.globalse.org/).
|
||||
|
||||
|
||||
To install copy the file "logtalk.plist" to the folder
|
||||
"~/Library/Application Support/Hydra/Syntax Definitions/" or to
|
||||
"/Library/Application Support/Hydra/Syntax Definitions/"
|
||||
(create the folder if it does not exist).
|
||||
|
440
Logtalk/wenv/hydra/logtalk.plist
Normal file
440
Logtalk/wenv/hydra/logtalk.plist
Normal file
@ -0,0 +1,440 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
|
||||
<key>Header</key>
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Logtalk</string>
|
||||
<key>Extensions</key>
|
||||
<string>lgt</string>
|
||||
<key>Valid Characters for Variables</key>
|
||||
<string>_0987654321abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</string>
|
||||
</dict>
|
||||
|
||||
<key>Styles</key>
|
||||
<array>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Entity Directives</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.408</real>
|
||||
<real>0.220</real>
|
||||
<real>0.129</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>\:\-[[:space:]](object)</string>
|
||||
<string>\:\-[[:space:]](end_object)\.</string>
|
||||
<string>\:\-[[:space:]](protocol)</string>
|
||||
<string>\:\-[[:space:]](end_protocol)\.</string>
|
||||
<string>\:\-[[:space:]](category)</string>
|
||||
<string>\:\-[[:space:]](end_category)\.</string>
|
||||
<string>\:\-[[:space:]](initialization)\(</string>
|
||||
<string>\:\-[[:space:]](info)\(</string>
|
||||
<string>\:\-[[:space:]](mode)\(</string>
|
||||
<string>\:\-[[:space:]](dynamic)\(</string>
|
||||
<string>\:\-[[:space:]](dynamic)\.</string>
|
||||
<string>\:\-[[:space:]](discontiguous)\(</string>
|
||||
<string>\:\-[[:space:]](public)\(</string>
|
||||
<string>\:\-[[:space:]](protected)\(</string>
|
||||
<string>\:\-[[:space:]](private)\(</string>
|
||||
<string>\:\-[[:space:]](metapredicate)\(</string>
|
||||
<string>\:\-[[:space:]](op)\(</string>
|
||||
<string>\:\-[[:space:]](calls)\(</string>
|
||||
<string>\:\-[[:space:]](uses)\(</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Entity Relations</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.408</real>
|
||||
<real>0.220</real>
|
||||
<real>0.129</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>(instantiates)\(</string>
|
||||
<string>(specializes)\(</string>
|
||||
<string>(extends)\(</string>
|
||||
<string>(imports)\(</string>
|
||||
<string>(implements)\(</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Message Sending Operators</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.000</real>
|
||||
<real>0.000</real>
|
||||
<real>1.000</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>::</string>
|
||||
<string>\^\^</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Control Constructs</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.463</real>
|
||||
<real>0.059</real>
|
||||
<real>0.298</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>(call)\(</string>
|
||||
<string>(catch)\(</string>
|
||||
<string>(throw)\(</string>
|
||||
<string>(true)</string>
|
||||
<string>(fail)</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>External Call</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.463</real>
|
||||
<real>0.059</real>
|
||||
<real>0.298</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<true/>
|
||||
<key>Multiline Begin</key>
|
||||
<string>({)</string>
|
||||
<key>Multiline End</key>
|
||||
<string>(})</string>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Built-in Methods</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.463</real>
|
||||
<real>0.059</real>
|
||||
<real>0.298</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>(parameter)\(</string>
|
||||
<string>(self)\(</string>
|
||||
<string>(sender)\(</string>
|
||||
<string>(this)\(</string>
|
||||
<string>(current_predicate)\(</string>
|
||||
<string>(predicate_property)\(</string>
|
||||
<string>(abolish)\(</string>
|
||||
<string>(asserta)\(</string>
|
||||
<string>(assertz)\(</string>
|
||||
<string>(clause)\(</string>
|
||||
<string>(retract)\(</string>
|
||||
<string>(retractall)\(</string>
|
||||
<string>(bagof)\(</string>
|
||||
<string>(findall)\(</string>
|
||||
<string>(forall)\(</string>
|
||||
<string>(setof)\(</string>
|
||||
<string>(before)\(</string>
|
||||
<string>(after)\(</string>
|
||||
<string>(phrase)\(</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Built-in Predicates</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.463</real>
|
||||
<real>0.059</real>
|
||||
<real>0.298</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>(current_object)\(</string>
|
||||
<string>(current_protocol)\(</string>
|
||||
<string>(current_category)\(</string>
|
||||
<string>(create_object)\(</string>
|
||||
<string>(create_protocol)\(</string>
|
||||
<string>(create_category)\(</string>
|
||||
<string>(object_property)\(</string>
|
||||
<string>(protocol_property)\(</string>
|
||||
<string>(category_property)\(</string>
|
||||
<string>(abolish_object)\(</string>
|
||||
<string>(abolish_protocol)\(</string>
|
||||
<string>(abolish_category)\(</string>
|
||||
<string>(extends_object)\(</string>
|
||||
<string>(extends_protocol)\(</string>
|
||||
<string>(implements_protocol)\(</string>
|
||||
<string>(instantiates_object)\(</string>
|
||||
<string>(specializes_object)\(</string>
|
||||
<string>(imports_category)\(</string>
|
||||
<string>(abolish_events)\(</string>
|
||||
<string>(current_event)\(</string>
|
||||
<string>(define_events)\(</string>
|
||||
<string>(current_logtalk_flag)\(</string>
|
||||
<string>(set_logtalk_flag)\(</string>
|
||||
<string>(logtalk_compile)\(</string>
|
||||
<string>(logtalk_load)\(</string>
|
||||
<string>(forall)\(</string>
|
||||
<string>(logtalk_version)\(</string>
|
||||
<string>(retractall)\(</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Other Built-in Predicates</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.463</real>
|
||||
<real>0.059</real>
|
||||
<real>0.298</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<!-- Term unification -->
|
||||
<string>[[:space:]]+(=)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(\\=)[[:space:]]+</string>
|
||||
<string>(unify_with_occurs_check)\(</string>
|
||||
<!-- Term testing -->
|
||||
<string>(var)\(</string>
|
||||
<string>(atom)\(</string>
|
||||
<string>(integer)\(</string>
|
||||
<string>(float)\(</string>
|
||||
<string>(atomic)\(</string>
|
||||
<string>(compound)\(</string>
|
||||
<string>(nonvar)\(</string>
|
||||
<string>(number)\(</string>
|
||||
<!-- Term comparison -->
|
||||
<string>[[:space:]]+(==)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(\\==)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(@=<)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(@<)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(@>=)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(@>)[[:space:]]+</string>
|
||||
<!-- Term creation and decomposition -->
|
||||
<string>(functor)\(</string>
|
||||
<string>(arg)\(</string>
|
||||
<string>[[:space:]]+(=\.\.)[[:space:]]+</string>
|
||||
<string>(copy_term)\(</string>
|
||||
<!-- Arithemtic evaluation -->
|
||||
<string>[[:space:]]+(is)[[:space:]]+</string>
|
||||
<!-- Arithemtic comparison -->
|
||||
<string>[[:space:]]+(=:=)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(=\=)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(<)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(=<)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(>)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(>=)[[:space:]]+</string>
|
||||
<!-- Evaluable functors -->
|
||||
<string>[[:space:]]+(\+)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(\-)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(\*)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(//)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(/)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(rem)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(mod)[[:space:]]+</string>
|
||||
<string>(rem)\(</string>
|
||||
<string>(mod)\(</string>
|
||||
<string>(abs)\(</string>
|
||||
<string>(sign)\(</string>
|
||||
<string>(float_integer_part)\(</string>
|
||||
<string>(float_fractional_part)\(</string>
|
||||
<string>(float)\(</string>
|
||||
<string>(floor)\(</string>
|
||||
<string>(truncate)\(</string>
|
||||
<string>(round)\(</string>
|
||||
<string>(ceiling)\(</string>
|
||||
<!-- Other arithemtic functors -->
|
||||
<string>[[:space:]]+(\*\*)[[:space:]]+</string>
|
||||
<string>(sin)\(</string>
|
||||
<string>(cos)\(</string>
|
||||
<string>(atan)\(</string>
|
||||
<string>(exp)\(</string>
|
||||
<string>(log)\(</string>
|
||||
<string>(sqrt)\(</string>
|
||||
<!-- Bitwise functors -->
|
||||
<string>[[:space:]]+(>>)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(<<)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(/\\)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(\\/)[[:space:]]+</string>
|
||||
<string>[[:space:]]+(\\)[[:space:]]+</string>
|
||||
<!-- Stream selection and control -->
|
||||
<string>(current_input)\(</string>
|
||||
<string>(current_output)\(</string>
|
||||
<string>(set_input)\(</string>
|
||||
<string>(set_output)\(</string>
|
||||
<string>(open)\(</string>
|
||||
<string>(close)\(</string>
|
||||
<string>(flush_output)</string>
|
||||
<string>(stream_property)\(</string>
|
||||
<string>(at_end_of_stream)</string>
|
||||
<string>(set_stream_position)\(</string>
|
||||
<!-- Character input/output -->
|
||||
<string>(get_char)\(</string>
|
||||
<string>(get_code)\(</string>
|
||||
<string>(peek_char)\(</string>
|
||||
<string>(peek_code)\(</string>
|
||||
<string>(put_char)\(</string>
|
||||
<string>(put_code)\(</string>
|
||||
<string>(nl)</string>
|
||||
<!-- Byte input/output -->
|
||||
<string>(get_byte)\(</string>
|
||||
<string>(peek_byte)\(</string>
|
||||
<string>(put_byte)\(</string>
|
||||
<!-- Term input/output -->
|
||||
<string>(read_term)\(</string>
|
||||
<string>(read)\(</string>
|
||||
<string>(write_term)\(</string>
|
||||
<string>(write)\(</string>
|
||||
<string>(writeq)\(</string>
|
||||
<string>(write_canonical)\(</string>
|
||||
<string>(op)\(</string>
|
||||
<string>(current_op)\(</string>
|
||||
<string>(char_conversion)\(</string>
|
||||
<string>(current_char_conversion)\(</string>
|
||||
<!-- Logic and control -->
|
||||
<string>(\\\+)[[:space:]]+</string>
|
||||
<string>(once)\(</string>
|
||||
<string>(repeat)</string>
|
||||
<!-- Atomic term processing -->
|
||||
<string>(atom_length)\(</string>
|
||||
<string>(atom_concat)\(</string>
|
||||
<string>(sub_atom)\(</string>
|
||||
<string>(atom_chars)\(</string>
|
||||
<string>(atom_codes)\(</string>
|
||||
<string>(char_code)\(</string>
|
||||
<string>(number_chars)\(</string>
|
||||
<string>(number_codes)\(</string>
|
||||
<!-- Implementation defined hooks functions -->
|
||||
<string>(set_prolog_flag)\(</string>
|
||||
<string>(current_prolog_flag)\(</string>
|
||||
<string>(halt)</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Numbers</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.000</real>
|
||||
<real>0.000</real>
|
||||
<real>0.404</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Plain Strings</key>
|
||||
<array>
|
||||
<string>[0-9]+\.*[0-9]+([eE][-+][1-9][0-9]*)?</string>
|
||||
<string>0b[0-1]+</string>
|
||||
<string>0o[0-8]+</string>
|
||||
<string>0x[0-9a-fA-F]+</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Quoted Atoms and Strings</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.537</real>
|
||||
<real>0.075</real>
|
||||
<real>0.082</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>'(.+)'</string>
|
||||
<string>"(.+)"</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Character Code Constants</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.000</real>
|
||||
<real>0.000</real>
|
||||
<real>0.404</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>(0'[[:alnum:]])</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Single Line Comment</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.137</real>
|
||||
<real>0.431</real>
|
||||
<real>0.145</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<false/>
|
||||
<key>Comment</key>
|
||||
<true/>
|
||||
<key>Regular Expressions</key>
|
||||
<array>
|
||||
<string>%.*</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
||||
<dict>
|
||||
<key>Name</key>
|
||||
<string>Block Comment</string>
|
||||
<key>Color</key>
|
||||
<array>
|
||||
<real>0.137</real>
|
||||
<real>0.431</real>
|
||||
<real>0.145</real>
|
||||
</array>
|
||||
<key>Multiline</key>
|
||||
<true/>
|
||||
<key>Comment</key>
|
||||
<true/>
|
||||
<key>Multiline Begin</key>
|
||||
<string>/*</string>
|
||||
<key>Multiline End</key>
|
||||
<string>*/</string>
|
||||
</dict>
|
||||
|
||||
</array>
|
||||
|
||||
</dict>
|
||||
</plist>
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -4,10 +4,10 @@
|
||||
|
||||
<!-- jEdit 4.1 Logtalk syntax file
|
||||
|
||||
written by Paulo Moura
|
||||
version 1.2
|
||||
created on 2 May 2002
|
||||
last revised 3 October 2002
|
||||
written by Paulo Moura
|
||||
version 1.3
|
||||
created on 2 May 2002
|
||||
last revised 7 July 2003
|
||||
|
||||
To install, copy this file to the "modes" subdirectory in jEdit
|
||||
directory installation. Next, check the "catalog" file in the
|
||||
@ -25,7 +25,7 @@
|
||||
<PROPERTY NAME="tabSize" VALUE="4" />
|
||||
</PROPS>
|
||||
|
||||
<RULES IGNORE_CASE="FALSE">
|
||||
<RULES SET="MAIN" IGNORE_CASE="FALSE">
|
||||
|
||||
<!-- Comments -->
|
||||
<EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
|
||||
@ -34,6 +34,8 @@
|
||||
<END>*/</END>
|
||||
</SPAN>
|
||||
|
||||
<SEQ_REGEXP TYPE="NULL" HASH_CHAR="0">0'[[:alnum:]]</SEQ_REGEXP>
|
||||
|
||||
<!-- String literals -->
|
||||
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
|
||||
<BEGIN>'</BEGIN>
|
||||
@ -203,6 +205,8 @@
|
||||
<FUNCTION>before</FUNCTION>
|
||||
<FUNCTION>after</FUNCTION>
|
||||
|
||||
<FUNCTION>phrase</FUNCTION>
|
||||
|
||||
<!-- Control constructs -->
|
||||
<FUNCTION>true</FUNCTION>
|
||||
<FUNCTION>fail</FUNCTION>
|
||||
@ -210,6 +214,7 @@
|
||||
<SEQ TYPE="FUNCTION">!</SEQ>
|
||||
<SEQ TYPE="OPERATOR">,</SEQ>
|
||||
<SEQ TYPE="OPERATOR">;</SEQ>
|
||||
<SEQ TYPE="OPERATOR">--></SEQ>
|
||||
<SEQ TYPE="OPERATOR">-></SEQ>
|
||||
<FUNCTION>catch</FUNCTION>
|
||||
<FUNCTION>throw</FUNCTION>
|
||||
@ -410,7 +415,7 @@
|
||||
|
||||
</RULES>
|
||||
|
||||
|
||||
|
||||
<RULES SET="INFO" IGNORE_CASE="FALSE">
|
||||
|
||||
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -2,7 +2,7 @@
|
||||
!
|
||||
! Author: Paulo Moura (pmoura at logtalk.org)
|
||||
!
|
||||
! Last changed in: September 6, 2002
|
||||
! Last changed in: July 7, 2003
|
||||
!
|
||||
!
|
||||
! To install this patterns file:
|
||||
@ -27,11 +27,12 @@ nedit.highlightPatterns: Logtalk:1:0{\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\
|
||||
Control constructs:"!|,|;|\\-\\-\\>|\\-\\>|<(true|fail|call|catch|throw)>":::Subroutine::\n\
|
||||
Block comment:"/\\*":"\\*/"::Comment::\n\
|
||||
Line comment:"%":"$"::Comment::\n\
|
||||
Number:"0'":::Plain::\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\
|
||||
Built-in methods:"<(parameter|self|sender|this|current_predicate|predicate_property|abolish|asserta|assertz|retractall|retract|bagof|findall|forall|setof|before|after|phrase)>":::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|retractall)>":::Subroutine1::\n\
|
||||
Term unification:"=|<unify_with_occurs_check>|\\\\=":::Subroutine1::\n\
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -152,6 +152,7 @@ forall
|
||||
setof
|
||||
before
|
||||
after
|
||||
phrase
|
||||
|
||||
; Mode operators
|
||||
?
|
||||
@ -164,6 +165,7 @@ call
|
||||
!
|
||||
,
|
||||
;
|
||||
-->
|
||||
->
|
||||
catch
|
||||
throw
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -2,7 +2,7 @@
|
||||
"
|
||||
" Language: Logtalk
|
||||
" Maintainer: Paulo Moura <pmoura@logtalk.org>
|
||||
" Last Change: 2002 September 6
|
||||
" Last Change: 2003 July 7
|
||||
|
||||
|
||||
" Quit when a syntax file was already loaded:
|
||||
@ -27,7 +27,12 @@ syn match logtalkOperator ":-"
|
||||
" Logtalk quoted atoms and strings
|
||||
|
||||
syn region logtalkString start=+"+ skip=+\\"+ end=+"+
|
||||
syn region logtalkAtom start=+'+ skip=+\\'+ end=+'+
|
||||
syn region logtalkAtom start=+'+ skip=+\\'+ end=+'+
|
||||
|
||||
|
||||
" Logtalk character code constants
|
||||
|
||||
syn match logtalkNumber "0'"
|
||||
|
||||
|
||||
" Logtalk message sending operators
|
||||
@ -38,7 +43,7 @@ syn match logtalkOperator "\^\^"
|
||||
|
||||
" Logtalk external call
|
||||
|
||||
syn region logtalkExtCall matchgroup=logtalkExtCallTag start="{" matchgroup=logtalkExtCallTag end="}" contains=ALL
|
||||
syn region logtalkExtCall matchgroup=logtalkExtCallTag start="{" matchgroup=logtalkExtCallTag end="}" contains=ALL
|
||||
|
||||
|
||||
" Logtalk opening entity directives
|
||||
@ -145,6 +150,8 @@ syn keyword logtalkBuiltInMethod setof
|
||||
syn keyword logtalkBuiltInMethod before
|
||||
syn keyword logtalkBuiltInMethod after
|
||||
|
||||
syn keyword logtalkBuiltInMethod phrase
|
||||
|
||||
|
||||
" Mode operators
|
||||
|
||||
@ -160,6 +167,7 @@ syn keyword logtalkKeyword call
|
||||
syn match logtalkOperator "!"
|
||||
syn match logtalkOperator ","
|
||||
syn match logtalkOperator ";"
|
||||
syn match logtalkOperator "-->"
|
||||
syn match logtalkOperator "->"
|
||||
syn keyword logtalkKeyword catch
|
||||
syn keyword logtalkKeyword throw
|
||||
@ -360,34 +368,36 @@ if version >= 508 || !exists("did_logtalk_syn_inits")
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink logtalkBlockComment Comment
|
||||
HiLink logtalkLineComment Comment
|
||||
HiLink logtalkBlockComment Comment
|
||||
HiLink logtalkLineComment Comment
|
||||
|
||||
HiLink logtalkOpenEntityDir Normal
|
||||
HiLink logtalkOpenEntityDirTag Statement
|
||||
|
||||
HiLink logtalkEntity Normal
|
||||
HiLink logtalkEntity Normal
|
||||
|
||||
HiLink logtalkEntityRel Normal
|
||||
HiLink logtalkEntityRelTag Statement
|
||||
HiLink logtalkEntityRel Normal
|
||||
HiLink logtalkEntityRelTag Statement
|
||||
|
||||
HiLink logtalkCloseEntityDir Statement
|
||||
|
||||
HiLink logtalkDir Normal
|
||||
HiLink logtalkDirTag Statement
|
||||
HiLink logtalkDir Normal
|
||||
HiLink logtalkDirTag Statement
|
||||
|
||||
HiLink logtalkAtom String
|
||||
HiLink logtalkString String
|
||||
HiLink logtalkAtom String
|
||||
HiLink logtalkString String
|
||||
|
||||
HiLink logtalkKeyword Keyword
|
||||
HiLink logtalkNumber Normal
|
||||
|
||||
HiLink logtalkBuiltIn Keyword
|
||||
HiLink logtalkKeyword Keyword
|
||||
|
||||
HiLink logtalkBuiltIn Keyword
|
||||
HiLink logtalkBuiltInMethod Keyword
|
||||
|
||||
HiLink logtalkOperator Operator
|
||||
HiLink logtalkOperator Operator
|
||||
|
||||
HiLink logtalkExtCall Normal
|
||||
HiLink logtalkExtCallTag Operator
|
||||
HiLink logtalkExtCall Normal
|
||||
HiLink logtalkExtCallTag Operator
|
||||
|
||||
delcommand HiLink
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.15.3
|
||||
Release 2.15.4
|
||||
|
||||
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
@ -8,7 +8,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
|
@ -14,7 +14,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
|
@ -9,7 +9,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
|
@ -9,7 +9,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
|
@ -14,7 +14,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
|
@ -3,7 +3,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
|
@ -15,7 +15,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
|
@ -12,7 +12,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
|
@ -2,7 +2,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
|
||||
%
|
||||
@ -1073,7 +1073,7 @@ current_logtalk_flag(Flag, Value) :-
|
||||
\+ '$lgt_flag_'(Flag, _),
|
||||
'$lgt_default_flag'(Flag, Value).
|
||||
|
||||
current_logtalk_flag(version, version(2, 15, 3)).
|
||||
current_logtalk_flag(version, version(2, 15, 4)).
|
||||
|
||||
|
||||
|
||||
@ -1129,12 +1129,12 @@ current_logtalk_flag(version, version(2, 15, 3)).
|
||||
'$lgt_current_predicate'(Obj, Functor/Arity, Sender, Scope) :-
|
||||
'$lgt_current_object_'(Obj, _, Dcl, _, _, _),
|
||||
findall(
|
||||
Functor/Arity-(PScope, SContainer),
|
||||
Functor/Arity - (PScope, SContainer),
|
||||
('$lgt_call'(Dcl, Pred, PScope, _, _, SContainer, _),
|
||||
functor(Pred, Functor, Arity)),
|
||||
Preds),
|
||||
'$lgt_cp_filter'(Preds, Filtered),
|
||||
'$lgt_member'(Functor/Arity-(PScope, SContainer), Filtered),
|
||||
'$lgt_member'(Functor/Arity - (PScope, SContainer), Filtered),
|
||||
once((\+ \+ PScope = Scope; Sender = SContainer)).
|
||||
|
||||
|
||||
@ -1330,7 +1330,7 @@ current_logtalk_flag(version, version(2, 15, 3)).
|
||||
Metavars = []),
|
||||
'$lgt_metavars'(Context, Metavars),
|
||||
'$lgt_tr_body'(Body, TBody, Context),
|
||||
asserta((Call:-('$lgt_nop'(Body), TBody)))
|
||||
asserta((Call :- ('$lgt_nop'(Body), TBody)))
|
||||
;
|
||||
(PScope = p ->
|
||||
throw(error(permission_error(modify, private_predicate, Head), Obj::asserta((Head:-Body)), Sender))
|
||||
@ -1417,7 +1417,7 @@ current_logtalk_flag(version, version(2, 15, 3)).
|
||||
Metavars = []),
|
||||
'$lgt_metavars'(Context, Metavars),
|
||||
'$lgt_tr_body'(Body, TBody, Context),
|
||||
assertz((Call:-('$lgt_nop'(Body), TBody)))
|
||||
assertz((Call :- ('$lgt_nop'(Body), TBody)))
|
||||
;
|
||||
(PScope = p ->
|
||||
throw(error(permission_error(modify, private_predicate, Head), Obj::assertz((Head:-Body)), Sender))
|
||||
@ -1522,10 +1522,10 @@ current_logtalk_flag(version, version(2, 15, 3)).
|
||||
(Type = (dynamic) ->
|
||||
((\+ \+ PScope = Scope; Sender = SContainer) ->
|
||||
('$lgt_once'(Def, Head, _, _, _, Call) ->
|
||||
retract((Call:-('$lgt_nop'(Body), _)))
|
||||
retract((Call :- ('$lgt_nop'(Body), _)))
|
||||
;
|
||||
('$lgt_once'(DDef, Head, _, _, _, Call) ->
|
||||
retract((Call:-('$lgt_nop'(Body), _))),
|
||||
retract((Call :- ('$lgt_nop'(Body), _))),
|
||||
'$lgt_update_ddef_table'(DDef, Call)
|
||||
;
|
||||
fail))
|
||||
@ -5467,7 +5467,7 @@ user0__def(Pred, _, _, _, Pred, user).
|
||||
atom(Prefix).
|
||||
|
||||
'$lgt_valid_compiler_option'(doctype(Option)) :-
|
||||
once((Option == standalone; Option == local; Option == web)).
|
||||
once((Option == standalone; Option == (local); Option == web)).
|
||||
|
||||
|
||||
|
||||
@ -5694,7 +5694,7 @@ user0__def(Pred, _, _, _, Pred, user).
|
||||
|
||||
|
||||
|
||||
% '$lgt_dcg_terminals'(@list, -goal, @var, @var)
|
||||
% '$lgt_dcg_terminals'(+list, -goal, @var, @var)
|
||||
%
|
||||
% translate list of terminals
|
||||
|
||||
@ -5702,7 +5702,8 @@ user0__def(Pred, _, _, _, Pred, user).
|
||||
'$lgt_dcg_terminals'(Terminals, S, List).
|
||||
|
||||
|
||||
'$lgt_dcg_terminals'([], S, S).
|
||||
'$lgt_dcg_terminals'([], S, S) :-
|
||||
!. % make predicate determinist when first argument is [Var1| Var2]
|
||||
|
||||
'$lgt_dcg_terminals'([Terminal| Terminals], S, [Terminal| Rest]) :-
|
||||
'$lgt_dcg_terminals'(Terminals, S, Rest).
|
||||
@ -6186,7 +6187,7 @@ user0__def(Pred, _, _, _, Pred, user).
|
||||
%
|
||||
% table of ISO defined predicates
|
||||
%
|
||||
% used in portability checking
|
||||
% used for portability checking
|
||||
%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
% Logtalk - Object oriented extension to Prolog
|
||||
% Release 2.15.3
|
||||
% Release 2.15.4
|
||||
%
|
||||
% configuration file for YAP Prolog 4.3.23 or later
|
||||
%
|
||||
|
Reference in New Issue
Block a user