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
Equations
- Syntax.instBEqFlavor.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)
 
Instances For
Equations
- Syntax.instReprFlavor.repr Syntax.Flavor.Pcre prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Syntax.Flavor.Pcre")).group prec✝
 - Syntax.instReprFlavor.repr Syntax.Flavor.Rust prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Syntax.Flavor.Rust")).group prec✝
 
Instances For
Equations
- Syntax.instReprFlavor = { reprPrec := Syntax.instReprFlavor.repr }
 
Equations
- Syntax.instInhabitedFlavor = { default := Syntax.Flavor.Pcre }
 
Equations
- Syntax.instToStringFlavor = { toString := fun (f : Syntax.Flavor) => match f with | Syntax.Flavor.Pcre => "Pcre" | Syntax.Flavor.Rust => "Rust" }