from if else if to switch statement
Tokenlist and Token
fixed Tokenlist
start of the processToken function