}
public int testPEXFile(File pex, boolean failOnError) throws IOException, RecognitionException {
CharStream stream =
new NoCaseFileStream(pex.getAbsolutePath());
ForteLexer lexer = new ForteLexer(stream);
TokenStream tokenStream = new CommonTokenStream(lexer);
ForteParser parser = new ForteParser(tokenStream);
CommonTree tree = (CommonTree) parser.projectFile().getTree();
printTree(tree);