public IMatchable Repeat(IRegexContext ctx, IMatchable p, int min = -1, int max = -1, bool lazy = false) { #pragma warning disable 618 if (ctx.Option(RegexOptions.Legacy)) #pragma warning restore 618 { switch (min, max) {
public IMatchable Catenate(IRegexContext ctx, IMatchable p1, IMatchable p2) => Pattern.Match(p1).Then(p2);
public IMatchable Literal(IRegexContext ctx, CharRange range) => range;
public IMatchable Alternate(IRegexContext ctx, IMatchable p1, IMatchable p2) => Pattern.AnyOf(p1, p2);
public IMatchable Empty(IRegexContext ctx) => Pattern.Empty;