Documentation

Regex.Compiler.Compile

instance Compiler.Code.instMonadLiftTStateTIdEStateMProd_regex {σ₁ ε : Type (max u_1 u_2)} {σ₂ : Type u_2} :
MonadLiftT (StateT σ₁ Id) (EStateM ε (σ₁ × σ₂))
Equations
  • One or more equations did not get rendered due to their size.
instance Compiler.Code.instMonadLiftTEStateMProd_regex {ε σ₁ : Type (max u_1 u_2)} {σ₂ : Type u_2} :
MonadLiftT (EStateM ε σ₁) (EStateM ε (σ₁ × σ₂))
Equations
  • One or more equations did not get rendered due to their size.
@[reducible, inline]

the state consists of a pair of arrays of capture groups and of Unchecked.State's

Equations
Instances For
    @[reducible, inline]
    Equations
    Instances For
      Equations
      Instances For
        Equations
        Instances For
          Equations
          Instances For
            Equations
            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                Equations
                Instances For
                  Equations
                  Instances For

                    embed start to end in a possessive union, i.e. remove backtracking frames from stack if end state is reached

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

                      collect group if hir is a capture group which may match with a empty string, it is used to build a greedy search in the Pcre flavor

                      Equations
                      Instances For
                        def Compiler.Code.c_back_ref (case_insensitive : Bool) (n : Nat) :
                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def Compiler.Code.head (hirs : Array Syntax.Hir) (h : 0 < hirs.size) :
                          { pair : Syntax.Hir × Array Syntax.Hir // pair.fst hirs pair.snd.size < hirs.size sizeOf pair.snd < sizeOf hirs }
                          Equations
                          Instances For
                            theorem Compiler.Code.head_mem_lt {hirs : Array Syntax.Hir} {h : 0 < hirs.size} (x : { hir : Syntax.Hir // hir (head hirs h).val.snd }) :
                            theorem Compiler.Code.head_apply_lt (hirs : Array Syntax.Hir) (h : 0 < hirs.size) :
                            sizeOf (head hirs h).val.fst < sizeOf hirs
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      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
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              def Compiler.Code.c_at_least_set (possible_empty_capture_group : Option Nat) (greedy : Bool) :
                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                def Compiler.Code.c_at_least_0 (compiled : ThompsonRef) (possible_empty_capture_group : Option Nat) (greedy : Bool) :
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For
                                                    def Compiler.Code.c_at_least_1 (possible_empty_capture_group : Option Nat) (greedy : Bool) :
                                                    Equations
                                                    • One or more equations did not get rendered due to their size.
                                                    Instances For
                                                      def Compiler.Code.c_at_least_2 («prefix» last : ThompsonRef) (greedy possessive : Bool) :
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            Equations
                                                            • One or more equations did not get rendered due to their size.
                                                            Instances For
                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For
                                                                @[irreducible]
                                                                Equations
                                                                • One or more equations did not get rendered due to their size.
                                                                Instances For
                                                                  @[irreducible]
                                                                  Equations
                                                                  • One or more equations did not get rendered due to their size.
                                                                  Instances For
                                                                    @[irreducible]
                                                                    Equations
                                                                    • One or more equations did not get rendered due to their size.
                                                                    Instances For
                                                                      @[irreducible]
                                                                      Equations
                                                                      • One or more equations did not get rendered due to their size.
                                                                      Instances For
                                                                        @[irreducible]
                                                                        Equations
                                                                        • One or more equations did not get rendered due to their size.
                                                                        Instances For
                                                                          @[irreducible]
                                                                          Equations
                                                                          • One or more equations did not get rendered due to their size.
                                                                          Instances For
                                                                            @[irreducible]
                                                                            def Compiler.Code.c_at_least (hir : Syntax.Hir) (n : Nat) (greedy possessive : Bool) :

                                                                            Compile the given expression such that it may be matched n or more times

                                                                            Equations
                                                                            • One or more equations did not get rendered due to their size.
                                                                            Instances For
                                                                              @[irreducible]
                                                                              def Compiler.Code.c_bounded.fold (hir : Syntax.Hir) (n : Nat) («prefix» : ThompsonRef) (empty : NFA.Unchecked.StateID) (greedy possessive : Bool) :
                                                                              Equations
                                                                              • One or more equations did not get rendered due to their size.
                                                                              Instances For
                                                                                @[irreducible]
                                                                                def Compiler.Code.c_bounded (hir : Syntax.Hir) (min max : Nat) (greedy possessive : Bool) :

                                                                                Compile the given expression such that it matches at least min times, but no more than max times.

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

                                                                                          Compile the HIR expression given.

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