public GlobParserContext(string pattern, bool caseSensitive) { _tokenizer = new GlobTokenizer(pattern); _currentToken = null; _regexOptions = RegexOptions.Compiled | RegexOptions.Singleline; if (!caseSensitive) { _regexOptions |= RegexOptions.IgnoreCase; } }
public void Accept() { _currentToken = _tokenizer.Scan(); }