@[instance_reducible]
instance Compiler.Code.instMonadLiftTStateTIdEStateM_regex {σ ε : Type u_1} :
MonadLiftT (StateT σ Id) (EStateM ε σ)
@[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
Instances For
Instances For
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
Instances For
Instances For
Instances For
def Compiler.Code.c_lookaround_PositiveLookbehind (next_char : NFA.Unchecked.StateID) (compiled : ThompsonRef) :
Instances For
def Compiler.Code.c_lookaround_NegativeLookbehind (next_char : NFA.Unchecked.StateID) (compiled : ThompsonRef) :
Instances For
def Compiler.Code.c_repetition_0_some_1_false (union : NFA.Unchecked.StateID) (compiled : ThompsonRef) :
Instances For
def Compiler.Code.c_repetition_0_some_1_true (union : NFA.Unchecked.StateID) (compiled : ThompsonRef) :
Instances For
Instances For
Instances For
def Compiler.Code.c_at_least_0_post (compiled : ThompsonRef) (plus : NFA.Unchecked.StateID) (greedy possessive : Bool) :
Instances For
def Compiler.Code.c_at_least_0 (compiled : ThompsonRef) (possible_empty_capture_group : Option Nat) (greedy : Bool) :
Instances For
def Compiler.Code.c_at_least_1_post (compiled : ThompsonRef) (union : NFA.Unchecked.StateID) (possessive : Bool) :
Instances For
Instances For
Instances For
def Compiler.Code.c_bounded.fold.patch.pre (compiled : ThompsonRef) (prev_end : NFA.Unchecked.StateID) (greedy : Bool) :
Instances For
def Compiler.Code.c_bounded.fold.patch.possessive (compiled : ThompsonRef) (empty : NFA.Unchecked.StateID) :
Instances For
def Compiler.Code.c_bounded.fold.patch.post (compiled : ThompsonRef) (union empty : NFA.Unchecked.StateID) :
Instances For
def Compiler.Code.c_bounded.fold.patch (compiled : ThompsonRef) (prev_end empty : NFA.Unchecked.StateID) (greedy possessive : Bool) :
Instances For
Instances For
Instances For
@[irreducible]
Instances For
@[irreducible]
Instances For
@[irreducible]
def Compiler.Code.c_alt_iter.fold (hirs : Array Regex.Syntax.Hir) (union «end» : NFA.Unchecked.StateID) :
Instances For
@[irreducible]
Instances For
@[irreducible]
def Compiler.Code.c_exactly.fold (hir : Regex.Syntax.Hir) (n : Nat) («end» : NFA.Unchecked.StateID) :
Instances For
@[irreducible]
Instances For
@[irreducible]
Compile the given expression such that it may be matched n or more times
Instances For
@[irreducible]
def Compiler.Code.c_bounded.fold (hir : Regex.Syntax.Hir) (n : Nat) («prefix» : ThompsonRef) (empty : NFA.Unchecked.StateID) (greedy possessive : Bool) :
Instances For
@[irreducible]
Compile the given expression such that it matches at least min times,
but no more than max times.
Instances For
@[irreducible]
Instances For
@[irreducible]
Instances For
@[irreducible]
Instances For
@[irreducible]
Instances For
Compile the HIR expression given.