Documentation

Regex.Compiler.Compile

@[instance_reducible]
@[instance_reducible]
instance Compiler.Code.instMonadLiftTStateTIdEStateMProd_regex {σ₁ ε : Type (max u_1 u_2)} {σ₂ : Type u_2} :
MonadLiftT (StateT σ₁ Id) (EStateM ε (σ₁ × σ₂))
@[instance_reducible]
instance Compiler.Code.instMonadLiftTEStateMProd_regex {ε σ₁ : Type (max u_1 u_2)} {σ₂ : Type u_2} :
MonadLiftT (EStateM ε σ₁) (EStateM ε (σ₁ × σ₂))
@[reducible, inline]

The state consists of a tuple of arrays of states, captures and of capture groups with property get_possible_empty_capture_group.

Instances For
    @[reducible, inline]
    Instances For
      Instances For
        Instances For

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

          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

            Instances For
              def Compiler.Code.c_back_ref (case_insensitive : Bool) (n : Nat) :
              Instances For
                def Compiler.Code.head (hirs : Array Regex.Syntax.Hir) (h : 0 < hirs.size) :
                Instances For
                  theorem Compiler.Code.head_mem_lt {hirs : Array Regex.Syntax.Hir} {h : 0 < hirs.size} (x : { hir : Regex.Syntax.Hir // hir ∈ (head hirs h).val.snd }) :
                  theorem Compiler.Code.head_apply_lt (hirs : Array Regex.Syntax.Hir) (h : 0 < hirs.size) :
                  sizeOf (head hirs h).val.fst < sizeOf hirs
                  Instances For
                    def Compiler.Code.c_at_least_set (possible_empty_capture_group : Option Nat) (greedy : Bool) :
                    Instances For
                      def Compiler.Code.c_at_least_0 (compiled : ThompsonRef) (possible_empty_capture_group : Option Nat) (greedy : Bool) :
                      Instances For
                        Instances For
                          def Compiler.Code.c_at_least_1 (possible_empty_capture_group : Option Nat) (greedy : Bool) :
                          Instances For
                            def Compiler.Code.c_at_least_2 («prefix» last : ThompsonRef) (greedy possessive : Bool) :
                            Instances For
                              Instances For
                                @[irreducible]
                                Instances For
                                  @[irreducible]
                                  Instances For
                                    @[irreducible]
                                    def Compiler.Code.c_at_least (hir : Regex.Syntax.Hir) (n : Nat) (greedy possessive : Bool) :

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

                                    Instances For
                                      @[irreducible]
                                      Instances For
                                        @[irreducible]
                                        def Compiler.Code.c_bounded (hir : Regex.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.

                                        Instances For
                                          @[irreducible]
                                          Instances For
                                            Instances For

                                              Compile the HIR expression given.

                                              Instances For