public static bool InvokeCompiler (string [] args, TextWriter error)
{
try {
StreamReportPrinter srp = new StreamReportPrinter (error);
Driver d = Driver.Create (args, true, null, srp);
if (d == null)
return false;
return d.Compile () && srp.ErrorsCount == 0;
} finally {
Reset ();
}
}