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 -> Symantic.Parser.Machine.Generate.returnST GHC.Base.$ Data.Either.Right v
33 Symantic.Parser.Machine.Generate.Catcher
36 b = \(!exn) _failInp (!farInp) (!farExp) ->
37 Symantic.Parser.Machine.Generate.returnST GHC.Base.$
39 Symantic.Parser.Machine.Generate.ParsingError
40 { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.offset farInp,
41 Symantic.Parser.Machine.Generate.parsingErrorException = exn,
42 Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
52 else GHC.Maybe.Nothing,
53 Symantic.Parser.Machine.Generate.parsingErrorExpecting = farExp
56 ( let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
60 reg <- GHC.STRef.newSTRef dupv
62 in let catchHandler loopInput (!_exn) (!failInp) (!farInp) (!farExp) =
63 if ( \( Data.Text.Internal.Text
68 ( Data.Text.Internal.Text
72 ) -> i GHC.Classes.== j
77 let _ = "choicesBranch.then"
79 sr <- GHC.STRef.readSTRef reg
80 let join = \farInp farExp v (!inp) ->
85 ( let _ = "resume.genCode"
86 in GHC.Show.show (sr GHC.Types . [])
89 in let _ = "catch ExceptionFailure"
90 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
91 let _ = "catch.ko ExceptionFailure"
92 in if ( \( Data.Text.Internal.Text
97 ( Data.Text.Internal.Text
101 ) -> i GHC.Classes.== j
106 let _ = "choicesBranch.then"
107 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
111 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
120 failExp GHC.Base.<> farExp
127 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
129 let _ = "choicesBranch.else"
130 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
131 in let _ = "catch ExceptionFailure"
132 in let catchHandler (!_exn) (!failInp) (!farInp) (!farExp) =
133 let _ = "catch.ko ExceptionFailure"
138 ( let _ = "resume.genCode"
142 in let readFail = catchHandler
143 in if readMore failInp
148 #) = readNext failInp
149 in catchHandler Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
151 let _ = "checkHorizon.else"
153 Data.Set.Internal.Bin
155 ( Symantic.Parser.Grammar.Combinators.SomeFailure
157 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
160 Data.Set.Internal.Tip
161 Data.Set.Internal.Tip
165 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
174 failExp GHC.Base.<> farExp
181 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
183 let _ = "choicesBranch.else"
184 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
185 loop = \_callReturn callInput callCatchStackByLabel ->
186 let readFail = catchHandler callInput
187 in if readMore callInput
192 #) = readNext callInput
193 in if (GHC.Classes.==) 'r' c
195 sr <- GHC.STRef.readSTRef reg
197 let dupv = \x -> sr ((GHC.Types.:) 'r' x)
198 GHC.STRef.writeSTRef reg dupv
200 in loop (GHC.Err.error "invalid return") cs (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
202 let _ = "checkToken.else"
204 Data.Set.Internal.Bin
206 ( Symantic.Parser.Grammar.Combinators.SomeFailure
208 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'r'
211 Data.Set.Internal.Tip
212 Data.Set.Internal.Tip
216 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
225 failExp GHC.Base.<> Data.Set.Internal.empty
230 Data.Set.Internal.empty
232 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
234 let _ = "checkHorizon.else"
236 Data.Set.Internal.Bin
238 ( Symantic.Parser.Grammar.Combinators.SomeFailure
240 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
243 Data.Set.Internal.Tip
244 Data.Set.Internal.Tip
248 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
257 failExp GHC.Base.<> Data.Set.Internal.empty
262 Data.Set.Internal.empty
264 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
266 in loop finalRet init Data.Map.Internal.Tip