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 readFail = finalRaise
81 in if readMore failInp
87 in if (GHC.Classes.==) 'b' c
93 ( let _ = "resume.genCode"
94 in GHC.Show.show (sr GHC.Types . [])
98 let _ = "checkToken.else"
100 Data.Set.Internal.Bin
102 ( Symantic.Parser.Grammar.Combinators.SomeFailure
104 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'b'
107 Data.Set.Internal.Tip
108 Data.Set.Internal.Tip
112 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
121 failExp GHC.Base.<> farExp
128 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
130 let _ = "checkHorizon.else"
132 Data.Set.Internal.Bin
134 ( Symantic.Parser.Grammar.Combinators.SomeFailure
136 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
139 Data.Set.Internal.Tip
140 Data.Set.Internal.Tip
144 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
153 failExp GHC.Base.<> farExp
160 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
162 let _ = "choicesBranch.else"
163 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
164 loop = \_callReturn callInput callCatchStackByLabel ->
165 let readFail = catchHandler callInput
166 in if readMore callInput
171 #) = readNext callInput
172 in if (GHC.Classes.==) 'a' c
174 sr <- GHC.STRef.readSTRef reg
176 let dupv = \x -> sr ((GHC.Types.:) 'a' x)
177 GHC.STRef.writeSTRef reg dupv
179 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)
181 let _ = "checkToken.else"
183 Data.Set.Internal.Bin
185 ( Symantic.Parser.Grammar.Combinators.SomeFailure
187 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
190 Data.Set.Internal.Tip
191 Data.Set.Internal.Tip
195 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
204 failExp GHC.Base.<> Data.Set.Internal.empty
209 Data.Set.Internal.empty
211 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
213 let _ = "checkHorizon.else"
215 Data.Set.Internal.Bin
217 ( Symantic.Parser.Grammar.Combinators.SomeFailure
219 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
222 Data.Set.Internal.Tip
223 Data.Set.Internal.Tip
227 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
236 failExp GHC.Base.<> Data.Set.Internal.empty
241 Data.Set.Internal.empty
243 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
245 in loop finalRet init Data.Map.Internal.Tip