]> thyrsus.com Git - mad.git/commitdiff
Yest another page.
authorEric S. Raymond <esr@thyrsus,com>
Sun, 9 May 2004 22:32:43 +0000 (22:32 +0000)
committerEric S. Raymond <esr@thyrsus,com>
Sun, 9 May 2004 22:32:43 +0000 (22:32 +0000)
doc/mad-manual.xml

index 1cff6f7f1cd87b39b10e88011b43565eb823c5d6..44c5da56b18447df18d2dd7d44a4727bff3bff13 100644 (file)
@@ -4734,7 +4734,7 @@ possibilities are suggested by the comment.</para>
 in much greater detail in other Computing Center write-ups.  However,
 the following sections should be sufficient for the general use of
 MAD.</para>
-<!-- beiginpage IV.3 -->
+<!-- beginpage IV.3 -->
 
 <!-- the original had a tyo, "Probram" for "Program" -->
 <para>Subroutines which are written for use by MAD programs&dd;whether
@@ -4998,6 +4998,30 @@ The interpretation of the mode is implicit in the operator and
 conversion definition programs.  Mode declarations may occur anywhere,
 as before, except within operator and conversion definition programs.</para>
 
+</sect1>
+<sect1><title>The DEFINE Statement</title>
+
+<para>The first statement of an operation definition program is</para>
+
+<mediaobject>
+  <imageobject>
+    <imagedata fileref='equation11.png'/>
+  </imageobject>
+</mediaobject>
+
+<para>where .NAME. is the name of the operator being defined (the operator
+may be either binary or unary), and .OPER. is the name or symbol of
+some exist&shy;ing or previously defined operator.  This statement
+establishes the precedence (relative to the missing-parenthesis
+convention) of the operator .NAME. as being (1) immediately above that
+of .OPER. (but below all those already above .OPER.), (2) equal to
+that of .OPER., or (3) immediately below that of .OPER. (but above all
+those already below .OPER.). The name .OPER. could also be a single
+character, such as *, +(binary), -(binary), or /.  Unary minus can be
+referred to in such statements by the name -U.  Unary plus should not
+be used.</para>
+
+
 </sect1>
 </appendix>