Beispiel #1
0
            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)
                    {
Beispiel #2
0
 public IMatchable Catenate(IRegexContext ctx, IMatchable p1, IMatchable p2) => Pattern.Match(p1).Then(p2);
Beispiel #3
0
 public IMatchable Literal(IRegexContext ctx, CharRange range) => range;
Beispiel #4
0
 public IMatchable Alternate(IRegexContext ctx, IMatchable p1, IMatchable p2) => Pattern.AnyOf(p1, p2);
Beispiel #5
0
 public IMatchable Empty(IRegexContext ctx) => Pattern.Empty;