throws IOException
{
super.lexer = new SubsLexer(data);
CommonTokenStream tokens = new CommonTokenStream(lexer);
SubsParser thisParser = new SubsParser(tokens);
parser = thisParser;
((SubsLexer) lexer).enableErrorMessageCollection(true);
thisParser.enableErrorMessageCollection(true);
try
{
SubsParser.start_return result = thisParser.start();
if (((SubsLexer) lexer).hasExceptions())
{
List<RecognitionException> exps = ((SubsLexer) lexer).getExceptions();
addErrorsLexer(source, exps);
return null;
}
if (thisParser.hasExceptions())
{
List<RecognitionException> exps = thisParser.getExceptions();
addErrorsParser(source, exps);
} else
{
return result;
}