Flavor of regular expressions
- Pcre : Flavor
Perl-compatible regular expressions (https://www.pcre.org/current/doc/html/pcre2pattern.html).
- Rust : Flavor
Rust-compatible regular expressions (https://docs.rs/regex/latest/regex/#syntax).
Instances For
Equations
- Regex.Syntax.instBEqFlavor.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)
Instances For
@[implicit_reducible]
Equations
@[implicit_reducible]
Equations
- Regex.Syntax.instReprFlavor = { reprPrec := Regex.Syntax.instReprFlavor.repr }
Equations
- Regex.Syntax.instReprFlavor.repr Regex.Syntax.Flavor.Pcre prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Regex.Syntax.Flavor.Pcre")).group prec✝
- Regex.Syntax.instReprFlavor.repr Regex.Syntax.Flavor.Rust prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Regex.Syntax.Flavor.Rust")).group prec✝
Instances For
@[implicit_reducible]
Equations
- Regex.Syntax.instInhabitedFlavor = { default := Regex.Syntax.Flavor.Pcre }
@[implicit_reducible]
Equations
- Regex.Syntax.instToStringFlavor = { toString := fun (f : Regex.Syntax.Flavor) => match f with | Regex.Syntax.Flavor.Pcre => "Pcre" | Regex.Syntax.Flavor.Rust => "Rust" }