/** * Parse a file and print the parse tree. * @param file the file to print. * @return parse tree as a string * @throws IOException if the file could not be read. */ public static String printFileAst(File file) throws IOException { return printTree(parseFile(file), "", ""); }
/** * Parse a file and print the parse tree. * @param file the file to print. * @return parse tree as a string * @throws IOException if the file could not be read. */ public static String printFileAst(File file) throws IOException { return printTree(parseFile(file), "", ""); }