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"
101 ( let _ = "resume.genCode"
105 in let _ = "catch ExceptionFailure checkedHorizon=2"
107 let _ = "onException"
108 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
109 let _ = "comment: raiseAgainIfConsumed"
110 in let _ = "saveInput checkedHorizon=0"
111 in let _ = "lift2Value checkedHorizon=0"
112 in if ( \( Data.Text.Internal.Text
117 ( Data.Text.Internal.Text
121 ) -> i GHC.Classes.== j
126 let _ = "choicesBranch checkedHorizon=0"
127 in let _ = "pushValue"
128 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
130 in let readFail = finalRaise
131 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=2"
132 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 inp)
139 in if (GHC.Classes.==) 'a' c
141 let _ = "lift2Value checkedHorizon=2"
142 in let _ = "comment: satisfy ((GHC.Classes.==) 'b')"
143 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
144 in let _ = "checkToken"
149 in if (GHC.Classes.==) 'b' c
151 let _ = "lift2Value checkedHorizon=1"
156 ( let _ = "resume.genCode"
157 in (GHC.Types.:) 'a' ((GHC.Types.:) 'b' GHC.Types . [])
161 let _ = "checkToken.fail"
163 Data.Set.Internal.Bin
165 ( Symantic.Parser.Grammar.Combinators.SomeFailure
167 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'b'
170 Data.Set.Internal.Tip
171 Data.Set.Internal.Tip
175 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp cs of
184 failExp GHC.Base.<> farExp
191 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
193 let _ = "checkToken.fail"
195 Data.Set.Internal.Bin
197 ( Symantic.Parser.Grammar.Combinators.SomeFailure
199 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
202 Data.Set.Internal.Tip
203 Data.Set.Internal.Tip
207 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
216 failExp GHC.Base.<> farExp
223 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
225 let _ = "checkHorizon.newCheck.fail"
227 Data.Set.Internal.Bin
229 ( Symantic.Parser.Grammar.Combinators.SomeFailure
231 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
234 Data.Set.Internal.Tip
235 Data.Set.Internal.Tip
239 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
248 failExp GHC.Base.<> farExp
255 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
257 let _ = "choicesBranch.else"
258 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
259 in let _ = "pushValue"
260 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
261 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
262 in let _ = "checkToken"
267 in if (GHC.Classes.==) 'a' c
269 let _ = "lift2Value checkedHorizon=1"
270 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
271 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
272 in let _ = "checkToken"
277 in if (GHC.Classes.==) 'a' c
279 let _ = "lift2Value checkedHorizon=0"
284 Data.Set.Internal.empty
285 ( let _ = "resume.genCode"
286 in (GHC.Types.:) 'a' ((GHC.Types.:) 'a' GHC.Types . [])
290 let _ = "checkToken.fail"
292 Data.Set.Internal.Bin
294 ( Symantic.Parser.Grammar.Combinators.SomeFailure
296 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
299 Data.Set.Internal.Tip
300 Data.Set.Internal.Tip
304 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
313 failExp GHC.Base.<> Data.Set.Internal.empty
318 Data.Set.Internal.empty
320 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
322 let _ = "checkToken.fail"
324 Data.Set.Internal.Bin
326 ( Symantic.Parser.Grammar.Combinators.SomeFailure
328 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
331 Data.Set.Internal.Tip
332 Data.Set.Internal.Tip
336 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
345 failExp GHC.Base.<> Data.Set.Internal.empty
350 Data.Set.Internal.empty
352 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
354 let _ = "checkHorizon.newCheck.fail"
356 Data.Set.Internal.Bin
358 ( Symantic.Parser.Grammar.Combinators.SomeFailure
360 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
363 Data.Set.Internal.Tip
364 Data.Set.Internal.Tip
368 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
377 failExp GHC.Base.<> Data.Set.Internal.empty
382 Data.Set.Internal.empty
384 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp