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 _ = "catch ExceptionFailure"
83 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
84 let _ = "catch.ko ExceptionFailure"
85 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
86 in let readFail = catchHandler
87 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 failInp)
93 in if (GHC.Classes.==) 'a' c
95 let readFail = readFail
100 in if (GHC.Classes.==) 'b' c
106 ( let _ = "resume.genCode"
107 in (GHC.Types.:) 'a' ((GHC.Types.:) 'b' GHC.Types . [])
111 let _ = "checkToken.else"
113 Data.Set.Internal.Bin
115 ( Symantic.Parser.Grammar.Combinators.SomeFailure
117 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'b'
120 Data.Set.Internal.Tip
121 Data.Set.Internal.Tip
125 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp cs of
134 failExp GHC.Base.<> farExp
141 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
143 let _ = "checkToken.else"
145 Data.Set.Internal.Bin
147 ( Symantic.Parser.Grammar.Combinators.SomeFailure
149 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
152 Data.Set.Internal.Tip
153 Data.Set.Internal.Tip
157 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
166 failExp GHC.Base.<> farExp
173 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
175 let _ = "checkHorizon.else"
177 Data.Set.Internal.Bin
179 ( Symantic.Parser.Grammar.Combinators.SomeFailure
181 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
184 Data.Set.Internal.Tip
185 Data.Set.Internal.Tip
189 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
198 failExp GHC.Base.<> farExp
205 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
207 let _ = "choicesBranch.else"
208 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
209 in let _ = "catch ExceptionFailure"
210 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
211 let _ = "catch.ko ExceptionFailure"
212 in catchHandler Symantic.Parser.Grammar.Combinators.ExceptionFailure init farInp farExp
213 in let readFail = catchHandler
214 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 init)
216 let !(# c, cs #) = readNext init
217 in if (GHC.Classes.==) 'a' c
219 let readFail = readFail
224 in if (GHC.Classes.==) 'a' c
229 Data.Set.Internal.empty
230 ( let _ = "resume.genCode"
231 in (GHC.Types.:) 'a' ((GHC.Types.:) 'a' GHC.Types . [])
235 let _ = "checkToken.else"
237 Data.Set.Internal.Bin
239 ( Symantic.Parser.Grammar.Combinators.SomeFailure
241 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
244 Data.Set.Internal.Tip
245 Data.Set.Internal.Tip
249 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
258 failExp GHC.Base.<> Data.Set.Internal.empty
263 Data.Set.Internal.empty
265 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure cs farInp farExp
267 let _ = "checkToken.else"
269 Data.Set.Internal.Bin
271 ( Symantic.Parser.Grammar.Combinators.SomeFailure
273 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
276 Data.Set.Internal.Tip
277 Data.Set.Internal.Tip
281 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
290 failExp GHC.Base.<> Data.Set.Internal.empty
295 Data.Set.Internal.empty
297 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure init farInp farExp
299 let _ = "checkHorizon.else"
301 Data.Set.Internal.Bin
303 ( Symantic.Parser.Grammar.Combinators.SomeFailure
305 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
308 Data.Set.Internal.Tip
309 Data.Set.Internal.Tip
313 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
322 failExp GHC.Base.<> Data.Set.Internal.empty
327 Data.Set.Internal.empty
329 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure init farInp farExp