Implement token list class for enabling look-ahead