using System;
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) {
this.Type = type;
this.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;
}
}
}