/** * A list of dependency generators that are accumulated aaaas (and if) the tool is required to * sort the provided grammars into build dependency order. protected Map<String, * BuildDependencyGenerator> buildDependencyGenerators; */ public static void main(String[] args) { Tool antlr = new Tool(args); if (!exitNow) { antlr.process(); if (ErrorManager.getNumErrors() > 0) { System.exit(1); } System.exit(0); } }
/** * Returns the number of errors that the analysis/processing threw up. * * @return Error count */ public int getNumErrors() { return ErrorManager.getNumErrors(); }