a920e364c3
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1232 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
259 lines
12 KiB
HTML
259 lines
12 KiB
HTML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<?xml-stylesheet type="text/css" href="../styles.css" ?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
|
|
<title>Logtalk Reference Manual</title>
|
|
<link rel="stylesheet" href="../styles.css" type="text/css" />
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="navtop">
|
|
<a href="../index.html">contents</a>
|
|
</div>
|
|
|
|
<h1>Reference Manual</h1>
|
|
|
|
<h2><a name="grammar" href="grammar.html">Grammar</a></h2>
|
|
|
|
<h3><a name="compilation_units" href="grammar.html#compilation_units">Compilation units</a></h3>
|
|
|
|
<h3><a name="object_definition" href="grammar.html#object_definition">Object definition</a></h3>
|
|
|
|
<h3><a name="category_definition" href="grammar.html#category_definition">Category definition</a></h3>
|
|
|
|
<h3><a name="protocol_definition" href="grammar.html#protocol_definition">Protocol definition</a></h3>
|
|
|
|
<h3><a name="entity_relations" href="grammar.html#entity_relations">Entity relations</a></h3>
|
|
|
|
<dl>
|
|
<dt><a name="implemented_protocols" href="grammar.html#implemented_protocols">Implemented protocols</a></dt>
|
|
<dt><a name="extended_protocols" href="grammar.html#extended_protocols">Extended protocols</a></dt>
|
|
<dt><a name="imported_categories" href="grammar.html#imported_categories">Imported categories</a></dt>
|
|
<dt><a name="extended_objects" href="grammar.html#extended_objects">Extended objects</a></dt>
|
|
<dt><a name="instantiated_objects" href="grammar.html#instantiated_objects">Instantiated objects</a></dt>
|
|
<dt><a name="specialized_objects" href="grammar.html#specialized_objects">Specialized objects</a></dt>
|
|
<dt><a name="scope" href="grammar.html#scope">Entity scope</a></dt>
|
|
</dl>
|
|
|
|
<h3><a name="entity_identifiers" href="grammar.html#entity_identifiers">Entity identifiers</a></h3>
|
|
|
|
<dl>
|
|
<dt><a name="object_identifiers" href="grammar.html#object_identifiers">Object identifiers</a></dt>
|
|
<dt><a name="category_identifiers" href="grammar.html#category_identifiers">Category identifiers</a></dt>
|
|
<dt><a name="protocol_identifiers" href="grammar.html#protocol_identifiers">Protocol identifiers</a></dt>
|
|
</dl>
|
|
|
|
<h3><a name="directives" href="grammar.html#directives">Directives</a></h3>
|
|
|
|
<dl>
|
|
<dt><a name="object_directives" href="grammar.html#object_directives">Object directives</a></dt>
|
|
<dt><a name="category_directives" href="grammar.html#category_directives">Category directives</a></dt>
|
|
<dt><a name="protocol_directives" href="grammar.html#protocol_directives">Protocol directives</a></dt>
|
|
<dt><a name="predicate_directives" href="grammar.html#predicate_directives">Predicate directives</a></dt>
|
|
</dl>
|
|
|
|
<h3><a name="clauses" href="grammar.html#clauses">Clauses</a></h3>
|
|
|
|
<h3><a name="entity_properties" href="grammar.html#entity_properties">Entity properties</a></h3>
|
|
|
|
<h3><a name="predicate_properties" href="grammar.html#predicate_properties">Predicate properties</a></h3>
|
|
|
|
<h2><a name="directives"></a>Directives</h2>
|
|
|
|
<h3>Entity directives</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="calls1" href="directives/calls1.html">calls/1</a></code></dt>
|
|
<dt><code><a name="category1_3" href="directives/category1_3.html">category/1-3</a></code></dt>
|
|
<dt><code><a name="dynamic0" href="directives/dynamic0.html">dynamic/0</a></code></dt>
|
|
<dt><code><a name="end_category0" href="directives/end_category0.html">end_category/0</a></code></dt>
|
|
<dt><code><a name="end_object0" href="directives/end_object0.html">end_object/0</a></code></dt>
|
|
<dt><code><a name="end_protocol0" href="directives/end_protocol0.html">end_protocol/0</a></code></dt>
|
|
<dt><code><a name="info1" href="directives/info1.html">info/1</a></code></dt>
|
|
<dt><code><a name="initialization1" href="directives/initialization1.html">initialization/1</a></code></dt>
|
|
<dt><code><a name="object1_5" href="directives/object1_5.html">object/1-5</a></code></dt>
|
|
<dt><code><a name="protocol1_2" href="directives/protocol1_2.html">protocol/1-2</a></code></dt>
|
|
<dt><code><a name="uses1" href="directives/uses1.html">uses/1</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Predicate directives</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="alias3" href="directives/alias3.html">alias/3</a></code></dt>
|
|
<dt><code><a name="discontiguous1" href="directives/discontiguous1.html">discontiguous/1</a></code></dt>
|
|
<dt><code><a name="dynamic1" href="directives/dynamic1.html">dynamic/1</a></code></dt>
|
|
<dt><code><a name="info2" href="directives/info2.html">info/2</a></code></dt>
|
|
<dt><code><a name="metapredicate1" href="directives/metapredicate1.html">metapredicate/1</a></code></dt>
|
|
<dt><code><a name="mode2" href="directives/mode2.html">mode/2</a></code></dt>
|
|
<dt><code><a name="op3" href="directives/op3.html">op/3</a></code></dt>
|
|
<dt><code><a name="private1" href="directives/private1.html">private/1</a></code></dt>
|
|
<dt><code><a name="protected1" href="directives/protected1.html">protected/1</a></code></dt>
|
|
<dt><code><a name="public1" href="directives/public1.html">public/1</a></code></dt>
|
|
<dt><code><a name="uses2" href="directives/uses2.html">uses/2</a></code></dt>
|
|
</dl>
|
|
|
|
<h2><a name="builtins"></a>Built-in predicates</h2>
|
|
|
|
<h3>Enumerating objects, categories and protocols</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="current_category1" href="builtins/current_category1.html">current_category/1</a></code></dt>
|
|
<dt><code><a name="current_object1" href="builtins/current_object1.html">current_object/1</a></code></dt>
|
|
<dt><code><a name="current_protocol1" href="builtins/current_protocol1.html">current_protocol/1</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Enumerating objects, categories and protocols properties</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="category_property2" href="builtins/category_property2.html">category_property/2</a></code></dt>
|
|
<dt><code><a name="object_property2" href="builtins/object_property2.html">object_property/2</a></code></dt>
|
|
<dt><code><a name="protocol_property2" href="builtins/protocol_property2.html">protocol_property/2</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Creating new objects, categories and protocols</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="create_category4" href="builtins/create_category4.html">create_category/4</a></code></dt>
|
|
<dt><code><a name="create_object4" href="builtins/create_object4.html">create_object/4</a></code></dt>
|
|
<dt><code><a name="create_protocol3" href="builtins/create_protocol3.html">create_protocol/3</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Abolishing objects, categories and protocols</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="abolish_category1" href="builtins/abolish_category1.html">abolish_category/1</a></code></dt>
|
|
<dt><code><a name="abolish_object1" href="builtins/abolish_object1.html">abolish_object/1</a></code></dt>
|
|
<dt><code><a name="abolish_protocol1" href="builtins/abolish_protocol1.html">abolish_protocol/1</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Objects, categories and protocols relations</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="extends_object2_3" href="builtins/extends_object2_3.html">extends_object/2-3</a></code></dt>
|
|
<dt><code><a name="extends_protocol2_3" href="builtins/extends_protocol2_3.html">extends_protocol/2-3</a></code></dt>
|
|
<dt><code><a name="implements_protocol2_3" href="builtins/implements_protocol2_3.html">implements_protocol/2-3</a></code></dt>
|
|
<dt><code><a name="imports_category2_3" href="builtins/imports_category2_3.html">imports_category/2-3</a></code></dt>
|
|
<dt><code><a name="instantiates_class2_3" href="builtins/instantiates_class2_3.html">instantiates_class/2-3</a></code></dt>
|
|
<dt><code><a name="specializes_class2_3" href="builtins/specializes_class2_3.html">specializes_class/2-3</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Event handling</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="abolish_events5" href="builtins/abolish_events5.html">abolish_events/5</a></code></dt>
|
|
<dt><code><a name="current_event5" href="builtins/current_event5.html">current_event/5</a></code></dt>
|
|
<dt><code><a name="define_events5" href="builtins/define_events5.html">define_events/5</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Compiling and loading objects, categories and protocols</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="logtalk_compile1" href="builtins/logtalk_compile1.html">logtalk_compile/1</a></code></dt>
|
|
<dt><code><a name="logtalk_compile2" href="builtins/logtalk_compile2.html">logtalk_compile/2</a></code></dt>
|
|
<dt><code><a name="logtalk_load1" href="builtins/logtalk_load1.html">logtalk_load/1</a></code></dt>
|
|
<dt><code><a name="logtalk_load2" href="builtins/logtalk_load2.html">logtalk_load/2</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Flags</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="current_logtalk_flag2" href="builtins/current_logtalk_flag2.html">current_logtalk_flag/2</a></code></dt>
|
|
<dt><code><a name="set_logtalk_flag2" href="builtins/set_logtalk_flag2.html">set_logtalk_flag/2</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Others</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="forall2" href="builtins/forall2.html">forall/2</a></code></dt>
|
|
<dt><code><a name="retractall1" href="builtins/retractall1.html">retractall/1</a></code></dt>
|
|
</dl>
|
|
|
|
<h2><a name="methods"></a>Built-in methods</h2>
|
|
|
|
<h3>Local methods</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="parameter2" href="methods/parameter2.html">parameter/2</a></code></dt>
|
|
<dt><code><a name="self1" href="methods/self1.html">self/1</a></code></dt>
|
|
<dt><code><a name="sender1" href="methods/sender1.html">sender/1</a></code></dt>
|
|
<dt><code><a name="this1" href="methods/this1.html">this/1</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Reflection methods</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="current_predicate1" href="methods/current_predicate1.html">current_predicate/1</a></code></dt>
|
|
<dt><code><a name="predicate_property2" href="methods/predicate_property2.html">predicate_property/2</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Database methods</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="abolish1" href="methods/abolish1.html">abolish/1</a></code></dt>
|
|
<dt><code><a name="asserta1" href="methods/asserta1.html">asserta/1</a></code></dt>
|
|
<dt><code><a name="assertz1" href="methods/assertz1.html">assertz/1</a></code></dt>
|
|
<dt><code><a name="clause2" href="methods/clause2.html">clause/2</a></code></dt>
|
|
<dt><code><a name="retract1" href="methods/retract1.html">retract/1</a></code></dt>
|
|
<dt><code><a name="retractall1" href="methods/retractall1.html">retractall/1</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>All solutions methods</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="bagof3" href="methods/bagof3.html">bagof/3</a></code></dt>
|
|
<dt><code><a name="findall3" href="methods/findall3.html">findall/3</a></code></dt>
|
|
<dt><code><a name="forall2" href="methods/forall2.html">forall/2</a></code></dt>
|
|
<dt><code><a name="setof3" href="methods/setof3.html">setof/3</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Event handler methods</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="before3" href="methods/before3.html">before/3</a></code></dt>
|
|
<dt><code><a name="after3" href="methods/after3.html">after/3</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>DCG rules parsing methods</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="phrase2" href="methods/phrase2.html">phrase/2</a></code></dt>
|
|
<dt><code><a name="phrase3" href="methods/phrase3.html">phrase/3</a></code></dt>
|
|
</dl>
|
|
|
|
<h2><a name="constructs"></a>Control constructs</h2>
|
|
|
|
<h3>Message sending</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="to_object2" href="control/to_object2.html">::/2</a></code></dt>
|
|
<dt><code><a name="to_self1" href="control/to_self1.html">::/1</a></code></dt>
|
|
<dt><code><a name="to_super1" href="control/to_super1.html">^^/1</a></code></dt>
|
|
</dl>
|
|
|
|
<h3>Calling external code</h3>
|
|
|
|
<dl>
|
|
<dt><code><a name="to_object2" href="control/external1.html">{}/1</a></code></dt>
|
|
</dl>
|
|
|
|
<div class="navbottom">
|
|
<a href="../glossary.html">glossary</a>
|
|
</div>
|
|
|
|
<div class="copyright">
|
|
Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://www.logtalk.org">Logtalk.org</a>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p><span class="bleft"><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span><span class="bright">Last updated on: January 12, 2005</span></p>
|
|
</div>
|
|
</body>
|
|
</html>
|