Cleanup of scanner.

Removed redundancy of keyword definitions and removed some unused token
predicates.
It is used in the TOKEN_LIST macro. I will add some comments.