root/tags/lgt2310/library/comparingp.lgt

Revision 3687, 1.2 KB (checked in by pmoura, 21 months ago)

Code reformating.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2:- protocol(comparingp).
3
4    :- info([
5        version is 1.0,
6        author is 'Paulo Moura',
7        date is 2000/7/24,
8        comment is 'Comparing protocol using overloading of standard operators.']).
9
10    :- public((<)/2).
11    :- mode(<(+term, +term), zero_or_one).
12    :- info((<)/2, [
13        comment is 'True if Term1 is less than Term2.',
14        argnames is ['Term1', 'Term2']]).
15
16    :- public((=<)/2).
17    :- mode(=<(+term, +term), zero_or_one).
18    :- info((=<)/2, [
19        comment is 'True if Term1 is less or equal than Term2.',
20        argnames is ['Term1', 'Term2']]).
21
22    :- public((>)/2).
23    :- mode(>(+term, +term), zero_or_one).
24    :- info((>)/2, [
25        comment is 'True if Term1 is greater than Term2.',
26        argnames is ['Term1', 'Term2']]).
27
28    :- public((>=)/2).
29    :- mode(>=(+term, +term), zero_or_one).
30    :- info((>=)/2, [
31        comment is 'True if Term1 is equal or grater than Term2.',
32        argnames is ['Term1', 'Term2']]).
33
34    :- public((=:=)/2).
35    :- mode(=:=(+term, +term), zero_or_one).
36    :- info((=:=)/2, [
37        comment is 'True if Term1 is equal to Term2.',
38        argnames is ['Term1', 'Term2']]).
39
40    :- public((=\=)/2).
41    :- mode(=\=(+term, +term), zero_or_one).
42    :- info((=\=)/2, [
43        comment is 'True if Term1 is not equal to Term2.',
44        argnames is ['Term1', 'Term2']]).
45
46:- end_protocol.
Note: See TracBrowser for help on using the browser.