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 _ = "catch ExceptionFailure checkedHorizon=3"
91 in let onException_39 =
93 in \(!_exn_40) (!failInp_41) (!farInp_42) (!farExp_43) buf_44 ->
94 let _ = "loadInput checkedHorizon=3"
95 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
96 in finalRaise_20 Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos_2 farInp_42 farExp_43 buf_44
97 in let _ = "pushValue"
98 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
99 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
100 in let _ = "checkToken"
104 #) = readNext_4 buf_37 initPos_2
105 in if (GHC.Classes.==) 'a' c_45
107 let _ = "lift2Value checkedHorizon=2"
108 in let _ = "comment: satisfy ((GHC.Classes.==) 'b')"
109 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
110 in let _ = "checkToken"
114 #) = readNext_4 buf_37 cs_46
115 in if (GHC.Classes.==) 'b' c_47
117 let _ = "lift2Value checkedHorizon=1"
118 in let _ = "comment: satisfy ((GHC.Classes.==) 'c')"
119 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
120 in let _ = "checkToken"
124 #) = readNext_4 buf_37 cs_48
125 in if (GHC.Classes.==) 'c' c_49
127 let _ = "lift2Value checkedHorizon=0"
129 in let _ = "lift2Value checkedHorizon=0"
133 Data.Set.Internal.empty
134 ( let _ = "resume.genCode"
135 in GHC.Show.show ((GHC.Types.:) 'a' ((GHC.Types.:) 'b' ((GHC.Types.:) 'c' GHC.Types . [])))
139 let _ = "checkToken.fail"
141 Data.Set.Internal.Bin
143 ( Symantic.Parser.Grammar.Combinators.SomeFailure
145 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok'_6989586621679072653) -> Symantic.Parser.Grammar.Combinators.FailureToken 'c'
148 Data.Set.Internal.Tip
149 Data.Set.Internal.Tip
153 #) = case GHC.Classes.compare @GHC.Types.Int initPos_2 cs_48 of
162 failExp_51 GHC.Base.<> Data.Set.Internal.empty
167 Data.Set.Internal.empty
169 in onException_39 Symantic.Parser.Grammar.Combinators.ExceptionFailure cs_48 farInp_52 farExp_53 buf_37
171 let _ = "checkToken.fail"
173 Data.Set.Internal.Bin
175 ( Symantic.Parser.Grammar.Combinators.SomeFailure
177 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok'_6989586621679072653) -> Symantic.Parser.Grammar.Combinators.FailureToken 'b'
180 Data.Set.Internal.Tip
181 Data.Set.Internal.Tip
185 #) = case GHC.Classes.compare @GHC.Types.Int initPos_2 cs_46 of
194 failExp_54 GHC.Base.<> Data.Set.Internal.empty
199 Data.Set.Internal.empty
201 in onException_39 Symantic.Parser.Grammar.Combinators.ExceptionFailure cs_46 farInp_55 farExp_56 buf_37
203 let _ = "checkToken.fail"
205 Data.Set.Internal.Bin
207 ( Symantic.Parser.Grammar.Combinators.SomeFailure
209 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok'_6989586621679072653) -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
212 Data.Set.Internal.Tip
213 Data.Set.Internal.Tip
217 #) = case GHC.Classes.compare @GHC.Types.Int initPos_2 initPos_2 of
226 failExp_57 GHC.Base.<> Data.Set.Internal.empty
231 Data.Set.Internal.empty
233 in onException_39 Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos_2 farInp_58 farExp_59 buf_37
235 let _ = "checkHorizon.newCheck.fail"
237 Data.Set.Internal.Bin
239 ( Symantic.Parser.Grammar.Combinators.SomeFailure
241 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok'_6989586621679072653) -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok'_6989586621679072653 3
244 Data.Set.Internal.Tip
245 Data.Set.Internal.Tip
249 #) = case GHC.Classes.compare @GHC.Types.Int initPos_2 initPos_2 of
258 failExp_60 GHC.Base.<> Data.Set.Internal.empty
263 Data.Set.Internal.empty
265 in finalRaise_20 Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos_2 farInp_61 farExp_62 buf_37
266 in partialCont_36 initBuffer_1