error reporting in parser