3
<link rel="stylesheet" href="style.css" type="text/css">
4
<link rel="Start" href="index.html">
5
<link rel="next" href="Grammar.Unsafe.html">
6
<link rel="Up" href="Grammar.html">
7
<link title="Index of types" rel=Appendix href="index_types.html">
8
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
9
<link title="Index of values" rel=Appendix href="index_values.html">
10
<link title="Index of modules" rel=Appendix href="index_modules.html">
11
<link title="Index of module types" rel=Appendix href="index_module_types.html">
12
<link title="Grammar" rel="Chapter" href="Grammar.html">
13
<link title="Extfun" rel="Chapter" href="Extfun.html">
14
<link title="Pcaml" rel="Chapter" href="Pcaml.html">
15
<link title="Plexer" rel="Chapter" href="Plexer.html">
16
<link title="Quotation" rel="Chapter" href="Quotation.html">
17
<link title="Token" rel="Chapter" href="Token.html">
18
<link title="Stdpp" rel="Chapter" href="Stdpp.html"><title>Grammar.Entry</title>
21
<div class="navbar"> <a href="Grammar.html">Up</a>
22
<a href="Grammar.Unsafe.html">Next</a>
24
<center><h1>Module <a href="type_Grammar.Entry.html">Grammar.Entry</a></h1></center>
26
<pre><span class="keyword">module</span> Entry: <code class="type">sig end</code></pre><div class="info">
27
Module to handle entries.<ul>
28
<li> <code class="code">Entry.e</code> is the type for entries returning values of type <code class="code">'a</code>.</li>
29
<li> <code class="code">Entry.create g n</code> creates a new entry named <code class="code">n</code> in the grammar <code class="code">g</code>.</li>
30
<li> <code class="code">Entry.parse e</code> returns the stream parser of the entry <code class="code">e</code>.</li>
31
<li> <code class="code">Entry.parse_token e</code> returns the token parser of the entry <code class="code">e</code>.</li>
32
<li> <code class="code">Entry.name e</code> returns the name of the entry <code class="code">e</code>.</li>
33
<li> <code class="code">Entry.of_parser g n p</code> makes an entry from a token stream parser.</li>
34
<li> <code class="code">Entry.print e</code> displays the entry <code class="code">e</code> using <code class="code">Format</code>.</li>
35
<li> <code class="code">Entry.find e s</code> finds the entry named <code class="code">s</code> in <code class="code">e</code>'s rules.</li>
36
<li> <code class="code">Entry.obj e</code> converts an entry into a <code class="code">Gramext.g_entry</code> allowing</li>
37
<li> to see what it holds (<code class="code">Gramext</code> is visible, but not documented).</li>
42
<pre><span class="keyword">type</span> <a name="TYPEe"></a><code class="type">'a</code> e </pre>
44
<pre><span class="keyword">val</span> <a name="VALcreate"></a>create : <code class="type"><a href="Grammar.html#TYPEg">Grammar.g</a> -> string -> 'a <a href="Grammar.Entry.html#TYPEe">e</a></code></pre><pre><span class="keyword">val</span> <a name="VALparse"></a>parse : <code class="type">'a <a href="Grammar.Entry.html#TYPEe">e</a> -> char Stream.t -> 'a</code></pre><pre><span class="keyword">val</span> <a name="VALparse_token"></a>parse_token : <code class="type">'a <a href="Grammar.Entry.html#TYPEe">e</a> -> Token.t Stream.t -> 'a</code></pre><pre><span class="keyword">val</span> <a name="VALname"></a>name : <code class="type">'a <a href="Grammar.Entry.html#TYPEe">e</a> -> string</code></pre><pre><span class="keyword">val</span> <a name="VALof_parser"></a>of_parser : <code class="type"><a href="Grammar.html#TYPEg">Grammar.g</a> -> string -> (Token.t Stream.t -> 'a) -> 'a <a href="Grammar.Entry.html#TYPEe">e</a></code></pre><pre><span class="keyword">val</span> <a name="VALprint"></a>print : <code class="type">'a <a href="Grammar.Entry.html#TYPEe">e</a> -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALfind"></a>find : <code class="type">'a <a href="Grammar.Entry.html#TYPEe">e</a> -> string -> Obj.t <a href="Grammar.Entry.html#TYPEe">e</a></code></pre><pre><span class="keyword">val</span> <a name="VALobj"></a>obj : <code class="type">'a <a href="Grammar.Entry.html#TYPEe">e</a> -> Token.t Gramext.g_entry</code></pre></body></html>
b'\\ No newline at end of file'