}
public int testClassImplementationFile(File cex, boolean failOnError) throws RecognitionException, IOException {
CharStream stream =
new NoCaseFileStream(cex.getAbsolutePath());
ForteLexer lexer = new ForteLexer(stream);
TokenStream tokenStream = new CommonTokenStream(lexer);
ForteParser parser = new ForteParser(tokenStream);
printTree(parser.implementationFile().getTree());
int errors = parser.getNumberOfSyntaxErrors();
if (failOnError && errors > 0) Assert.fail() ;
return errors;