]> Git — Sourcephile - haskell/symantic-parser.git/blob - tests/Golden/Splice/G13.expected.txt
impl: remove dead code: `unLeft`
[haskell/symantic-parser.git] / tests / Golden / Splice / G13.expected.txt
1 \(input :: inp) ->
2 let !(#
3 initBuffer,
4 initPos,
5 readMore,
6 readNext,
7 append
8 #) =
9 let next buf pos =
10 let !( Data.Text.Unsafe.Iter
11 c
12 d
13 ) = Symantic.Parser.Machine.Input.Text.Buffer.iter buf pos
14 in (# c, pos GHC.Num.+ d #)
15 more buf pos = pos GHC.Classes.< Symantic.Parser.Machine.Input.Text.Buffer.length buf
16 append = Symantic.Parser.Machine.Input.Text.Buffer.pappend
17 in (#
18 Symantic.Parser.Machine.Input.Text.Buffer.buffer input,
19 0,
20 more,
21 next,
22 append
23 #)
24 finalRet = \_farInp _farExp v _inp _buf _end -> Symantic.Parser.Machine.Generate.returnST GHC.Base.$ Symantic.Parser.Machine.Generate.ResultDone v
25 finalRaise :: Symantic.Parser.Machine.Generate.ForallOnException inp =
26 Symantic.Parser.Machine.Generate.ForallOnException GHC.Base.$
27 ( \(!exn) _failInp (!farInp) (!farExp) buf end ->
28 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
29 Symantic.Parser.Machine.Generate.ResultError
30 Symantic.Parser.Machine.Generate.ParsingError
31 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.position farInp,
32 Symantic.Parser.Machine.Generate.parsingErrorException = exn,
33 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
34 if readMore buf farInp
35 then
36 GHC.Maybe.Just
37 ( let (#
38 c,
39 _
40 #) = readNext buf farInp
41 in c
42 )
43 else GHC.Maybe.Nothing,
44 Symantic.Parser.Machine.Generate.parsingErrorExpecting =
45 let ( minHoriz,
46 res
47 ) =
48 Data.Set.Internal.foldr
49 ( \f
50 ( minH,
51 acc
52 ) -> case Symantic.Parser.Grammar.Combinators.unSomeFailure f of
53 GHC.Maybe.Just (Symantic.Parser.Grammar.Combinators.FailureHorizon h :: Symantic.Parser.Grammar.Combinators.Failure (Symantic.Parser.Grammar.Combinators.CombSatisfiable (Symantic.Parser.Machine.Input.InputToken inp)))
54 | GHC.Maybe.Just old <- minH ->
55 ( GHC.Maybe.Just (GHC.Classes.min old h),
56 acc
57 )
58 | GHC.Base.otherwise ->
59 ( GHC.Maybe.Just h,
60 acc
61 )
62 _ ->
63 ( minH,
64 f GHC.Types.: acc
65 )
66 )
67 ( GHC.Maybe.Nothing,
68 GHC.Types . []
69 )
70 farExp
71 in Data.Set.Internal.fromList GHC.Base.$
72 ( case minHoriz of
73 GHC.Maybe.Just h -> Symantic.Parser.Grammar.Combinators.SomeFailure (Symantic.Parser.Grammar.Combinators.FailureHorizon @(Symantic.Parser.Machine.Input.InputToken inp) h) GHC.Types.: res
74 GHC.Maybe.Nothing -> res
75 )
76 }
77 )
78 in let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
79 in let _ = "checkHorizon.noCheck"
80 in let name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
81 let _ = "pushValue"
82 in let _ = "pushValue"
83 in do
84 let dupv = \u -> u
85 reg <- GHC.STRef.newSTRef dupv
86 let _ = "iter"
87 in let onException loopInput =
88 let _ = "onException"
89 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
90 let _ = "comment: raiseAgainIfConsumed"
91 in let _ = "saveInput checkedHorizon=0"
92 in let _ = "lift2Value checkedHorizon=0"
93 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
94 then
95 let _ = "choicesBranch checkedHorizon=0"
96 in do
97 sr <- GHC.STRef.readSTRef reg
98 let _ = "pushValue"
99 in let _ = "lift2Value checkedHorizon=0"
100 in let _ = "lift2Value checkedHorizon=0"
101 in let _ = "resume"
102 in callerOnReturn
103 farInp
104 farExp
105 ( let _ = "resume.genCode"
106 in GHC.Tuple . ()
107 )
108 failInp
109 buf
110 end
111 else
112 let _ = "choicesBranch.else"
113 in Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
114 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
115 let _ = "pushValue"
116 in let _ = "comment: satisfy (\\c_0 -> GHC.Classes.not (('<' GHC.Classes.== c_0) GHC.Classes.|| (('>' GHC.Classes.== c_0) GHC.Classes.|| (('+' GHC.Classes.== c_0) GHC.Classes.|| (('-' GHC.Classes.== c_0) GHC.Classes.|| ((',' GHC.Classes.== c_0) GHC.Classes.|| (('.' GHC.Classes.== c_0) GHC.Classes.|| (('[' GHC.Classes.== c_0) GHC.Classes.|| ((']' GHC.Classes.== c_0) GHC.Classes.|| GHC.Types.False)))))))))"
117 in let partialCont buf =
118 let readFail = onException callerInput
119 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
120 in if readMore buf callerInput
121 then
122 let _ = "checkToken"
123 in let !(#
124 c,
125 cs
126 #) = readNext buf callerInput
127 in if (\c -> GHC.Classes.not (('<' GHC.Classes.== c) GHC.Classes.|| (('>' GHC.Classes.== c) GHC.Classes.|| (('+' GHC.Classes.== c) GHC.Classes.|| (('-' GHC.Classes.== c) GHC.Classes.|| ((',' GHC.Classes.== c) GHC.Classes.|| (('.' GHC.Classes.== c) GHC.Classes.|| (('[' GHC.Classes.== c) GHC.Classes.|| ((']' GHC.Classes.== c) GHC.Classes.|| GHC.Types.False))))))))) c
128 then
129 let _ = "lift2Value checkedHorizon=1"
130 in do
131 sr <- GHC.STRef.readSTRef reg
132 let _ = "lift2Value checkedHorizon=1"
133 in do
134 let dupv = sr
135 GHC.STRef.writeSTRef reg dupv
136 let _ = "jump"
137 in loop (GHC.Err.error "invalid onReturn") cs buf callerEnded (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
138 else
139 let _ = "checkToken.fail"
140 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput initPos Data.Set.Internal.empty buf callerEnded
141 else
142 let _ = "checkHorizon.newCheck.fail"
143 in let noMoreInput =
144 let failExp =
145 Data.Set.Internal.Bin
146 1
147 ( Symantic.Parser.Grammar.Combinators.SomeFailure
148 ( case inputToken of
149 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
150 )
151 )
152 Data.Set.Internal.Tip
153 Data.Set.Internal.Tip
154 in let (#
155 farInp,
156 farExp
157 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
158 GHC.Types.LT ->
159 (#
160 callerInput,
161 failExp
162 #)
163 GHC.Types.EQ ->
164 (#
165 initPos,
166 failExp GHC.Base.<> Data.Set.Internal.empty
167 #)
168 GHC.Types.GT ->
169 (#
170 initPos,
171 Data.Set.Internal.empty
172 #)
173 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
174 in if callerEnded
175 then noMoreInput
176 else
177 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
178 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
179 ( \newInput ->
180 if Symantic.Parser.Machine.Input.nullInput newInput
181 then noMoreInput
182 else partialCont (append buf newInput)
183 )
184 )
185 in partialCont callerBuffer
186 in let _ = "jump"
187 in loop callerOnReturn callerInput callerBuffer callerEnd (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel) Data.Map.Internal.Tip Data.Map.Internal.Tip)
188 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
189 let _ = "pushValue"
190 in do
191 let dupv = \u -> u
192 reg <- GHC.STRef.newSTRef dupv
193 let _ = "iter"
194 in let onException loopInput =
195 let _ = "onException"
196 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
197 let _ = "comment: raiseAgainIfConsumed"
198 in let _ = "saveInput checkedHorizon=0"
199 in let _ = "lift2Value checkedHorizon=0"
200 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
201 then
202 let _ = "choicesBranch checkedHorizon=0"
203 in do
204 sr <- GHC.STRef.readSTRef reg
205 let _ = "pushValue"
206 in let _ = "lift2Value checkedHorizon=0"
207 in let _ = "resume"
208 in callerOnReturn
209 farInp
210 farExp
211 ( let _ = "resume.genCode"
212 in sr GHC.Types . []
213 )
214 failInp
215 buf
216 end
217 else
218 let _ = "choicesBranch.else"
219 in Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
220 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
221 let _ = "pushValue"
222 in let join = \farInp farExp v (!inp) buf end ->
223 let _ = "lift2Value checkedHorizon=0"
224 in name
225 ( let _ = "onReturn"
226 in \farInp farExp v (!inp) buf end ->
227 let _ = "lift2Value checkedHorizon=0"
228 in let _ = "pushValue"
229 in let _ = "lift2Value checkedHorizon=0"
230 in do
231 sr <- GHC.STRef.readSTRef reg
232 let _ = "lift2Value checkedHorizon=0"
233 in do
234 let dupv = \u -> sr ((GHC.Types.:) v u)
235 GHC.STRef.writeSTRef reg dupv
236 let _ = "jump"
237 in loop (GHC.Err.error "invalid onReturn") inp buf end (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
238 )
239 inp
240 buf
241 end
242 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
243 in let _ = "comment: look"
244 in let _ = "saveInput checkedHorizon=0"
245 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
246 in let partialCont buf =
247 let readFail = onException callerInput
248 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
249 in if readMore buf callerInput
250 then
251 let _ = "checkToken"
252 in let !(#
253 c,
254 cs
255 #) = readNext buf callerInput
256 in let _ = "loadInput checkedHorizon=0"
257 in let partialCont buf =
258 let readFail = readFail
259 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
260 in if readMore buf callerInput
261 then
262 if (\x -> (GHC.Classes.==) '<' x) c
263 then
264 let _ = "choicesBranch checkedHorizon=1"
265 in let _ = "pushValue"
266 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
267 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
268 in let _ = "checkToken"
269 in let !(#
270 c,
271 cs
272 #) = readNext buf callerInput
273 in let _ = "lift2Value checkedHorizon=0"
274 in let _ = "resume"
275 in join
276 initPos
277 Data.Set.Internal.empty
278 ( let _ = "resume.genCode"
279 in Parsers.Brainfuck.Types.Backward
280 )
281 cs
282 buf
283 callerEnded
284 else
285 let _ = "choicesBranch.else"
286 in if (\x -> (GHC.Classes.==) '>' x) c
287 then
288 let _ = "choicesBranch checkedHorizon=1"
289 in let _ = "pushValue"
290 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
291 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
292 in let _ = "checkToken"
293 in let !(#
294 c,
295 cs
296 #) = readNext buf callerInput
297 in let _ = "lift2Value checkedHorizon=0"
298 in let _ = "resume"
299 in join
300 initPos
301 Data.Set.Internal.empty
302 ( let _ = "resume.genCode"
303 in Parsers.Brainfuck.Types.Forward
304 )
305 cs
306 buf
307 callerEnded
308 else
309 let _ = "choicesBranch.else"
310 in if (\x -> (GHC.Classes.==) '+' x) c
311 then
312 let _ = "choicesBranch checkedHorizon=1"
313 in let _ = "pushValue"
314 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
315 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
316 in let _ = "checkToken"
317 in let !(#
318 c,
319 cs
320 #) = readNext buf callerInput
321 in let _ = "lift2Value checkedHorizon=0"
322 in let _ = "resume"
323 in join
324 initPos
325 Data.Set.Internal.empty
326 ( let _ = "resume.genCode"
327 in Parsers.Brainfuck.Types.Increment
328 )
329 cs
330 buf
331 callerEnded
332 else
333 let _ = "choicesBranch.else"
334 in if (\x -> (GHC.Classes.==) '-' x) c
335 then
336 let _ = "choicesBranch checkedHorizon=1"
337 in let _ = "pushValue"
338 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
339 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
340 in let _ = "checkToken"
341 in let !(#
342 c,
343 cs
344 #) = readNext buf callerInput
345 in let _ = "lift2Value checkedHorizon=0"
346 in let _ = "resume"
347 in join
348 initPos
349 Data.Set.Internal.empty
350 ( let _ = "resume.genCode"
351 in Parsers.Brainfuck.Types.Decrement
352 )
353 cs
354 buf
355 callerEnded
356 else
357 let _ = "choicesBranch.else"
358 in if (\x -> (GHC.Classes.==) ',' x) c
359 then
360 let _ = "choicesBranch checkedHorizon=1"
361 in let _ = "pushValue"
362 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
363 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
364 in let _ = "checkToken"
365 in let !(#
366 c,
367 cs
368 #) = readNext buf callerInput
369 in let _ = "lift2Value checkedHorizon=0"
370 in let _ = "resume"
371 in join
372 initPos
373 Data.Set.Internal.empty
374 ( let _ = "resume.genCode"
375 in Parsers.Brainfuck.Types.Input
376 )
377 cs
378 buf
379 callerEnded
380 else
381 let _ = "choicesBranch.else"
382 in if (\x -> (GHC.Classes.==) '.' x) c
383 then
384 let _ = "choicesBranch checkedHorizon=1"
385 in let _ = "pushValue"
386 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
387 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
388 in let _ = "checkToken"
389 in let !(#
390 c,
391 cs
392 #) = readNext buf callerInput
393 in let _ = "lift2Value checkedHorizon=0"
394 in let _ = "resume"
395 in join
396 initPos
397 Data.Set.Internal.empty
398 ( let _ = "resume.genCode"
399 in Parsers.Brainfuck.Types.Output
400 )
401 cs
402 buf
403 callerEnded
404 else
405 let _ = "choicesBranch.else"
406 in if (\x -> (GHC.Classes.==) '[' x) c
407 then
408 let _ = "choicesBranch checkedHorizon=1"
409 in let _ = "pushValue"
410 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
411 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
412 in let _ = "checkToken"
413 in let !(#
414 c,
415 cs
416 #) = readNext buf callerInput
417 in let _ = "lift2Value checkedHorizon=0"
418 in name
419 ( let _ = "onReturn"
420 in \farInp farExp v (!inp) buf end ->
421 let _ = "lift2Value checkedHorizon=0"
422 in name
423 ( let _ = "onReturn"
424 in \farInp farExp v (!inp) buf end ->
425 let _ = "lift2Value checkedHorizon=0"
426 in let _ = "comment: satisfy ((GHC.Classes.==) ']')"
427 in let partialCont buf =
428 let readFail = readFail
429 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
430 in if readMore buf inp
431 then
432 let _ = "checkToken"
433 in let !(#
434 c,
435 cs
436 #) = readNext buf inp
437 in if (GHC.Classes.==) ']' c
438 then
439 let _ = "lift2Value checkedHorizon=1"
440 in let _ = "resume"
441 in join
442 farInp
443 farExp
444 ( let _ = "resume.genCode"
445 in Parsers.Brainfuck.Types.Loop v
446 )
447 cs
448 buf
449 end
450 else
451 let _ = "checkToken.fail"
452 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf end
453 else
454 let _ = "checkHorizon.newCheck.fail"
455 in let noMoreInput =
456 let failExp =
457 Data.Set.Internal.Bin
458 1
459 ( Symantic.Parser.Grammar.Combinators.SomeFailure
460 ( case inputToken of
461 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
462 )
463 )
464 Data.Set.Internal.Tip
465 Data.Set.Internal.Tip
466 in let (#
467 farInp,
468 farExp
469 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
470 GHC.Types.LT ->
471 (#
472 inp,
473 failExp
474 #)
475 GHC.Types.EQ ->
476 (#
477 farInp,
478 failExp GHC.Base.<> farExp
479 #)
480 GHC.Types.GT ->
481 (#
482 farInp,
483 farExp
484 #)
485 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf GHC.Types.True
486 in if end
487 then noMoreInput
488 else
489 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
490 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
491 ( \newInput ->
492 if Symantic.Parser.Machine.Input.nullInput newInput
493 then noMoreInput
494 else partialCont (append buf newInput)
495 )
496 )
497 in partialCont buf
498 )
499 inp
500 buf
501 end
502 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
503 )
504 cs
505 buf
506 callerEnded
507 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
508 else
509 let _ = "choicesBranch.else"
510 in let failExp = Data.Set.Internal.Bin 1 (Symantic.Parser.Grammar.Combinators.SomeFailure Symantic.Parser.Grammar.Combinators.FailureEmpty) Data.Set.Internal.Tip Data.Set.Internal.Tip
511 in let (#
512 farInp,
513 farExp
514 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
515 GHC.Types.LT ->
516 (#
517 callerInput,
518 failExp
519 #)
520 GHC.Types.EQ ->
521 (#
522 initPos,
523 failExp GHC.Base.<> Data.Set.Internal.empty
524 #)
525 GHC.Types.GT ->
526 (#
527 initPos,
528 Data.Set.Internal.empty
529 #)
530 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnded
531 else
532 let _ = "checkHorizon.newCheck.fail"
533 in let noMoreInput =
534 let failExp =
535 Data.Set.Internal.Bin
536 1
537 ( Symantic.Parser.Grammar.Combinators.SomeFailure
538 ( case inputToken of
539 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
540 )
541 )
542 Data.Set.Internal.Tip
543 Data.Set.Internal.Tip
544 in let (#
545 farInp,
546 farExp
547 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
548 GHC.Types.LT ->
549 (#
550 callerInput,
551 failExp
552 #)
553 GHC.Types.EQ ->
554 (#
555 initPos,
556 failExp GHC.Base.<> Data.Set.Internal.empty
557 #)
558 GHC.Types.GT ->
559 (#
560 initPos,
561 Data.Set.Internal.empty
562 #)
563 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
564 in if callerEnded
565 then noMoreInput
566 else
567 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
568 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
569 ( \newInput ->
570 if Symantic.Parser.Machine.Input.nullInput newInput
571 then noMoreInput
572 else partialCont (append buf newInput)
573 )
574 )
575 in partialCont buf
576 else
577 let _ = "checkHorizon.newCheck.fail"
578 in let noMoreInput =
579 let failExp =
580 Data.Set.Internal.Bin
581 1
582 ( Symantic.Parser.Grammar.Combinators.SomeFailure
583 ( case inputToken of
584 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
585 )
586 )
587 Data.Set.Internal.Tip
588 Data.Set.Internal.Tip
589 in let (#
590 farInp,
591 farExp
592 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
593 GHC.Types.LT ->
594 (#
595 callerInput,
596 failExp
597 #)
598 GHC.Types.EQ ->
599 (#
600 initPos,
601 failExp GHC.Base.<> Data.Set.Internal.empty
602 #)
603 GHC.Types.GT ->
604 (#
605 initPos,
606 Data.Set.Internal.empty
607 #)
608 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
609 in if callerEnded
610 then noMoreInput
611 else
612 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
613 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
614 ( \newInput ->
615 if Symantic.Parser.Machine.Input.nullInput newInput
616 then noMoreInput
617 else partialCont (append buf newInput)
618 )
619 )
620 in partialCont callerBuffer
621 in let _ = "jump"
622 in loop callerOnReturn callerInput callerBuffer callerEnd (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel) Data.Map.Internal.Tip Data.Map.Internal.Tip)
623 in let _ = "pushValue"
624 in name
625 ( let _ = "onReturn"
626 in \farInp farExp v (!inp) buf end ->
627 let _ = "lift2Value checkedHorizon=0"
628 in name
629 ( let _ = "onReturn"
630 in \farInp farExp v (!inp) buf end ->
631 let _ = "lift2Value checkedHorizon=0"
632 in let _ = "resume"
633 in finalRet
634 farInp
635 farExp
636 ( let _ = "resume.genCode"
637 in GHC.Show.show v
638 )
639 inp
640 buf
641 end
642 )
643 inp
644 buf
645 end
646 Data.Map.Internal.Tip
647 )
648 initPos
649 initBuffer
650 GHC.Types.False
651 Data.Map.Internal.Tip