Пример #1
0
 public static TGroup ContinueWithMany <TGroup, T>(
     this ITokenMatcherItemGroup <TGroup> group,
     string captureName,
     Action <TokenMatcherGroup> configuration,
     string separator,
     Func <TokenMatcherState, T> captureConversion,
     int minimum = 1,
     int maximum = int.MaxValue)
     where T : class
 => group.ContinueWithMany(
     captureName,
     configuration,
     new TokenMatcherItem(null, null, TokenType.Operator, new Regex("^" + Regex.Escape(separator) + "$")),
     captureConversion,
     minimum,
     maximum);
Пример #2
0
 public static TGroup ContinueWithMany <TGroup>(this ITokenMatcherItemGroup <TGroup> group, Action <TokenMatcherGroup> configuration, int minimum = 1, int maximum = int.MaxValue)
 => group.ContinueWithMany(null, configuration, minimum, maximum);