failOnSyntaxError("Project File: " + prx.getName(), parser, walker);
}
public int testPEX(File project) throws IOException, RecognitionException{
System.out.println("===== PEX: " + project.getName() + " =====");
TokenStream tokens = getStream(project);
parser.setTokenStream(tokens);
parser.setTreeAdaptor(adaptor);
projectFile_return result = parser.projectFile();
CommonTree tree = (CommonTree) result.getTree();
int errors = parser.getNumberOfSyntaxErrors();