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.OnException
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 =
57 Data.Set.Internal.foldr
61 ) -> case Symantic.Parser.Grammar.Combinators.unSomeFailure f of
62 GHC.Maybe.Just (Symantic.Parser.Grammar.Combinators.FailureHorizon h :: Symantic.Parser.Grammar.Combinators.Failure (Symantic.Parser.Grammar.Combinators.CombSatisfiable (Symantic.Parser.Machine.Input.InputToken inp)))
63 | GHC.Maybe.Just old <- minH ->
64 ( GHC.Maybe.Just (GHC.Classes.min old h),
67 | GHC.Base.otherwise ->
80 in Data.Set.Internal.fromList GHC.Base.$
82 GHC.Maybe.Just h -> Symantic.Parser.Grammar.Combinators.SomeFailure (Symantic.Parser.Grammar.Combinators.FailureHorizon @(Symantic.Parser.Machine.Input.InputToken inp) h) GHC.Types.: res
83 GHC.Maybe.Nothing -> res
87 ( let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
88 in let _ = "checkHorizon.noCheck"
90 in let _ = "pushValue"
91 in let _ = "pushValue"
94 reg <- GHC.STRef.newSTRef dupv
96 in let onException loopInput =
98 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
99 let _ = "comment: raiseAgainIfConsumed"
100 in let _ = "saveInput checkedHorizon=0"
101 in let _ = "lift2Value checkedHorizon=0"
102 in if ( \( Data.Text.Internal.Text
107 ( Data.Text.Internal.Text
111 ) -> i GHC.Classes.== j
116 let _ = "choicesBranch checkedHorizon=0"
118 sr <- GHC.STRef.readSTRef reg
120 in let _ = "lift2Value checkedHorizon=0"
121 in let _ = "lift2Value checkedHorizon=0"
126 ( let _ = "resume.genCode"
127 in GHC.Show.show (sr GHC.Types . [])
131 let _ = "choicesBranch.else"
132 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
133 loop = \_callerOnReturn callerInput callerOnExceptionStackByLabel ->
135 in let _ = "comment: satisfy ((GHC.Classes.==) 'a')"
136 in let inp = callerInput
137 in let readFail = onException callerInput
138 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
146 in if (GHC.Classes.==) 'a' c
148 let _ = "lift2Value checkedHorizon=1"
149 in let _ = "pushValue"
150 in let _ = "lift2Value checkedHorizon=1"
152 sr <- GHC.STRef.readSTRef reg
153 let _ = "lift2Value checkedHorizon=1"
155 let dupv = \x -> sr ((GHC.Types.:) 'a' x)
156 GHC.STRef.writeSTRef reg dupv
158 in loop (GHC.Err.error "invalid onReturn") cs (Data.Map.Internal.Bin 1 Symantic.Parser.Grammar.Combinators.ExceptionFailure readFail Data.Map.Internal.Tip Data.Map.Internal.Tip)
160 let _ = "checkToken.fail"
162 Data.Set.Internal.Bin
164 ( Symantic.Parser.Grammar.Combinators.SomeFailure
166 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureToken 'a'
169 Data.Set.Internal.Tip
170 Data.Set.Internal.Tip
174 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
183 failExp GHC.Base.<> Data.Set.Internal.empty
188 Data.Set.Internal.empty
190 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
192 let _ = "checkHorizon.newCheck.fail"
194 Data.Set.Internal.Bin
196 ( Symantic.Parser.Grammar.Combinators.SomeFailure
198 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
201 Data.Set.Internal.Tip
202 Data.Set.Internal.Tip
206 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
215 failExp GHC.Base.<> Data.Set.Internal.empty
220 Data.Set.Internal.empty
222 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp
224 in loop finalRet init Data.Map.Internal.Tip