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