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) ->
58 ( let _ = "resume.genCode"
62 in let _ = "catchException lbl=fail"
63 in let catchHandler (!failInp) (!farInp) (!farExp) =
64 let _ = "catchException.ko lbl=fail"
65 in if ( \( Data.Text.Internal.Text
70 ( Data.Text.Internal.Text
74 ) -> i GHC.Classes.== j
79 let _ = "choicesBranch.then"
80 in let _ = "catchException lbl=fail"
81 in let catchHandler (!failInp) (!farInp) (!farExp) =
82 let _ = "catchException.ko lbl=fail"
86 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
102 in finalRaise failInp farInp farExp
103 in let readFail = catchHandler
104 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 failInp)
109 #) = readNext failInp
110 in if ('a' GHC.Classes.==) c
112 let readFail = readFail
117 in if ('b' GHC.Classes.==) c
123 ( let _ = "resume.genCode"
124 in 'a' GHC.Types.: ('b' GHC.Types.: GHC.Types . [])
128 let _ = "checkToken.else"
132 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp cs of
136 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'b']
141 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'b']
148 in readFail cs farInp farExp
150 let _ = "checkToken.else"
154 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
158 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
163 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
170 in readFail failInp farInp farExp
172 let _ = "checkHorizon.else"
176 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
180 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
185 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
192 in readFail failInp farInp farExp
194 let _ = "choicesBranch.else"
198 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
207 farExp GHC.Base.<> []
214 in finalRaise failInp farInp farExp
215 in let _ = "catchException lbl=fail"
216 in let catchHandler (!failInp) (!farInp) (!farExp) =
217 let _ = "catchException.ko lbl=fail"
221 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp init of
230 farExp GHC.Base.<> []
237 in catchHandler init farInp farExp
238 in let readFail = catchHandler
239 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 init)
241 let !(# c, cs #) = readNext init
242 in if ('a' GHC.Classes.==) c
244 let readFail = readFail
249 in if ('a' GHC.Classes.==) c
252 in join init GHC.Types
254 ( let _ = "resume.genCode"
255 in 'a' GHC.Types.: ('a' GHC.Types.: GHC.Types . [])
259 let _ = "checkToken.else"
263 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
267 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
272 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
279 in readFail cs farInp farExp
281 let _ = "checkToken.else"
285 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
289 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
294 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
301 in readFail init farInp farExp
303 let _ = "checkHorizon.else"
307 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
311 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
316 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
323 in readFail init farInp farExp