fix(error-reporting): create custom compiler that inherits from BatchCompiler in order to get the compiler semantic diagnostics