s="odoc-spec"><div class="spec value" id="val-bit" class="anchored"><a href="#val-bit" class="anchor"></a><code><span><span class="keyword">val</span> bit : <span>char <a href="#type-t">t</a></span></span></code></div><div class="spec-doc"><p><code>bit</code> parses a character which is either <code>'0'</code> or <code>'1'</code>.</p><p>Examples</p><pre><code>module P = Reparse

;;
let p = P.(take bit) in
let v = P.parse_string p &quot;0110 ab&quot; in
v = [ '0'; '1'; '1'; '0' ]</code></pre></div></div><div