>val</span> eoi : <span>unit <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>eoi</code> parses end of input. Fails if parser is not at end of input.</p><p>Examples</p><pre><code>module P = Reparse.String

;;
let v = P.(parse_string eoi &quot;&quot;) in
v = ()

;;
let v =
  try
    let _ = P.(parse_string eoi &quot;a&quot;) in
    false
  with
  | _ -&gt; true
in
v = true</code></pre></div></div><div class="odoc-spec"><div class="spec value" id="val-commit" class="anchored"><