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 readFail = finalRaise
81 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 failInp)
87 in if ('a' GHC.Classes.==) c
89 let readFail = finalRaise
94 in if ('b' GHC.Classes.==) c
100 ( let _ = "resume.genCode"
101 in 'a' GHC.Types.: ('b' GHC.Types.: GHC.Types . [])
105 let _ = "checkToken.else"
109 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp cs of
113 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'b']
118 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'b']
125 in finalRaise cs farInp farExp
127 let _ = "checkToken.else"
131 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
135 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
140 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
147 in finalRaise failInp farInp farExp
149 let _ = "checkHorizon.else"
153 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
157 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
162 farExp GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
169 in finalRaise failInp farInp farExp
171 let _ = "choicesBranch.else"
175 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
184 farExp GHC.Base.<> []
191 in finalRaise failInp farInp farExp
192 in let readFail = catchHandler
193 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 1 init)
195 let !(# c, cs #) = readNext init
196 in if ('a' GHC.Classes.==) c
198 let readFail = readFail
203 in if ('a' GHC.Classes.==) c
206 in join init GHC.Types
208 ( let _ = "resume.genCode"
209 in 'a' GHC.Types.: ('a' GHC.Types.: GHC.Types . [])
213 let _ = "checkToken.else"
217 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
221 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
226 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
233 in readFail cs farInp farExp
235 let _ = "checkToken.else"
239 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
243 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
248 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
255 in readFail init farInp farExp
257 let _ = "checkHorizon.else"
261 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
265 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
270 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 2]
277 in readFail init farInp farExp