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 in let finalRet = \_farInp _farExp v _inp -> Data.Either.Right v
33 Symantic.Parser.Machine.Generate.Catcher
35 b = \_failInp (!farInp) (!farExp) ->
37 Symantic.Parser.Machine.Generate.ParsingErrorStandard
38 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.offset farInp,
39 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
49 else GHC.Maybe.Nothing,
50 Symantic.Parser.Machine.Generate.parsingErrorExpecting = Data.Set.Internal.fromList farExp
53 in let join = \farInp farExp v (!inp) ->
54 let readFail = finalRaise
61 in if ('d' GHC.Classes.==) c
67 ( let _ = "resume.genCode"
72 let _ = "checkToken.else"
76 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
80 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'd']
85 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'd']
92 in finalRaise inp farInp farExp
94 let _ = "checkHorizon.else"
98 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp inp of
102 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
107 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 1]
114 in finalRaise inp farInp farExp
115 in let _ = "catchException lbl=fail"
116 in let catchHandler (!failInp) (!farInp) (!farExp) =
117 let _ = "catchException.ko lbl=fail"
118 in if ( \( Data.Text.Internal.Text
123 ( Data.Text.Internal.Text
127 ) -> i GHC.Classes.== j
132 let _ = "choicesBranch.then"
133 in let readFail = finalRaise
134 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 failInp)
139 #) = readNext failInp
140 in if ('c' GHC.Classes.==) c
146 ( let _ = "resume.genCode"
151 let _ = "checkToken.else"
155 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
159 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'c']
164 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'c']
171 in finalRaise failInp farInp farExp
173 let _ = "checkHorizon.else"
177 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
181 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
186 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
193 in finalRaise failInp farInp farExp
195 let _ = "choicesBranch.else"
199 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
208 farExp GHC.Base.<> []
215 in finalRaise failInp farInp farExp
216 in let join = \farInp farExp v (!inp) ->
221 ( let _ = "resume.genCode"
225 in let _ = "catchException lbl=fail"
226 in let catchHandler (!failInp) (!farInp) (!farExp) =
227 let _ = "catchException.ko lbl=fail"
228 in if ( \( Data.Text.Internal.Text
233 ( Data.Text.Internal.Text
237 ) -> i GHC.Classes.== j
242 let _ = "choicesBranch.then"
243 in let readFail = catchHandler
244 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 failInp)
249 #) = readNext failInp
250 in if ('b' GHC.Classes.==) c
256 ( let _ = "resume.genCode"
261 let _ = "checkToken.else"
265 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
269 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'b']
274 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'b']
281 in readFail failInp farInp farExp
283 let _ = "checkHorizon.else"
287 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
291 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
296 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
303 in readFail failInp farInp farExp
305 let _ = "choicesBranch.else"
309 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
318 farExp GHC.Base.<> []
325 in catchHandler failInp farInp farExp
326 in let readFail = catchHandler
327 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 init)
333 in if ('a' GHC.Classes.==) c
336 in join init GHC.Types
338 ( let _ = "resume.genCode"
343 let _ = "checkToken.else"
347 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
351 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
356 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
363 in readFail init farInp farExp
365 let _ = "checkHorizon.else"
369 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
373 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
378 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
385 in readFail init farInp farExp