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=3"
91 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 2 inp)
94 in let _ = "pushValue"
95 in let _ = "catch ExceptionFailure checkedHorizon=3"
98 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
99 let _ = "loadInput checkedHorizon=3"
100 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
101 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
102 in let _ = "pushValue"
103 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
104 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
105 in let _ = "checkToken"
110 in if (GHC.Classes.==) 'a' c
112 let _ = "lift2Value checkedHorizon=2"
113 in let _ = "comment: satisfy ((GHC.Classes.==) 'b')"
114 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
115 in let _ = "checkToken"
120 in if (GHC.Classes.==) 'b' c
122 let _ = "lift2Value checkedHorizon=1"
123 in let _ = "comment: satisfy ((GHC.Classes.==) 'c')"
124 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
125 in let _ = "checkToken"
130 in if (GHC.Classes.==) 'c' c
132 let _ = "lift2Value checkedHorizon=0"
134 in let _ = "lift2Value checkedHorizon=0"
138 Data.Set.Internal.empty
139 ( let _ = "resume.genCode"
140 in GHC.Show.show ((GHC.Types.:) 'a' ((GHC.Types.:) 'b' ((GHC.Types.:) 'c' GHC.Types . [])))
144 let _ = "checkToken.fail"
146 Data.Set.Internal.Bin
148 ( Symantic.Parser.Grammar.Combinators.SomeFailure
150 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'c'
153 Data.Set.Internal.Tip
154 Data.Set.Internal.Tip
158 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
167 failExp GHC.Base.<> Data.Set.Internal.empty
172 Data.Set.Internal.empty
174 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
176 let _ = "checkToken.fail"
178 Data.Set.Internal.Bin
180 ( Symantic.Parser.Grammar.Combinators.SomeFailure
182 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'b'
185 Data.Set.Internal.Tip
186 Data.Set.Internal.Tip
190 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
199 failExp GHC.Base.<> Data.Set.Internal.empty
204 Data.Set.Internal.empty
206 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
208 let _ = "checkToken.fail"
210 Data.Set.Internal.Bin
212 ( Symantic.Parser.Grammar.Combinators.SomeFailure
214 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
217 Data.Set.Internal.Tip
218 Data.Set.Internal.Tip
222 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
231 failExp GHC.Base.<> Data.Set.Internal.empty
236 Data.Set.Internal.empty
238 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
240 let _ = "checkHorizon.newCheck.fail"
242 Data.Set.Internal.Bin
244 ( Symantic.Parser.Grammar.Combinators.SomeFailure
246 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 3
249 Data.Set.Internal.Tip
250 Data.Set.Internal.Tip
254 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
263 failExp GHC.Base.<> Data.Set.Internal.empty
268 Data.Set.Internal.empty
270 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp