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 -> Data.Either.Right v
33 Symantic.Parser.Machine.Generate.Catcher
35 b = \(!exn) _failInp (!farInp) (!farExp) ->
37 Symantic.Parser.Machine.Generate.ParsingError
38 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.offset farInp,
39 Symantic.Parser.Machine.Generate.parsingErrorException = exn,
40 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
50 else GHC.Maybe.Nothing,
51 Symantic.Parser.Machine.Generate.parsingErrorExpecting = farExp
53 in let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
55 in let join = \farInp farExp v (!inp) ->
60 ( let _ = "resume.genCode"
64 in let _ = "catch ExceptionFailure"
65 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
66 let _ = "catch.ko ExceptionFailure"
67 in if ( \( Data.Text.Internal.Text
72 ( Data.Text.Internal.Text
76 ) -> i GHC.Classes.== j
81 let _ = "choicesBranch.then"
82 in let readFail = finalRaise
83 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 failInp)
89 in if (GHC.Classes.==) 'a' c
91 let readFail = finalRaise
96 in if (GHC.Classes.==) 'b' c
102 ( let _ = "resume.genCode"
103 in (GHC.Types.:) 'a' ((GHC.Types.:) 'b' GHC.Types . [])
107 let _ = "checkToken.else"
109 Data.Set.Internal.Bin
111 ( Symantic.Parser.Grammar.Combinators.SomeFailure
113 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'b'
116 Data.Set.Internal.Tip
117 Data.Set.Internal.Tip
121 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp cs of
130 failExp GHC.Base.<> farExp
137 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
139 let _ = "checkToken.else"
141 Data.Set.Internal.Bin
143 ( Symantic.Parser.Grammar.Combinators.SomeFailure
145 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
148 Data.Set.Internal.Tip
149 Data.Set.Internal.Tip
153 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
162 failExp GHC.Base.<> farExp
169 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
171 let _ = "checkHorizon.else"
173 Data.Set.Internal.Bin
175 ( Symantic.Parser.Grammar.Combinators.SomeFailure
177 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
180 Data.Set.Internal.Tip
181 Data.Set.Internal.Tip
185 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
194 failExp GHC.Base.<> farExp
201 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
203 let _ = "choicesBranch.else"
204 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
205 in let readFail = catchHandler
206 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 init)
208 let !(# c, cs #) = readNext init
209 in if (GHC.Classes.==) 'a' c
211 let readFail = readFail
212 in let !(# c, cs #) = readNext cs
213 in if (GHC.Classes.==) 'a' c
218 Data.Set.Internal.empty
219 ( let _ = "resume.genCode"
220 in (GHC.Types.:) 'a' ((GHC.Types.:) 'a' GHC.Types . [])
224 let _ = "checkToken.else"
226 Data.Set.Internal.Bin
228 ( Symantic.Parser.Grammar.Combinators.SomeFailure
230 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
233 Data.Set.Internal.Tip
234 Data.Set.Internal.Tip
238 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
247 failExp GHC.Base.<> Data.Set.Internal.empty
252 Data.Set.Internal.empty
254 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
256 let _ = "checkToken.else"
258 Data.Set.Internal.Bin
260 ( Symantic.Parser.Grammar.Combinators.SomeFailure
262 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
265 Data.Set.Internal.Tip
266 Data.Set.Internal.Tip
270 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
279 failExp GHC.Base.<> Data.Set.Internal.empty
284 Data.Set.Internal.empty
286 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure init farInp farExp
288 let _ = "checkHorizon.else"
290 Data.Set.Internal.Bin
292 ( Symantic.Parser.Grammar.Combinators.SomeFailure
294 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
297 Data.Set.Internal.Tip
298 Data.Set.Internal.Tip
302 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
311 failExp GHC.Base.<> Data.Set.Internal.empty
316 Data.Set.Internal.empty
318 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure init farInp farExp