public Token(StandardTokenType type) : this((int)type) { }
public bool Equals(StandardTokenType other) { return(Value == (int)other); }
public TokenDefinition(string regex, StandardTokenType token) { //this.Matcher = new RegexMatcher(regex); this.regex = new Regex(string.Format("^{0}", regex)); this.Token = token; }