123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <html lang="en">
- <head>
- <title>Line Maps - avram - a virtual machine code interpreter</title>
- <meta http-equiv="Content-Type" content="text/html">
- <meta name="description" content="avram - a virtual machine code interpreter">
- <meta name="generator" content="makeinfo 4.13">
- <link title="Top" rel="start" href="index.html#Top">
- <link rel="up" href="Filter-Mode-Interface.html#Filter-Mode-Interface" title="Filter Mode Interface">
- <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">
- <link rel="next" href="Byte-Transducers.html#Byte-Transducers" title="Byte Transducers">
- <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
- <meta http-equiv="Content-Style-Type" content="text/css">
- <style type="text/css"><!--
- pre.display { font-family:inherit }
- pre.format { font-family:inherit }
- pre.smalldisplay { font-family:inherit; font-size:smaller }
- pre.smallformat { font-family:inherit; font-size:smaller }
- pre.smallexample { font-size:smaller }
- pre.smalllisp { font-size:smaller }
- span.sc { font-variant:small-caps }
- span.roman { font-family:serif; font-weight:normal; }
- span.sansserif { font-family:sans-serif; font-weight:normal; }
- --></style>
- </head>
- <body>
- <div class="node">
- <a name="Line-Maps"></a>
- <p>
- Next: <a rel="next" accesskey="n" href="Byte-Transducers.html#Byte-Transducers">Byte Transducers</a>,
- Previous: <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>,
- Up: <a rel="up" accesskey="u" href="Filter-Mode-Interface.html#Filter-Mode-Interface">Filter Mode Interface</a>
- <hr>
- </div>
- <h4 class="subsection">2.5.2 Line Maps</h4>
- <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
- (with or without the <samp><span class="option">--unparameterized</span></samp> option) adhere to a very
- simple interface.
- <ul>
- <li>The argument to the function is a character string, and the result
- must also be a character string.
- <li>The function is applied to each line of the standard input file
- <a name="index-standard-input-194"></a>and the result in each case is written to standard output followed by a
- <a name="index-standard-output-195"></a>line break.
- </ul>
- <p><a name="index-infinite-streams-196"></a>This kind of application may be used on finite or infinite streams,
- provided that the lengths of the lines are finite, but preserves no state
- information from one line to the next.
- </body></html>
|