/usr/share/mozart/doc/fdt/node14.html is in mozart-doc 1.4.0-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>3.1 Format of Scripts</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node13.html">- Up -</A></TD><TD><A href="node15.html#section.problem.money">Next >></A></TD></TR></TABLE><DIV id="section.problem.script"><H2><A name="section.problem.script">3.1 Format of Scripts</A></H2><P> In Oz, a script takes the form of a procedure </P><BLOCKQUOTE class="code"><CODE><SPAN class="keyword">proc</SPAN><SPAN class="variablename"> </SPAN>{<SPAN class="functionname">Script</SPAN> Root}<BR> %% <SPAN class="comment">declare variables<BR></SPAN><SPAN class="keyword">in</SPAN> <BR> %% <SPAN class="comment">post constraints<BR></SPAN> %% <SPAN class="comment">specify distribution strategy<BR></SPAN><SPAN class="keyword">end</SPAN></CODE></BLOCKQUOTE><P> The procedure declares the variables needed, posts the constraints modeling the problem, and specifies the distribution strategy.</P><P>The argument <CODE>Root</CODE> stands for the solutions of the problem to be solved. If the solutions of a problem are given by more than one variable, say <CODE>X</CODE>, <CODE>Y</CODE>, and <CODE>Z</CODE>, we may simply combine these variables into one record by posting a constraint like </P><BLOCKQUOTE class="code"><CODE>Root = solution(x:X y:Y z:Z)</CODE></BLOCKQUOTE><P> The procedure </P><BLOCKQUOTE class="code"><CODE>{SearchAll Script ?Solutions}</CODE></BLOCKQUOTE><P> will run the script <CODE>Script</CODE> until the entire search tree is explored and return the list of the solutions found. </P><P>The procedure </P><BLOCKQUOTE class="code"><CODE>{SearchOne Script ?Solutions}</CODE></BLOCKQUOTE><P> will run the script <CODE>Script</CODE> until the first solution is found. If a solution is found, it is returned as the single element of a list; otherwise, the empty list is returned.</P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node13.html">- Up -</A></TD><TD><A href="node15.html#section.problem.money">Next >></A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~schulte/">Christian Schulte</A> and <A href="http://www.ps.uni-sb.de/~smolka/">Gert Smolka</A><BR><SPAN class="version">Version 1.4.0 (20110908185330)</SPAN></ADDRESS></BODY></HTML>
|