Changeset 4599 for trunk/manuals/refman
- Timestamp:
- 11/21/08 12:47:26 (7 weeks ago)
- Location:
- trunk/manuals/refman
- Files:
-
- 5 modified
-
index.html (modified) (2 diffs)
-
methods/expand_term2.html (modified) (2 diffs)
-
methods/goal_expansion2.html (modified) (2 diffs)
-
methods/term_expansion2.html (modified) (2 diffs)
-
refman.header (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manuals/refman/index.html
r4577 r4599 294 294 </dl> 295 295 296 <h3>Term expansion methods</h3>296 <h3>Term and goal expansion methods</h3> 297 297 298 298 <dl class="toc-entries"> 299 299 <dt><code><a href="methods/expand_term2.html">expand_term/2</a></code><span class="leader"></span><span class="page-ref"><span class="methods_expand_term2"></span></span></dt> 300 300 <dt><code><a href="methods/term_expansion2.html">term_expansion/2</a></code><span class="leader"></span><span class="page-ref"><span class="methods_term_expansion2"></span></span></dt> 301 <dt><code><a href="methods/expand_goal2.html">expand_goal/2</a></code><span class="leader"></span><span class="page-ref"><span class="methods_expand_goal2"></span></span></dt> 301 302 <dt><code><a href="methods/goal_expansion2.html">goal_expansion/2</a></code><span class="leader"></span><span class="page-ref"><span class="methods_goal_expansion2"></span></span></dt> 302 303 </dl> … … 333 334 <div class="copyright"> 334 335 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 335 <span>Last updated on: November 7, 2008</span>336 <span>Last updated on: November 21, 2008</span> 336 337 </div> 337 338 <div class="navbottom"> -
trunk/manuals/refman/methods/expand_term2.html
r3560 r4599 29 29 </p> 30 30 <p> 31 The expansion works as follows: if the first argument is a variable, then it is unified with the second argument; if the first argument is not a variable and clauses for the <code>term_expansion/2</code> predicate are within scope, then this predicate is called to provide an expansion that is then unified with the second argument; if the <code>term_expansion/2</code> predicate is not used and the first argument is a compound term with functor <code>-->/2</code> then the default Logtalk grammar rule translator is used, with the resulting clause being unified with the second argument; when the translator is not used, the two arguments are unified. 31 The expansion works as follows: if the first argument is a variable, then it is unified with the second argument; if the first argument is not a variable and clauses for the <code>term_expansion/2</code> predicate are within scope, then this predicate is called to provide an expansion that is then unified with the second argument; if the <code>term_expansion/2</code> predicate is not used and the first argument is a compound term with functor <code>-->/2</code> then the default Logtalk grammar rule translator is used, with the resulting clause being unified with the second argument; when the translator is not used, the two arguments are unified. The <code>expand_term/2</code> predicate may return a list of terms. 32 32 </p> 33 33 <p> … … 54 54 <div class="copyright"> 55 55 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 56 <span>Last updated on: October 26, 2006</span>56 <span>Last updated on: November 21, 2008</span> 57 57 </div> 58 58 <div class="navbottom"> -
trunk/manuals/refman/methods/goal_expansion2.html
r3945 r4599 26 26 <pre>goal_expansion(Goal, ExpandedGoal)</pre> 27 27 <p> 28 Defines an expansion for a goal. The first argument is the goal to be expanded. The expanded goal is returned in the second argument. This predicate is called recursively on the expanded goal. Thus, care must be taken to avoid compilation loops. This predicate is called when compiling source files, when dynamically creating new objects, and when asserting predicate clauses.28 Defines an expansion for a goal. The first argument is the goal to be expanded. The expanded goal is returned in the second argument. This predicate is called recursively on the expanded goal. Thus, care must be taken to avoid compilation loops. This predicate, when defined, is automatically called by the <a href="expand_goal2.html"><code>expand_goal/2</code></a> method. Use of this predicate by the <code>expand_goal/2</code> method may be restricted by using a scope directive for it. This predicate is called when compiling source files, when dynamically creating new objects, and when asserting predicate clauses. 29 29 </p> 30 30 … … 48 48 <div class="copyright"> 49 49 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 50 <span>Last updated on: December 3, 2007</span>50 <span>Last updated on: November 21, 2008</span> 51 51 </div> 52 52 <div class="navbottom"> 53 <span><a href=" term_expansion2.html">previous</a> | <a href="../../glossary.html">glossary</a> | <a href="../index.html#methods">next</a></span><br/>53 <span><a href="expand_goal2.html">previous</a> | <a href="../../glossary.html">glossary</a> | <a href="../index.html#methods">next</a></span><br/> 54 54 <span><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span> 55 55 </div> -
trunk/manuals/refman/methods/term_expansion2.html
r3942 r4599 26 26 <pre>term_expansion(Term, Expansion)</pre> 27 27 <p> 28 Defines an expansion for a term. This predicate, when defined, is automatically called by the <a href="expand_term2.html"><code>expand_term/2</code></a> method. Use of this predicate by the <code>expand_term/2</code> method may be restricted by using a scope directive for it. The <code>term_expansion/2</code> clauses are only used by the <code>expand_term/2</code> method if they are within the scope of the <em>sender</em>. When that is not the case, the <code>expand_term/2</code> method only uses the default expansions. 28 Defines an expansion for a term. This predicate, when defined, is automatically called by the <a href="expand_term2.html"><code>expand_term/2</code></a> method. Use of this predicate by the <code>expand_term/2</code> method may be restricted by using a scope directive for it. The <code>term_expansion/2</code> clauses are only used by the <code>expand_term/2</code> method if they are within the scope of the <em>sender</em>. When that is not the case, the <code>expand_term/2</code> method only uses the default expansions. The <code>term_expansion/2</code> predicate may return a list of terms. 29 29 </p> 30 30 … … 48 48 <div class="copyright"> 49 49 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 50 <span>Last updated on: October 26, 2006</span>50 <span>Last updated on: November 21, 2008</span> 51 51 </div> 52 52 <div class="navbottom"> 53 <span><a href="expand_term2.html">previous</a> | <a href="../../glossary.html">glossary</a> | <a href=" goal_expansion2.html">next</a></span><br/>53 <span><a href="expand_term2.html">previous</a> | <a href="../../glossary.html">glossary</a> | <a href="expand_goal2.html">next</a></span><br/> 54 54 <span><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span> 55 55 </div> -
trunk/manuals/refman/refman.header
r4575 r4599 36 36 <span>http://logtalk.org/</span> 37 37 </p> 38 <p class="date">Last updated on November 7, 2008</p>38 <p class="date">Last updated on November 21, 2008</p> 39 39 </div> 40 40
