9 ( t@( Data.Text.Internal.Text
15 let !( Data.Text.Unsafe.Iter
18 ) = Data.Text.Unsafe.iter t 0
21 Data.Text.Internal.Text arr (off GHC.Num.+ d) (unconsumed GHC.Num.- d)
24 ( Data.Text.Internal.Text
28 ) = unconsumed GHC.Classes.> 0
29 in (# input, more, next #)
30 finalRet = \_farInp _farExp v _inp -> Symantic.Parser.Machine.Generate.returnST GHC.Base.$ Data.Either.Right v
33 Symantic.Parser.Machine.Generate.OnException
36 b = \(!exn) _failInp (!farInp) (!farExp) ->
37 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
39 Symantic.Parser.Machine.Generate.ParsingError
40 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.offset farInp,
41 Symantic.Parser.Machine.Generate.parsingErrorException = exn,
42 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
52 else GHC.Maybe.Nothing,
53 Symantic.Parser.Machine.Generate.parsingErrorExpecting =
57 Data.Set.Internal.foldr
61 ) -> case Symantic.Parser.Grammar.Combinators.unSomeFailure f of
62 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)))
63 | GHC.Maybe.Just old <- minH ->
64 ( GHC.Maybe.Just (GHC.Classes.min old h),
67 | GHC.Base.otherwise ->
80 in Data.Set.Internal.fromList GHC.Base.$
82 GHC.Maybe.Just h -> Symantic.Parser.Grammar.Combinators.SomeFailure (Symantic.Parser.Grammar.Combinators.FailureHorizon @(Symantic.Parser.Machine.Input.InputToken inp) h) GHC.Types.: res
83 GHC.Maybe.Nothing -> res
87 ( let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
89 in let readFail = finalRaise
90 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
91 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 inp)
94 in let _ = "pushValue"
95 in let join = \farInp farExp v (!inp) ->
96 let _ = "lift2Value checkedHorizon=0"
97 in let _ = "comment: satisfy ((GHC.Classes.==) 'c')"
99 in let readFail = finalRaise
100 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
108 in if (GHC.Classes.==) 'c' c
110 let _ = "lift2Value checkedHorizon=1"
115 ( let _ = "resume.genCode"
120 let _ = "checkToken.fail"
122 Data.Set.Internal.Bin
124 ( Symantic.Parser.Grammar.Combinators.SomeFailure
126 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'c'
129 Data.Set.Internal.Tip
130 Data.Set.Internal.Tip
134 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
143 failExp GHC.Base.<> farExp
150 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
152 let _ = "checkHorizon.newCheck.fail"
154 Data.Set.Internal.Bin
156 ( Symantic.Parser.Grammar.Combinators.SomeFailure
158 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
161 Data.Set.Internal.Tip
162 Data.Set.Internal.Tip
166 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
175 failExp GHC.Base.<> farExp
182 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
183 in let _ = "catch ExceptionFailure checkedHorizon=2"
185 let _ = "onException"
186 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
187 let _ = "comment: raiseAgainIfConsumed"
188 in let _ = "saveInput checkedHorizon=0"
189 in let _ = "lift2Value checkedHorizon=0"
190 in if ( \( Data.Text.Internal.Text
195 ( Data.Text.Internal.Text
199 ) -> i GHC.Classes.== j
204 let _ = "choicesBranch checkedHorizon=0"
205 in let _ = "pushValue"
206 in let _ = "comment: satisfy ((GHC.Classes.==) 'b')"
208 in let readFail = finalRaise
209 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
210 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 inp)
217 in if (GHC.Classes.==) 'b' c
219 let _ = "lift2Value checkedHorizon=2"
224 ( let _ = "resume.genCode"
229 let _ = "checkToken.fail"
231 Data.Set.Internal.Bin
233 ( Symantic.Parser.Grammar.Combinators.SomeFailure
235 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'b'
238 Data.Set.Internal.Tip
239 Data.Set.Internal.Tip
243 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
252 failExp GHC.Base.<> farExp
259 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
261 let _ = "checkHorizon.newCheck.fail"
263 Data.Set.Internal.Bin
265 ( Symantic.Parser.Grammar.Combinators.SomeFailure
267 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
270 Data.Set.Internal.Tip
271 Data.Set.Internal.Tip
275 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
284 failExp GHC.Base.<> farExp
291 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
293 let _ = "choicesBranch.else"
294 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
295 in let _ = "pushValue"
296 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
297 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
298 in let _ = "checkToken"
303 in if (GHC.Classes.==) 'a' c
305 let _ = "lift2Value checkedHorizon=1"
310 Data.Set.Internal.empty
311 ( let _ = "resume.genCode"
316 let _ = "checkToken.fail"
318 Data.Set.Internal.Bin
320 ( Symantic.Parser.Grammar.Combinators.SomeFailure
322 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
325 Data.Set.Internal.Tip
326 Data.Set.Internal.Tip
330 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
339 failExp GHC.Base.<> Data.Set.Internal.empty
344 Data.Set.Internal.empty
346 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
348 let _ = "checkHorizon.newCheck.fail"
350 Data.Set.Internal.Bin
352 ( Symantic.Parser.Grammar.Combinators.SomeFailure
354 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
357 Data.Set.Internal.Tip
358 Data.Set.Internal.Tip
362 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
371 failExp GHC.Base.<> Data.Set.Internal.empty
376 Data.Set.Internal.empty
378 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp