Changeset 4215 for trunk/manuals/refman/directives/mode2.html
- Timestamp:
- 04/22/08 07:26:38 (6 months ago)
- Files:
-
- 1 modified
-
trunk/manuals/refman/directives/mode2.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manuals/refman/directives/mode2.html
r3560 r4215 26 26 <pre>mode(Mode, Number_of_solutions)</pre> 27 27 <p> 28 Most predicates can be used with several instantiations modes. This directive enables the specification of each instantiation mode and the corresponding number of solutions (not necessarily distinct). You may also use this directive for documenting grammar rule non-terminals. 28 Most predicates can be used with several instantiations modes. This directive enables the specification of each instantiation mode and the corresponding number of solutions (not necessarily distinct). You may also use this directive for documenting grammar rule non-terminals. Multiple directives may be used to specify the same predicate or grammar rule non-terminal. 29 29 </p> 30 30 … … 36 36 <h4>Examples</h4> 37 37 38 <pre>:- mode(append(-, -, +), zero_or_more). 39 40 :- mode(append(+list, +list, -list), zero_or_one). 38 <pre>:- mode(atom_concat(?atom, ?atom, +atom), one_or_more). 39 :- mode(atom_concat(+atom, +atom, -atom), one). 41 40 42 41 :- mode(var(@term), zero_or_one). 43 42 44 :- mode( arg(-, -, +), error).</pre>43 :- mode(solve(+string, -list(atom)), zero_or_one).</pre> 45 44 46 45 <div class="footer"> 47 46 <div class="copyright"> 48 47 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 49 <span>Last updated on: October 26, 2006</span>48 <span>Last updated on: April 21, 2008</span> 50 49 </div> 51 50 <div class="navbottom">
