use of org.antlr.v4.tool.BuildDependencyGenerator in project antlr4 by antlr.
the class Tool method processGrammarsOnCommandLine.
public void processGrammarsOnCommandLine() {
List<GrammarRootAST> sortedGrammars = sortGrammarByTokenVocab(grammarFiles);
for (GrammarRootAST t : sortedGrammars) {
final Grammar g = createGrammar(t);
g.fileName = t.fileName;
if (gen_dependencies) {
BuildDependencyGenerator dep = new BuildDependencyGenerator(this, g);
/*
List outputFiles = dep.getGeneratedFileList();
List dependents = dep.getDependenciesFileList();
System.out.println("output: "+outputFiles);
System.out.println("dependents: "+dependents);
*/
System.out.println(dep.getDependencies().render());
} else if (errMgr.getNumErrors() == 0) {
process(g, true);
}
}
}
Aggregations