Added a method to the lexical analyser for checking if an identifier is
reserved.

Changed the lexical analyser so that reserved symbols show the same type
as their value.