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 join = \farInp farExp v (!inp) ->
96 let _ = "lift2Value checkedHorizon=0"
97 in let _ = "catch ExceptionFailure checkedHorizon=0"
100 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
101 let _ = "loadInput checkedHorizon=0"
102 in let _ = "checkHorizon.noCheck"
103 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
104 in let _ = "pushValue"
105 in let _ = "comment: satisfy ((GHC.Classes.==) 'd')"
107 in let readFail = onException
108 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=3"
109 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 2 inp)
116 in if (GHC.Classes.==) 'd' c
118 let _ = "lift2Value checkedHorizon=3"
119 in let _ = "comment: satisfy ((GHC.Classes.==) 'e')"
120 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
121 in let _ = "checkToken"
126 in if (GHC.Classes.==) 'e' c
128 let _ = "lift2Value checkedHorizon=2"
129 in let _ = "comment: satisfy ((GHC.Classes.==) 'f')"
130 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
131 in let _ = "checkToken"
136 in if (GHC.Classes.==) 'f' c
138 let _ = "lift2Value checkedHorizon=1"
140 in let _ = "lift2Value checkedHorizon=1"
145 ( let _ = "resume.genCode"
146 in GHC.Show.show GHC.Tuple . ()
150 let _ = "checkToken.fail"
151 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
153 let _ = "checkToken.fail"
154 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
156 let _ = "checkToken.fail"
157 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
159 let _ = "checkHorizon.newCheck.fail"
161 Data.Set.Internal.Bin
163 ( Symantic.Parser.Grammar.Combinators.SomeFailure
165 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 3
168 Data.Set.Internal.Tip
169 Data.Set.Internal.Tip
173 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
182 failExp GHC.Base.<> farExp
189 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
190 in let _ = "catch ExceptionFailure checkedHorizon=3"
192 let _ = "onException"
193 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
194 let _ = "comment: raiseAgainIfConsumed"
195 in let _ = "saveInput checkedHorizon=0"
196 in let _ = "lift2Value checkedHorizon=0"
197 in if ( \( Data.Text.Internal.Text
202 ( Data.Text.Internal.Text
206 ) -> i GHC.Classes.== j
211 let _ = "choicesBranch checkedHorizon=0"
212 in let _ = "catch ExceptionFailure checkedHorizon=0"
214 let _ = "onException"
215 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
216 let _ = "loadInput checkedHorizon=0"
217 in let _ = "checkHorizon.noCheck"
218 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
219 in let _ = "pushValue"
225 ( let _ = "resume.genCode"
230 let _ = "choicesBranch.else"
231 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
232 in let _ = "catch ExceptionFailure checkedHorizon=3"
234 let _ = "onException"
235 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
236 let _ = "loadInput checkedHorizon=3"
237 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
238 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
239 in let _ = "pushValue"
240 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
241 in let _ = "checkHorizon.oldCheck: checkedHorizon=3"
242 in let _ = "checkToken"
247 in if (GHC.Classes.==) 'a' c
249 let _ = "lift2Value checkedHorizon=2"
250 in let _ = "comment: satisfy ((GHC.Classes.==) 'b')"
251 in let _ = "checkHorizon.oldCheck: checkedHorizon=2"
252 in let _ = "checkToken"
257 in if (GHC.Classes.==) 'b' c
259 let _ = "lift2Value checkedHorizon=1"
260 in let _ = "comment: satisfy ((GHC.Classes.==) 'c')"
261 in let _ = "checkHorizon.oldCheck: checkedHorizon=1"
262 in let _ = "checkToken"
267 in if (GHC.Classes.==) 'c' c
269 let _ = "lift2Value checkedHorizon=0"
275 Data.Set.Internal.empty
276 ( let _ = "resume.genCode"
277 in (GHC.Types.:) 'a' ((GHC.Types.:) 'b' ((GHC.Types.:) 'c' GHC.Types . []))
281 let _ = "checkToken.fail"
282 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure cs init Data.Set.Internal.empty
284 let _ = "checkToken.fail"
285 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure cs init Data.Set.Internal.empty
287 let _ = "checkToken.fail"
288 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure inp init Data.Set.Internal.empty
290 let _ = "checkHorizon.newCheck.fail"
292 Data.Set.Internal.Bin
294 ( Symantic.Parser.Grammar.Combinators.SomeFailure
296 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 3
299 Data.Set.Internal.Tip
300 Data.Set.Internal.Tip
304 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
313 failExp GHC.Base.<> Data.Set.Internal.empty
318 Data.Set.Internal.empty
320 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp