public void Run()
{
ParserErrorHandler errorHandler = new ParserErrorHandler(OnParserError);
foreach (ICompilerInput input in _context.Parameters.Input)
{
try
{
using (System.IO.TextReader reader = input.Open())
{
ParseModule(input.Name, reader, errorHandler);
}
}
catch (CompilerError error)
{
_context.Errors.Add(error);
}
catch (antlr.TokenStreamRecognitionException x)
{
OnParserError(x.recog);
}
catch (Exception x)
{
_context.Errors.Add(CompilerErrorFactory.InputError(input.Name, x));
}
}
}