use of org.eclipse.ceylon.compiler.typechecker.treegen.WalkergenParser in project ceylon by eclipse.
the class Generate method walker.
/*private static void builder(File file) throws Exception {
InputStream is = new FileInputStream( file );
ANTLRInputStream input = new ANTLRInputStream(is);
BuildergenLexer lexer = new BuildergenLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lexer);
BuildergenParser parser = new BuildergenParser(tokens);
File out = new File( GENERATED_PACKAGE_DIR + "Builder.java" );
out.createNewFile();
AnalyzerUtil.out=new PrintStream(out);
parser.nodeList();
}*/
private static void walker(File file) throws Exception {
InputStream is = new FileInputStream(file);
ANTLRInputStream input = new ANTLRInputStream(is);
WalkergenLexer lexer = new WalkergenLexer(input);
CommonTokenStream tokens = new CommonTokenStream(lexer);
WalkergenParser parser = new WalkergenParser(tokens);
File out = new File(GENERATED_PACKAGE_DIR + "Walker.java");
out.createNewFile();
Util.out = new PrintStream(out);
parser.nodeList();
}
Aggregations