Changed error message from string to enum
moved string/character literal validation into lexercontext