Line-Maps.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <html lang="en">
  2. <head>
  3. <title>Line Maps - 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="Filter-Mode-Interface.html#Filter-Mode-Interface" title="Filter Mode Interface">
  9. <link rel="prev" href="Loading-All-of-Standard-Input-at-Once.html#Loading-All-of-Standard-Input-at-Once" title="Loading All of Standard Input at Once">
  10. <link rel="next" href="Byte-Transducers.html#Byte-Transducers" title="Byte Transducers">
  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="Line-Maps"></a>
  28. <p>
  29. Next:&nbsp;<a rel="next" accesskey="n" href="Byte-Transducers.html#Byte-Transducers">Byte Transducers</a>,
  30. Previous:&nbsp;<a rel="previous" accesskey="p" href="Loading-All-of-Standard-Input-at-Once.html#Loading-All-of-Standard-Input-at-Once">Loading All of Standard Input at Once</a>,
  31. Up:&nbsp;<a rel="up" accesskey="u" href="Filter-Mode-Interface.html#Filter-Mode-Interface">Filter Mode Interface</a>
  32. <hr>
  33. </div>
  34. <h4 class="subsection">2.5.2 Line Maps</h4>
  35. <p><a name="index-g_t_0040code_007bline_002dmap_007d-command-line-option-193"></a>Virtual code applications invoked with the <samp><span class="option">--line-map</span></samp> option
  36. (with or without the <samp><span class="option">--unparameterized</span></samp> option) adhere to a very
  37. simple interface.
  38. <ul>
  39. <li>The argument to the function is a character string, and the result
  40. must also be a character string.
  41. <li>The function is applied to each line of the standard input file
  42. <a name="index-standard-input-194"></a>and the result in each case is written to standard output followed by a
  43. <a name="index-standard-output-195"></a>line break.
  44. </ul>
  45. <p><a name="index-infinite-streams-196"></a>This kind of application may be used on finite or infinite streams,
  46. provided that the lengths of the lines are finite, but preserves no state
  47. information from one line to the next.
  48. </body></html>