1
Fork 0

Removed debugging information.

master
Joshua Potter 2014-04-26 13:26:42 -04:00
parent 8390199866
commit 202ad3c9b5
1 changed files with 3 additions and 20 deletions

View File

@ -36,8 +36,8 @@ public class Compiler {
Package p = parser.parse(); Package p = parser.parse();
// Display // Display
ASTDisplay display = new ASTDisplay(); // ASTDisplay display = new ASTDisplay();
display.showTree(p); // display.showTree(p);
// Contextual Analyzer // Contextual Analyzer
IdTable table = new IdTable(); IdTable table = new IdTable();
@ -60,23 +60,6 @@ public class Compiler {
if(objF.write()) { if(objF.write()) {
Reporter.emit("Object File Failed."); Reporter.emit("Object File Failed.");
} }
// create asm file using disassembler
String asmCodeFileName = "test.asm";
System.out.print("Writing assembly file ... ");
Disassembler d = new Disassembler(objectFileName);
if (d.disassemble()) {
System.out.println("FAILED!");
return;
}
else
System.out.println("SUCCEEDED");
// run
System.out.println("Running code ... ");
Interpreter.debug(objectFileName, asmCodeFileName);
System.out.println("*** mJAM execution completed");
} }
System.exit(0); System.exit(0);