Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- Regex.Syntax.Parser.repeatConcat.go e accum 0 = accum
- Regex.Syntax.Parser.repeatConcat.go e accum n.succ = Regex.Syntax.Parser.repeatConcat.go e (accum.concat e) n
Instances For
def
Regex.Syntax.Parser.applyRepetitions
(min : Nat)
(max : Option Nat)
(greedy : Bool)
(e : Data.Expr)
:
Equations
- One or more equations did not get rendered due to their size.
- Regex.Syntax.Parser.applyRepetitions 0 (some 1) greedy e = if greedy = true then e.alternate Regex.Data.Expr.epsilon else Regex.Data.Expr.epsilon.alternate e
- Regex.Syntax.Parser.applyRepetitions 0 none greedy e = Regex.Data.Expr.star greedy e
- Regex.Syntax.Parser.applyRepetitions 1 none greedy e = e.concat (Regex.Data.Expr.star greedy e)
- Regex.Syntax.Parser.applyRepetitions min none greedy e = (Regex.Syntax.Parser.repeatConcat e min).concat (Regex.Data.Expr.star greedy e)
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Regex.Syntax.Parser.Ast.toRegexAux index Regex.Syntax.Parser.Ast.empty = (index, Regex.Data.Expr.empty)
- Regex.Syntax.Parser.Ast.toRegexAux index Regex.Syntax.Parser.Ast.epsilon = (index, Regex.Data.Expr.epsilon)
- Regex.Syntax.Parser.Ast.toRegexAux index (Regex.Syntax.Parser.Ast.anchor a) = (index, Regex.Data.Expr.anchor a)
- Regex.Syntax.Parser.Ast.toRegexAux index (Regex.Syntax.Parser.Ast.char a) = (index, Regex.Data.Expr.char a)
- Regex.Syntax.Parser.Ast.toRegexAux index a.group = match Regex.Syntax.Parser.Ast.toRegexAux (index + 1) a with | (index', r) => (index', Regex.Data.Expr.group index r)
- Regex.Syntax.Parser.Ast.toRegexAux index (Regex.Syntax.Parser.Ast.classes a) = (index, Regex.Data.Expr.classes a)
- Regex.Syntax.Parser.Ast.toRegexAux index (Regex.Syntax.Parser.Ast.perl a) = (index, Regex.Data.Expr.classes { negated := false, classes := #[Regex.Data.Class.perl a] })
Instances For
Equations
- ast.toRegex = (Regex.Syntax.Parser.Ast.toRegexAux 0 ast).snd