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 join = \farInp farExp v (!inp) ->
92 let _ = "lift2Value checkedHorizon=0"
97 ( let _ = "resume.genCode"
101 in let _ = "catch ExceptionFailure checkedHorizon=0"
103 let _ = "onException"
104 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
105 let _ = "comment: raiseAgainIfConsumed"
106 in let _ = "saveInput checkedHorizon=0"
107 in let _ = "lift2Value checkedHorizon=0"
108 in if ( \( Data.Text.Internal.Text
113 ( Data.Text.Internal.Text
117 ) -> i GHC.Classes.== j
122 let _ = "choicesBranch checkedHorizon=0"
123 in let _ = "comment: eof.fail"
124 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
128 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) farInp failInp of
137 failExp GHC.Base.<> farExp
144 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
146 let _ = "choicesBranch.else"
147 in finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp
148 in let _ = "comment: negLook"
149 in let _ = "catch ExceptionFailure checkedHorizon=0"
151 let _ = "onException"
152 in \(!_exn) (!failInp) (!farInp) (!farExp) ->
153 let _ = "comment: negLook.reset"
154 in let _ = "loadInput checkedHorizon=0"
155 in let _ = "checkHorizon.noCheck"
156 in let _ = "pushValue"
162 ( let _ = "resume.genCode"
166 in let _ = "comment: negLook.ahead"
167 in let _ = "saveInput checkedHorizon=0"
168 in let _ = "comment: satisfy ((\\x_0 -> \\x_1 -> x_0) GHC.Types.True)"
170 in let readFail = onException
171 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
179 in let _ = "popValue"
181 in let _ = "loadInput checkedHorizon=0"
182 in let _ = "checkHorizon.noCheck"
183 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure init init Data.Set.Internal.empty
185 let _ = "checkHorizon.newCheck.fail"
187 Data.Set.Internal.Bin
189 ( Symantic.Parser.Grammar.Combinators.SomeFailure
191 (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
194 Data.Set.Internal.Tip
195 Data.Set.Internal.Tip
199 #) = case (GHC.Classes.compare `Data.Function.on` Symantic.Parser.Machine.Input.offset) init inp of
208 failExp GHC.Base.<> Data.Set.Internal.empty
213 Data.Set.Internal.empty
215 in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure inp farInp farExp