instance
Compiler.Code.instMonadLiftTStateTIdEStateM_regex
{σ ε : Type u_1}
:
MonadLiftT (StateT σ Id) (EStateM ε σ)
Equations
- Compiler.Code.instMonadLiftTStateTIdEStateM_regex = { monadLift := fun {α : Type ?u.14} => EStateM.modifyGet }
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
Instances For
Equations
Instances For
Equations
- Compiler.Code.add_match pattern_id = Compiler.Code.push (NFA.Unchecked.State.Match pattern_id)
Instances For
Instances For
Equations
- Compiler.Code.add_backrefence case_insensitive b = Compiler.Code.push (NFA.Unchecked.State.BackRef b case_insensitive 0)
Instances For
Equations
- Compiler.Code.c_range start «end» = Compiler.Code.push' (NFA.Unchecked.State.ByteRange { start := start, «end» := «end», next := 0 })
Instances For
Instances For
Instances For
Equations
- Compiler.Code.add_eat mode = Compiler.Code.push (NFA.Unchecked.State.Eat mode 0)
Instances For
Equations
Instances For
Equations
- Compiler.Code.add_next_char offset = Compiler.Code.push (NFA.Unchecked.State.NextChar offset 0)
Instances For
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- Compiler.Code.c_look Syntax.Look.Start = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.Start 0)
- Compiler.Code.c_look Syntax.Look.End = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.End 0)
- Compiler.Code.c_look Syntax.Look.EndWithOptionalLF = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.EndWithOptionalLF 0)
- Compiler.Code.c_look Syntax.Look.StartLF = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.StartLF 0)
- Compiler.Code.c_look Syntax.Look.EndLF = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.EndLF 0)
- Compiler.Code.c_look Syntax.Look.StartCRLF = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.StartCRLF 0)
- Compiler.Code.c_look Syntax.Look.EndCRLF = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.EndCRLF 0)
- Compiler.Code.c_look Syntax.Look.WordUnicode = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.WordUnicode 0)
- Compiler.Code.c_look Syntax.Look.WordUnicodeNegate = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.WordUnicodeNegate 0)
- Compiler.Code.c_look Syntax.Look.WordStartUnicode = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.WordStartUnicode 0)
- Compiler.Code.c_look Syntax.Look.WordEndUnicode = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.WordEndUnicode 0)
- Compiler.Code.c_look Syntax.Look.WordStartHalfUnicode = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.WordStartHalfUnicode 0)
- Compiler.Code.c_look Syntax.Look.WordEndHalfUnicode = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.WordEndHalfUnicode 0)
- Compiler.Code.c_look Syntax.Look.PreviousMatch = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.PreviousMatch 0)
- Compiler.Code.c_look Syntax.Look.ClearMatches = Compiler.Code.push' (NFA.Unchecked.State.Look NFA.Look.ClearMatches 0)
Instances For
Equations
- Compiler.Code.c_cap' role pattern_id slot = Compiler.Code.push (NFA.Unchecked.State.Capture role 0 0 pattern_id slot)
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
Equations
- Compiler.Code.is_possible_empty_repetition (Syntax.Hir.mk (Syntax.HirKind.Repetition (Syntax.Repetition.mk 0 max greedy possessive sub)) props) = true
- Compiler.Code.is_possible_empty_repetition hir = false
Instances For
Equations
- Compiler.Code.is_empty_concat hir = match hir with | Syntax.Hir.mk (Syntax.HirKind.Concat #[]) props => true | x => false
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
- One or more equations did not get rendered due to their size.
- Compiler.Code.get_possible_empty_capture_group (Syntax.Hir.mk (Syntax.HirKind.Capture (Syntax.Capture.mk g name (Syntax.Hir.mk kind_2 props_1))) props) = none
- Compiler.Code.get_possible_empty_capture_group (Syntax.Hir.mk kind props) = none
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Compiler.Code.cannotMatchEmptyString hir = match hir.properties.minimum_len with | some n => decide (n > 0) | none => false
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_lookaround_PositiveLookbehind
(next_char : NFA.Unchecked.StateID)
(compiled : ThompsonRef)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Compiler.Code.c_lookaround_NegativeLookbehind
(next_char : NFA.Unchecked.StateID)
(compiled : ThompsonRef)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Compiler.Code.c_repetition_0_some_1_false
(union : NFA.Unchecked.StateID)
(compiled : ThompsonRef)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Compiler.Code.c_repetition_0_some_1_true
(union : NFA.Unchecked.StateID)
(compiled : ThompsonRef)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Compiler.Code.c_repetition_0_none union compiled = do Compiler.Code.patch union compiled.start Compiler.Code.patch compiled.end union pure { start := union, «end» := union }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Compiler.Code.c_at_least_0_post
(compiled : ThompsonRef)
(plus : NFA.Unchecked.StateID)
(greedy possessive : 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
Instances For
def
Compiler.Code.c_at_least_1_post
(compiled : ThompsonRef)
(union : NFA.Unchecked.StateID)
(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
def
Compiler.Code.c_bounded.fold.patch.pre
(compiled : ThompsonRef)
(prev_end : NFA.Unchecked.StateID)
(greedy : Bool)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Compiler.Code.c_bounded.fold.patch.possessive
(compiled : ThompsonRef)
(empty : NFA.Unchecked.StateID)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Compiler.Code.c_bounded.fold.patch.post
(compiled : ThompsonRef)
(union empty : NFA.Unchecked.StateID)
:
Equations
- Compiler.Code.c_bounded.fold.patch.post compiled union empty = do Compiler.Code.patch union empty pure compiled.end
Instances For
def
Compiler.Code.c_bounded.fold.patch
(compiled : ThompsonRef)
(prev_end empty : NFA.Unchecked.StateID)
(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
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]
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]
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
- One or more equations did not get rendered due to their size.
- Compiler.Code.c_lookaround (Syntax.Lookaround.PositiveLookahead h) = do let compiled ← Compiler.Code.c h liftM (Compiler.Code.c_lookaround_PositiveLookahead compiled)
- Compiler.Code.c_lookaround (Syntax.Lookaround.NegativeLookahead h) = do let compiled ← Compiler.Code.c h liftM (Compiler.Code.c_lookaround_NegativeLookahead compiled)
Instances For
@[irreducible]
Equations
- One or more equations did not get rendered due to their size.
- Compiler.Code.c_repetition (Syntax.Repetition.mk min (some max) greedy possessive sub) = if min ≤ max then Compiler.Code.c_bounded sub min max greedy possessive else liftM Compiler.Code.c_empty
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.