This commit is contained in:
FardaleM 2021-02-05 14:32:04 +00:00
parent e7d42d9b75
commit 78590d90f2

View file

@ -1,2 +1,2 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>U (containers.CCParse.U)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">containers</a> &#x00BB; <a href="../index.html">CCParse</a> &#x00BB; U</nav><h1>Module <code>CCParse.U</code></h1></header><dl><dt class="spec value" id="val-list"><a href="#val-list" class="anchor"></a><code><span class="keyword">val</span> list : <span>?&#8288;start:string</span> <span>&#45;&gt;</span> <span>?&#8288;stop:string</span> <span>&#45;&gt;</span> <span>?&#8288;sep:string</span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span><span class="type-var">'a</span> list</span> <a href="../index.html#type-t">t</a></span></code></dt><dd><p><code>list p</code> parses a list of <code>p</code>, with the OCaml conventions for start token &quot;<code>&quot;, stop token &quot;</code>&quot; and separator &quot;;&quot;. Whitespace between items are skipped.</p></dd></dl><dl><dt class="spec value" id="val-int"><a href="#val-int" class="anchor"></a><code><span class="keyword">val</span> int : <span>int <a href="../index.html#type-t">t</a></span></code></dt><dd><p>Parse an int.</p></dd></dl><dl><dt class="spec value" id="val-word"><a href="#val-word" class="anchor"></a><code><span class="keyword">val</span> word : <span>string <a href="../index.html#type-t">t</a></span></code></dt><dd><p>Non empty string of alpha num, start with alpha.</p></dd></dl><dl><dt class="spec value" id="val-pair"><a href="#val-pair" class="anchor"></a><code><span class="keyword">val</span> pair : <span>?&#8288;start:string</span> <span>&#45;&gt;</span> <span>?&#8288;stop:string</span> <span>&#45;&gt;</span> <span>?&#8288;sep:string</span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span class="type-var">'b</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span>(<span class="type-var">'a</span> * <span class="type-var">'b</span>)</span> <a href="../index.html#type-t">t</a></span></code></dt><dd><p>Parse a pair using OCaml whitespace conventions. The default is &quot;(a, b)&quot;.</p></dd></dl><dl><dt class="spec value" id="val-triple"><a href="#val-triple" class="anchor"></a><code><span class="keyword">val</span> triple : <span>?&#8288;start:string</span> <span>&#45;&gt;</span> <span>?&#8288;stop:string</span> <span>&#45;&gt;</span> <span>?&#8288;sep:string</span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span class="type-var">'b</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span class="type-var">'c</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span>(<span class="type-var">'a</span> * <span class="type-var">'b</span> * <span class="type-var">'c</span>)</span> <a href="../index.html#type-t">t</a></span></code></dt><dd><p>Parse a triple using OCaml whitespace conventions. The default is &quot;(a, b, c)&quot;.</p></dd></dl></div></body></html> <html xmlns="http://www.w3.org/1999/xhtml"><head><title>U (containers.CCParse.U)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">containers</a> &#x00BB; <a href="../index.html">CCParse</a> &#x00BB; U</nav><h1>Module <code>CCParse.U</code></h1></header><dl><dt class="spec value" id="val-list"><a href="#val-list" class="anchor"></a><code><span class="keyword">val</span> list : <span>?&#8288;start:string</span> <span>&#45;&gt;</span> <span>?&#8288;stop:string</span> <span>&#45;&gt;</span> <span>?&#8288;sep:string</span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span><span class="type-var">'a</span> list</span> <a href="../index.html#type-t">t</a></span></code></dt><dd><p><code>list p</code> parses a list of <code>p</code>, with the OCaml conventions for start token &quot;[&quot;, stop token &quot;]&quot; and separator &quot;;&quot;. Whitespace between items are skipped.</p></dd></dl><dl><dt class="spec value" id="val-int"><a href="#val-int" class="anchor"></a><code><span class="keyword">val</span> int : <span>int <a href="../index.html#type-t">t</a></span></code></dt><dd><p>Parse an int.</p></dd></dl><dl><dt class="spec value" id="val-word"><a href="#val-word" class="anchor"></a><code><span class="keyword">val</span> word : <span>string <a href="../index.html#type-t">t</a></span></code></dt><dd><p>Non empty string of alpha num, start with alpha.</p></dd></dl><dl><dt class="spec value" id="val-pair"><a href="#val-pair" class="anchor"></a><code><span class="keyword">val</span> pair : <span>?&#8288;start:string</span> <span>&#45;&gt;</span> <span>?&#8288;stop:string</span> <span>&#45;&gt;</span> <span>?&#8288;sep:string</span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span class="type-var">'b</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span>(<span class="type-var">'a</span> * <span class="type-var">'b</span>)</span> <a href="../index.html#type-t">t</a></span></code></dt><dd><p>Parse a pair using OCaml whitespace conventions. The default is &quot;(a, b)&quot;.</p></dd></dl><dl><dt class="spec value" id="val-triple"><a href="#val-triple" class="anchor"></a><code><span class="keyword">val</span> triple : <span>?&#8288;start:string</span> <span>&#45;&gt;</span> <span>?&#8288;stop:string</span> <span>&#45;&gt;</span> <span>?&#8288;sep:string</span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span class="type-var">'b</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span class="type-var">'c</span> <a href="../index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span>(<span class="type-var">'a</span> * <span class="type-var">'b</span> * <span class="type-var">'c</span>)</span> <a href="../index.html#type-t">t</a></span></code></dt><dd><p>Parse a triple using OCaml whitespace conventions. The default is &quot;(a, b, c)&quot;.</p></dd></dl></div></body></html>