This file is indexed.

/usr/share/doc/flex-old-doc/flex_13.html is in flex-old-doc 2.5.4a-10ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
html2
<html>
<!-- Created on February 6, 2012 by texi2html 1.82
texi2html was written by: 
            Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people.
Send bugs and suggestions to <texi2html-bug@nongnu.org>
-->
<head>
<title>Flex - a scanner generator: 13. End-of-file rules</title>

<meta name="description" content="Flex - a scanner generator: 13. End-of-file rules">
<meta name="keywords" content="Flex - a scanner generator: 13. End-of-file rules">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.82">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.roman {font-family:serif; font-weight:normal;}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<a name="End_002dof_002dfile-rules"></a>
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="flex_12.html#Multiple-buffers" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="flex_14.html#Miscellaneous" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="flex_12.html#Multiple-buffers" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="flex.html#Top" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="flex_14.html#Miscellaneous" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="flex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="flex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="flex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="End_002dof_002dfile-rules-1"></a>
<h1 class="chapter">13. End-of-file rules</h1>

<p>The special rule &quot;&lt;&lt;EOF&gt;&gt;&quot; indicates actions which are to
be taken when an end-of-file is encountered and yywrap()
returns non-zero (i.e., indicates no further files to
process).  The action must finish by doing one of four
things:
</p>
<ul class="toc">
<li> - 
assigning <code>yyin</code> to a new input file (in previous
versions of flex, after doing the assignment you
had to call the special action <code>YY_NEW_FILE</code>; this is
no longer necessary);

</li><li> - 
executing a <code>return</code> statement;

</li><li> - 
executing the special &lsquo;<samp>yyterminate()</samp>&rsquo; action;

</li><li> - 
or, switching to a new buffer using
&lsquo;<samp>yy_switch_to_buffer()</samp>&rsquo; as shown in the example
above.
</li></ul>

<p>&lt;&lt;EOF&gt;&gt; rules may not be used with other patterns; they
may only be qualified with a list of start conditions.  If
an unqualified &lt;&lt;EOF&gt;&gt; rule is given, it applies to <em>all</em>
start conditions which do not already have &lt;&lt;EOF&gt;&gt;
actions.  To specify an &lt;&lt;EOF&gt;&gt; rule for only the initial
start condition, use
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">&lt;INITIAL&gt;&lt;&lt;EOF&gt;&gt;
</pre></td></tr></table>

<p>These rules are useful for catching things like unclosed
comments.  An example:
</p>
<table><tr><td>&nbsp;</td><td><pre class="example">%x quote
%%

&hellip;other rules for dealing with quotes&hellip;

&lt;quote&gt;&lt;&lt;EOF&gt;&gt;   {
         error( &quot;unterminated quote&quot; );
         yyterminate();
         }
&lt;&lt;EOF&gt;&gt;  {
         if ( *++filelist )
             yyin = fopen( *filelist, &quot;r&quot; );
         else
            yyterminate();
         }
</pre></td></tr></table>

<hr size="6">
<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="flex_12.html#Multiple-buffers" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="flex_14.html#Miscellaneous" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="flex.html#Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="flex_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[Index]</td>
<td valign="middle" align="left">[<a href="flex_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated by <em>Build Daemon user</em> on <em>February 6, 2012</em> using <a href="http://www.nongnu.org/texi2html/"><em>texi2html 1.82</em></a>.
 </font>
 <br>

</p>
</body>
</html>