documented the errors in lexer