Detect bad tokens earlier.

When lexing rules, we now throw an exception when a token does not exist.