Improve lexer
Summary
The lexer should be able to report the errors in parsing, and also report the line numbers of the input file associated with the same.
Solution
A proper structured error consisting of line number and column number ( if possible ) and the associated error message.