Commits

Anonymous committed 568d188

Changed compiler to just output code in message box, before platform specfic gcc compiling is initiated

Comments (0)

Files changed (1)

Li3-C/src/main/LCCompiler.java

 	public static void compile (LCProgram prog, boolean runFlag)
 	{
 		String code = prog.genCode(LCCompiler.CLCPP, 0);
-		try {
+		JOptionPane.showMessageDialog(null, code);
+		
+		/*try {
 			BufferedWriter out = new BufferedWriter(new FileWriter("/tmp/a.cpp"));
 			out.write(code);
 			out.close();
 			}
 		} catch (IOException e) {
 			e.printStackTrace();
-		}
+		}*/
 	}
 	
 }