\(input :: inp) ->
  let !(#
         initBuffer,
         initPos,
         readMore,
         readNext,
         append
         #) =
          let next buf pos =
                let !( Data.Text.Unsafe.Iter
                         c
                         d
                       ) = Symantic.Parser.Machine.Input.Text.Buffer.iter buf pos
                 in (# c, pos GHC.Num.+ d #)
              more buf pos = pos GHC.Classes.< Symantic.Parser.Machine.Input.Text.Buffer.length buf
              append = Symantic.Parser.Machine.Input.Text.Buffer.pappend
           in (#
                Symantic.Parser.Machine.Input.Text.Buffer.buffer input,
                0,
                more,
                next,
                append
              #)
      finalRet = \_farInp _farExp v _inp _buf _end -> Symantic.Parser.Machine.Generate.returnST GHC.Base.$ Symantic.Parser.Machine.Generate.ResultDone v
      finalRaise :: Symantic.Parser.Machine.Generate.ForallOnException inp =
        Symantic.Parser.Machine.Generate.ForallOnException GHC.Base.$
          ( \(!exn) _failInp (!farInp) (!farExp) buf end ->
              Symantic.Parser.Machine.Generate.returnST GHC.Base.$
                Symantic.Parser.Machine.Generate.ResultError
                  Symantic.Parser.Machine.Generate.ParsingError
                    { Symantic.Parser.Machine.Generate.parsingErrorOffset = Symantic.Parser.Machine.Input.position farInp,
                      Symantic.Parser.Machine.Generate.parsingErrorException = exn,
                      Symantic.Parser.Machine.Generate.parsingErrorUnexpected =
                        if readMore buf farInp
                          then
                            GHC.Maybe.Just
                              ( let (#
                                      c,
                                      _
                                      #) = readNext buf farInp
                                 in c
                              )
                          else GHC.Maybe.Nothing,
                      Symantic.Parser.Machine.Generate.parsingErrorExpecting =
                        let ( minHoriz,
                              res
                              ) =
                                Data.Set.Internal.foldr
                                  ( \f
                                     ( minH,
                                       acc
                                       ) -> case Symantic.Parser.Grammar.Combinators.unSomeFailure f of
                                        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)))
                                          | GHC.Maybe.Just old <- minH ->
                                              ( GHC.Maybe.Just (GHC.Classes.min old h),
                                                acc
                                              )
                                          | GHC.Base.otherwise ->
                                              ( GHC.Maybe.Just h,
                                                acc
                                              )
                                        _ ->
                                          ( minH,
                                            f GHC.Types.: acc
                                          )
                                  )
                                  ( GHC.Maybe.Nothing,
                                    GHC.Types . []
                                  )
                                  farExp
                         in Data.Set.Internal.fromList GHC.Base.$
                              ( case minHoriz of
                                  GHC.Maybe.Just h -> Symantic.Parser.Grammar.Combinators.SomeFailure (Symantic.Parser.Grammar.Combinators.FailureHorizon @(Symantic.Parser.Machine.Input.InputToken inp) h) GHC.Types.: res
                                  GHC.Maybe.Nothing -> res
                              )
                    }
          )
   in let inputToken = Data.Proxy.Proxy :: Data.Proxy.Proxy (Symantic.Parser.Machine.Input.InputToken inp)
       in let _ = "checkHorizon.noCheck"
           in let
               in let _ = "pushValue"
                   in let join = \farInp farExp v (!inp) buf end ->
                            let _ = "lift2Value checkedHorizon=0"
                             in let _ = "resume"
                                 in finalRet
                                      farInp
                                      farExp
                                      ( let _ = "resume.genCode"
                                         in GHC.Show.show v
                                      )
                                      inp
                                      buf
                                      end
                       in let _ = "catch ExceptionFailure checkedHorizon=0"
                           in let onException =
                                    let _ = "onException"
                                     in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
                                          let _ = "comment: raiseAgainIfConsumed"
                                           in let _ = "saveInput checkedHorizon=0"
                                               in let _ = "lift2Value checkedHorizon=0"
                                                   in if (GHC.Classes.==) @GHC.Types.Int initPos failInp
                                                        then
                                                          let _ = "choicesBranch checkedHorizon=0"
                                                           in let _ = "comment: eof.fail"
                                                               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
                                                                   in let (#
                                                                            farInp,
                                                                            farExp
                                                                            #) = case GHC.Classes.compare @GHC.Types.Int farInp failInp of
                                                                              GHC.Types.LT ->
                                                                                (#
                                                                                  failInp,
                                                                                  failExp
                                                                                #)
                                                                              GHC.Types.EQ ->
                                                                                (#
                                                                                  farInp,
                                                                                  failExp GHC.Base.<> farExp
                                                                                #)
                                                                              GHC.Types.GT ->
                                                                                (#
                                                                                  farInp,
                                                                                  farExp
                                                                                #)
                                                                       in Symantic.Parser.Machine.Generate.unForallOnException finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
                                                        else
                                                          let _ = "choicesBranch.else"
                                                           in Symantic.Parser.Machine.Generate.unForallOnException finalRaise Symantic.Parser.Grammar.Combinators.ExceptionFailure failInp farInp farExp buf end
                               in let _ = "comment: negLook"
                                   in let _ = "catch ExceptionFailure checkedHorizon=0"
                                       in let onException =
                                                let _ = "onException"
                                                 in \(!_exn) (!failInp) (!farInp) (!farExp) buf end ->
                                                      let _ = "comment: negLook.reset"
                                                       in let _ = "loadInput checkedHorizon=0"
                                                           in let _ = "checkHorizon.noCheck"
                                                               in let _ = "pushValue"
                                                                   in let _ = "commit"
                                                                       in let _ = "resume"
                                                                           in join
                                                                                farInp
                                                                                farExp
                                                                                ( let _ = "resume.genCode"
                                                                                   in GHC.Tuple . ()
                                                                                )
                                                                                initPos
                                                                                buf
                                                                                end
                                           in let _ = "comment: negLook.ahead"
                                               in let _ = "saveInput checkedHorizon=0"
                                                   in let _ = "comment: satisfy (GHC.Base.const GHC.Types.True)"
                                                       in let partialCont buf =
                                                                let readFail = onException
                                                                 in let _ = "checkHorizon.newCheck: checkedHorizon=0 minHoriz=1"
                                                                     in if readMore buf initPos
                                                                          then
                                                                            let _ = "checkToken"
                                                                             in let !(#
                                                                                       c,
                                                                                       cs
                                                                                       #) = readNext buf initPos
                                                                                 in let _ = "popValue"
                                                                                     in let _ = "commit"
                                                                                         in let _ = "loadInput checkedHorizon=0"
                                                                                             in let _ = "checkHorizon.noCheck"
                                                                                                 in onException Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos initPos Data.Set.Internal.empty buf GHC.Types.False
                                                                          else
                                                                            let _ = "checkHorizon.newCheck.fail"
                                                                             in let noMoreInput =
                                                                                      let failExp =
                                                                                            Data.Set.Internal.Bin
                                                                                              1
                                                                                              ( Symantic.Parser.Grammar.Combinators.SomeFailure
                                                                                                  ( case inputToken of
                                                                                                      (Data.Proxy.Proxy :: Data.Proxy.Proxy tok') -> Symantic.Parser.Grammar.Combinators.FailureHorizon @tok' 1
                                                                                                  )
                                                                                              )
                                                                                              Data.Set.Internal.Tip
                                                                                              Data.Set.Internal.Tip
                                                                                       in let (#
                                                                                                farInp,
                                                                                                farExp
                                                                                                #) = case GHC.Classes.compare @GHC.Types.Int initPos initPos of
                                                                                                  GHC.Types.LT ->
                                                                                                    (#
                                                                                                      initPos,
                                                                                                      failExp
                                                                                                    #)
                                                                                                  GHC.Types.EQ ->
                                                                                                    (#
                                                                                                      initPos,
                                                                                                      failExp GHC.Base.<> Data.Set.Internal.empty
                                                                                                    #)
                                                                                                  GHC.Types.GT ->
                                                                                                    (#
                                                                                                      initPos,
                                                                                                      Data.Set.Internal.empty
                                                                                                    #)
                                                                                           in readFail Symantic.Parser.Grammar.Combinators.ExceptionFailure initPos farInp farExp buf GHC.Types.True
                                                                                 in if GHC.Types.False
                                                                                      then noMoreInput
                                                                                      else
                                                                                        Symantic.Parser.Machine.Generate.returnST GHC.Base.$
                                                                                          ( Symantic.Parser.Machine.Generate.ResultPartial GHC.Base.$
                                                                                              ( \newInput ->
                                                                                                  if Symantic.Parser.Machine.Input.nullInput newInput
                                                                                                    then noMoreInput
                                                                                                    else partialCont (append buf newInput)
                                                                                              )
                                                                                          )
                                                           in partialCont initBuffer