IW4M-Admin/SharedLibraryCore/Interfaces/IParserPatternMatcher.cs

21 lines
625 B
C#
Raw Normal View History

namespace SharedLibraryCore.Interfaces
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// defines the capabilities of a parser pattern
/// </summary>
public interface IParserPatternMatcher
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// converts input string into pattern groups
/// </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
/// </summary>
/// <param name="pattern"></param>
void Compile(string pattern);
}
2022-01-26 11:32:16 -05:00
}