!636 !quickmain !auto-import !standard functions !class _x14 import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.lang.reflect.*; main { psvm { String text; if (args.length != 0) text = loadSnippet(args[0]); else text = loadTextFile("input/main.java", null); if (text == null) throw new IOException("No input."); File srcDir = _x14.TempDirMaker_make(); saveTextFile(new File(srcDir, "main.java").getPath(), text); File classesDir = _x14.TempDirMaker_make(); List libraries = new ArrayList(); String javacOutput = _x14.compileJava(srcDir, libraries, classesDir); boolean isCompilable = _x14.didCompile(classesDir); System.out.println("Compilable: " + isCompilable); saveTextFile(isCompilable ? "output/is-compilable" : "output/is-not-compilable", "x"); } }