Skip to content

Commit 7684e63

Browse files
committed
deploy: 4451483
1 parent dabd14c commit 7684e63

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

‎index.html‎

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
303303
// )
304304
// )
305305
// ),
306-
// fn = cats.parse.Parser$$Lambda$10110/575421923@22a1907
306+
// fn = cats.parse.Parser$$Lambda$11805/1064878449@4df61d1f
307307
// )
308308
</span><span>
309309
</span><span class="comment">// still error since we need the space even if we drop it
@@ -342,7 +342,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
342342
// ranges = NonEmptyList(head = (&#39;A&#39;, &#39;Z&#39;), tail = List((&#39;a&#39;, &#39;z&#39;)))
343343
// )
344344
// ),
345-
// fn = cats.parse.Parser$$Lambda$10108/1615755596@3b93112d
345+
// fn = cats.parse.Parser$$Lambda$11803/1831875821@76e050d4
346346
// ),
347347
// second = Void(
348348
// parser = CharIn(
@@ -352,7 +352,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
352352
// )
353353
// )
354354
// ),
355-
// fn = cats.parse.Parser$$Lambda$10110/575421923@22a1907
355+
// fn = cats.parse.Parser$$Lambda$11805/1064878449@4df61d1f
356356
// )
357357
</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>)
358358
</span><span class="comment">// p5: Parser[Char] = Map(
@@ -379,7 +379,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
379379
// )
380380
// )
381381
// ),
382-
// fn = cats.parse.Parser$$Lambda$10111/117838449@587594d5
382+
// fn = cats.parse.Parser$$Lambda$11806/744415348@25f58164
383383
// )
384384
</span><span>
385385
</span><span class="identifier">p4</span><span>.</span><span class="identifier">parse</span><span>(</span><span class="string-literal">&quot; a &quot;</span><span>)
@@ -409,7 +409,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
409409
// ranges = NonEmptyList(head = (&#39;A&#39;, &#39;Z&#39;), tail = List((&#39;a&#39;, &#39;z&#39;)))
410410
// )
411411
// ),
412-
// fn = cats.parse.Parser$$Lambda$10108/1615755596@3b93112d
412+
// fn = cats.parse.Parser$$Lambda$11803/1831875821@76e050d4
413413
// ),
414414
// second = Void(
415415
// parser = CharIn(
@@ -419,7 +419,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
419419
// )
420420
// )
421421
// ),
422-
// fn = cats.parse.Parser$$Lambda$10110/575421923@22a1907
422+
// fn = cats.parse.Parser$$Lambda$11805/1064878449@4df61d1f
423423
// )
424424
</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>)
425425
</span><span class="comment">// p7: Parser[Char] = Map(
@@ -446,7 +446,7 @@ <h2 id="combining-parsers" class="section"><a class="anchor-link left" href="#co
446446
// )
447447
// )
448448
// ),
449-
// fn = cats.parse.Parser$$Lambda$10111/117838449@587594d5
449+
// fn = cats.parse.Parser$$Lambda$11806/744415348@25f58164
450450
// )
451451
</span><span>
452452
</span><span class="identifier">p6</span><span>.</span><span class="identifier">parse</span><span>(</span><span class="string-literal">&quot; a1&quot;</span><span>)
@@ -497,7 +497,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
497497
// ),
498498
// min = 1,
499499
// maxMinusOne = 2147483647,
500-
// acc1 = cats.parse.Accumulator$$anon$12@4b84d69d
500+
// acc1 = cats.parse.Accumulator$$anon$12@6cd1b1ec
501501
// )
502502
</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>
503503
</span><span class="comment">// p2: Parser0[List[Char]] = OneOf0(
@@ -510,7 +510,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
510510
// ),
511511
// min = 1,
512512
// maxMinusOne = 2147483647,
513-
// acc1 = cats.parse.Accumulator0$$anon$9@19341ccb
513+
// acc1 = cats.parse.Accumulator0$$anon$9@1132478c
514514
// ),
515515
// Pure(result = List())
516516
// )
@@ -552,7 +552,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
552552
// ),
553553
// min = 1,
554554
// maxMinusOne = 2147483647,
555-
// acc1 = cats.parse.Accumulator$$anon$12@3a0d7cb9
555+
// acc1 = cats.parse.Accumulator$$anon$12@65a0c38e
556556
// ),
557557
// fn = &lt;function1&gt;
558558
// )
@@ -567,7 +567,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
567567
// ),
568568
// min = 1,
569569
// maxMinusOne = 2147483647,
570-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
570+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
571571
// )
572572
// )
573573
</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>]
@@ -579,7 +579,7 @@ <h2 id="repeating-parsers" class="section"><a class="anchor-link left" href="#re
579579
// ),
580580
// min = 1,
581581
// maxMinusOne = 2147483647,
582-
// acc1 = cats.parse.Accumulator0$$anon$7@23778377
582+
// acc1 = cats.parse.Accumulator0$$anon$7@d680258
583583
// )</span></code></pre>
584584
<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>
585585

@@ -600,7 +600,7 @@ <h2 id="parsers-with-empty-output" class="section"><a class="anchor-link left" h
600600
// ),
601601
// min = 1,
602602
// maxMinusOne = 2147483647,
603-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
603+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
604604
// ),
605605
// second = OneOf0(
606606
// all = List(
@@ -615,7 +615,7 @@ <h2 id="parsers-with-empty-output" class="section"><a class="anchor-link left" h
615615
// ),
616616
// min = 1,
617617
// maxMinusOne = 2147483647,
618-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
618+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
619619
// )
620620
// )
621621
</span><span>
@@ -654,7 +654,7 @@ <h2 id="parsers-with-empty-output" class="section"><a class="anchor-link left" h
654654
// ),
655655
// min = 1,
656656
// maxMinusOne = 2147483647,
657-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
657+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
658658
// ),
659659
// second = OneOf0(
660660
// all = List(
@@ -670,7 +670,7 @@ <h2 id="parsers-with-empty-output" class="section"><a class="anchor-link left" h
670670
// ),
671671
// min = 1,
672672
// maxMinusOne = 2147483647,
673-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
673+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
674674
// )
675675
// )
676676
</span><span>
@@ -717,7 +717,7 @@ <h2 id="error-handling" class="section"><a class="anchor-link left" href="#error
717717
// ranges = NonEmptyList(head = (&#39;A&#39;, &#39;Z&#39;), tail = List((&#39;a&#39;, &#39;z&#39;)))
718718
// )
719719
// ),
720-
// fn = cats.parse.Parser$$Lambda$10108/1615755596@3b93112d
720+
// fn = cats.parse.Parser$$Lambda$11803/1831875821@76e050d4
721721
// )
722722
</span><span>
723723
</span><span class="comment">// epsilon failure
@@ -768,7 +768,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
768768
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
769769
// )
770770
// ),
771-
// fn = cats.parse.Parser$$Lambda$10108/1615755596@3b93112d
771+
// fn = cats.parse.Parser$$Lambda$11803/1831875821@76e050d4
772772
// ),
773773
// second = Void(
774774
// parser = CharIn(
@@ -778,7 +778,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
778778
// )
779779
// )
780780
// ),
781-
// fn = cats.parse.Parser$$Lambda$10110/575421923@22a1907
781+
// fn = cats.parse.Parser$$Lambda$11805/1064878449@4df61d1f
782782
// )
783783
</span><span>
784784
</span><span class="identifier">p</span><span>.</span><span class="identifier">parse</span><span>(</span><span class="string-literal">&quot; 1&quot;</span><span>)
@@ -817,7 +817,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
817817
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
818818
// )
819819
// ),
820-
// fn = cats.parse.Parser$$Lambda$10108/1615755596@3b93112d
820+
// fn = cats.parse.Parser$$Lambda$11803/1831875821@76e050d4
821821
// ),
822822
// second = Void(
823823
// parser = CharIn(
@@ -827,7 +827,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
827827
// )
828828
// )
829829
// ),
830-
// fn = cats.parse.Parser$$Lambda$10110/575421923@22a1907
830+
// fn = cats.parse.Parser$$Lambda$11805/1064878449@4df61d1f
831831
// )
832832
</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>
833833
</span><span class="comment">// p2: cats.parse.Parser[Char] = Map(
@@ -845,7 +845,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
845845
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
846846
// )
847847
// ),
848-
// fn = cats.parse.Parser$$Lambda$10108/1615755596@3b93112d
848+
// fn = cats.parse.Parser$$Lambda$11803/1831875821@76e050d4
849849
// )
850850
</span><span>
851851
</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>)
@@ -879,7 +879,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
879879
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
880880
// )
881881
// ),
882-
// fn = cats.parse.Parser$$Lambda$10108/1615755596@3b93112d
882+
// fn = cats.parse.Parser$$Lambda$11803/1831875821@76e050d4
883883
// ),
884884
// second = Void(
885885
// parser = CharIn(
@@ -889,7 +889,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
889889
// )
890890
// )
891891
// ),
892-
// fn = cats.parse.Parser$$Lambda$10110/575421923@22a1907
892+
// fn = cats.parse.Parser$$Lambda$11805/1064878449@4df61d1f
893893
// )
894894
</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>
895895
</span><span class="comment">// p2: cats.parse.Parser[Char] = Map(
@@ -907,7 +907,7 @@ <h3 id="backtrack" class="section"><a class="anchor-link left" href="#backtrack"
907907
// ranges = NonEmptyList(head = (&#39;0&#39;, &#39;9&#39;), tail = List())
908908
// )
909909
// ),
910-
// fn = cats.parse.Parser$$Lambda$10108/1615755596@3b93112d
910+
// fn = cats.parse.Parser$$Lambda$11803/1831875821@76e050d4
911911
// )
912912
</span><span class="keyword">val</span><span> </span><span class="identifier">p3</span><span> = </span><span class="identifier">digit</span><span>
913913
</span><span class="comment">// p3: cats.parse.Parser[Char] = CharIn(
@@ -951,7 +951,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
951951
// ),
952952
// min = 1,
953953
// maxMinusOne = 2147483647,
954-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
954+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
955955
// )
956956
// )
957957
</span><span>
@@ -966,7 +966,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
966966
// ),
967967
// min = 1,
968968
// maxMinusOne = 2147483647,
969-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
969+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
970970
// )
971971
// ),
972972
// second = Void(
@@ -996,7 +996,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
996996
// ),
997997
// min = 1,
998998
// maxMinusOne = 2147483647,
999-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
999+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
10001000
// )
10011001
// ),
10021002
// second = Void(
@@ -1007,7 +1007,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
10071007
// )
10081008
// )
10091009
// ),
1010-
// fn = cats.parse.Parser0$$Lambda$10100/261637826@1a1c0196
1010+
// fn = cats.parse.Parser0$$Lambda$11795/1950760157@e652a5e
10111011
// ),
10121012
// second = StringP(
10131013
// parser = Rep(
@@ -1023,7 +1023,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
10231023
// ),
10241024
// min = 1,
10251025
// maxMinusOne = 2147483647,
1026-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
1026+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
10271027
// ...
10281028
</span><span>
10291029

@@ -1061,7 +1061,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
10611061
// ),
10621062
// min = 1,
10631063
// maxMinusOne = 2147483647,
1064-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
1064+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
10651065
// )
10661066
// ),
10671067
// second = Void(
@@ -1072,7 +1072,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
10721072
// )
10731073
// )
10741074
// ),
1075-
// fn = cats.parse.Parser0$$Lambda$10100/261637826@1a1c0196
1075+
// fn = cats.parse.Parser0$$Lambda$11795/1950760157@e652a5e
10761076
// ),
10771077
// second = StringP(
10781078
// parser = Rep(
@@ -1088,7 +1088,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
10881088
// ),
10891089
// min = 1,
10901090
// maxMinusOne = 2147483647,
1091-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
1091+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
10921092
// ...
10931093
</span><span>
10941094
</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>
@@ -1103,7 +1103,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
11031103
// ),
11041104
// min = 1,
11051105
// maxMinusOne = 2147483647,
1106-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
1106+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
11071107
// ),
11081108
// second = OneOf0(
11091109
// all = List(
@@ -1118,7 +1118,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
11181118
// ),
11191119
// min = 1,
11201120
// maxMinusOne = 2147483647,
1121-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
1121+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
11221122
// )
11231123
// )
11241124
</span><span>
@@ -1143,7 +1143,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
11431143
// ),
11441144
// min = 1,
11451145
// maxMinusOne = 2147483647,
1146-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
1146+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
11471147
// )
11481148
// ),
11491149
// second = Void(
@@ -1173,7 +1173,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
11731173
// ),
11741174
// min = 1,
11751175
// maxMinusOne = 2147483647,
1176-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
1176+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
11771177
// )
11781178
// ),
11791179
// second = Void(
@@ -1184,7 +1184,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
11841184
// )
11851185
// )
11861186
// ),
1187-
// fn = cats.parse.Parser0$$Lambda$10100/261637826@1a1c0196
1187+
// fn = cats.parse.Parser0$$Lambda$11795/1950760157@e652a5e
11881188
// ),
11891189
// second = StringP(
11901190
// parser = Rep(
@@ -1200,7 +1200,7 @@ <h3 id="soft" class="section"><a class="anchor-link left" href="#soft"><i class=
12001200
// ),
12011201
// min = 1,
12021202
// maxMinusOne = 2147483647,
1203-
// acc1 = cats.parse.Accumulator0$$anon$11@4e2a9411
1203+
// acc1 = cats.parse.Accumulator0$$anon$11@6cd790ff
12041204
// ...
12051205
</span><span>
12061206
</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>)

0 commit comments

Comments
 (0)