ContractParser thisParser = new ContractParser(tokens);
parser = thisParser;
((ContractLexer)lexer).enableErrorMessageCollection(true);
thisParser.enableErrorMessageCollection(true);
try
{
thisParser.contract();
if (((ContractLexer)lexer).hasExceptions())