pass Token type to int for fast comparison