Skip to content

Commit

Permalink
deploy: a070b3a
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas committed Feb 29, 2024
1 parent b4bf51f commit 86a5b83
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 @@ -306,7 +306,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10742/0x0000000102d27040@632facc
// fn = cats.parse.Parser$$Lambda$10627/0x0000000102d8f040@4d0e12ba
// )
</span><span>
</span><span class="comment">// still error since we need the space even if we drop it
Expand Down Expand Up @@ -345,7 +345,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$10740/0x0000000102d24840@636c3ea9
// fn = cats.parse.Parser$$Lambda$10625/0x0000000102d8c840@4e75307c
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -355,7 +355,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10742/0x0000000102d27040@632facc
// fn = cats.parse.Parser$$Lambda$10627/0x0000000102d8f040@4d0e12ba
// )
</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 @@ -382,7 +382,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10743/0x0000000102d26040@e1f6af1
// fn = cats.parse.Parser$$Lambda$10628/0x0000000102d8e040@527208c3
// )
</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 @@ -412,7 +412,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$10740/0x0000000102d24840@636c3ea9
// fn = cats.parse.Parser$$Lambda$10625/0x0000000102d8c840@4e75307c
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -422,7 +422,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10742/0x0000000102d27040@632facc
// fn = cats.parse.Parser$$Lambda$10627/0x0000000102d8f040@4d0e12ba
// )
</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 @@ -449,7 +449,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10743/0x0000000102d26040@e1f6af1
// fn = cats.parse.Parser$$Lambda$10628/0x0000000102d8e040@527208c3
// )
</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 @@ -501,7 +501,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator$$anon$12@43b7386
// acc1 = cats.parse.Accumulator$$anon$12@1bf68770
// )
</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 @@ -514,7 +514,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$9@15ce1d57
// acc1 = cats.parse.Accumulator0$$anon$9@26d0cd76
// ),
// Pure(result = List())
// )
Expand Down Expand Up @@ -557,7 +557,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator$$anon$12@17d5e031
// acc1 = cats.parse.Accumulator$$anon$12@41c1ef00
// ),
// fn = &lt;function1&gt;
// )
Expand All @@ -572,7 +572,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$11@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// )
</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 @@ -584,7 +584,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
// ),
// min = 1,
// maxMinusOne = 2147483647,
// acc1 = cats.parse.Accumulator0$$anon$7@3d90b050
// acc1 = cats.parse.Accumulator0$$anon$7@2cd519fa
// )</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 @@ -605,7 +605,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// ),
// second = OneOf0(
// all = List(
Expand All @@ -620,7 +620,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// )
</span><span>
Expand Down Expand Up @@ -660,7 +660,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// ),
// second = OneOf0(
// all = List(
Expand All @@ -676,7 +676,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// )
</span><span>
Expand Down Expand Up @@ -724,7 +724,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$10740/0x0000000102d24840@636c3ea9
// fn = cats.parse.Parser$$Lambda$10625/0x0000000102d8c840@4e75307c
// )
</span><span>
</span><span class="comment">// epsilon failure
Expand Down Expand Up @@ -776,7 +776,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$10740/0x0000000102d24840@636c3ea9
// fn = cats.parse.Parser$$Lambda$10625/0x0000000102d8c840@4e75307c
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -786,7 +786,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10742/0x0000000102d27040@632facc
// fn = cats.parse.Parser$$Lambda$10627/0x0000000102d8f040@4d0e12ba
// )
</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 @@ -826,7 +826,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$10740/0x0000000102d24840@636c3ea9
// fn = cats.parse.Parser$$Lambda$10625/0x0000000102d8c840@4e75307c
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -836,7 +836,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10742/0x0000000102d27040@632facc
// fn = cats.parse.Parser$$Lambda$10627/0x0000000102d8f040@4d0e12ba
// )
</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 @@ -854,7 +854,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$10740/0x0000000102d24840@636c3ea9
// fn = cats.parse.Parser$$Lambda$10625/0x0000000102d8c840@4e75307c
// )
</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 @@ -889,7 +889,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$10740/0x0000000102d24840@636c3ea9
// fn = cats.parse.Parser$$Lambda$10625/0x0000000102d8c840@4e75307c
// ),
// second = Void(
// parser = CharIn(
Expand All @@ -899,7 +899,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
// )
// )
// ),
// fn = cats.parse.Parser$$Lambda$10742/0x0000000102d27040@632facc
// fn = cats.parse.Parser$$Lambda$10627/0x0000000102d8f040@4d0e12ba
// )
</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 @@ -917,7 +917,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$10740/0x0000000102d24840@636c3ea9
// fn = cats.parse.Parser$$Lambda$10625/0x0000000102d8c840@4e75307c
// )
</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 @@ -962,7 +962,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// )
</span><span>
Expand All @@ -977,7 +977,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// ),
// second = Void(
Expand Down Expand Up @@ -1007,7 +1007,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// ),
// second = Void(
Expand All @@ -1018,7 +1018,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// )
// )
// ),
// fn = cats.parse.Parser0$$Lambda$10732/0x0000000102d1e840@58512610
// fn = cats.parse.Parser0$$Lambda$10617/0x0000000102d86840@cceda6b
// ),
// second = StringP(
// parser = Rep(
Expand All @@ -1034,7 +1034,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// ...
</span><span>

Expand Down Expand Up @@ -1073,7 +1073,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// ),
// second = Void(
Expand All @@ -1084,7 +1084,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// )
// )
// ),
// fn = cats.parse.Parser0$$Lambda$10732/0x0000000102d1e840@58512610
// fn = cats.parse.Parser0$$Lambda$10617/0x0000000102d86840@cceda6b
// ),
// second = StringP(
// parser = Rep(
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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// ...
</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 @@ -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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// ),
// second = OneOf0(
// all = List(
Expand All @@ -1130,7 +1130,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// )
</span><span>
Expand All @@ -1156,7 +1156,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// ),
// second = Void(
Expand Down Expand Up @@ -1186,7 +1186,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// )
// ),
// second = Void(
Expand All @@ -1197,7 +1197,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
// )
// )
// ),
// fn = cats.parse.Parser0$$Lambda$10732/0x0000000102d1e840@58512610
// fn = cats.parse.Parser0$$Lambda$10617/0x0000000102d86840@cceda6b
// ),
// second = StringP(
// parser = Rep(
Expand All @@ -1213,7 +1213,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@626848d8
// acc1 = cats.parse.Accumulator0$$anon$11@337d3eb
// ...
</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 86a5b83

Please sign in to comment.