Virtual-Code-Semantics.html 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <html lang="en">
  2. <head>
  3. <title>Virtual Code Semantics - 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-Machine-Specification.html#Virtual-Machine-Specification" title="Virtual Machine Specification">
  9. <link rel="prev" href="Parameter-Mode-Interface.html#Parameter-Mode-Interface" title="Parameter Mode Interface">
  10. <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
  11. <meta http-equiv="Content-Style-Type" content="text/css">
  12. <style type="text/css"><!--
  13. pre.display { font-family:inherit }
  14. pre.format { font-family:inherit }
  15. pre.smalldisplay { font-family:inherit; font-size:smaller }
  16. pre.smallformat { font-family:inherit; font-size:smaller }
  17. pre.smallexample { font-size:smaller }
  18. pre.smalllisp { font-size:smaller }
  19. span.sc { font-variant:small-caps }
  20. span.roman { font-family:serif; font-weight:normal; }
  21. span.sansserif { font-family:sans-serif; font-weight:normal; }
  22. --></style>
  23. </head>
  24. <body>
  25. <div class="node">
  26. <a name="Virtual-Code-Semantics"></a>
  27. <p>
  28. Previous:&nbsp;<a rel="previous" accesskey="p" href="Parameter-Mode-Interface.html#Parameter-Mode-Interface">Parameter Mode Interface</a>,
  29. Up:&nbsp;<a rel="up" accesskey="u" href="Virtual-Machine-Specification.html#Virtual-Machine-Specification">Virtual Machine Specification</a>
  30. <hr>
  31. </div>
  32. <h3 class="section">2.7 Virtual Code Semantics</h3>
  33. <p>As the previous sections explain, virtual code applications are defined
  34. in terms of mathematical functions. Up until this point, the discussion
  35. has focused on the interface between the function and the virtual
  36. machine interpreter, by detailing the arguments passed to the functions under
  37. various circumstances and the results they are expected to return in
  38. order to achieve various effects.
  39. <p>The purpose of this section is to complete the picture by explaining how
  40. a given computable function can be expressed in virtual code,
  41. considering only functions operating on the trees described in <a href="Raw-Material.html#Raw-Material">Raw Material</a>.
  42. Functions manipulating trees of <code>nil</code> are undoubtedly a frivolous
  43. and abstract subject in themselves. One is obliged to refer back to the
  44. previous sections if in need of motivation.
  45. <ul class="menu">
  46. <li><a accesskey="1" href="A-New-Operator.html#A-New-Operator">A New Operator</a>
  47. <li><a accesskey="2" href="On-Equality.html#On-Equality">On Equality</a>
  48. <li><a accesskey="3" href="A-Minimal-Set-of-Properties.html#A-Minimal-Set-of-Properties">A Minimal Set of Properties</a>
  49. <li><a accesskey="4" href="A-Simple-Lisp-Like-Language.html#A-Simple-Lisp-Like-Language">A Simple Lisp Like Language</a>
  50. <li><a accesskey="5" href="How-_003ccode_003eavram_003c_002fcode_003e-Thinks.html#How-_003ccode_003eavram_003c_002fcode_003e-Thinks">How <code>avram</code> Thinks</a>
  51. <li><a accesskey="6" href="Variable-Freedom.html#Variable-Freedom">Variable Freedom</a>
  52. <li><a accesskey="7" href="Metrics-and-Maintenance.html#Metrics-and-Maintenance">Metrics and Maintenance</a>
  53. <li><a accesskey="8" href="Deconstruction.html#Deconstruction">Deconstruction</a>
  54. <li><a accesskey="9" href="Recursion.html#Recursion">Recursion</a>
  55. <li><a href="Assignment.html#Assignment">Assignment</a>
  56. <li><a href="Predicates.html#Predicates">Predicates</a>
  57. <li><a href="Iteration.html#Iteration">Iteration</a>
  58. <li><a href="List-Combinators.html#List-Combinators">List Combinators</a>
  59. <li><a href="List-Functions.html#List-Functions">List Functions</a>
  60. <li><a href="Exception-Handling.html#Exception-Handling">Exception Handling</a>
  61. <li><a href="Interfaces-to-External-Code.html#Interfaces-to-External-Code">Interfaces to External Code</a>
  62. <li><a href="Vacant-Address-Space.html#Vacant-Address-Space">Vacant Address Space</a>
  63. </ul>
  64. </body></html>