Transformed TokenType to a C++11 enum class.