Added custom error management to lexer.
Tested error management in parser.