2020-04-01 15:11:56 -04:00
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// defines the capabilities of a parser pattern
|
2020-04-01 15:11:56 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IParserPatternMatcher
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// converts input string into pattern groups
|
2020-04-01 15:11:56 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input">input string</param>
|
|
|
|
|
/// <returns>group matches</returns>
|
|
|
|
|
IMatchResult Match(string input);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// compiles the pattern to be used for matching
|
2020-04-01 15:11:56 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pattern"></param>
|
|
|
|
|
void Compile(string pattern);
|
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|