Parameter-Mode-Options.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
  2. <html>
  3. <!-- Created on December 10, 2012 by texi2html 1.82
  4. texi2html was written by:
  5. Lionel Cons <[email protected]> (original author)
  6. Karl Berry <[email protected]>
  7. Olaf Bachmann <[email protected]>
  8. and many others.
  9. Maintained by: Many creative people.
  10. Send bugs and suggestions to <[email protected]>
  11. -->
  12. <head>
  13. <title>avram - a virtual machine code interpreter: 1.4 Parameter Mode Options</title>
  14. <meta name="description" content="avram - a virtual machine code interpreter: 1.4 Parameter Mode Options">
  15. <meta name="keywords" content="avram - a virtual machine code interpreter: 1.4 Parameter Mode Options">
  16. <meta name="resource-type" content="document">
  17. <meta name="distribution" content="global">
  18. <meta name="Generator" content="texi2html 1.82">
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <style type="text/css">
  21. <!--
  22. a.summary-letter {text-decoration: none}
  23. blockquote.smallquotation {font-size: smaller}
  24. pre.display {font-family: serif}
  25. pre.format {font-family: serif}
  26. pre.menu-comment {font-family: serif}
  27. pre.menu-preformatted {font-family: serif}
  28. pre.smalldisplay {font-family: serif; font-size: smaller}
  29. pre.smallexample {font-size: smaller}
  30. pre.smallformat {font-family: serif; font-size: smaller}
  31. pre.smalllisp {font-size: smaller}
  32. span.roman {font-family:serif; font-weight:normal;}
  33. span.sansserif {font-family:sans-serif; font-weight:normal;}
  34. ul.toc {list-style: none}
  35. -->
  36. </style>
  37. </head>
  38. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  39. <a name="Parameter-Mode-Options"></a>
  40. <table cellpadding="1" cellspacing="1" border="0">
  41. <tr><td valign="middle" align="left">[<a href="Filter-Mode-Options.html#Filter-Mode-Options" title="Previous section in reading order"> &lt; </a>]</td>
  42. <td valign="middle" align="left">[<a href="Command-Line-Syntax.html#Command-Line-Syntax" title="Next section in reading order"> &gt; </a>]</td>
  43. <td valign="middle" align="left"> &nbsp; </td>
  44. <td valign="middle" align="left">[<a href="User-Manual.html#User-Manual" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  45. <td valign="middle" align="left">[<a href="User-Manual.html#User-Manual" title="Up section"> Up </a>]</td>
  46. <td valign="middle" align="left">[<a href="Virtual-Machine-Specification.html#Virtual-Machine-Specification" title="Next chapter"> &gt;&gt; </a>]</td>
  47. <td valign="middle" align="left"> &nbsp; </td>
  48. <td valign="middle" align="left"> &nbsp; </td>
  49. <td valign="middle" align="left"> &nbsp; </td>
  50. <td valign="middle" align="left"> &nbsp; </td>
  51. <td valign="middle" align="left">[<a href="avram.html#Top" title="Cover (top) of document">Top</a>]</td>
  52. <td valign="middle" align="left">[<a href="avram_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  53. <td valign="middle" align="left">[<a href="Function-Index.html#Function-Index" title="Index">Index</a>]</td>
  54. <td valign="middle" align="left">[<a href="avram_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  55. </tr></table>
  56. <hr size="1">
  57. <a name="Parameter-Mode-Options-1"></a>
  58. <h2 class="section">1.4 Parameter Mode Options</h2>
  59. <a name="index-parameter-mode-1"></a>
  60. <p>The parameter mode options are listed below. Except as otherwise
  61. noted, any combination of parameter mode options may be selected
  62. together, and except as noted, the settings of these options can be
  63. varied without breaking the application.
  64. </p>
  65. <dl compact="compact">
  66. <dt> <code>-q, --quiet</code></dt>
  67. <dd><a name="index-quiet-command-line-option"></a>
  68. <p><code>avram</code> normally informs the user when writing an output file with
  69. a short message to standard output. This option suppresses such
  70. messages. This option is compatible with any application and any other
  71. parameter mode option except &lsquo;<samp>-a</samp>&rsquo;.
  72. </p></dd>
  73. <dt> <code>-a, --ask-to-overwrite</code></dt>
  74. <dd><a name="index-ask_002dto_002doverwrite-command-line-option"></a>
  75. <p>Selecting this option will cause <code>avram</code> to ask permission
  76. interactively before overwriting an existing file, and to refrain from
  77. overwriting it without permission, in which case the contents that
  78. were to be written will be lost. This option overrides &lsquo;<samp>-q</samp>&rsquo; and is
  79. compatible with any other parameter mode option or application.
  80. </p></dd>
  81. <dt> <code>-.EXT</code></dt>
  82. <dd><a name="index-EXT-command-line-option"></a>
  83. <a name="index-default-file-extensions"></a>
  84. <a name="index-extensions"></a>
  85. <a name="index-file-name-extensions"></a>
  86. <a name="index-file-name-suffixes"></a>
  87. <p>An option beginning with a dash followed by a period specifies a
  88. default extension for input file names. If <code>avram</code> doesn&rsquo;t find a
  89. file named on the command line, and the filename doesn&rsquo;t already
  90. contain a period, <code>avram</code> will try to find a file having a similar
  91. name but with the default extension appended. The default extension given
  92. by this option takes precedence over the hard coded default extensions
  93. of <kbd>.fun</kbd> and <kbd>.avm</kbd>. At most one default extension can be supplied. This
  94. option is compatible with any other parameter mode option and
  95. compatible with any application.
  96. </p></dd>
  97. <dt> <code>-d, --default-to-stdin</code></dt>
  98. <dd><a name="index-default_002dto_002dstdin-command-line-option"></a>
  99. <a name="index-standard-input-2"></a>
  100. <p>If no filename parameter appears on the command line (other than the
  101. name of the virtual code file), this option directs <code>avram</code> to read
  102. the contents of standard input as if it were specified as a command line
  103. parameter. (Standard input can also be specified explicitly as a
  104. dash. See <a href="Command-Line-Syntax.html#Command-Line-Syntax">Command Line Syntax</a>.) This option is compatible with any
  105. application and any other parameter mode option except &lsquo;<samp>-m</samp>&rsquo;.
  106. </p></dd>
  107. <dt> <code>-m, --map-to-each-file</code></dt>
  108. <dd><a name="index-map_002dto_002deach_002dfile-command-line-option"></a>
  109. <p>Normally <code>avram</code> loads the entire contents of all files named on
  110. the command line into memory so as to evaluate the virtual machine
  111. code application on all of them together. This option can be used to
  112. save memory in the case of applications that operate on multiple files
  113. independently. It causes <code>avram</code> to load only one file at a time
  114. and to perform the relevant evaluation and output before loading the
  115. next one. Application specific options and standard input (if
  116. specified) are read only once and reused. This option is incompatible
  117. with &lsquo;<samp>-d</samp>&rsquo;, and not necessarily compatible with all applications,
  118. although some may work both with and without it.
  119. </p></dd>
  120. <dt> <code>-i, --interactive</code></dt>
  121. <dd><a name="index-interactive-command-line-option"></a>
  122. <a name="index-interactive-applications"></a>
  123. <p>This option is used in the case of applications that interact with
  124. other programs through shell commands. An application that is meant to
  125. be invoked in this way requires this option and will not work without
  126. it, nor will applications that are not of this type work with it. This
  127. option is implied by &lsquo;<samp>-t</samp>&rsquo; and &lsquo;<samp>-s</samp>&rsquo;, and is compatible with any
  128. other parameter mode option.
  129. </p></dd>
  130. <dt> <code>-s, --step</code></dt>
  131. <dd><a name="index-step-command-line-option"></a>
  132. <p>This option is used in the case of applications that interact with
  133. other programs through shell commands, similarly to &lsquo;<samp>-i</samp>&rsquo;, and
  134. can substitute for it (see above). The option has the additional
  135. effect of causing shell commands issued by <code>avram</code> on behalf of
  136. the application to be written with their results to standard output,
  137. and to cause <code>avram</code> to pause after displaying each shell command
  138. until a key is pressed. This capability may be useful for debugging
  139. or auditing purposes but does not otherwise alter the effects of the
  140. application. This option is compatible with any other parameter mode
  141. option.
  142. </p></dd>
  143. <dt> <code>-t, --trace</code></dt>
  144. <dd><a name="index-trace-command-line-option"></a>
  145. <p>This option is used in the case of applications that interact with
  146. other programs through shell commands, but only by way of the
  147. <code>interact</code> combinator, for which it provides developers a means
  148. of low level debugging, particularly deadlock detection. When this
  149. option is selected, a verbose trace of all characters exchanged
  150. between the functional transducer and the external application are
  151. written to standard output, along with some additional control flow
  152. diagnostics. This option is compatible with any other parameter mode
  153. option.
  154. </p></dd>
  155. <dt> <code>-p, --parameterized</code></dt>
  156. <dd><a name="index-parameterized-command-line-option"></a>
  157. <p>Normally <code>avram</code> tries to guess whether to operate in filter mode
  158. or parameter mode based on the options used and the parameters. If
  159. there are no parameters and no options, it will default to filter
  160. mode, and try to read standard input. However, if this option is
  161. selected, it will use parameter mode (and therefore not try to read
  162. standard input unless required).
  163. </p></dd>
  164. </dl>
  165. <hr size="1">
  166. <table cellpadding="1" cellspacing="1" border="0">
  167. <tr><td valign="middle" align="left">[<a href="Filter-Mode-Options.html#Filter-Mode-Options" title="Previous section in reading order"> &lt; </a>]</td>
  168. <td valign="middle" align="left">[<a href="Command-Line-Syntax.html#Command-Line-Syntax" title="Next section in reading order"> &gt; </a>]</td>
  169. <td valign="middle" align="left"> &nbsp; </td>
  170. <td valign="middle" align="left">[<a href="User-Manual.html#User-Manual" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
  171. <td valign="middle" align="left">[<a href="User-Manual.html#User-Manual" title="Up section"> Up </a>]</td>
  172. <td valign="middle" align="left">[<a href="Virtual-Machine-Specification.html#Virtual-Machine-Specification" title="Next chapter"> &gt;&gt; </a>]</td>
  173. <td valign="middle" align="left"> &nbsp; </td>
  174. <td valign="middle" align="left"> &nbsp; </td>
  175. <td valign="middle" align="left"> &nbsp; </td>
  176. <td valign="middle" align="left"> &nbsp; </td>
  177. <td valign="middle" align="left">[<a href="avram.html#Top" title="Cover (top) of document">Top</a>]</td>
  178. <td valign="middle" align="left">[<a href="avram_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
  179. <td valign="middle" align="left">[<a href="Function-Index.html#Function-Index" title="Index">Index</a>]</td>
  180. <td valign="middle" align="left">[<a href="avram_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
  181. </tr></table>
  182. <p>
  183. <font size="-1">
  184. This document was generated on <i>December 10, 2012</i> using <a href="http://www.nongnu.org/texi2html/"><i>texi2html 1.82</i></a>.
  185. </font>
  186. <br>
  187. </p>
  188. </body>
  189. </html>