Skip to content

Commit

Permalink
deploy: 41e525e
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas committed May 20, 2024
1 parent 288e6bc commit e0a2a66
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$10665/0x0000000102d9f040@55800878
// fn = cats.parse.Parser$$Lambda$10870/0x0000000101506040@5b2e3058
// )
</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$10663/0x0000000102d98040@39fa9647
// fn = cats.parse.Parser$$Lambda$10868/0x0000000101504040@17d305ef
// ),
// 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$10665/0x0000000102d9f040@55800878
// fn = cats.parse.Parser$$Lambda$10870/0x0000000101506040@5b2e3058
// )
</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$10666/0x0000000102d9e040@acc5ec
// fn = cats.parse.Parser$$Lambda$10871/0x0000000101507040@38536235
// )
</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$10663/0x0000000102d98040@39fa9647
// fn = cats.parse.Parser$$Lambda$10868/0x0000000101504040@17d305ef
// ),
// 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$10665/0x0000000102d9f040@55800878
// fn = cats.parse.Parser$$Lambda$10870/0x0000000101506040@5b2e3058
// )
</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$10666/0x0000000102d9e040@acc5ec
// fn = cats.parse.Parser$$Lambda$10871/0x0000000101507040@38536235
// )
</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@4a58b0ba
// acc1 = cats.parse.Accumulator$$anon$12@4a854b27
// )
</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@1fceb241
// acc1 = cats.parse.Accumulator0$$anon$9@60830edf
// ),
// 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@72eb5751
// acc1 = cats.parse.Accumulator$$anon$12@6f70835d
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// )
</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@1bdcd00e
// acc1 = cats.parse.Accumulator0$$anon$7@2c2da09a
// )</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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// )
</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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// )
</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$10663/0x0000000102d98040@39fa9647
// fn = cats.parse.Parser$$Lambda$10868/0x0000000101504040@17d305ef
// )
</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$10663/0x0000000102d98040@39fa9647
// fn = cats.parse.Parser$$Lambda$10868/0x0000000101504040@17d305ef
// ),
// 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$10665/0x0000000102d9f040@55800878
// fn = cats.parse.Parser$$Lambda$10870/0x0000000101506040@5b2e3058
// )
</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$10663/0x0000000102d98040@39fa9647
// fn = cats.parse.Parser$$Lambda$10868/0x0000000101504040@17d305ef
// ),
// 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$10665/0x0000000102d9f040@55800878
// fn = cats.parse.Parser$$Lambda$10870/0x0000000101506040@5b2e3058
// )
</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$10663/0x0000000102d98040@39fa9647
// fn = cats.parse.Parser$$Lambda$10868/0x0000000101504040@17d305ef
// )
</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$10663/0x0000000102d98040@39fa9647
// fn = cats.parse.Parser$$Lambda$10868/0x0000000101504040@17d305ef
// ),
// 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$10665/0x0000000102d9f040@55800878
// fn = cats.parse.Parser$$Lambda$10870/0x0000000101506040@5b2e3058
// )
</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$10663/0x0000000102d98040@39fa9647
// fn = cats.parse.Parser$$Lambda$10868/0x0000000101504040@17d305ef
// )
</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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// )
</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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// ),
// 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$10655/0x0000000102d92040@71ea358e
// fn = cats.parse.Parser0$$Lambda$10860/0x0000000100c91040@54a0b636
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// ...
</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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// ),
// 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$10655/0x0000000102d92040@71ea358e
// fn = cats.parse.Parser0$$Lambda$10860/0x0000000100c91040@54a0b636
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// ...
</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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// )
</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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// )
// ),
// 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$10655/0x0000000102d92040@71ea358e
// fn = cats.parse.Parser0$$Lambda$10860/0x0000000100c91040@54a0b636
// ),
// 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@148e7f45
// acc1 = cats.parse.Accumulator0$$anon$11@4c11064c
// ...
</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 e0a2a66

Please sign in to comment.