1 \(input_0 :: inp_6989586621679041345) ->
9 let next_6 buf_7 pos_8 =
10 let !( Data.Text.Unsafe.Iter
13 ) = Symantic.Parser.Machine.Input.Text.Buffer.iter buf_7 pos_8
18 more_11 buf_12 pos_13 = pos_13 GHC.Classes.< Symantic.Parser.Machine.Input.Text.Buffer.length buf_12
19 append_14 = Symantic.Parser.Machine.Input.Text.Buffer.pappend
21 Symantic.Parser.Machine.Input.Text.Buffer.buffer input_0,
27 finalRet_15 = \_farInp_16 _farExp_17 v_18 _inp_19 -> Symantic.Parser.Machine.Generate.returnST GHC.Base.$ Symantic.Parser.Machine.Generate.ResultDone v_18
30 Symantic.Parser.Machine.Generate.OnException
31 inp_6989586621679041345
32 b_21 = \(!exn_22) _failInp_23 (!farInp_24) (!farExp_25) buf_26 ->
33 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
34 Symantic.Parser.Machine.Generate.ResultError
35 Symantic.Parser.Machine.Generate.ParsingError
36 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.position farInp_24,
37 Symantic.Parser.Machine.Generate.parsingErrorException = exn_22,
38 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
39 if readMore_3 buf_26 farInp_24
45 #) = readNext_4 buf_26 farInp_24
48 else GHC.Maybe.Nothing,
49 Symantic.Parser.Machine.Generate.parsingErrorExpecting =
53 Data.Set.Internal.foldr
57 ) -> case Symantic.Parser.Grammar.Combinators.unSomeFailure f_30 of
58 GHC.Maybe.Just (Symantic.Parser.Grammar.Combinators.FailureHorizon h_33 :: Symantic.Parser.Grammar.Combinators.Failure (Symantic.Parser.Grammar.Combinators.CombSatisfiable (Symantic.Parser.Machine.Input.InputToken inp_6989586621679041345)))
59 | GHC.Maybe.Just old_34 <- minH_31 ->
60 ( GHC.Maybe.Just (GHC.Classes.min old_34 h_33),
63 | GHC.Base.otherwise ->
64 ( GHC.Maybe.Just h_33,
69 f_30 GHC.Types.: acc_32
76 in Data.Set.Internal.fromList GHC.Base.$
78 GHC.Maybe.Just h_35 -> Symantic.Parser.Grammar.Combinators.SomeFailure (Symantic.Parser.Grammar.Combinators.FailureHorizon @(Symantic.Parser.Machine.Input.InputToken inp_6989586621679041345) h_35) GHC.Types.: res_29
79 GHC.Maybe.Nothing -> res_29
82 in let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp_6989586621679041345)
83 in let partialCont_36 buf_37 =
84 let readFail_38 = finalRaise_20
85 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=3"
86 in if readMore_3 buf_37 ((GHC.Num.+) @GHC.Types.Int 2 initPos_2)
89 in let _ = "pushValue"
90 in let join_39 = \farInp_40 farExp_41 v_42 (!inp_43) ->
91 let _ = "lift2Value checkedHorizon=0"
92 in let _ = "catch ExceptionFailure checkedHorizon=0"
93 in let onException_44 =
95 in \(!_exn_45) (!failInp_46) (!farInp_47) (!farExp_48) buf_49 ->
96 let _ = "loadInput checkedHorizon=0"
97 in let _ = "checkHorizon.noCheck"
98 in finalRaise_20 Symantic.Parser.Grammar.Combinators.ExceptionFailure inp_43 farInp_47 farExp_48 buf_49
99 in let _ = "pushValue"
100 in let _ = "comment: satisfy ((GHC.Classes.==) 'd')"
101 in let partialCont_50 buf_51 =
102 let readFail_52 = onException_44
103 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=3"
104 in if readMore_3 buf_51 ((GHC.Num.+) @GHC.Types.Int 2 inp_43)
110 #) = readNext_4 buf_51 inp_43
111 in if (GHC.Classes.==) 'd' c_53
113 let _ = "lift2Value checkedHorizon=3"
114 in let _ = "comment: satisfy ((GHC.Classes.==) 'e')"
115 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
116 in let _ = "checkToken"
120 #) = readNext_4 buf_51 cs_54
121 in if (GHC.Classes.==) 'e' c_55
123 let _ = "lift2Value checkedHorizon=2"
124 in let _ = "comment: satisfy ((GHC.Classes.==) 'f')"
125 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
126 in let _ = "checkToken"
130 #) = readNext_4 buf_51 cs_56
131 in if (GHC.Classes.==) 'f' c_57
133 let _ = "lift2Value checkedHorizon=1"
135 in let _ = "lift2Value checkedHorizon=1"
140 ( let _ = "resume.genCode"
141 in GHC.Show.show GHC.Tuple . ()
145 let _ = "checkToken.fail"
146 in readFail_52 Symantic.Parser.Grammar.Combinators.ExceptionFailure cs_56 farInp_40 farExp_41 buf_51
148 let _ = "checkToken.fail"
149 in readFail_52 Symantic.Parser.Grammar.Combinators.ExceptionFailure cs_54 farInp_40 farExp_41 buf_51
151 let _ = "checkToken.fail"
152 in readFail_52 Symantic.Parser.Grammar.Combinators.ExceptionFailure inp_43 farInp_40 farExp_41 buf_51
154 let _ = "checkHorizon.newCheck.fail"
156 Data.Set.Internal.Bin
158 ( Symantic.Parser.Grammar.Combinators.SomeFailure
160 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok'_6989586621679072653) -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok'_6989586621679072653 3
163 Data.Set.Internal.Tip
164 Data.Set.Internal.Tip
168 #) = case GHC.Classes.compare @GHC.Types.Int farInp_40 inp_43 of
177 failExp_59 GHC.Base.<> farExp_41
184 in readFail_52 Symantic.Parser.Grammar.Combinators.ExceptionFailure inp_43 farInp_60 farExp_61 buf_51
185 in partialCont_50 buf_37
186 in let _ = "catch ExceptionFailure checkedHorizon=3"
187 in let onException_62 =
188 let _ = "onException"
189 in \(!_exn_63) (!failInp_64) (!farInp_65) (!farExp_66) buf_67 ->
190 let _ = "comment: raiseAgainIfConsumed"
191 in let _ = "saveInput checkedHorizon=0"
192 in let _ = "lift2Value checkedHorizon=0"
193 in if (GHC.Classes.==) @GHC.Types.Int initPos_2 failInp_64
195 let _ = "choicesBranch checkedHorizon=0"
196 in let _ = "catch ExceptionFailure checkedHorizon=0"
197 in let onException_68 =
198 let _ = "onException"
199 in \(!_exn_69) (!failInp_70) (!farInp_71) (!farExp_72) buf_73 ->
200 let _ = "loadInput checkedHorizon=0"
201 in let _ = "checkHorizon.noCheck"
202 in finalRaise_20 Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp_64 farInp_71 farExp_72 buf_73
203 in let _ = "pushValue"
209 ( let _ = "resume.genCode"
214 let _ = "choicesBranch.else"
215 in finalRaise_20 Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp_64 farInp_65 farExp_66 buf_67
216 in let _ = "catch ExceptionFailure checkedHorizon=3"
217 in let onException_74 =
218 let _ = "onException"
219 in \(!_exn_75) (!failInp_76) (!farInp_77) (!farExp_78) buf_79 ->
220 let _ = "loadInput checkedHorizon=3"
221 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
222 in onException_62 Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos_2 farInp_77 farExp_78 buf_79
223 in let _ = "pushValue"
224 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
225 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
226 in let _ = "checkToken"
230 #) = readNext_4 buf_37 initPos_2
231 in if (GHC.Classes.==) 'a' c_80
233 let _ = "lift2Value checkedHorizon=2"
234 in let _ = "comment: satisfy ((GHC.Classes.==) 'b')"
235 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
236 in let _ = "checkToken"
240 #) = readNext_4 buf_37 cs_81
241 in if (GHC.Classes.==) 'b' c_82
243 let _ = "lift2Value checkedHorizon=1"
244 in let _ = "comment: satisfy ((GHC.Classes.==) 'c')"
245 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
246 in let _ = "checkToken"
250 #) = readNext_4 buf_37 cs_83
251 in if (GHC.Classes.==) 'c' c_84
253 let _ = "lift2Value checkedHorizon=0"
259 Data.Set.Internal.empty
260 ( let _ = "resume.genCode"
261 in (GHC.Types.:) 'a' ((GHC.Types.:) 'b' ((GHC.Types.:) 'c' GHC.Types . []))
265 let _ = "checkToken.fail"
266 in onException_74 Symantic.Parser.Grammar.Combinators.ExceptionFailure cs_83 initPos_2 Data.Set.Internal.empty buf_37
268 let _ = "checkToken.fail"
269 in onException_74 Symantic.Parser.Grammar.Combinators.ExceptionFailure cs_81 initPos_2 Data.Set.Internal.empty buf_37
271 let _ = "checkToken.fail"
272 in onException_74 Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos_2 initPos_2 Data.Set.Internal.empty buf_37
274 let _ = "checkHorizon.newCheck.fail"
276 Data.Set.Internal.Bin
278 ( Symantic.Parser.Grammar.Combinators.SomeFailure
280 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok'_6989586621679072653) -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok'_6989586621679072653 3
283 Data.Set.Internal.Tip
284 Data.Set.Internal.Tip
288 #) = case GHC.Classes.compare @GHC.Types.Int initPos_2 initPos_2 of
297 failExp_86 GHC.Base.<> Data.Set.Internal.empty
302 Data.Set.Internal.empty
304 in finalRaise_20 Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos_2 farInp_87 farExp_88 buf_37
305 in partialCont_36 initBuffer_1