namespace Swan.Parsers { /// /// Represents a Token structure. /// public struct Token { /// /// Initializes a new instance of the struct. /// /// The type. /// The value. public Token(TokenType type, string value) { Type = type; Value = type == TokenType.Function || type == TokenType.Operator ? value.ToLowerInvariant() : value; } /// /// Gets or sets the type. /// /// /// The type. /// public TokenType Type { get; set; } /// /// Gets the value. /// /// /// The value. /// public string Value { get; } } }