public TokenDefinition(TokenType type, string pattern, bool isIgnored = false) { Type = type; Pattern = new Regex(pattern, RegexOptions.IgnoreCase); IsIgnored = isIgnored; }