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