ut channel.
   <code class="code">Lexing.from_channel&nbsp;inchan</code> returns a lexer buffer which reads
   from the input channel <code class="code">inchan</code>, at the current reading position.</p>
</div>
</div>

<pre id="VALfrom_string">val from_string : ?with_positions:bool -&gt; string -&gt; lexbuf</pre><div class="info ">
<div class="info-desc">
<p>Create a lexer buffer which reads from
   the given string. Reading starts from the first character in
   the string. An end-of-input condition is gen