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 _ = "catchException lbl=fail"
54 in let catchHandler (!failInp) (!farInp) (!farExp) =
55 let _ = "catchException.ko lbl=fail"
59 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp init of
75 in finalRaise init farInp farExp
76 in let readFail = catchHandler
77 in if readMore (Symantic.Parser.Machine.Input.shiftRightText 2 init)
79 let !(# c, cs #) = readNext init
80 in if ('a' GHC.Classes.==) c
82 let readFail = readFail
83 in let !(# c, cs #) = readNext cs
84 in if ('b' GHC.Classes.==) c
86 let readFail = readFail
91 in if ('c' GHC.Classes.==) c
94 in finalRet init GHC.Types
96 ( let _ = "resume.genCode"
97 in GHC.Show.show ('a' GHC.Types.: ('b' GHC.Types.: ('c' GHC.Types.: GHC.Types . [])))
101 let _ = "checkToken.else"
105 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
109 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'c']
114 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'c']
121 in readFail cs farInp farExp
123 let _ = "checkToken.else"
127 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init cs of
131 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'b']
136 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'b']
143 in readFail cs farInp farExp
145 let _ = "checkToken.else"
149 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
153 [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
158 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemToken 'a']
165 in readFail init farInp farExp
167 let _ = "checkHorizon.else"
171 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init init of
175 [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 3]
180 GHC.Types . [] GHC.Base.<> [Symantic.Parser.Grammar.Combinators.ErrorItemHorizon 3]
187 in readFail init farInp farExp