Documentation

Regex.Data.Parsec.Basic

Parsec utils for ReaderT and StateT

def Parsec.attemptM {ρ : Type} {σ : Type} {α : Type} (p : ReaderT ρ (StateT σ Lean.Parsec) α) :

extends Lean.Parsec.attempt

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    Equations
    • Parsec.instHOrElseParsecReaderTStateT_regex = { hOrElse := Parsec.orElseT }
    def Parsec.tryCatchT {σ : Type} {α : Type} {β : Type} (p : StateT σ Lean.Parsec α) (csuccess : αStateT σ Lean.Parsec β) (cerror : UnitStateT σ Lean.Parsec β) :

    extends Lean.Parsec.tryCatch

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Parsec.manyM {ρ : Type} {σ : Type} {α : Type} (p : ReaderT ρ (StateT σ Lean.Parsec) α) :

      extends Lean.Parsec.many

      Equations
      Instances For
        def Parsec.failM {ρ : Type} {σ : Type} {α : Type} (msg : String) :
        Equations
        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Parsec.withPosM {ρ : Type} {σ : Type} {α : Type} (p : ReaderT ρ (StateT σ Lean.Parsec) α) :
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              Equations
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  Equations
                  Instances For

                    exec check on current char

                    Equations
                    Instances For

                      exec check on current char and consume char on success

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        exec check on current char and skip char on success

                        Equations
                        Instances For
                          def Parsec.tryCharThen {α : Type} (check : CharBool) (f : Charα) (msg : optParam String "") :

                          exec check on current char and then exec f on consumed char on success

                          Equations
                          Instances For
                            def Parsec.tryCharMap {α : Type} (check : CharBool) (f : Charα) :

                            exec check on current char and map f on consumed char on success

                            Equations
                            Instances For

                              exec check on current char and then exec p on success

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                def Parsec.tryCharThenPWithPosM {ρ : Type} {σ : Type} {α : Type} (check : CharBool) (p : ReaderT ρ (StateT σ Lean.Parsec) α) :

                                exec check on current char and then exec p on success

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  def Parsec.tryCharWithPosMap {α : Type} (check : CharBool) (f : CharString.PosString.Posα) :
                                  Equations
                                  Instances For