Parse a regular expressions into a Lean.Syntax tree according to the Syntax.Flavor.
https://www.pcre.org/current/doc/html/pcre2pattern.html#internaloptions
- None : ExtendedKind
- Extended : ExtendedKind
- ExtendedMore : ExtendedKind
Instances For
def Regex.Grammar.parse (s : String) (flavor : Syntax.Flavor) (extended : ExtendedKind := ExtendedKind.None) :
Except String (Lean.TSyntax `sequence)
Parse a PCRE2 regular expressions into a Lean.Syntax tree.