use of org.eclipse.ceylon.compiler.typechecker.treegen.TreegenLexer in project ceylon by eclipse.
the class Generate method tree.
private static void tree(File file) throws Exception {
InputStream is = new FileInputStream(file);
ANTLRInputStream input = new ANTLRInputStream(is);
TreegenLexer lexer = new TreegenLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lexer);
TreegenParser parser = new TreegenParser(tokens);
File out = new File(GENERATED_PACKAGE_DIR + "Tree.java");
out.createNewFile();
Util.out = new PrintStream(out);
parser.nodeList();
}
Aggregations