public bool Equals(Token other) { if (other == null) return false; return TokenType == other.TokenType && TextValue == other.TextValue; }
public static Token[] MatchPairTokens(Token[] tokens) { var matchedTokens = (Token[])tokens.Clone(); MatchPairTokens(matchedTokens, 0, matchedTokens.Length - 1); return matchedTokens; }