for (int i = 0; i < args.length; i++) {
if (args[i].endsWith(".beam")) {
File in = ERT.newFile(args[i]);
int idx = args[i].lastIndexOf('.');
File out = ERT.newFile(args[i].substring(0, idx) + ".jar");
JarClassRepo jcp = new JarClassRepo(out);
System.out.println("compiling "+in+" -> "+out+" ...");
new Compiler(jcp).compile(in, beamParser);
jcp.close();
}
}
}