/usr/share/doc/happy/html/sec-module-trailer.html is in happy 1.19.4-1.
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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>6.5. Module Trailer</title><link rel="stylesheet" type="text/css" href="fptools.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Happy User Guide"><link rel="up" href="sec-grammar-files.html" title="Chapter 6. Syntax of Grammar Files"><link rel="prev" href="sec-grammar.html" title="6.4. Grammar"><link rel="next" href="sec-info-files.html" title="Chapter 7. Info Files"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">6.5. Module Trailer</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="sec-grammar.html">Prev</a> </td><th width="60%" align="center">Chapter 6. Syntax of Grammar Files</th><td width="20%" align="right"> <a accesskey="n" href="sec-info-files.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="sec-module-trailer"></a>6.5. Module Trailer</h2></div></div></div><a class="indexterm" name="idp44057696"></a><p>The module trailer is optional, comes right at the end of
the grammar file, and takes the same form as the module
header:</p><pre class="programlisting">
{
<Haskell code>
}
</pre><p>This section is used for placing auxiliary definitions
that need to be in the same module as the parser. In small
parsers, it often contains a hand-written lexical analyser too.
There is no restriction on what can be placed in the module
trailer, and any code in there is copied verbatim into the
generated parser file.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="sec-grammar.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="sec-grammar-files.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="sec-info-files.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">6.4. Grammar </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 7. Info Files</td></tr></table></div></body></html>
|