private static void prettyPrint(Path filename, int indentation) throws Exception {
ANTLRInputStream input = new ANTLRFileStream(filename.toString());
ParseTree tree = parse(input).a;
PrettyPrintVisitor prettyPrinter = new PrettyPrintVisitor(indentation);
prettyPrinter.visit(tree);
System.out.print(prettyPrinter.getOutput());
}
Trinity.java 文件源码
java
阅读 17
收藏 0
点赞 0
评论 0
项目:Trinity
作者:
评论列表
文章目录