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
84 ( let _ = "resume.genCode"
85 in GHC.Show.show (sr GHC.Types . [])
89 let _ = "choicesBranch.else"
90 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
91 loop = \_callReturn callInput callCatchStackByLabel ->
92 let readFail = catchHandler callInput
93 in if readMore callInput
98 #) = readNext callInput
99 in if (GHC.Classes.==) 'a' c
101 sr <- GHC.STRef.readSTRef reg
103 let dupv = \x -> sr ((GHC.Types.:) 'a' x)
104 GHC.STRef.writeSTRef reg dupv
106 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)
108 let _ = "checkToken.else"
110 Data.Set.Internal.Bin
112 ( Symantic.Parser.Grammar.Combinators.SomeFailure
114 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
117 Data.Set.Internal.Tip
118 Data.Set.Internal.Tip
122 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
131 failExp GHC.Base.<> Data.Set.Internal.empty
136 Data.Set.Internal.empty
138 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
140 let _ = "checkHorizon.else"
142 Data.Set.Internal.Bin
144 ( Symantic.Parser.Grammar.Combinators.SomeFailure
146 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
149 Data.Set.Internal.Tip
150 Data.Set.Internal.Tip
154 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init callInput of
163 failExp GHC.Base.<> Data.Set.Internal.empty
168 Data.Set.Internal.empty
170 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure callInput farInp farExp
172 in loop finalRet init Data.Map.Internal.Tip