10 let !( Data.Text.Unsafe.Iter
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
18 Symantic.Parser.Machine.Input.Text.Buffer.buffer input,
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
40 #) = readNext buf farInp
43 else GHC.Maybe.Nothing,
44 Symantic.Parser.Machine.Generate.parsingErrorExpecting =
48 Data.Set.Internal.foldr
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),
58 | GHC.Base.otherwise ->
71 in Data.Set.Internal.fromList GHC.Base.$
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
78 in let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
79 in let partialCont buf =
80 let readFail = Symantic.Parser.Machine.Generate.unForallOnException finalRaise
81 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
82 in if readMore buf initPos
84 let name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
85 let _ = "catch ExceptionFailure checkedHorizon=0"
88 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
89 let _ = "comment: raiseAgainIfConsumed"
90 in let _ = "saveInput checkedHorizon=0"
91 in let _ = "lift2Value checkedHorizon=0"
92 in if (GHC.Classes.==) @GHC.Types.Int callerInput failInp
94 let _ = "choicesBranch checkedHorizon=0"
95 in let _ = "catch ExceptionFailure checkedHorizon=0"
98 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
99 let _ = "comment: raiseAgainIfConsumed"
100 in let _ = "saveInput checkedHorizon=0"
101 in let _ = "lift2Value checkedHorizon=0"
102 in if (GHC.Classes.==) @GHC.Types.Int failInp failInp
104 let _ = "choicesBranch checkedHorizon=0"
105 in let _ = "pushValue"
108 in \farInp farExp v (!inp) buf end ->
109 let _ = "lift2Value checkedHorizon=0"
110 in let join = \farInp farExp v (!inp) buf end ->
111 let _ = "lift2Value checkedHorizon=0"
116 ( let _ = "resume.genCode"
122 in let _ = "catch ExceptionFailure checkedHorizon=0"
124 let _ = "onException"
125 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
126 let _ = "comment: raiseAgainIfConsumed"
127 in let _ = "saveInput checkedHorizon=0"
128 in let _ = "lift2Value checkedHorizon=0"
129 in if (GHC.Classes.==) @GHC.Types.Int inp failInp
131 let _ = "choicesBranch checkedHorizon=0"
134 in \farInp farExp v (!inp) buf end ->
139 ( let _ = "resume.genCode"
149 Data.Map.Internal.Tip
151 let _ = "choicesBranch.else"
152 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
153 in let _ = "pushValue"
154 in let join = \farInp farExp v (!inp) buf end ->
155 let _ = "lift2Value checkedHorizon=0"
161 ( let _ = "resume.genCode"
167 in let _ = "catch ExceptionFailure checkedHorizon=0"
169 let _ = "onException"
170 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
171 let _ = "comment: raiseAgainIfConsumed"
172 in let _ = "saveInput checkedHorizon=0"
173 in let _ = "lift2Value checkedHorizon=0"
174 in if (GHC.Classes.==) @GHC.Types.Int inp failInp
176 let _ = "choicesBranch checkedHorizon=0"
179 in \farInp farExp v (!inp) buf end ->
184 ( let _ = "resume.genCode"
194 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
196 let _ = "choicesBranch.else"
197 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
198 in let _ = "pushValue"
201 in \farInp farExp v (!inp) buf end ->
202 let _ = "lift2Value checkedHorizon=0"
203 in let join = \farInp farExp v (!inp) buf end ->
204 let _ = "lift2Value checkedHorizon=0"
207 in \farInp farExp v (!inp) buf end ->
208 let _ = "lift2Value checkedHorizon=0"
214 ( let _ = "resume.genCode"
224 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
225 in let _ = "catch ExceptionFailure checkedHorizon=0"
227 let _ = "onException"
228 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
229 let _ = "comment: raiseAgainIfConsumed"
230 in let _ = "saveInput checkedHorizon=0"
231 in let _ = "lift2Value checkedHorizon=0"
232 in if (GHC.Classes.==) @GHC.Types.Int inp failInp
234 let _ = "choicesBranch checkedHorizon=0"
237 in \farInp farExp v (!inp) buf end ->
242 ( let _ = "resume.genCode"
252 Data.Map.Internal.Tip
254 let _ = "choicesBranch.else"
255 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
256 in let _ = "pushValue"
259 in \farInp farExp v (!inp) buf end ->
260 let _ = "lift2Value checkedHorizon=0"
261 in let _ = "pushValue"
264 reg <- GHC.STRef.newSTRef dupv
266 in let onException loopInput =
267 let _ = "onException"
268 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
269 let _ = "comment: raiseAgainIfConsumed"
270 in let _ = "saveInput checkedHorizon=0"
271 in let _ = "lift2Value checkedHorizon=0"
272 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
274 let _ = "choicesBranch checkedHorizon=0"
276 sr <- GHC.STRef.readSTRef reg
279 in \farInp farExp v (!inp) buf end ->
280 let _ = "lift2Value checkedHorizon=0"
281 in let _ = "lift2Value checkedHorizon=0"
284 in \farInp farExp v (!inp) buf end ->
285 let _ = "lift2Value checkedHorizon=0"
291 ( let _ = "resume.genCode"
301 Data.Map.Internal.Tip
306 Data.Map.Internal.Tip
308 let _ = "choicesBranch.else"
309 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
310 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
314 in \farInp farExp v (!inp) buf end ->
315 let _ = "lift2Value checkedHorizon=0"
318 in \farInp farExp v (!inp) buf end ->
319 let _ = "lift2Value checkedHorizon=0"
322 in \farInp farExp v (!inp) buf end ->
323 let _ = "lift2Value checkedHorizon=0"
325 sr <- GHC.STRef.readSTRef reg
326 let _ = "lift2Value checkedHorizon=0"
329 GHC.STRef.writeSTRef reg dupv
331 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)
336 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
341 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
346 Data.Map.Internal.Tip
348 in loop callerOnReturn inp buf end (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
353 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
358 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
363 (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)
365 let _ = "choicesBranch.else"
366 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
367 in let _ = "pushValue"
368 in let _ = "comment: satisfy ((GHC.Classes.==) '\\'')"
369 in let partialCont buf =
370 let readFail = onException
371 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=4"
372 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 3 failInp)
378 #) = readNext buf failInp
379 in if (GHC.Classes.==) '\'' c
381 let _ = "lift2Value checkedHorizon=4"
382 in let join = \farInp farExp v (!inp) buf end ->
383 let _ = "lift2Value checkedHorizon=0"
384 in let _ = "comment: satisfy ((GHC.Classes.==) '\\'')"
385 in let partialCont buf =
386 let readFail = readFail
387 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
388 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 inp)
394 #) = readNext buf inp
395 in if (GHC.Classes.==) '\'' c
397 let _ = "lift2Value checkedHorizon=2"
400 in \farInp farExp v (!inp) buf end ->
401 let _ = "lift2Value checkedHorizon=0"
407 ( let _ = "resume.genCode"
417 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
419 let _ = "checkToken.fail"
421 Data.Set.Internal.Bin
423 ( Symantic.Parser.Grammar.Combinators.SomeFailure
425 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '\''
428 Data.Set.Internal.Tip
429 Data.Set.Internal.Tip
433 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
442 failExp GHC.Base.<> farExp
449 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf end
451 let _ = "checkHorizon.newCheck.fail"
454 Data.Set.Internal.Bin
456 ( Symantic.Parser.Grammar.Combinators.SomeFailure
458 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
461 Data.Set.Internal.Tip
462 Data.Set.Internal.Tip
466 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
475 failExp GHC.Base.<> farExp
482 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf GHC.Types.True
486 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
487 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
489 if Symantic.Parser.Machine.Input.nullInput newInput
491 else partialCont (append buf newInput)
495 in let _ = "catch ExceptionFailure checkedHorizon=4"
497 let _ = "onException"
498 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
499 let _ = "comment: raiseAgainIfConsumed"
500 in let _ = "saveInput checkedHorizon=0"
501 in let _ = "lift2Value checkedHorizon=0"
502 in if (GHC.Classes.==) @GHC.Types.Int cs failInp
504 let _ = "choicesBranch checkedHorizon=0"
505 in let _ = "pushValue"
506 in let _ = "comment: satisfy ((GHC.Classes.==) '\\\\')"
507 in let partialCont buf =
508 let readFail = readFail
509 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=4"
510 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 3 failInp)
516 #) = readNext buf failInp
517 in if (GHC.Classes.==) '\\' c
519 let _ = "lift2Value checkedHorizon=4"
520 in let _ = "comment: satisfy (\\t_0 -> ('0' GHC.Classes.== t_0) GHC.Classes.|| (('t' GHC.Classes.== t_0) GHC.Classes.|| (('n' GHC.Classes.== t_0) GHC.Classes.|| (('v' GHC.Classes.== t_0) GHC.Classes.|| (('f' GHC.Classes.== t_0) GHC.Classes.|| (('r' GHC.Classes.== t_0) GHC.Classes.|| GHC.Types.False))))))"
521 in let _ = "checkHorizon.oldCheck: checkedHorizon=4"
522 in let _ = "checkToken"
527 in if (\t -> ('0' GHC.Classes.== t) GHC.Classes.|| (('t' GHC.Classes.== t) GHC.Classes.|| (('n' GHC.Classes.== t) GHC.Classes.|| (('v' GHC.Classes.== t) GHC.Classes.|| (('f' GHC.Classes.== t) GHC.Classes.|| (('r' GHC.Classes.== t) GHC.Classes.|| GHC.Types.False)))))) c
529 let _ = "lift2Value checkedHorizon=3"
532 in \farInp farExp v (!inp) buf end ->
533 let _ = "lift2Value checkedHorizon=0"
538 ( let _ = "resume.genCode"
548 Data.Map.Internal.Tip
550 let _ = "checkToken.fail"
552 Data.Set.Internal.Bin
554 ( Symantic.Parser.Grammar.Combinators.SomeFailure
556 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'n'
559 ( Data.Set.Internal.Bin
561 ( Symantic.Parser.Grammar.Combinators.SomeFailure
563 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '0'
566 Data.Set.Internal.Tip
567 ( Data.Set.Internal.Bin
569 ( Symantic.Parser.Grammar.Combinators.SomeFailure
571 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'f'
574 Data.Set.Internal.Tip
575 Data.Set.Internal.Tip
578 ( Data.Set.Internal.Bin
580 ( Symantic.Parser.Grammar.Combinators.SomeFailure
582 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 't'
585 ( Data.Set.Internal.Bin
587 ( Symantic.Parser.Grammar.Combinators.SomeFailure
589 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'r'
592 Data.Set.Internal.Tip
593 Data.Set.Internal.Tip
595 ( Data.Set.Internal.Bin
597 ( Symantic.Parser.Grammar.Combinators.SomeFailure
599 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'v'
602 Data.Set.Internal.Tip
603 Data.Set.Internal.Tip
609 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
618 failExp GHC.Base.<> farExp
625 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf end
627 let _ = "checkToken.fail"
629 Data.Set.Internal.Bin
631 ( Symantic.Parser.Grammar.Combinators.SomeFailure
633 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '\\'
636 Data.Set.Internal.Tip
637 Data.Set.Internal.Tip
641 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
650 failExp GHC.Base.<> farExp
657 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
659 let _ = "checkHorizon.newCheck.fail"
662 Data.Set.Internal.Bin
664 ( Symantic.Parser.Grammar.Combinators.SomeFailure
666 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 4
669 Data.Set.Internal.Tip
670 Data.Set.Internal.Tip
674 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
683 failExp GHC.Base.<> farExp
690 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf GHC.Types.True
694 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
695 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
697 if Symantic.Parser.Machine.Input.nullInput newInput
699 else partialCont (append buf newInput)
704 let _ = "choicesBranch.else"
705 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
706 in let _ = "pushValue"
707 in let _ = "comment: satisfy Parsers.Nandlang.nandStringLetter"
708 in let _ = "checkHorizon.oldCheck: checkedHorizon=4"
709 in let _ = "checkToken"
714 in if Parsers.Nandlang.nandStringLetter c
716 let _ = "lift2Value checkedHorizon=3"
719 in \farInp farExp v (!inp) buf end ->
720 let _ = "lift2Value checkedHorizon=0"
726 ( let _ = "resume.genCode"
736 Data.Map.Internal.Tip
738 let _ = "checkToken.fail"
739 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf end
741 let _ = "checkToken.fail"
743 Data.Set.Internal.Bin
745 ( Symantic.Parser.Grammar.Combinators.SomeFailure
747 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '\''
750 Data.Set.Internal.Tip
751 Data.Set.Internal.Tip
755 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
764 failExp GHC.Base.<> farExp
771 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
773 let _ = "checkHorizon.newCheck.fail"
776 Data.Set.Internal.Bin
778 ( Symantic.Parser.Grammar.Combinators.SomeFailure
780 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 4
783 Data.Set.Internal.Tip
784 Data.Set.Internal.Tip
788 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
797 failExp GHC.Base.<> farExp
804 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf GHC.Types.True
808 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
809 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
811 if Symantic.Parser.Machine.Input.nullInput newInput
813 else partialCont (append buf newInput)
818 let _ = "choicesBranch.else"
819 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
820 in let _ = "pushValue"
821 in let join = \farInp farExp v (!inp) buf end ->
822 let _ = "lift2Value checkedHorizon=0"
825 in \farInp farExp v (!inp) buf end ->
826 let _ = "lift2Value checkedHorizon=0"
832 ( let _ = "resume.genCode"
842 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
843 in let _ = "catch ExceptionFailure checkedHorizon=0"
845 let _ = "onException"
846 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
847 let _ = "comment: raiseAgainIfConsumed"
848 in let _ = "saveInput checkedHorizon=0"
849 in let _ = "lift2Value checkedHorizon=0"
850 in if (GHC.Classes.==) @GHC.Types.Int callerInput failInp
852 let _ = "choicesBranch checkedHorizon=0"
853 in let _ = "pushValue"
854 in let _ = "comment: satisfy ((GHC.Classes.==) '1')"
855 in let partialCont buf =
856 let readFail = onException
857 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
858 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 failInp)
864 #) = readNext buf failInp
865 in if (GHC.Classes.==) '1' c
867 let _ = "lift2Value checkedHorizon=2"
872 ( let _ = "resume.genCode"
879 let _ = "checkToken.fail"
881 Data.Set.Internal.Bin
883 ( Symantic.Parser.Grammar.Combinators.SomeFailure
885 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '1'
888 Data.Set.Internal.Tip
889 Data.Set.Internal.Tip
893 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
902 failExp GHC.Base.<> farExp
909 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
911 let _ = "checkHorizon.newCheck.fail"
914 Data.Set.Internal.Bin
916 ( Symantic.Parser.Grammar.Combinators.SomeFailure
918 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
921 Data.Set.Internal.Tip
922 Data.Set.Internal.Tip
926 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
935 failExp GHC.Base.<> farExp
942 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf GHC.Types.True
946 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
947 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
949 if Symantic.Parser.Machine.Input.nullInput newInput
951 else partialCont (append buf newInput)
956 let _ = "choicesBranch.else"
957 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
958 in let _ = "pushValue"
959 in let _ = "comment: satisfy ((GHC.Classes.==) '0')"
960 in let partialCont buf =
961 let readFail = onException
962 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
963 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 callerInput)
969 #) = readNext buf callerInput
970 in if (GHC.Classes.==) '0' c
972 let _ = "lift2Value checkedHorizon=2"
977 Data.Set.Internal.empty
978 ( let _ = "resume.genCode"
985 let _ = "checkToken.fail"
987 Data.Set.Internal.Bin
989 ( Symantic.Parser.Grammar.Combinators.SomeFailure
991 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '0'
994 Data.Set.Internal.Tip
995 Data.Set.Internal.Tip
999 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
1008 failExp GHC.Base.<> Data.Set.Internal.empty
1013 Data.Set.Internal.empty
1015 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnd
1017 let _ = "checkHorizon.newCheck.fail"
1018 in let noMoreInput =
1020 Data.Set.Internal.Bin
1022 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1023 ( case inputToken of
1024 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
1027 Data.Set.Internal.Tip
1028 Data.Set.Internal.Tip
1032 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
1041 failExp GHC.Base.<> Data.Set.Internal.empty
1046 Data.Set.Internal.empty
1048 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
1052 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
1053 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
1055 if Symantic.Parser.Machine.Input.nullInput newInput
1057 else partialCont (append buf newInput)
1060 in partialCont callerBuffer
1061 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
1062 let _ = "catch ExceptionFailure checkedHorizon=0"
1063 in let onException =
1064 let _ = "onException"
1065 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
1066 let _ = "comment: raiseAgainIfConsumed"
1067 in let _ = "saveInput checkedHorizon=0"
1068 in let _ = "lift2Value checkedHorizon=0"
1069 in if (GHC.Classes.==) @GHC.Types.Int callerInput failInp
1071 let _ = "choicesBranch checkedHorizon=0"
1073 in name callerOnReturn failInp buf end Data.Map.Internal.Tip
1075 let _ = "choicesBranch.else"
1076 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
1077 in let _ = "pushValue"
1079 ( let _ = "onReturn"
1080 in \farInp farExp v (!inp) buf end ->
1081 let _ = "lift2Value checkedHorizon=0"
1082 in let _ = "pushValue"
1085 reg <- GHC.STRef.newSTRef dupv
1087 in let onException loopInput =
1088 let _ = "onException"
1089 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
1090 let _ = "comment: raiseAgainIfConsumed"
1091 in let _ = "saveInput checkedHorizon=0"
1092 in let _ = "lift2Value checkedHorizon=0"
1093 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
1095 let _ = "choicesBranch checkedHorizon=0"
1097 sr <- GHC.STRef.readSTRef reg
1099 ( let _ = "onReturn"
1100 in \farInp farExp v (!inp) buf end ->
1101 let _ = "lift2Value checkedHorizon=0"
1102 in let _ = "lift2Value checkedHorizon=0"
1104 ( let _ = "onReturn"
1105 in \farInp farExp v (!inp) buf end ->
1106 let _ = "lift2Value checkedHorizon=0"
1112 ( let _ = "resume.genCode"
1122 Data.Map.Internal.Tip
1127 Data.Map.Internal.Tip
1129 let _ = "choicesBranch.else"
1130 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
1131 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
1134 ( let _ = "onReturn"
1135 in \farInp farExp v (!inp) buf end ->
1136 let _ = "lift2Value checkedHorizon=0"
1138 ( let _ = "onReturn"
1139 in \farInp farExp v (!inp) buf end ->
1140 let _ = "lift2Value checkedHorizon=0"
1142 ( let _ = "onReturn"
1143 in \farInp farExp v (!inp) buf end ->
1144 let _ = "lift2Value checkedHorizon=0"
1146 sr <- GHC.STRef.readSTRef reg
1147 let _ = "lift2Value checkedHorizon=0"
1150 GHC.STRef.writeSTRef reg dupv
1152 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)
1157 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
1162 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
1167 Data.Map.Internal.Tip
1169 in loop callerOnReturn inp buf end (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
1174 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
1175 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
1176 let _ = "comment: satisfy (\\t_0 -> ('0' GHC.Classes.== t_0) GHC.Classes.|| (('1' GHC.Classes.== t_0) GHC.Classes.|| (('2' GHC.Classes.== t_0) GHC.Classes.|| (('3' GHC.Classes.== t_0) GHC.Classes.|| (('4' GHC.Classes.== t_0) GHC.Classes.|| (('5' GHC.Classes.== t_0) GHC.Classes.|| (('6' GHC.Classes.== t_0) GHC.Classes.|| (('7' GHC.Classes.== t_0) GHC.Classes.|| (('8' GHC.Classes.== t_0) GHC.Classes.|| (('9' GHC.Classes.== t_0) GHC.Classes.|| GHC.Types.False))))))))))"
1177 in let partialCont buf =
1178 let readFail = Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel
1179 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
1180 in if readMore buf callerInput
1182 let _ = "checkToken"
1186 #) = readNext buf callerInput
1187 in if (\t -> ('0' GHC.Classes.== t) GHC.Classes.|| (('1' GHC.Classes.== t) GHC.Classes.|| (('2' GHC.Classes.== t) GHC.Classes.|| (('3' GHC.Classes.== t) GHC.Classes.|| (('4' GHC.Classes.== t) GHC.Classes.|| (('5' GHC.Classes.== t) GHC.Classes.|| (('6' GHC.Classes.== t) GHC.Classes.|| (('7' GHC.Classes.== t) GHC.Classes.|| (('8' GHC.Classes.== t) GHC.Classes.|| (('9' GHC.Classes.== t) GHC.Classes.|| GHC.Types.False)))))))))) c
1192 Data.Set.Internal.empty
1193 ( let _ = "resume.genCode"
1200 let _ = "checkToken.fail"
1202 Data.Set.Internal.Bin
1204 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1205 ( case inputToken of
1206 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '3'
1209 ( Data.Set.Internal.Bin
1211 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1212 ( case inputToken of
1213 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '1'
1216 ( Data.Set.Internal.Bin
1218 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1219 ( case inputToken of
1220 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '0'
1223 Data.Set.Internal.Tip
1224 Data.Set.Internal.Tip
1226 ( Data.Set.Internal.Bin
1228 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1229 ( case inputToken of
1230 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '2'
1233 Data.Set.Internal.Tip
1234 Data.Set.Internal.Tip
1237 ( Data.Set.Internal.Bin
1239 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1240 ( case inputToken of
1241 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '7'
1244 ( Data.Set.Internal.Bin
1246 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1247 ( case inputToken of
1248 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '5'
1251 ( Data.Set.Internal.Bin
1253 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1254 ( case inputToken of
1255 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '4'
1258 Data.Set.Internal.Tip
1259 Data.Set.Internal.Tip
1261 ( Data.Set.Internal.Bin
1263 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1264 ( case inputToken of
1265 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '6'
1268 Data.Set.Internal.Tip
1269 Data.Set.Internal.Tip
1272 ( Data.Set.Internal.Bin
1274 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1275 ( case inputToken of
1276 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '8'
1279 Data.Set.Internal.Tip
1280 ( Data.Set.Internal.Bin
1282 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1283 ( case inputToken of
1284 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '9'
1287 Data.Set.Internal.Tip
1288 Data.Set.Internal.Tip
1295 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
1304 failExp GHC.Base.<> Data.Set.Internal.empty
1309 Data.Set.Internal.empty
1311 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnd
1313 let _ = "checkHorizon.newCheck.fail"
1314 in let noMoreInput =
1316 Data.Set.Internal.Bin
1318 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1319 ( case inputToken of
1320 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
1323 Data.Set.Internal.Tip
1324 Data.Set.Internal.Tip
1328 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
1337 failExp GHC.Base.<> Data.Set.Internal.empty
1342 Data.Set.Internal.empty
1344 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
1348 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
1349 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
1351 if Symantic.Parser.Machine.Input.nullInput newInput
1353 else partialCont (append buf newInput)
1356 in partialCont callerBuffer
1357 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
1360 ( let _ = "onReturn"
1361 in \farInp farExp v (!inp) buf end ->
1362 let _ = "lift2Value checkedHorizon=0"
1363 in let join = \farInp farExp v (!inp) buf end ->
1364 let _ = "lift2Value checkedHorizon=0"
1369 ( let _ = "resume.genCode"
1375 in let _ = "catch ExceptionFailure checkedHorizon=0"
1376 in let onException =
1377 let _ = "onException"
1378 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
1379 let _ = "comment: raiseAgainIfConsumed"
1380 in let _ = "saveInput checkedHorizon=0"
1381 in let _ = "lift2Value checkedHorizon=0"
1382 in if (GHC.Classes.==) @GHC.Types.Int inp failInp
1384 let _ = "choicesBranch checkedHorizon=0"
1386 ( let _ = "onReturn"
1387 in \farInp farExp v (!inp) buf end ->
1392 ( let _ = "resume.genCode"
1402 Data.Map.Internal.Tip
1404 let _ = "choicesBranch.else"
1405 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
1406 in let _ = "pushValue"
1408 ( let _ = "onReturn"
1409 in \farInp farExp v (!inp) buf end ->
1410 let _ = "lift2Value checkedHorizon=0"
1416 ( let _ = "resume.genCode"
1426 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
1431 (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)
1432 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
1435 ( let _ = "onReturn"
1436 in \farInp farExp v (!inp) buf end ->
1437 let _ = "lift2Value checkedHorizon=0"
1438 in let _ = "pushValue"
1441 reg <- GHC.STRef.newSTRef dupv
1443 in let onException loopInput =
1444 let _ = "onException"
1445 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
1446 let _ = "comment: raiseAgainIfConsumed"
1447 in let _ = "saveInput checkedHorizon=0"
1448 in let _ = "lift2Value checkedHorizon=0"
1449 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
1451 let _ = "choicesBranch checkedHorizon=0"
1453 sr <- GHC.STRef.readSTRef reg
1455 ( let _ = "onReturn"
1456 in \farInp farExp v (!inp) buf end ->
1457 let _ = "lift2Value checkedHorizon=0"
1458 in let _ = "lift2Value checkedHorizon=0"
1460 ( let _ = "onReturn"
1461 in \farInp farExp v (!inp) buf end ->
1462 let _ = "lift2Value checkedHorizon=0"
1467 ( let _ = "resume.genCode"
1477 Data.Map.Internal.Tip
1482 Data.Map.Internal.Tip
1484 let _ = "choicesBranch.else"
1485 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
1486 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
1488 in let _ = "comment: satisfy ((GHC.Classes.==) '!')"
1489 in let partialCont buf =
1490 let readFail = onException callerInput
1491 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=4"
1492 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 3 callerInput)
1494 let _ = "checkToken"
1498 #) = readNext buf callerInput
1499 in if (GHC.Classes.==) '!' c
1501 let _ = "lift2Value checkedHorizon=4"
1503 ( let _ = "onReturn"
1504 in \farInp farExp v (!inp) buf end ->
1505 let _ = "lift2Value checkedHorizon=0"
1507 ( let _ = "onReturn"
1508 in \farInp farExp v (!inp) buf end ->
1509 let _ = "lift2Value checkedHorizon=0"
1511 sr <- GHC.STRef.readSTRef reg
1512 let _ = "lift2Value checkedHorizon=0"
1515 GHC.STRef.writeSTRef reg dupv
1517 in loop (GHC.Err.error "invalid onReturn") inp buf end (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
1522 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
1527 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
1529 let _ = "checkToken.fail"
1531 Data.Set.Internal.Bin
1533 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1534 ( case inputToken of
1535 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '!'
1538 Data.Set.Internal.Tip
1539 Data.Set.Internal.Tip
1543 #) = case GHC.Classes.compare @GHC.Types.Int farInp callerInput of
1552 failExp GHC.Base.<> farExp
1559 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnded
1561 let _ = "checkHorizon.newCheck.fail"
1562 in let noMoreInput =
1564 Data.Set.Internal.Bin
1566 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1567 ( case inputToken of
1568 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 4
1571 Data.Set.Internal.Tip
1572 Data.Set.Internal.Tip
1576 #) = case GHC.Classes.compare @GHC.Types.Int farInp callerInput of
1585 failExp GHC.Base.<> farExp
1592 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
1596 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
1597 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
1599 if Symantic.Parser.Machine.Input.nullInput newInput
1601 else partialCont (append buf newInput)
1604 in partialCont callerBuffer
1606 in loop callerOnReturn inp buf end (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)
1611 (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)
1612 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
1615 ( let _ = "onReturn"
1616 in \farInp farExp v (!inp) buf end ->
1617 let _ = "lift2Value checkedHorizon=0"
1618 in let _ = "pushValue"
1621 reg <- GHC.STRef.newSTRef dupv
1623 in let onException loopInput =
1624 let _ = "onException"
1625 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
1626 let _ = "comment: raiseAgainIfConsumed"
1627 in let _ = "saveInput checkedHorizon=0"
1628 in let _ = "lift2Value checkedHorizon=0"
1629 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
1631 let _ = "choicesBranch checkedHorizon=0"
1633 sr <- GHC.STRef.readSTRef reg
1635 in let _ = "lift2Value checkedHorizon=0"
1636 in let _ = "lift2Value checkedHorizon=0"
1641 ( let _ = "resume.genCode"
1648 let _ = "choicesBranch.else"
1649 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
1650 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
1653 ( let _ = "onReturn"
1654 in \farInp farExp v (!inp) buf end ->
1655 let _ = "lift2Value checkedHorizon=0"
1657 sr <- GHC.STRef.readSTRef reg
1658 let _ = "lift2Value checkedHorizon=0"
1661 GHC.STRef.writeSTRef reg dupv
1663 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)
1668 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
1670 in loop callerOnReturn inp buf end (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)
1675 (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)
1676 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
1678 in let _ = "catch ExceptionFailure checkedHorizon=0"
1679 in let onException =
1680 let _ = "onException"
1681 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
1682 let _ = "loadInput checkedHorizon=0"
1683 in let _ = "checkHorizon.noCheck"
1684 in Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf end
1685 in let _ = "pushValue"
1686 in let _ = "comment: satisfy Parsers.Nandlang.nandIdentStart"
1687 in let partialCont buf =
1688 let readFail = onException
1689 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
1690 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 callerInput)
1692 let _ = "checkToken"
1696 #) = readNext buf callerInput
1697 in if Parsers.Nandlang.nandIdentStart c
1699 let _ = "lift2Value checkedHorizon=2"
1700 in let _ = "pushValue"
1703 reg <- GHC.STRef.newSTRef dupv
1705 in let onException loopInput =
1706 let _ = "onException"
1707 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
1708 let _ = "comment: raiseAgainIfConsumed"
1709 in let _ = "saveInput checkedHorizon=0"
1710 in let _ = "lift2Value checkedHorizon=0"
1711 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
1713 let _ = "choicesBranch checkedHorizon=0"
1715 sr <- GHC.STRef.readSTRef reg
1717 ( let _ = "onReturn"
1718 in \farInp farExp v (!inp) buf end ->
1719 let _ = "lift2Value checkedHorizon=0"
1720 in let _ = "lift2Value checkedHorizon=0"
1722 in let _ = "lift2Value checkedHorizon=0"
1724 ( let _ = "onReturn"
1725 in \farInp farExp v (!inp) buf end ->
1726 let _ = "lift2Value checkedHorizon=0"
1731 ( let _ = "resume.genCode"
1741 (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)
1746 Data.Map.Internal.Tip
1748 let _ = "choicesBranch.else"
1749 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
1750 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
1752 in let _ = "comment: satisfy Parsers.Nandlang.nandIdentLetter"
1753 in let partialCont buf =
1754 let readFail = onException callerInput
1755 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
1756 in if readMore buf callerInput
1758 let _ = "checkToken"
1762 #) = readNext buf callerInput
1763 in if Parsers.Nandlang.nandIdentLetter c
1765 let _ = "lift2Value checkedHorizon=1"
1767 sr <- GHC.STRef.readSTRef reg
1768 let _ = "lift2Value checkedHorizon=1"
1771 GHC.STRef.writeSTRef reg dupv
1773 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)
1775 let _ = "checkToken.fail"
1776 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput initPos Data.Set.Internal.empty buf callerEnded
1778 let _ = "checkHorizon.newCheck.fail"
1779 in let noMoreInput =
1781 Data.Set.Internal.Bin
1783 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1784 ( case inputToken of
1785 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
1788 Data.Set.Internal.Tip
1789 Data.Set.Internal.Tip
1793 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
1802 failExp GHC.Base.<> Data.Set.Internal.empty
1807 Data.Set.Internal.empty
1809 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
1813 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
1814 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
1816 if Symantic.Parser.Machine.Input.nullInput newInput
1818 else partialCont (append buf newInput)
1821 in partialCont callerBuffer
1823 in loop callerOnReturn cs buf callerEnd (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
1825 let _ = "checkToken.fail"
1826 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput initPos Data.Set.Internal.empty buf callerEnd
1828 let _ = "checkHorizon.newCheck.fail"
1829 in let noMoreInput =
1831 Data.Set.Internal.Bin
1833 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1834 ( case inputToken of
1835 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
1838 Data.Set.Internal.Tip
1839 Data.Set.Internal.Tip
1843 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
1852 failExp GHC.Base.<> Data.Set.Internal.empty
1857 Data.Set.Internal.empty
1859 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
1863 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
1864 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
1866 if Symantic.Parser.Machine.Input.nullInput newInput
1868 else partialCont (append buf newInput)
1871 in partialCont callerBuffer
1872 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
1874 in let _ = "comment: satisfy ((GHC.Classes.==) '(')"
1875 in let partialCont buf =
1876 let readFail = Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel
1877 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
1878 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 callerInput)
1880 let _ = "checkToken"
1884 #) = readNext buf callerInput
1885 in if (GHC.Classes.==) '(' c
1887 let _ = "lift2Value checkedHorizon=2"
1889 ( let _ = "onReturn"
1890 in \farInp farExp v (!inp) buf end ->
1891 let _ = "lift2Value checkedHorizon=0"
1896 ( let _ = "resume.genCode"
1906 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
1908 let _ = "checkToken.fail"
1910 Data.Set.Internal.Bin
1912 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1913 ( case inputToken of
1914 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '('
1917 Data.Set.Internal.Tip
1918 Data.Set.Internal.Tip
1922 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
1931 failExp GHC.Base.<> Data.Set.Internal.empty
1936 Data.Set.Internal.empty
1938 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnd
1940 let _ = "checkHorizon.newCheck.fail"
1941 in let noMoreInput =
1943 Data.Set.Internal.Bin
1945 ( Symantic.Parser.Grammar.Combinators.SomeFailure
1946 ( case inputToken of
1947 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
1950 Data.Set.Internal.Tip
1951 Data.Set.Internal.Tip
1955 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
1964 failExp GHC.Base.<> Data.Set.Internal.empty
1969 Data.Set.Internal.empty
1971 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
1975 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
1976 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
1978 if Symantic.Parser.Machine.Input.nullInput newInput
1980 else partialCont (append buf newInput)
1983 in partialCont callerBuffer
1984 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
1986 in let _ = "comment: satisfy ((GHC.Classes.==) ')')"
1987 in let partialCont buf =
1988 let readFail = Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel
1989 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
1990 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 callerInput)
1992 let _ = "checkToken"
1996 #) = readNext buf callerInput
1997 in if (GHC.Classes.==) ')' c
1999 let _ = "lift2Value checkedHorizon=2"
2001 ( let _ = "onReturn"
2002 in \farInp farExp v (!inp) buf end ->
2003 let _ = "lift2Value checkedHorizon=0"
2008 ( let _ = "resume.genCode"
2018 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2020 let _ = "checkToken.fail"
2022 Data.Set.Internal.Bin
2024 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2025 ( case inputToken of
2026 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken ')'
2029 Data.Set.Internal.Tip
2030 Data.Set.Internal.Tip
2034 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
2043 failExp GHC.Base.<> Data.Set.Internal.empty
2048 Data.Set.Internal.empty
2050 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnd
2052 let _ = "checkHorizon.newCheck.fail"
2053 in let noMoreInput =
2055 Data.Set.Internal.Bin
2057 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2058 ( case inputToken of
2059 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
2062 Data.Set.Internal.Tip
2063 Data.Set.Internal.Tip
2067 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
2076 failExp GHC.Base.<> Data.Set.Internal.empty
2081 Data.Set.Internal.empty
2083 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
2087 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
2088 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
2090 if Symantic.Parser.Machine.Input.nullInput newInput
2092 else partialCont (append buf newInput)
2095 in partialCont callerBuffer
2096 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
2098 in let _ = "comment: satisfy ((GHC.Classes.==) ',')"
2099 in let partialCont buf =
2100 let readFail = Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel
2101 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
2102 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 callerInput)
2104 let _ = "checkToken"
2108 #) = readNext buf callerInput
2109 in if (GHC.Classes.==) ',' c
2111 let _ = "lift2Value checkedHorizon=2"
2113 ( let _ = "onReturn"
2114 in \farInp farExp v (!inp) buf end ->
2115 let _ = "lift2Value checkedHorizon=0"
2120 ( let _ = "resume.genCode"
2130 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2132 let _ = "checkToken.fail"
2134 Data.Set.Internal.Bin
2136 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2137 ( case inputToken of
2138 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken ','
2141 Data.Set.Internal.Tip
2142 Data.Set.Internal.Tip
2146 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
2155 failExp GHC.Base.<> Data.Set.Internal.empty
2160 Data.Set.Internal.empty
2162 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnd
2164 let _ = "checkHorizon.newCheck.fail"
2165 in let noMoreInput =
2167 Data.Set.Internal.Bin
2169 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2170 ( case inputToken of
2171 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
2174 Data.Set.Internal.Tip
2175 Data.Set.Internal.Tip
2179 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
2188 failExp GHC.Base.<> Data.Set.Internal.empty
2193 Data.Set.Internal.empty
2195 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
2199 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
2200 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
2202 if Symantic.Parser.Machine.Input.nullInput newInput
2204 else partialCont (append buf newInput)
2207 in partialCont callerBuffer
2208 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
2210 in let _ = "comment: satisfy ((GHC.Classes.==) ';')"
2211 in let partialCont buf =
2212 let readFail = Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel
2213 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
2214 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 callerInput)
2216 let _ = "checkToken"
2220 #) = readNext buf callerInput
2221 in if (GHC.Classes.==) ';' c
2223 let _ = "lift2Value checkedHorizon=2"
2225 ( let _ = "onReturn"
2226 in \farInp farExp v (!inp) buf end ->
2227 let _ = "lift2Value checkedHorizon=0"
2232 ( let _ = "resume.genCode"
2242 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2244 let _ = "checkToken.fail"
2246 Data.Set.Internal.Bin
2248 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2249 ( case inputToken of
2250 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken ';'
2253 Data.Set.Internal.Tip
2254 Data.Set.Internal.Tip
2258 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
2267 failExp GHC.Base.<> Data.Set.Internal.empty
2272 Data.Set.Internal.empty
2274 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnd
2276 let _ = "checkHorizon.newCheck.fail"
2277 in let noMoreInput =
2279 Data.Set.Internal.Bin
2281 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2282 ( case inputToken of
2283 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
2286 Data.Set.Internal.Tip
2287 Data.Set.Internal.Tip
2291 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
2300 failExp GHC.Base.<> Data.Set.Internal.empty
2305 Data.Set.Internal.empty
2307 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
2311 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
2312 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
2314 if Symantic.Parser.Machine.Input.nullInput newInput
2316 else partialCont (append buf newInput)
2319 in partialCont callerBuffer
2320 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
2322 in let _ = "comment: satisfy ((GHC.Classes.==) '[')"
2323 in let partialCont buf =
2324 let readFail = Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel
2325 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=5"
2326 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 4 callerInput)
2328 let _ = "checkToken"
2332 #) = readNext buf callerInput
2333 in if (GHC.Classes.==) '[' c
2335 let _ = "lift2Value checkedHorizon=5"
2337 ( let _ = "onReturn"
2338 in \farInp farExp v (!inp) buf end ->
2339 let _ = "lift2Value checkedHorizon=0"
2341 ( let _ = "onReturn"
2342 in \farInp farExp v (!inp) buf end ->
2343 let _ = "lift2Value checkedHorizon=0"
2344 in let _ = "pushValue"
2347 reg <- GHC.STRef.newSTRef dupv
2349 in let onException loopInput =
2350 let _ = "onException"
2351 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
2352 let _ = "comment: raiseAgainIfConsumed"
2353 in let _ = "saveInput checkedHorizon=0"
2354 in let _ = "lift2Value checkedHorizon=0"
2355 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
2357 let _ = "choicesBranch checkedHorizon=0"
2359 sr <- GHC.STRef.readSTRef reg
2361 in let _ = "lift2Value checkedHorizon=0"
2362 in let _ = "lift2Value checkedHorizon=0"
2363 in let _ = "comment: satisfy ((GHC.Classes.==) ']')"
2364 in let partialCont buf =
2365 let readFail = readFail
2366 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
2367 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 failInp)
2369 let _ = "checkToken"
2373 #) = readNext buf failInp
2374 in if (GHC.Classes.==) ']' c
2376 let _ = "lift2Value checkedHorizon=2"
2378 ( let _ = "onReturn"
2379 in \farInp farExp v (!inp) buf end ->
2380 let _ = "lift2Value checkedHorizon=0"
2385 ( let _ = "resume.genCode"
2395 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2397 let _ = "checkToken.fail"
2399 Data.Set.Internal.Bin
2401 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2402 ( case inputToken of
2403 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken ']'
2406 Data.Set.Internal.Tip
2407 Data.Set.Internal.Tip
2411 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
2420 failExp GHC.Base.<> farExp
2427 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
2429 let _ = "checkHorizon.newCheck.fail"
2430 in let noMoreInput =
2432 Data.Set.Internal.Bin
2434 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2435 ( case inputToken of
2436 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
2439 Data.Set.Internal.Tip
2440 Data.Set.Internal.Tip
2444 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
2453 failExp GHC.Base.<> farExp
2460 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf GHC.Types.True
2464 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
2465 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
2467 if Symantic.Parser.Machine.Input.nullInput newInput
2469 else partialCont (append buf newInput)
2474 let _ = "choicesBranch.else"
2475 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
2476 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
2479 ( let _ = "onReturn"
2480 in \farInp farExp v (!inp) buf end ->
2481 let _ = "lift2Value checkedHorizon=0"
2483 sr <- GHC.STRef.readSTRef reg
2484 let _ = "lift2Value checkedHorizon=0"
2487 GHC.STRef.writeSTRef reg dupv
2489 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)
2494 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
2496 in loop callerOnReturn inp buf end (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2501 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2506 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2508 let _ = "checkToken.fail"
2510 Data.Set.Internal.Bin
2512 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2513 ( case inputToken of
2514 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '['
2517 Data.Set.Internal.Tip
2518 Data.Set.Internal.Tip
2522 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
2531 failExp GHC.Base.<> Data.Set.Internal.empty
2536 Data.Set.Internal.empty
2538 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnd
2540 let _ = "checkHorizon.newCheck.fail"
2541 in let noMoreInput =
2543 Data.Set.Internal.Bin
2545 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2546 ( case inputToken of
2547 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 5
2550 Data.Set.Internal.Tip
2551 Data.Set.Internal.Tip
2555 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
2564 failExp GHC.Base.<> Data.Set.Internal.empty
2569 Data.Set.Internal.empty
2571 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
2575 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
2576 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
2578 if Symantic.Parser.Machine.Input.nullInput newInput
2580 else partialCont (append buf newInput)
2583 in partialCont callerBuffer
2584 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
2586 in let _ = "comment: satisfy ((GHC.Classes.==) '{')"
2587 in let partialCont buf =
2588 let readFail = Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel
2589 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=4"
2590 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 3 callerInput)
2592 let _ = "checkToken"
2596 #) = readNext buf callerInput
2597 in if (GHC.Classes.==) '{' c
2599 let _ = "lift2Value checkedHorizon=4"
2601 ( let _ = "onReturn"
2602 in \farInp farExp v (!inp) buf end ->
2603 let _ = "lift2Value checkedHorizon=0"
2604 in let _ = "pushValue"
2607 reg <- GHC.STRef.newSTRef dupv
2609 in let onException loopInput =
2610 let _ = "onException"
2611 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
2612 let _ = "comment: raiseAgainIfConsumed"
2613 in let _ = "saveInput checkedHorizon=0"
2614 in let _ = "lift2Value checkedHorizon=0"
2615 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
2617 let _ = "choicesBranch checkedHorizon=0"
2619 sr <- GHC.STRef.readSTRef reg
2621 ( let _ = "onReturn"
2622 in \farInp farExp v (!inp) buf end ->
2623 let _ = "lift2Value checkedHorizon=0"
2624 in let _ = "lift2Value checkedHorizon=0"
2626 ( let _ = "onReturn"
2627 in \farInp farExp v (!inp) buf end ->
2628 let _ = "lift2Value checkedHorizon=0"
2629 in let _ = "comment: satisfy ((GHC.Classes.==) '}')"
2630 in let partialCont buf =
2631 let readFail = readFail
2632 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
2633 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 inp)
2635 let _ = "checkToken"
2639 #) = readNext buf inp
2640 in if (GHC.Classes.==) '}' c
2642 let _ = "lift2Value checkedHorizon=2"
2644 ( let _ = "onReturn"
2645 in \farInp farExp v (!inp) buf end ->
2646 let _ = "lift2Value checkedHorizon=0"
2651 ( let _ = "resume.genCode"
2661 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2663 let _ = "checkToken.fail"
2665 Data.Set.Internal.Bin
2667 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2668 ( case inputToken of
2669 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '}'
2672 Data.Set.Internal.Tip
2673 Data.Set.Internal.Tip
2677 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
2686 failExp GHC.Base.<> farExp
2693 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf end
2695 let _ = "checkHorizon.newCheck.fail"
2696 in let noMoreInput =
2698 Data.Set.Internal.Bin
2700 ( Symantic.Parser.Grammar.Combinators.SomeFailure
2701 ( case inputToken of
2702 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
2705 Data.Set.Internal.Tip
2706 Data.Set.Internal.Tip
2710 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
2719 failExp GHC.Base.<> farExp
2726 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf GHC.Types.True
2730 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
2731 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
2733 if Symantic.Parser.Machine.Input.nullInput newInput
2735 else partialCont (append buf newInput)
2743 Data.Map.Internal.Tip
2748 Data.Map.Internal.Tip
2750 let _ = "choicesBranch.else"
2751 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
2752 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
2754 in let join = \farInp farExp v (!inp) buf end ->
2755 let _ = "lift2Value checkedHorizon=0"
2757 sr <- GHC.STRef.readSTRef reg
2758 let _ = "lift2Value checkedHorizon=0"
2761 GHC.STRef.writeSTRef reg dupv
2763 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)
2764 in let _ = "catch ExceptionFailure checkedHorizon=0"
2765 in let onException =
2766 let _ = "onException"
2767 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
2768 let _ = "comment: raiseAgainIfConsumed"
2769 in let _ = "saveInput checkedHorizon=0"
2770 in let _ = "lift2Value checkedHorizon=0"
2771 in if (GHC.Classes.==) @GHC.Types.Int callerInput failInp
2773 let _ = "choicesBranch checkedHorizon=0"
2774 in let _ = "catch ExceptionFailure checkedHorizon=0"
2775 in let onException =
2776 let _ = "onException"
2777 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
2778 let _ = "comment: raiseAgainIfConsumed"
2779 in let _ = "saveInput checkedHorizon=0"
2780 in let _ = "lift2Value checkedHorizon=0"
2781 in if (GHC.Classes.==) @GHC.Types.Int failInp failInp
2783 let _ = "choicesBranch checkedHorizon=0"
2784 in let _ = "catch ExceptionFailure checkedHorizon=0"
2785 in let onException =
2786 let _ = "onException"
2787 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
2788 let _ = "comment: raiseAgainIfConsumed"
2789 in let _ = "saveInput checkedHorizon=0"
2790 in let _ = "lift2Value checkedHorizon=0"
2791 in if (GHC.Classes.==) @GHC.Types.Int failInp failInp
2793 let _ = "choicesBranch checkedHorizon=0"
2794 in let _ = "pushValue"
2796 ( let _ = "onReturn"
2797 in \farInp farExp v (!inp) buf end ->
2798 let _ = "lift2Value checkedHorizon=0"
2800 ( let _ = "onReturn"
2801 in \farInp farExp v (!inp) buf end ->
2802 let _ = "lift2Value checkedHorizon=0"
2807 ( let _ = "resume.genCode"
2817 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
2822 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
2824 let _ = "choicesBranch.else"
2825 in onException callerInput Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
2826 in let _ = "catch ExceptionFailure checkedHorizon=0"
2827 in let onException =
2828 let _ = "onException"
2829 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
2830 let _ = "loadInput checkedHorizon=0"
2831 in let _ = "checkHorizon.noCheck"
2832 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
2833 in let _ = "pushValue"
2834 in let join = \farInp farExp v (!inp) buf end ->
2835 let _ = "lift2Value checkedHorizon=0"
2837 ( let _ = "onReturn"
2838 in \farInp farExp v (!inp) buf end ->
2839 let _ = "lift2Value checkedHorizon=0"
2840 in let _ = "pushValue"
2843 reg <- GHC.STRef.newSTRef dupv
2845 in let onException loopInput =
2846 let _ = "onException"
2847 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
2848 let _ = "comment: raiseAgainIfConsumed"
2849 in let _ = "saveInput checkedHorizon=0"
2850 in let _ = "lift2Value checkedHorizon=0"
2851 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
2853 let _ = "choicesBranch checkedHorizon=0"
2855 sr <- GHC.STRef.readSTRef reg
2857 ( let _ = "onReturn"
2858 in \farInp farExp v (!inp) buf end ->
2859 let _ = "lift2Value checkedHorizon=0"
2860 in let _ = "lift2Value checkedHorizon=0"
2862 ( let _ = "onReturn"
2863 in \farInp farExp v (!inp) buf end ->
2864 let _ = "lift2Value checkedHorizon=0"
2865 in let _ = "comment: satisfy ((GHC.Classes.==) '=')"
2866 in let partialCont buf =
2867 let readFail = onException
2868 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=6"
2869 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 5 inp)
2871 let _ = "checkToken"
2875 #) = readNext buf inp
2876 in if (GHC.Classes.==) '=' c
2878 let _ = "lift2Value checkedHorizon=6"
2880 ( let _ = "onReturn"
2881 in \farInp farExp v (!inp) buf end ->
2882 let _ = "lift2Value checkedHorizon=0"
2884 ( let _ = "onReturn"
2885 in \farInp farExp v (!inp) buf end ->
2886 let _ = "lift2Value checkedHorizon=0"
2887 in let _ = "pushValue"
2890 reg <- GHC.STRef.newSTRef dupv
2892 in let onException loopInput =
2893 let _ = "onException"
2894 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
2895 let _ = "comment: raiseAgainIfConsumed"
2896 in let _ = "saveInput checkedHorizon=0"
2897 in let _ = "lift2Value checkedHorizon=0"
2898 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
2900 let _ = "choicesBranch checkedHorizon=0"
2902 sr <- GHC.STRef.readSTRef reg
2904 ( let _ = "onReturn"
2905 in \farInp farExp v (!inp) buf end ->
2906 let _ = "lift2Value checkedHorizon=0"
2907 in let _ = "lift2Value checkedHorizon=0"
2909 ( let _ = "onReturn"
2910 in \farInp farExp v (!inp) buf end ->
2911 let _ = "lift2Value checkedHorizon=0"
2913 ( let _ = "onReturn"
2914 in \farInp farExp v (!inp) buf end ->
2915 let _ = "lift2Value checkedHorizon=0"
2922 ( let _ = "resume.genCode"
2932 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2937 Data.Map.Internal.Tip
2942 Data.Map.Internal.Tip
2944 let _ = "choicesBranch.else"
2945 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
2946 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
2949 ( let _ = "onReturn"
2950 in \farInp farExp v (!inp) buf end ->
2951 let _ = "lift2Value checkedHorizon=0"
2953 ( let _ = "onReturn"
2954 in \farInp farExp v (!inp) buf end ->
2955 let _ = "lift2Value checkedHorizon=0"
2957 ( let _ = "onReturn"
2958 in \farInp farExp v (!inp) buf end ->
2959 let _ = "lift2Value checkedHorizon=0"
2961 sr <- GHC.STRef.readSTRef reg
2962 let _ = "lift2Value checkedHorizon=0"
2965 GHC.STRef.writeSTRef reg dupv
2967 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)
2972 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
2977 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
2982 Data.Map.Internal.Tip
2984 in loop (GHC.Err.error "invalid onReturn") inp buf end (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2989 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2994 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
2996 let _ = "checkToken.fail"
2998 Data.Set.Internal.Bin
3000 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3001 ( case inputToken of
3002 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '='
3005 Data.Set.Internal.Tip
3006 Data.Set.Internal.Tip
3010 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
3019 failExp GHC.Base.<> farExp
3026 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf end
3028 let _ = "checkHorizon.newCheck.fail"
3029 in let noMoreInput =
3031 Data.Set.Internal.Bin
3033 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3034 ( case inputToken of
3035 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 6
3038 Data.Set.Internal.Tip
3039 Data.Set.Internal.Tip
3043 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
3052 failExp GHC.Base.<> farExp
3059 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf GHC.Types.True
3063 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
3064 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
3066 if Symantic.Parser.Machine.Input.nullInput newInput
3068 else partialCont (append buf newInput)
3076 Data.Map.Internal.Tip
3081 Data.Map.Internal.Tip
3083 let _ = "choicesBranch.else"
3084 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
3085 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
3088 ( let _ = "onReturn"
3089 in \farInp farExp v (!inp) buf end ->
3090 let _ = "lift2Value checkedHorizon=0"
3092 ( let _ = "onReturn"
3093 in \farInp farExp v (!inp) buf end ->
3094 let _ = "lift2Value checkedHorizon=0"
3096 ( let _ = "onReturn"
3097 in \farInp farExp v (!inp) buf end ->
3098 let _ = "lift2Value checkedHorizon=0"
3100 sr <- GHC.STRef.readSTRef reg
3101 let _ = "lift2Value checkedHorizon=0"
3104 GHC.STRef.writeSTRef reg dupv
3106 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)
3111 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
3116 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
3121 Data.Map.Internal.Tip
3123 in loop (GHC.Err.error "invalid onReturn") inp buf end (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
3128 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
3129 in let _ = "catch ExceptionFailure checkedHorizon=0"
3130 in let onException =
3131 let _ = "onException"
3132 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
3133 let _ = "comment: raiseAgainIfConsumed"
3134 in let _ = "saveInput checkedHorizon=0"
3135 in let _ = "lift2Value checkedHorizon=0"
3136 in if (GHC.Classes.==) @GHC.Types.Int failInp failInp
3138 let _ = "choicesBranch checkedHorizon=0"
3140 ( let _ = "onReturn"
3141 in \farInp farExp v (!inp) buf end ->
3146 ( let _ = "resume.genCode"
3156 Data.Map.Internal.Tip
3158 let _ = "choicesBranch.else"
3159 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
3160 in let _ = "pushValue"
3161 in let _ = "catch ExceptionFailure checkedHorizon=0"
3162 in let onException =
3163 let _ = "onException"
3164 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
3165 let _ = "loadInput checkedHorizon=0"
3166 in let _ = "checkHorizon.noCheck"
3167 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
3168 in let _ = "pushValue"
3169 in let _ = "comment: satisfy ((GHC.Classes.==) 'v')"
3170 in let partialCont buf =
3171 let readFail = onException
3172 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=11"
3173 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 10 failInp)
3175 let _ = "checkToken"
3179 #) = readNext buf failInp
3180 in if (GHC.Classes.==) 'v' c
3182 let _ = "lift2Value checkedHorizon=11"
3183 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
3184 in let _ = "checkHorizon.oldCheck: checkedHorizon=11"
3185 in let _ = "checkToken"
3189 #) = readNext buf cs
3190 in if (GHC.Classes.==) 'a' c
3192 let _ = "lift2Value checkedHorizon=10"
3193 in let _ = "comment: satisfy ((GHC.Classes.==) 'r')"
3194 in let _ = "checkHorizon.oldCheck: checkedHorizon=10"
3195 in let _ = "checkToken"
3199 #) = readNext buf cs
3200 in if (GHC.Classes.==) 'r' c
3202 let _ = "lift2Value checkedHorizon=9"
3204 in let _ = "lift2Value checkedHorizon=9"
3210 ( let _ = "resume.genCode"
3217 let _ = "checkToken.fail"
3219 Data.Set.Internal.Bin
3221 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3222 ( case inputToken of
3223 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'r'
3226 Data.Set.Internal.Tip
3227 Data.Set.Internal.Tip
3231 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
3240 failExp GHC.Base.<> farExp
3247 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf end
3249 let _ = "checkToken.fail"
3251 Data.Set.Internal.Bin
3253 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3254 ( case inputToken of
3255 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
3258 Data.Set.Internal.Tip
3259 Data.Set.Internal.Tip
3263 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
3272 failExp GHC.Base.<> farExp
3279 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf end
3281 let _ = "checkToken.fail"
3283 Data.Set.Internal.Bin
3285 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3286 ( case inputToken of
3287 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'v'
3290 Data.Set.Internal.Tip
3291 Data.Set.Internal.Tip
3295 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
3304 failExp GHC.Base.<> farExp
3311 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
3313 let _ = "checkHorizon.newCheck.fail"
3314 in let noMoreInput =
3316 Data.Set.Internal.Bin
3318 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3319 ( case inputToken of
3320 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 11
3323 Data.Set.Internal.Tip
3324 Data.Set.Internal.Tip
3328 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
3337 failExp GHC.Base.<> farExp
3344 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf GHC.Types.True
3348 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
3349 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
3351 if Symantic.Parser.Machine.Input.nullInput newInput
3353 else partialCont (append buf newInput)
3358 let _ = "choicesBranch.else"
3359 in onException callerInput Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
3360 in let _ = "pushValue"
3361 in let _ = "catch ExceptionFailure checkedHorizon=0"
3362 in let onException =
3363 let _ = "onException"
3364 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
3365 let _ = "loadInput checkedHorizon=0"
3366 in let _ = "checkHorizon.noCheck"
3367 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
3368 in let _ = "pushValue"
3369 in let _ = "comment: satisfy ((GHC.Classes.==) 'w')"
3370 in let partialCont buf =
3371 let readFail = onException
3372 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=7"
3373 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 6 failInp)
3375 let _ = "checkToken"
3379 #) = readNext buf failInp
3380 in if (GHC.Classes.==) 'w' c
3382 let _ = "lift2Value checkedHorizon=7"
3383 in let _ = "comment: satisfy ((GHC.Classes.==) 'h')"
3384 in let _ = "checkHorizon.oldCheck: checkedHorizon=7"
3385 in let _ = "checkToken"
3389 #) = readNext buf cs
3390 in if (GHC.Classes.==) 'h' c
3392 let _ = "lift2Value checkedHorizon=6"
3393 in let _ = "comment: satisfy ((GHC.Classes.==) 'i')"
3394 in let _ = "checkHorizon.oldCheck: checkedHorizon=6"
3395 in let _ = "checkToken"
3399 #) = readNext buf cs
3400 in if (GHC.Classes.==) 'i' c
3402 let _ = "lift2Value checkedHorizon=5"
3403 in let _ = "comment: satisfy ((GHC.Classes.==) 'l')"
3404 in let _ = "checkHorizon.oldCheck: checkedHorizon=5"
3405 in let _ = "checkToken"
3409 #) = readNext buf cs
3410 in if (GHC.Classes.==) 'l' c
3412 let _ = "lift2Value checkedHorizon=4"
3413 in let _ = "comment: satisfy ((GHC.Classes.==) 'e')"
3414 in let _ = "checkHorizon.oldCheck: checkedHorizon=4"
3415 in let _ = "checkToken"
3419 #) = readNext buf cs
3420 in if (GHC.Classes.==) 'e' c
3422 let _ = "lift2Value checkedHorizon=3"
3424 in let _ = "lift2Value checkedHorizon=3"
3426 ( let _ = "onReturn"
3427 in \farInp farExp v (!inp) buf end ->
3428 let _ = "lift2Value checkedHorizon=0"
3430 ( let _ = "onReturn"
3431 in \farInp farExp v (!inp) buf end ->
3432 let _ = "lift2Value checkedHorizon=0"
3438 ( let _ = "resume.genCode"
3448 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
3453 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure onException Data.Map.Internal.Tip Data.Map.Internal.Tip)
3455 let _ = "checkToken.fail"
3457 Data.Set.Internal.Bin
3459 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3460 ( case inputToken of
3461 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'e'
3464 Data.Set.Internal.Tip
3465 Data.Set.Internal.Tip
3469 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
3478 failExp GHC.Base.<> farExp
3485 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf end
3487 let _ = "checkToken.fail"
3489 Data.Set.Internal.Bin
3491 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3492 ( case inputToken of
3493 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'l'
3496 Data.Set.Internal.Tip
3497 Data.Set.Internal.Tip
3501 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
3510 failExp GHC.Base.<> farExp
3517 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf end
3519 let _ = "checkToken.fail"
3521 Data.Set.Internal.Bin
3523 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3524 ( case inputToken of
3525 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'i'
3528 Data.Set.Internal.Tip
3529 Data.Set.Internal.Tip
3533 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
3542 failExp GHC.Base.<> farExp
3549 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf end
3551 let _ = "checkToken.fail"
3553 Data.Set.Internal.Bin
3555 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3556 ( case inputToken of
3557 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'h'
3560 Data.Set.Internal.Tip
3561 Data.Set.Internal.Tip
3565 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
3574 failExp GHC.Base.<> farExp
3581 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf end
3583 let _ = "checkToken.fail"
3585 Data.Set.Internal.Bin
3587 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3588 ( case inputToken of
3589 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'w'
3592 Data.Set.Internal.Tip
3593 Data.Set.Internal.Tip
3597 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
3606 failExp GHC.Base.<> farExp
3613 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
3615 let _ = "checkHorizon.newCheck.fail"
3616 in let noMoreInput =
3618 Data.Set.Internal.Bin
3620 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3621 ( case inputToken of
3622 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 7
3625 Data.Set.Internal.Tip
3626 Data.Set.Internal.Tip
3630 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
3639 failExp GHC.Base.<> farExp
3646 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf GHC.Types.True
3650 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
3651 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
3653 if Symantic.Parser.Machine.Input.nullInput newInput
3655 else partialCont (append buf newInput)
3660 let _ = "choicesBranch.else"
3661 in onException callerInput Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
3662 in let _ = "pushValue"
3663 in let _ = "catch ExceptionFailure checkedHorizon=0"
3664 in let onException =
3665 let _ = "onException"
3666 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
3667 let _ = "loadInput checkedHorizon=0"
3668 in let _ = "checkHorizon.noCheck"
3669 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf end
3670 in let _ = "pushValue"
3671 in let _ = "comment: satisfy ((GHC.Classes.==) 'i')"
3672 in let partialCont buf =
3673 let readFail = onException
3674 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
3675 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 1 callerInput)
3677 let _ = "checkToken"
3681 #) = readNext buf callerInput
3682 in if (GHC.Classes.==) 'i' c
3684 let _ = "lift2Value checkedHorizon=2"
3685 in let _ = "comment: satisfy ((GHC.Classes.==) 'f')"
3686 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
3687 in let _ = "checkToken"
3691 #) = readNext buf cs
3692 in if (GHC.Classes.==) 'f' c
3694 let _ = "lift2Value checkedHorizon=1"
3696 in let _ = "lift2Value checkedHorizon=1"
3702 ( let _ = "resume.genCode"
3709 let _ = "checkToken.fail"
3711 Data.Set.Internal.Bin
3713 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3714 ( case inputToken of
3715 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'f'
3718 Data.Set.Internal.Tip
3719 Data.Set.Internal.Tip
3723 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
3732 failExp GHC.Base.<> farExp
3739 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf callerEnded
3741 let _ = "checkToken.fail"
3743 Data.Set.Internal.Bin
3745 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3746 ( case inputToken of
3747 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'i'
3750 Data.Set.Internal.Tip
3751 Data.Set.Internal.Tip
3755 #) = case GHC.Classes.compare @GHC.Types.Int farInp callerInput of
3764 failExp GHC.Base.<> farExp
3771 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnded
3773 let _ = "checkHorizon.newCheck.fail"
3774 in let noMoreInput =
3776 Data.Set.Internal.Bin
3778 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3779 ( case inputToken of
3780 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
3783 Data.Set.Internal.Tip
3784 Data.Set.Internal.Tip
3788 #) = case GHC.Classes.compare @GHC.Types.Int farInp callerInput of
3797 failExp GHC.Base.<> farExp
3804 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
3808 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
3809 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
3811 if Symantic.Parser.Machine.Input.nullInput newInput
3813 else partialCont (append buf newInput)
3816 in partialCont callerBuffer
3818 in loop callerOnReturn inp buf end (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
3823 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
3825 let _ = "checkToken.fail"
3827 Data.Set.Internal.Bin
3829 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3830 ( case inputToken of
3831 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken '{'
3834 Data.Set.Internal.Tip
3835 Data.Set.Internal.Tip
3839 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
3848 failExp GHC.Base.<> Data.Set.Internal.empty
3853 Data.Set.Internal.empty
3855 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnd
3857 let _ = "checkHorizon.newCheck.fail"
3858 in let noMoreInput =
3860 Data.Set.Internal.Bin
3862 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3863 ( case inputToken of
3864 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 4
3867 Data.Set.Internal.Tip
3868 Data.Set.Internal.Tip
3872 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
3881 failExp GHC.Base.<> Data.Set.Internal.empty
3886 Data.Set.Internal.empty
3888 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
3892 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
3893 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
3895 if Symantic.Parser.Machine.Input.nullInput newInput
3897 else partialCont (append buf newInput)
3900 in partialCont callerBuffer
3901 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
3903 in let _ = "comment: satisfy GHC.Unicode.isSpace"
3904 in let partialCont buf =
3905 let readFail = Data.Map.Strict.Internal.findWithDefault (Symantic.Parser.Machine.Generate.unForallOnException finalRaise) Symantic.Parser.Grammar.Combinators.ExceptionFailure callerOnExceptionStackByLabel
3906 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
3907 in if readMore buf callerInput
3909 let _ = "checkToken"
3913 #) = readNext buf callerInput
3914 in if GHC.Unicode.isSpace c
3916 let _ = "lift2Value checkedHorizon=1"
3920 Data.Set.Internal.empty
3921 ( let _ = "resume.genCode"
3928 let _ = "checkToken.fail"
3929 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput initPos Data.Set.Internal.empty buf callerEnd
3931 let _ = "checkHorizon.newCheck.fail"
3932 in let noMoreInput =
3934 Data.Set.Internal.Bin
3936 ( Symantic.Parser.Grammar.Combinators.SomeFailure
3937 ( case inputToken of
3938 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
3941 Data.Set.Internal.Tip
3942 Data.Set.Internal.Tip
3946 #) = case GHC.Classes.compare @GHC.Types.Int initPos callerInput of
3955 failExp GHC.Base.<> Data.Set.Internal.empty
3960 Data.Set.Internal.empty
3962 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
3966 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
3967 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
3969 if Symantic.Parser.Machine.Input.nullInput newInput
3971 else partialCont (append buf newInput)
3974 in partialCont callerBuffer
3975 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
3980 Data.Set.Internal.empty
3981 ( let _ = "resume.genCode"
3987 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
3992 Data.Set.Internal.empty
3993 ( let _ = "resume.genCode"
3999 name = \(!callerOnReturn) (!callerInput) (!callerBuffer) (!callerEnd) (!callerOnExceptionStackByLabel) ->
4004 Data.Set.Internal.empty
4005 ( let _ = "resume.genCode"
4011 in let _ = "pushValue"
4013 ( let _ = "onReturn"
4014 in \farInp farExp v (!inp) buf end ->
4015 let _ = "lift2Value checkedHorizon=0"
4016 in let _ = "pushValue"
4019 reg <- GHC.STRef.newSTRef dupv
4021 in let onException loopInput =
4022 let _ = "onException"
4023 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
4024 let _ = "comment: raiseAgainIfConsumed"
4025 in let _ = "saveInput checkedHorizon=0"
4026 in let _ = "lift2Value checkedHorizon=0"
4027 in if (GHC.Classes.==) @GHC.Types.Int loopInput failInp
4029 let _ = "choicesBranch checkedHorizon=0"
4031 sr <- GHC.STRef.readSTRef reg
4033 ( let _ = "onReturn"
4034 in \farInp farExp v (!inp) buf end ->
4035 let _ = "lift2Value checkedHorizon=0"
4036 in let _ = "lift2Value checkedHorizon=0"
4037 in let join = \farInp farExp v (!inp) buf end ->
4038 let _ = "lift2Value checkedHorizon=0"
4043 ( let _ = "resume.genCode"
4044 in GHC.Show.show GHC.Tuple . ()
4049 in let _ = "catch ExceptionFailure checkedHorizon=0"
4050 in let onException =
4051 let _ = "onException"
4052 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
4053 let _ = "comment: raiseAgainIfConsumed"
4054 in let _ = "saveInput checkedHorizon=0"
4055 in let _ = "lift2Value checkedHorizon=0"
4056 in if (GHC.Classes.==) @GHC.Types.Int inp failInp
4058 let _ = "choicesBranch checkedHorizon=0"
4059 in let _ = "comment: eof.fail"
4060 in let failExp = Data.Set.Internal.Bin 1 (Symantic.Parser.Grammar.Combinators.SomeFailure Symantic.Parser.Grammar.Combinators.FailureEnd) Data.Set.Internal.Tip Data.Set.Internal.Tip
4064 #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
4073 failExp GHC.Base.<> farExp
4080 in Symantic.Parser.Machine.Generate.unForallOnException finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
4082 let _ = "choicesBranch.else"
4083 in Symantic.Parser.Machine.Generate.unForallOnException finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
4084 in let _ = "comment: negLook"
4085 in let _ = "catch ExceptionFailure checkedHorizon=0"
4086 in let onException =
4087 let _ = "onException"
4088 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
4089 let _ = "comment: negLook.reset"
4090 in let _ = "loadInput checkedHorizon=0"
4091 in let _ = "checkHorizon.noCheck"
4092 in let _ = "pushValue"
4098 ( let _ = "resume.genCode"
4104 in let _ = "comment: negLook.ahead"
4105 in let _ = "saveInput checkedHorizon=0"
4106 in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
4107 in let partialCont buf =
4108 let readFail = onException
4109 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
4110 in if readMore buf inp
4112 let _ = "checkToken"
4116 #) = readNext buf inp
4117 in let _ = "popValue"
4119 in let _ = "loadInput checkedHorizon=0"
4120 in let _ = "checkHorizon.noCheck"
4121 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf end
4123 let _ = "checkHorizon.newCheck.fail"
4124 in let noMoreInput =
4126 Data.Set.Internal.Bin
4128 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4129 ( case inputToken of
4130 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
4133 Data.Set.Internal.Tip
4134 Data.Set.Internal.Tip
4138 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
4147 failExp GHC.Base.<> farExp
4154 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf GHC.Types.True
4158 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
4159 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
4161 if Symantic.Parser.Machine.Input.nullInput newInput
4163 else partialCont (append buf newInput)
4171 Data.Map.Internal.Tip
4173 let _ = "choicesBranch.else"
4174 in Symantic.Parser.Machine.Generate.unForallOnException finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
4175 loop = \_callerOnReturn callerInput callerBuffer callerEnded callerOnExceptionStackByLabel ->
4177 in let _ = "catch ExceptionFailure checkedHorizon=0"
4178 in let onException =
4179 let _ = "onException"
4180 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
4181 let _ = "loadInput checkedHorizon=0"
4182 in let _ = "checkHorizon.noCheck"
4183 in onException callerInput Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf end
4184 in let _ = "pushValue"
4185 in let _ = "comment: satisfy ((GHC.Classes.==) 'f')"
4186 in let partialCont buf =
4187 let readFail = onException
4188 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=18"
4189 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 17 callerInput)
4191 let _ = "checkToken"
4195 #) = readNext buf callerInput
4196 in if (GHC.Classes.==) 'f' c
4198 let _ = "lift2Value checkedHorizon=18"
4199 in let _ = "comment: satisfy ((GHC.Classes.==) 'u')"
4200 in let _ = "checkHorizon.oldCheck: checkedHorizon=18"
4201 in let _ = "checkToken"
4205 #) = readNext buf cs
4206 in if (GHC.Classes.==) 'u' c
4208 let _ = "lift2Value checkedHorizon=17"
4209 in let _ = "comment: satisfy ((GHC.Classes.==) 'n')"
4210 in let _ = "checkHorizon.oldCheck: checkedHorizon=17"
4211 in let _ = "checkToken"
4215 #) = readNext buf cs
4216 in if (GHC.Classes.==) 'n' c
4218 let _ = "lift2Value checkedHorizon=16"
4219 in let _ = "comment: satisfy ((GHC.Classes.==) 'c')"
4220 in let _ = "checkHorizon.oldCheck: checkedHorizon=16"
4221 in let _ = "checkToken"
4225 #) = readNext buf cs
4226 in if (GHC.Classes.==) 'c' c
4228 let _ = "lift2Value checkedHorizon=15"
4229 in let _ = "comment: satisfy ((GHC.Classes.==) 't')"
4230 in let _ = "checkHorizon.oldCheck: checkedHorizon=15"
4231 in let _ = "checkToken"
4235 #) = readNext buf cs
4236 in if (GHC.Classes.==) 't' c
4238 let _ = "lift2Value checkedHorizon=14"
4239 in let _ = "comment: satisfy ((GHC.Classes.==) 'i')"
4240 in let _ = "checkHorizon.oldCheck: checkedHorizon=14"
4241 in let _ = "checkToken"
4245 #) = readNext buf cs
4246 in if (GHC.Classes.==) 'i' c
4248 let _ = "lift2Value checkedHorizon=13"
4249 in let _ = "comment: satisfy ((GHC.Classes.==) 'o')"
4250 in let _ = "checkHorizon.oldCheck: checkedHorizon=13"
4251 in let _ = "checkToken"
4255 #) = readNext buf cs
4256 in if (GHC.Classes.==) 'o' c
4258 let _ = "lift2Value checkedHorizon=12"
4259 in let _ = "comment: satisfy ((GHC.Classes.==) 'n')"
4260 in let _ = "checkHorizon.oldCheck: checkedHorizon=12"
4261 in let _ = "checkToken"
4265 #) = readNext buf cs
4266 in if (GHC.Classes.==) 'n' c
4268 let _ = "lift2Value checkedHorizon=11"
4270 in let _ = "lift2Value checkedHorizon=11"
4272 ( let _ = "onReturn"
4273 in \farInp farExp v (!inp) buf end ->
4274 let _ = "lift2Value checkedHorizon=0"
4276 ( let _ = "onReturn"
4277 in \farInp farExp v (!inp) buf end ->
4278 let _ = "lift2Value checkedHorizon=0"
4280 ( let _ = "onReturn"
4281 in \farInp farExp v (!inp) buf end ->
4282 let _ = "lift2Value checkedHorizon=0"
4283 in let join = \farInp farExp v (!inp) buf end ->
4284 let _ = "lift2Value checkedHorizon=0"
4286 ( let _ = "onReturn"
4287 in \farInp farExp v (!inp) buf end ->
4288 let _ = "lift2Value checkedHorizon=0"
4290 ( let _ = "onReturn"
4291 in \farInp farExp v (!inp) buf end ->
4292 let _ = "lift2Value checkedHorizon=0"
4294 sr <- GHC.STRef.readSTRef reg
4295 let _ = "lift2Value checkedHorizon=0"
4298 GHC.STRef.writeSTRef reg dupv
4300 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)
4305 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
4310 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
4311 in let _ = "catch ExceptionFailure checkedHorizon=0"
4312 in let onException =
4313 let _ = "onException"
4314 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
4315 let _ = "comment: raiseAgainIfConsumed"
4316 in let _ = "saveInput checkedHorizon=0"
4317 in let _ = "lift2Value checkedHorizon=0"
4318 in if (GHC.Classes.==) @GHC.Types.Int inp failInp
4320 let _ = "choicesBranch checkedHorizon=0"
4322 ( let _ = "onReturn"
4323 in \farInp farExp v (!inp) buf end ->
4328 ( let _ = "resume.genCode"
4338 Data.Map.Internal.Tip
4340 let _ = "choicesBranch.else"
4341 in onException callerInput Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
4342 in let _ = "pushValue"
4343 in let _ = "comment: satisfy ((GHC.Classes.==) ':')"
4344 in let partialCont buf =
4345 let readFail = onException
4346 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=8"
4347 in if readMore buf ((GHC.Num.+) @GHC.Types.Int 7 inp)
4349 let _ = "checkToken"
4353 #) = readNext buf inp
4354 in if (GHC.Classes.==) ':' c
4356 let _ = "lift2Value checkedHorizon=8"
4358 ( let _ = "onReturn"
4359 in \farInp farExp v (!inp) buf end ->
4360 let _ = "lift2Value checkedHorizon=0"
4362 ( let _ = "onReturn"
4363 in \farInp farExp v (!inp) buf end ->
4364 let _ = "lift2Value checkedHorizon=0"
4370 ( let _ = "resume.genCode"
4380 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
4385 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
4387 let _ = "checkToken.fail"
4389 Data.Set.Internal.Bin
4391 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4392 ( case inputToken of
4393 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken ':'
4396 Data.Set.Internal.Tip
4397 Data.Set.Internal.Tip
4401 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
4410 failExp GHC.Base.<> farExp
4417 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf end
4419 let _ = "checkHorizon.newCheck.fail"
4420 in let noMoreInput =
4422 Data.Set.Internal.Bin
4424 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4425 ( case inputToken of
4426 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 8
4429 Data.Set.Internal.Tip
4430 Data.Set.Internal.Tip
4434 #) = case GHC.Classes.compare @GHC.Types.Int farInp inp of
4443 failExp GHC.Base.<> farExp
4450 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp buf GHC.Types.True
4454 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
4455 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
4457 if Symantic.Parser.Machine.Input.nullInput newInput
4459 else partialCont (append buf newInput)
4467 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
4472 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
4477 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure (onException callerInput) Data.Map.Internal.Tip Data.Map.Internal.Tip)
4479 let _ = "checkToken.fail"
4481 Data.Set.Internal.Bin
4483 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4484 ( case inputToken of
4485 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'n'
4488 Data.Set.Internal.Tip
4489 Data.Set.Internal.Tip
4493 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
4502 failExp GHC.Base.<> farExp
4509 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf callerEnded
4511 let _ = "checkToken.fail"
4513 Data.Set.Internal.Bin
4515 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4516 ( case inputToken of
4517 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'o'
4520 Data.Set.Internal.Tip
4521 Data.Set.Internal.Tip
4525 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
4534 failExp GHC.Base.<> farExp
4541 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf callerEnded
4543 let _ = "checkToken.fail"
4545 Data.Set.Internal.Bin
4547 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4548 ( case inputToken of
4549 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'i'
4552 Data.Set.Internal.Tip
4553 Data.Set.Internal.Tip
4557 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
4566 failExp GHC.Base.<> farExp
4573 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf callerEnded
4575 let _ = "checkToken.fail"
4577 Data.Set.Internal.Bin
4579 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4580 ( case inputToken of
4581 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 't'
4584 Data.Set.Internal.Tip
4585 Data.Set.Internal.Tip
4589 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
4598 failExp GHC.Base.<> farExp
4605 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf callerEnded
4607 let _ = "checkToken.fail"
4609 Data.Set.Internal.Bin
4611 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4612 ( case inputToken of
4613 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'c'
4616 Data.Set.Internal.Tip
4617 Data.Set.Internal.Tip
4621 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
4630 failExp GHC.Base.<> farExp
4637 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf callerEnded
4639 let _ = "checkToken.fail"
4641 Data.Set.Internal.Bin
4643 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4644 ( case inputToken of
4645 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'n'
4648 Data.Set.Internal.Tip
4649 Data.Set.Internal.Tip
4653 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
4662 failExp GHC.Base.<> farExp
4669 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf callerEnded
4671 let _ = "checkToken.fail"
4673 Data.Set.Internal.Bin
4675 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4676 ( case inputToken of
4677 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'u'
4680 Data.Set.Internal.Tip
4681 Data.Set.Internal.Tip
4685 #) = case GHC.Classes.compare @GHC.Types.Int farInp cs of
4694 failExp GHC.Base.<> farExp
4701 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp buf callerEnded
4703 let _ = "checkToken.fail"
4705 Data.Set.Internal.Bin
4707 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4708 ( case inputToken of
4709 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'f'
4712 Data.Set.Internal.Tip
4713 Data.Set.Internal.Tip
4717 #) = case GHC.Classes.compare @GHC.Types.Int farInp callerInput of
4726 failExp GHC.Base.<> farExp
4733 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf callerEnded
4735 let _ = "checkHorizon.newCheck.fail"
4736 in let noMoreInput =
4738 Data.Set.Internal.Bin
4740 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4741 ( case inputToken of
4742 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 18
4745 Data.Set.Internal.Tip
4746 Data.Set.Internal.Tip
4750 #) = case GHC.Classes.compare @GHC.Types.Int farInp callerInput of
4759 failExp GHC.Base.<> farExp
4766 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callerInput farInp farExp buf GHC.Types.True
4770 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
4771 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
4773 if Symantic.Parser.Machine.Input.nullInput newInput
4775 else partialCont (append buf newInput)
4778 in partialCont callerBuffer
4780 in loop finalRet inp buf end Data.Map.Internal.Tip
4785 Data.Map.Internal.Tip
4787 let _ = "checkHorizon.newCheck.fail"
4788 in let noMoreInput =
4790 Data.Set.Internal.Bin
4792 ( Symantic.Parser.Grammar.Combinators.SomeFailure
4793 ( case inputToken of
4794 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
4797 Data.Set.Internal.Tip
4798 Data.Set.Internal.Tip
4802 #) = case GHC.Classes.compare @GHC.Types.Int initPos initPos of
4811 failExp GHC.Base.<> Data.Set.Internal.empty
4816 Data.Set.Internal.empty
4818 in Symantic.Parser.Machine.Generate.unForallOnException finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos farInp farExp buf GHC.Types.True
4819 in if GHC.Types.False
4822 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
4823 ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
4825 if Symantic.Parser.Machine.Input.nullInput newInput
4827 else partialCont (append buf newInput)
4830 in partialCont initBuffer