Skip to content

Commit

Permalink
deploy: f0331bf
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas committed Sep 6, 2024
1 parent 0816251 commit f8cf8e6
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10939/0x0000000102e0f040@2e983a67
// fn = cats.parse.Parser$$Lambda$10874/0x0000000102e17040@22c13fa3
// )
</span><span>
</span><span class="comment">// still error since we need the space even if we drop it
Expand Down Expand Up @@ -341,7 +341,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// ranges = NonEmptyList(head = (&#39;A&#39;, &#39;Z&#39;), tail = List((&#39;a&#39;, &#39;z&#39;)))
// )
// ),
// fn = cats.parse.Parser$$Lambda$10934/0x0000000102e06840@24a1552
// fn = cats.parse.Parser$$Lambda$10869/0x0000000102e10840@2d6a8dd3
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -351,7 +351,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10939/0x0000000102e0f040@2e983a67
// fn = cats.parse.Parser$$Lambda$10874/0x0000000102e17040@22c13fa3
// )
</span><span class="keyword">val</span><span> </span><span class="identifier">p5</span><span>: </span><span class="type-name">Parser</span><span>[</span><span class="type-name">Char</span><span>] = </span><span class="identifier">alpha</span><span>.</span><span class="identifier">surroundedBy</span><span>(</span><span class="identifier">sp</span><span>)
</span><span class="comment">// p5: Parser[Char] = Map(
Expand All @@ -378,7 +378,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10940/0x0000000102e0e840@3817e3f7
// fn = cats.parse.Parser$$Lambda$10875/0x0000000102e16840@9e478f9
// )
</span><span>
</span><span class="identifier">p4</span><span>.</span><span class="identifier">parse</span><span>(</span><span class="string-literal">&quot; a &quot;</span><span>)
Expand Down Expand Up @@ -408,7 +408,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// ranges = NonEmptyList(head = (&#39;A&#39;, &#39;Z&#39;), tail = List((&#39;a&#39;, &#39;z&#39;)))
// )
// ),
// fn = cats.parse.Parser$$Lambda$10934/0x0000000102e06840@24a1552
// fn = cats.parse.Parser$$Lambda$10869/0x0000000102e10840@2d6a8dd3
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -418,7 +418,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10939/0x0000000102e0f040@2e983a67
// fn = cats.parse.Parser$$Lambda$10874/0x0000000102e17040@22c13fa3
// )
</span><span class="keyword">val</span><span> </span><span class="identifier">p7</span><span>: </span><span class="type-name">Parser</span><span>[</span><span class="type-name">Char</span><span>] = </span><span class="identifier">alpha</span><span>.</span><span class="identifier">between</span><span>(</span><span class="identifier">sp</span><span>, </span><span class="identifier">digit</span><span>)
</span><span class="comment">// p7: Parser[Char] = Map(
Expand All @@ -445,7 +445,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10940/0x0000000102e0e840@3817e3f7
// fn = cats.parse.Parser$$Lambda$10875/0x0000000102e16840@9e478f9
// )
</span><span>
</span><span class="identifier">p6</span><span>.</span><span class="identifier">parse</span><span>(</span><span class="string-literal">&quot; a1&quot;</span><span>)
Expand Down Expand Up @@ -496,7 +496,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator$$anon$12@5021e0de
// acc1 = cats.parse.Accumulator$$anon$12@4b577bed
// )
</span><span class="keyword">val</span><span> </span><span class="identifier">p2</span><span>: </span><span class="type-name">Parser0</span><span>[</span><span class="type-name">List</span><span>[</span><span class="type-name">Char</span><span>]] = </span><span class="identifier">alpha</span><span>.</span><span class="identifier">rep0</span><span>
</span><span class="comment">// p2: Parser0[List[Char]] = OneOf0(
Expand All @@ -509,7 +509,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$9@7dae4536
// acc1 = cats.parse.Accumulator0$$anon$9@2906e726
// ),
// Pure(result = List())
// )
Expand Down Expand Up @@ -551,7 +551,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator$$anon$12@613e6420
// acc1 = cats.parse.Accumulator$$anon$12@59c2470d
// ),
// fn = &lt;function1&gt;
// )
Expand All @@ -566,7 +566,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// )
</span><span class="keyword">val</span><span> </span><span class="identifier">p3</span><span>: </span><span class="type-name">Parser</span><span>[</span><span class="type-name">String</span><span>] = </span><span class="identifier">alpha</span><span>.</span><span class="identifier">repAs</span><span>[</span><span class="type-name">String</span><span>]
Expand All @@ -578,7 +578,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$7@4c441590
// acc1 = cats.parse.Accumulator0$$anon$7@94c71c4
// )</span></code></pre>
<p>All three parsers will be identical in parsing results, but <code>p2</code> and <code>p3</code> are using built-in methods which will not create intermediate list. <code>rep</code> + <code>map</code> creates intermediate list which is mapped to string in this example.</p>

Expand All @@ -599,7 +599,7 @@ <h2 id="parsers-with-empty-output" class="section"><a class="anchor-link left" h
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// ),
// second = OneOf0(
// all = List(
Expand All @@ -614,7 +614,7 @@ <h2 id="parsers-with-empty-output" class="section"><a class="anchor-link left" h
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// )
</span><span>
Expand Down Expand Up @@ -653,7 +653,7 @@ <h2 id="parsers-with-empty-output" class="section"><a class="anchor-link left" h
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// ),
// second = OneOf0(
// all = List(
Expand All @@ -669,7 +669,7 @@ <h2 id="parsers-with-empty-output" class="section"><a class="anchor-link left" h
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// )
</span><span>
Expand Down Expand Up @@ -716,7 +716,7 @@ <h2 id="error-handling" class="section"><a class="anchor-link left" href="#error
// ranges = NonEmptyList(head = (&#39;A&#39;, &#39;Z&#39;), tail = List((&#39;a&#39;, &#39;z&#39;)))
// )
// ),
// fn = cats.parse.Parser$$Lambda$10934/0x0000000102e06840@24a1552
// fn = cats.parse.Parser$$Lambda$10869/0x0000000102e10840@2d6a8dd3
// )
</span><span>
</span><span class="comment">// epsilon failure
Expand Down Expand Up @@ -766,7 +766,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
// )
// ),
// fn = cats.parse.Parser$$Lambda$10934/0x0000000102e06840@24a1552
// fn = cats.parse.Parser$$Lambda$10869/0x0000000102e10840@2d6a8dd3
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -776,7 +776,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10939/0x0000000102e0f040@2e983a67
// fn = cats.parse.Parser$$Lambda$10874/0x0000000102e17040@22c13fa3
// )
</span><span>
</span><span class="identifier">p</span><span>.</span><span class="identifier">parse</span><span>(</span><span class="string-literal">&quot; 1&quot;</span><span>)
Expand Down Expand Up @@ -815,7 +815,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
// )
// ),
// fn = cats.parse.Parser$$Lambda$10934/0x0000000102e06840@24a1552
// fn = cats.parse.Parser$$Lambda$10869/0x0000000102e10840@2d6a8dd3
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -825,7 +825,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10939/0x0000000102e0f040@2e983a67
// fn = cats.parse.Parser$$Lambda$10874/0x0000000102e17040@22c13fa3
// )
</span><span class="keyword">val</span><span> </span><span class="identifier">p2</span><span> = </span><span class="identifier">sp</span><span> *&gt; </span><span class="identifier">digit</span><span>
</span><span class="comment">// p2: cats.parse.Parser[Char] = Map(
Expand All @@ -843,7 +843,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
// )
// ),
// fn = cats.parse.Parser$$Lambda$10934/0x0000000102e06840@24a1552
// fn = cats.parse.Parser$$Lambda$10869/0x0000000102e10840@2d6a8dd3
// )
</span><span>
</span><span class="identifier">p1</span><span>.</span><span class="identifier">backtrack</span><span>.</span><span class="identifier">orElse</span><span>(</span><span class="identifier">p2</span><span>).</span><span class="identifier">parse</span><span>(</span><span class="string-literal">&quot; 1&quot;</span><span>)
Expand Down Expand Up @@ -877,7 +877,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
// )
// ),
// fn = cats.parse.Parser$$Lambda$10934/0x0000000102e06840@24a1552
// fn = cats.parse.Parser$$Lambda$10869/0x0000000102e10840@2d6a8dd3
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -887,7 +887,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10939/0x0000000102e0f040@2e983a67
// fn = cats.parse.Parser$$Lambda$10874/0x0000000102e17040@22c13fa3
// )
</span><span class="keyword">val</span><span> </span><span class="identifier">p2</span><span> = </span><span class="identifier">sp</span><span> *&gt; </span><span class="identifier">digit</span><span>
</span><span class="comment">// p2: cats.parse.Parser[Char] = Map(
Expand All @@ -905,7 +905,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
// )
// ),
// fn = cats.parse.Parser$$Lambda$10934/0x0000000102e06840@24a1552
// fn = cats.parse.Parser$$Lambda$10869/0x0000000102e10840@2d6a8dd3
// )
</span><span class="keyword">val</span><span> </span><span class="identifier">p3</span><span> = </span><span class="identifier">digit</span><span>
</span><span class="comment">// p3: cats.parse.Parser[Char] = CharIn(
Expand Down Expand Up @@ -948,7 +948,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// )
</span><span>
Expand All @@ -963,7 +963,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// ),
// second = Void(
Expand Down Expand Up @@ -993,7 +993,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// ),
// second = Void(
Expand All @@ -1004,7 +1004,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// )
// )
// ),
// fn = cats.parse.Parser0$$Lambda$10926/0x0000000102e00840@1f726dc4
// fn = cats.parse.Parser0$$Lambda$10861/0x0000000102e0a840@e3b7b63
// ),
// second = StringP(
// parser = Rep(
Expand All @@ -1020,7 +1020,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// ...
</span><span>

Expand Down Expand Up @@ -1058,7 +1058,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// ),
// second = Void(
Expand All @@ -1069,7 +1069,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// )
// )
// ),
// fn = cats.parse.Parser0$$Lambda$10926/0x0000000102e00840@1f726dc4
// fn = cats.parse.Parser0$$Lambda$10861/0x0000000102e0a840@e3b7b63
// ),
// second = StringP(
// parser = Rep(
Expand All @@ -1085,7 +1085,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// ...
</span><span>
</span><span class="keyword">val</span><span> </span><span class="identifier">p3</span><span> = (</span><span class="identifier">searchWord</span><span> ~ </span><span class="identifier">sp</span><span>.?).</span><span class="identifier">rep</span><span>.</span><span class="identifier">string</span><span>
Expand All @@ -1100,7 +1100,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// ),
// second = OneOf0(
// all = List(
Expand All @@ -1115,7 +1115,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// )
</span><span>
Expand All @@ -1140,7 +1140,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// ),
// second = Void(
Expand Down Expand Up @@ -1170,7 +1170,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// )
// ),
// second = Void(
Expand All @@ -1181,7 +1181,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// )
// )
// ),
// fn = cats.parse.Parser0$$Lambda$10926/0x0000000102e00840@1f726dc4
// fn = cats.parse.Parser0$$Lambda$10861/0x0000000102e0a840@e3b7b63
// ),
// second = StringP(
// parser = Rep(
Expand All @@ -1197,7 +1197,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@1d8d48e3
// acc1 = cats.parse.Accumulator0$$anon$11@31df7ca1
// ...
</span><span>
</span><span class="identifier">p4</span><span>.</span><span class="identifier">parse</span><span>(</span><span class="string-literal">&quot;title:The Wind Has Risen&quot;</span><span>)
Expand Down

0 comments on commit f8cf8e6

Please sign in to comment.