walker.component_definition();
return walker.getNumberOfSyntaxErrors();
}
private int parseUsingCDFTree(CommonTree tree, TokenStream tokens, String name) throws RecognitionException{
IProjectComponent cls = new ToolClass(name);
CommonTreeNodeStream nodes = new CommonTreeNodeStream(tree);
nodes.setTokenStream(tokens);
ForteCDFTree walker = new ForteCDFTree(nodes);
walker.classDeclaration();
return walker.getNumberOfSyntaxErrors();