A-New-Operator.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <html lang="en">
  2. <head>
  3. <title>A New Operator - avram - a virtual machine code interpreter</title>
  4. <meta http-equiv="Content-Type" content="text/html">
  5. <meta name="description" content="avram - a virtual machine code interpreter">
  6. <meta name="generator" content="makeinfo 4.13">
  7. <link title="Top" rel="start" href="index.html#Top">
  8. <link rel="up" href="Virtual-Code-Semantics.html#Virtual-Code-Semantics" title="Virtual Code Semantics">
  9. <link rel="prev" href="Virtual-Code-Semantics.html#Virtual-Code-Semantics" title="Virtual Code Semantics">
  10. <link rel="next" href="On-Equality.html#On-Equality" title="On Equality">
  11. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  12. <meta http-equiv="Content-Style-Type" content="text/css">
  13. <style type="text/css"><!--
  14. pre.display { font-family:inherit }
  15. pre.format { font-family:inherit }
  16. pre.smalldisplay { font-family:inherit; font-size:smaller }
  17. pre.smallformat { font-family:inherit; font-size:smaller }
  18. pre.smallexample { font-size:smaller }
  19. pre.smalllisp { font-size:smaller }
  20. span.sc { font-variant:small-caps }
  21. span.roman { font-family:serif; font-weight:normal; }
  22. span.sansserif { font-family:sans-serif; font-weight:normal; }
  23. --></style>
  24. </head>
  25. <body>
  26. <div class="node">
  27. <a name="A-New-Operator"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="On-Equality.html#On-Equality">On Equality</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="Virtual-Code-Semantics.html#Virtual-Code-Semantics">Virtual Code Semantics</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="Virtual-Code-Semantics.html#Virtual-Code-Semantics">Virtual Code Semantics</a>
  32. <hr>
  33. </div>
  34. <h4 class="subsection">2.7.1 A New Operator</h4>
  35. <p>With regard to a set of trees as described in <a href="Raw-Material.html#Raw-Material">Raw Material</a>, we can define
  36. a new binary operator. Unlike the <code>cons</code> operator, this one is not
  37. required to associate an element of the set with every possible pair
  38. of elements. For very many pairs of operands we will have nothing to
  39. say about its result. In fact, we require nothing of it beyond
  40. a few simple properties to be described presently.
  41. <p>Because this is the only other operator than <code>cons</code>, there is no
  42. <a name="index-g_t_0040code_007bcons_007d-240"></a>need to have a special notation for it, so it will be denoted by empty
  43. space. The tree associated by the operator with a pair of trees <var>x</var>
  44. and <var>y</var>, if any, will be expressed in the infix notation
  45. <var>x</var> <var>y</var>. For convenience, the operator is regarded as
  46. being right associative, so that <var>a</var> <var>b</var> <var>c</var> can be
  47. written for <var>a</var><code> (</code><var>b</var> <var>c</var><code>)</code>.
  48. </body></html>