Enhance the error reporting of the parser.