diff --git a/HouseOfCompiler/src/main/java/codegen/ProgramGenerator.java b/HouseOfCompiler/src/main/java/codegen/ProgramGenerator.java index 62ae447..51a1320 100644 --- a/HouseOfCompiler/src/main/java/codegen/ProgramGenerator.java +++ b/HouseOfCompiler/src/main/java/codegen/ProgramGenerator.java @@ -38,7 +38,7 @@ public HashMap generateBytecode(Program program) { public static HashMap generate(Program program) { ProgramGenerator pg = new ProgramGenerator(); pg.generateBytecode(program); - System.out.println(pg); +// System.out.println(pg); return pg.getBytecode(); } diff --git a/HouseOfCompiler/src/main/java/common/Compiler.java b/HouseOfCompiler/src/main/java/common/Compiler.java index 66bc79a..711b8f1 100644 --- a/HouseOfCompiler/src/main/java/common/Compiler.java +++ b/HouseOfCompiler/src/main/java/common/Compiler.java @@ -226,6 +226,8 @@ public void generateJar(InputStream inputStream, String outFile) { } catch (IOException e) { e.printStackTrace(); } + } else { + System.err.println("No unique main method found."); } }