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)
54 in let name = \(!ok) (!inp) (!koByLabel) ->
55 let _ = "catch ExceptionFailure"
56 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
57 let _ = "catch.ko ExceptionFailure"
58 in if ( \( Data.Text.Internal.Text
63 ( Data.Text.Internal.Text
67 ) -> i GHC.Classes.== j
72 let _ = "choicesBranch.then"
77 ( let _ = "resume.genCode"
82 let _ = "choicesBranch.else"
83 in Data.Map.Strict.Internal.findWithDefault finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure koByLabel Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
84 in let readFail = catchHandler
91 in if (\t -> ('a' GHC.Classes.== t) GHC.Classes.|| (('b' GHC.Classes.== t) GHC.Classes.|| (('c' GHC.Classes.== t) GHC.Classes.|| (('d' GHC.Classes.== t) GHC.Classes.|| GHC.Types.False)))) c
95 in \farInp farExp v (!inp) ->
100 ( let _ = "resume.genCode"
101 in \x -> (GHC.Types.:) c (v x)
106 (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
108 let _ = "checkToken.else"
110 Data.Set.Internal.Bin
112 ( Symantic.Parser.Grammar.Combinators.SomeFailure
114 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'b'
117 ( Data.Set.Internal.Bin
119 ( Symantic.Parser.Grammar.Combinators.SomeFailure
121 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
124 Data.Set.Internal.Tip
125 Data.Set.Internal.Tip
127 ( Data.Set.Internal.Bin
129 ( Symantic.Parser.Grammar.Combinators.SomeFailure
131 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'c'
134 Data.Set.Internal.Tip
135 ( Data.Set.Internal.Bin
137 ( Symantic.Parser.Grammar.Combinators.SomeFailure
139 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'd'
142 Data.Set.Internal.Tip
143 Data.Set.Internal.Tip
149 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
158 failExp GHC.Base.<> Data.Set.Internal.empty
163 Data.Set.Internal.empty
165 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
167 let _ = "checkHorizon.else"
169 Data.Set.Internal.Bin
171 ( Symantic.Parser.Grammar.Combinators.SomeFailure
173 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
176 Data.Set.Internal.Tip
177 Data.Set.Internal.Tip
181 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
190 failExp GHC.Base.<> Data.Set.Internal.empty
195 Data.Set.Internal.empty
197 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
200 in \farInp farExp v (!inp) ->
201 let join = \farInp farExp v (!inp) ->
206 ( let _ = "resume.genCode"
207 in GHC.Show.show (v GHC.Types . [])
210 in let _ = "catch ExceptionFailure"
211 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
212 let _ = "catch.ko ExceptionFailure"
213 in if ( \( Data.Text.Internal.Text
218 ( Data.Text.Internal.Text
222 ) -> i GHC.Classes.== j
227 let _ = "choicesBranch.then"
228 in let failExp = Data.Set.Internal.Bin 1 (Symantic.Parser.Grammar.Combinators.SomeFailure Symantic.Parser.Grammar.Combinators.FailureEnd) Data.Set.Internal.Tip Data.Set.Internal.Tip
232 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
241 failExp GHC.Base.<> farExp
248 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
250 let _ = "choicesBranch.else"
251 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
252 in let _ = "catch ExceptionFailure"
253 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
254 let _ = "catch.ko ExceptionFailure"
259 ( let _ = "resume.genCode"
263 in let readFail = catchHandler
270 in catchHandler Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
272 let _ = "checkHorizon.else"
274 Data.Set.Internal.Bin
276 ( Symantic.Parser.Grammar.Combinators.SomeFailure
278 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
281 Data.Set.Internal.Tip
282 Data.Set.Internal.Tip
286 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
295 failExp GHC.Base.<> farExp
302 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
305 Data.Map.Internal.Tip