ocaml-containers/dev/containers/CCSexp/Decoder/index.html
2022-02-08 18:12:01 +00:00

2 lines
No EOL
3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Decoder (containers.CCSexp.Decoder)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../index.html">containers</a> &#x00BB; <a href="../index.html">CCSexp</a> &#x00BB; Decoder</nav><header class="odoc-preamble"><h1>Module <code><span>CCSexp.Decoder</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type" id="type-t" class="anchored"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span></code></div><div class="spec-doc"><p>Decoder</p></div></div><div class="odoc-spec"><div class="spec value" id="val-of_lexbuf" class="anchored"><a href="#val-of_lexbuf" class="anchor"></a><code><span><span class="keyword">val</span> of_lexbuf : <span><span class="xref-unresolved">Stdlib</span>.Lexing.lexbuf <span class="arrow">&#45;&gt;</span></span> <a href="#type-t">t</a></span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-next" class="anchored"><a href="#val-next" class="anchor"></a><code><span><span class="keyword">val</span> next : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../index.html#type-sexp">sexp</a> <a href="../index.html#type-parse_result">parse_result</a></span></span></code></div><div class="spec-doc"><p>Parse the next S-expression or return an error if the input isn't long enough or isn't a proper S-expression.</p></div></div><div class="odoc-spec"><div class="spec value" id="val-to_list" class="anchored"><a href="#val-to_list" class="anchor"></a><code><span><span class="keyword">val</span> to_list : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> <span><span><a href="../index.html#type-sexp">sexp</a> list</span> <a href="../../CCSexp_intf/index.html#type-or_error">CCSexp_intf.or_error</a></span></span></code></div><div class="spec-doc"><p>Read all the values from this decoder.</p><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 2.8</li></ul></div></div><div class="odoc-spec"><div class="spec value" id="val-last_loc" class="anchored"><a href="#val-last_loc" class="anchor"></a><code><span><span class="keyword">val</span> last_loc : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../index.html#type-loc">loc</a> option</span></span></code></div><div class="spec-doc"><p>Last location for the decoder. In particular, after calling <a href="#val-next"><code>next</code></a>, this gives the location of the last token used in the result, which is useful in case of error.</p><ul class="at-tags"><li class="since"><span class="at-tag">since</span> 3.3</li></ul></div></div></div></body></html>