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.Catcher
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 = farExp
56 ( let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
58 in let join = \farInp farExp v (!inp) ->
59 let readFail = finalRaise
66 in if (GHC.Classes.==) 'c' c
72 ( let _ = "resume.genCode"
77 let _ = "checkToken.else"
81 ( Symantic.Parser.Grammar.Combinators.SomeFailure
83 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'c'
91 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
100 failExp GHC.Base.<> farExp
107 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
109 let _ = "checkHorizon.else"
111 Data.Set.Internal.Bin
113 ( Symantic.Parser.Grammar.Combinators.SomeFailure
115 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
118 Data.Set.Internal.Tip
119 Data.Set.Internal.Tip
123 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
132 failExp GHC.Base.<> farExp
139 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
140 in let _ = "catch ExceptionFailure"
141 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
142 let _ = "catch.ko ExceptionFailure"
143 in if ( \( Data.Text.Internal.Text
148 ( Data.Text.Internal.Text
152 ) -> i GHC.Classes.== j
157 let _ = "choicesBranch.then"
158 in let readFail = finalRaise
159 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 failInp)
164 #) = readNext failInp
165 in if (GHC.Classes.==) 'b' c
171 ( let _ = "resume.genCode"
176 let _ = "checkToken.else"
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) farInp failInp of
199 failExp GHC.Base.<> farExp
206 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
208 let _ = "checkHorizon.else"
210 Data.Set.Internal.Bin
212 ( Symantic.Parser.Grammar.Combinators.SomeFailure
214 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
217 Data.Set.Internal.Tip
218 Data.Set.Internal.Tip
222 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
231 failExp GHC.Base.<> farExp
238 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
240 let _ = "choicesBranch.else"
241 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
242 in let readFail = catchHandler
243 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 init)
245 let !(# c, cs #) = readNext init
246 in if (GHC.Classes.==) 'a' c
251 Data.Set.Internal.empty
252 ( let _ = "resume.genCode"
257 let _ = "checkToken.else"
259 Data.Set.Internal.Bin
261 ( Symantic.Parser.Grammar.Combinators.SomeFailure
263 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
266 Data.Set.Internal.Tip
267 Data.Set.Internal.Tip
271 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
280 failExp GHC.Base.<> Data.Set.Internal.empty
285 Data.Set.Internal.empty
287 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure init farInp farExp
289 let _ = "checkHorizon.else"
291 Data.Set.Internal.Bin
293 ( Symantic.Parser.Grammar.Combinators.SomeFailure
295 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 2
298 Data.Set.Internal.Tip
299 Data.Set.Internal.Tip
303 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
312 failExp GHC.Base.<> Data.Set.Internal.empty
317 Data.Set.Internal.empty
319 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure init farInp farExp