Logtalk 2.15.2 files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@812 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura 2003-04-02 13:57:50 +00:00
parent 8509b82b18
commit f1b417f1c3
103 changed files with 744 additions and 100 deletions

View File

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

View File

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

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.15.1 Release 2.15.2
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -10,6 +10,15 @@ RELEASE NOTES
============= =============
2.15.2 - April 2, 2003
Experimental support for DCG rules inside categories and objects. Added
built-in methods phrase/2 and phrase/3.
Updated GNU Prolog config file to not hide compiled entity predicates in
order to avoid incompatibilities with dynamic entities.
2.15.1 - March 8, 2003 2.15.1 - March 8, 2003
New example, msglog, of using events and monitors to record, replay, and New example, msglog, of using events and monitors to record, replay, and

View File

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

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.15.1 Release 2.15.2
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -41,6 +41,9 @@ bricks
classvars classvars
example of implementation of class variables (as found in Smalltalk) example of implementation of class variables (as found in Smalltalk)
dcgs
example of using DCG rules inside objects and categories
dynpred dynpred
example of using some of the built-in database handling methods example of using some of the built-in database handling methods

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,13 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.15.2
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
=================================================================
To load all entities in this example consult the dcgs.loader
utility file (note that this is a Prolog file).
This folder contains examples of using DCGs inside objects and
categories.

View File

@ -0,0 +1,35 @@
=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.15.2
Copyright (c) 1998-2003 Paulo Moura. All Rights Reserved.
=================================================================
% DCG rules implementing a simple calculator:
| ?- calculator::parse("1+2-3*4", Result).
Result = -9
yes
% recognizing gramatically correct sentences
| ?- sentence::parse([the, girl, likes, the, boy], Result).
Result = true
yes
| ?- sentence::parse([the, girl, scares, the, boy], Result).
Result = false
yes
% generating parse trees for sentences
| ?- parsetree::parse([the, girl, likes, the, boy], Tree).
Tree = Tree = s(np(d(the), n(girl)), vp(v(likes), np(d(the), n(boy))))
yes

View File

@ -0,0 +1,23 @@
:- object(calculator,
implements(parsep)).
parse(Expression, Value) :-
phrase(expr(Value), Expression).
expr(Z) --> term(X), "+", expr(Y), {Z is X + Y}.
expr(Z) --> term(X), "-", expr(Y), {Z is X - Y}.
expr(X) --> term(X).
term(Z) --> number(X), "*", term(Y), {Z is X * Y}.
term(Z) --> number(X), "/", term(Y), {Z is X / Y}.
term(Z) --> number(Z).
number(C) --> "+", number(C).
number(C) --> "-", number(X), {C is -X}.
number(X) --> [C], {0'0 =< C, C =< 0'9, X is C - 0'0}.
:- end_object.

View File

@ -0,0 +1,10 @@
:- initialization(
logtalk_load([
parsep,
calculator,
parsetree,
determiners,
nouns,
verbs,
sentence])).

View File

@ -0,0 +1,9 @@
:- category(determiners).
determiner --> [the].
determiner --> [a].
:- end_category.

View File

@ -0,0 +1,9 @@
:- category(nouns).
noun --> [boy].
noun --> [girl].
:- end_category.

View File

@ -0,0 +1,20 @@
:- protocol(parsep).
:- info([
version is 1.0,
date is 2003/3/17,
author is 'Paulo Moura',
comment is 'Parse protocol for using DCG rules.']).
:- public(parse/2).
:- mode(parse(?list, ?nonvar), zero_or_more).
:- info(parse/2, [
comment is 'Parses a list using the defined set of DCG rules.',
argnames is ['List', 'Result']]).
:- end_protocol.

View File

@ -0,0 +1,29 @@
:- object(parsetree,
implements(parsep)).
parse(List, Tree) :-
phrase(sentence(Tree), List).
sentence(s(NP,VP)) --> noun_phrase(NP), verb_phrase(VP).
noun_phrase(np(D,NP)) --> determiner(D), noun(NP).
noun_phrase(NP) --> noun(NP).
verb_phrase(vp(V)) --> verb(V).
verb_phrase(vp(V,NP)) --> verb(V), noun_phrase(NP).
determiner(d(the)) --> [the].
determiner(d(a)) --> [a].
noun(n(boy)) --> [boy].
noun(n(girl)) --> [girl].
verb(v(likes)) --> [likes].
verb(v(hates)) --> [hates].
:- end_object.

View File

@ -0,0 +1,22 @@
:- object(sentence,
implements(parsep),
imports(determiners, nouns, verbs)).
parse(List, true) :-
phrase(sentence, List).
parse(_, false).
sentence --> noun_phrase, verb_phrase.
noun_phrase --> ::determiner, ::noun.
noun_phrase --> ::noun.
verb_phrase --> ::verb.
verb_phrase --> ::verb, noun_phrase.
:- end_object.

View File

@ -0,0 +1,9 @@
:- category(verbs).
verb --> [likes].
verb --> [hates].
:- end_category.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,14 +7,14 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<title>Logtalk 2.15.1 Documentation</title> <title>Logtalk 2.15.2 Documentation</title>
<link rel="stylesheet" href="styles.css" type="text/css" /> <link rel="stylesheet" href="styles.css" type="text/css" />
</head> </head>
<body> <body>
<hr /> <hr />
<h1 class="center">Logtalk 2.15.1</h1> <h1 class="center">Logtalk 2.15.2</h1>
<h3 class="center">Documentation</h3> <h3 class="center">Documentation</h3>
<p class="center"> <p class="center">
@ -45,7 +45,7 @@
<hr /> <hr />
<p class="center"> <p class="center">
Last updated on: March 4, 2003 Last updated on: March 30, 2003
</p> </p>
<p class="center"> <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> <a href="http://validator.w3.org/check/referer"><img src="valid-xhtml10.png" alt="Valid XHTML 1.0!" width="88" height="31" /></a>

View File

@ -171,6 +171,11 @@
<dd><a name="before3" href="methods/before3.html"><code>before/3</code></a></dd> <dd><a name="before3" href="methods/before3.html"><code>before/3</code></a></dd>
<dd><a name="after3" href="methods/after3.html"><code>after/3</code></a></dd> <dd><a name="after3" href="methods/after3.html"><code>after/3</code></a></dd>
</dl> </dl>
<dl>
<dt>DCG rules parsing methods</dt>
<dd><a name="phrase2" href="methods/phrase2.html"><code>phrase/2</code></a></dd>
<dd><a name="phrase3" href="methods/phrase3.html"><code>phrase/3</code></a></dd>
</dl>
<h4>Control constructs</h4> <h4>Control constructs</h4>
@ -190,7 +195,7 @@
<strong><a href="../userman/index.html">User manual</a> | <a href="../tutorial/index.html">Tutorial</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong> <strong><a href="../userman/index.html">User manual</a> | <a href="../tutorial/index.html">Tutorial</a> | <a href="../bibliography.html">Bibliography</a> | <a href="../glossary.html">Glossary</a></strong>
</p> </p>
<p class="center"> <p class="center">
Last updated on: March 4, 2003 Last updated on: March 30, 2003
</p> </p>
<hr /> <hr />

View File

@ -56,10 +56,10 @@ after(Object, Message, Sender) :-
<hr /> <hr />
<p class="center"> <p class="center">
<strong><a href="before3.html">Previous</a> | <a href="../control/to_object2.html">Next</a> | <a href="../index.html">Table of Contents</a> | <a href="../../bibliography.html">Bibliography</a> | <a href="../../glossary.html">Glossary</a></strong> <strong><a href="before3.html">Previous</a> | <a href="phrase2.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>
<p class="center"> <p class="center">
Last updated on: August 6, 2002 Last updated on: March 18, 2003
</p> </p>
<hr /> <hr />

View File

@ -0,0 +1,70 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="../../styles.css" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>phrase/2</title>
<link rel="stylesheet" href="../../styles.css" type="text/css" />
</head>
<body>
<hr />
<h2><code><a class="back" title="Return to index" href="../index.html#phrase2">phrase/2</a></code></h2>
<hr />
<h4>Description</h4>
<blockquote>
<pre>
phrase(Ruleset, Input)
</pre>
<p>
True if the list <code>Input</code> can be parsed using the specified <code>Ruleset</code>.
</p>
</blockquote>
<h4>Template and modes</h4>
<blockquote>
<pre>
phrase(+callable, ?list)
</pre>
</blockquote>
<h4>Errors</h4>
<blockquote>
<dl>
<dt>Ruleset is a variable:</dt>
<dd><code>instantiation_error</code></dd>
<dt>Ruleset is neither a variable nor a callable term:</dt>
<dd><code>type_error(callable, Ruleset)</code></dd>
<dt>Input is neither a variable nor a proper list:</dt>
<dd><code>type_error(list, Input)</code></dd>
</dl>
</blockquote>
<h4>Examples</h4>
<blockquote>
(none)
</blockquote>
<hr />
<p class="center">
<strong><a href="after3.html">Previous</a> | <a href="phrase3.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: March 30, 2003
</p>
<hr />
</body>
</html>

View File

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/css" href="../../styles.css" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>phrase/3</title>
<link rel="stylesheet" href="../../styles.css" type="text/css" />
</head>
<body>
<hr />
<h2><code><a class="back" title="Return to index" href="../index.html#phrase3">phrase/3</a></code></h2>
<hr />
<h4>Description</h4>
<blockquote>
<pre>
phrase(Ruleset, Input, Rest)
</pre>
<p>
True if the list <code>Input</code> can be parsed using the specified <code>Ruleset</code>. The list <code>Rest</code> is what remains of the list <code>Input</code> after parsing succeeded.
</p>
</blockquote>
<h4>Template and modes</h4>
<blockquote>
<pre>
phrase(+callable, ?list, ?list)
</pre>
</blockquote>
<h4>Errors</h4>
<blockquote>
<dl>
<dt>Ruleset is a variable:</dt>
<dd><code>instantiation_error</code></dd>
<dt>Ruleset is neither a variable nor a callable term:</dt>
<dd><code>type_error(callable, Ruleset)</code></dd>
<dt>Input is neither a variable nor a proper list:</dt>
<dd><code>type_error(list, Input)</code></dd>
<dt>Rest is neither a variable nor a proper list:</dt>
<dd><code>type_error(list, Rest)</code></dd>
</dl>
</blockquote>
<h4>Examples</h4>
<blockquote>
(none)
</blockquote>
<hr />
<p class="center">
<strong><a href="phrase3.html">Previous</a> | <a href="../control/to_object2.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: March 30, 2003
</p>
<hr />
</body>
</html>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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