Exemple #1
0
 public static TGroup ContinueWithOptional <TGroup>(this ITokenMatcherItemGroup <TGroup> group, TokenType typeMask, Regex textPattern)
 => group.ContinueWithOptional(null, typeMask, textPattern);
Exemple #2
0
 public static TGroup ContinueWithOptionalKeyword <TGroup>(this ITokenMatcherItemGroup <TGroup> group, params string[] keywords)
 => group.ContinueWithOptional(null, TokenType.Keyword, keywords.ToRegex());
Exemple #3
0
 public static TGroup ContinueWithOptionalOperator <TGroup, T>(this ITokenMatcherItemGroup <TGroup> group, string captureName, Func <Token, T> captureConversion, params string[] operators)
 => group.ContinueWithOptional(captureName, captureConversion, TokenType.Operator, operators.ToRegex());
Exemple #4
0
 public static TGroup ContinueWithOptionalIdentifier <TGroup>(this ITokenMatcherItemGroup <TGroup> group, string captureName)
 => group.ContinueWithOptional(captureName, TokenType.Identifier, null);
Exemple #5
0
 public static TGroup ContinueWithOptionalOperator <TGroup>(this ITokenMatcherItemGroup <TGroup> group, string captureName, string[] operators)
 => group.ContinueWithOptional(captureName, TokenType.Operator, operators.ToRegex());
Exemple #6
0
 public static TGroup ContinueWithOptionalOperator <TGroup>(this ITokenMatcherItemGroup <TGroup> group, params string[] operators)
 => group.ContinueWithOptional(null, TokenType.Operator, operators.ToRegex());
Exemple #7
0
 public static TGroup ContinueWithOptionalOperator <TGroup>(this ITokenMatcherItemGroup <TGroup> group, string @operator)
 => group.ContinueWithOptional(null, TokenType.Operator, @operator.ToRegex());
Exemple #8
0
 public static TGroup ContinueWithOptionalKeyword <TGroup, T>(this ITokenMatcherItemGroup <TGroup> group, string captureName, Func <Token, T> captureConversion, params string[] keywords)
 => group.ContinueWithOptional(captureName, captureConversion, TokenType.Keyword, keywords.ToRegex());
Exemple #9
0
 public static TGroup ContinueWithOptionalKeyword <TGroup>(this ITokenMatcherItemGroup <TGroup> group, string captureName, string[] keywords)
 => group.ContinueWithOptional(captureName, TokenType.Keyword, keywords.ToRegex());