Compare commits
No commits in common. "0baac36f35cf55c9b5032994686e223449dc16c5" and "31ac237ffdd4aefdd9c2f731f9ef67d26dd6b81e" have entirely different histories.
0baac36f35
...
31ac237ffd
Binary file not shown.
Binary file not shown.
@ -9,7 +9,7 @@ import org.antlr.v4.runtime.CommonTokenStream;
|
||||
import org.antlr.v4.runtime.Token;
|
||||
import org.antlr.v4.runtime.tree.ParseTree;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Console;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
@ -22,10 +22,11 @@ public class Compiler {
|
||||
|
||||
if (args.length < 1) {
|
||||
System.out.println("Usage: java -jar Compiler.jar <file_path> [--suppress-details]");
|
||||
return;
|
||||
//return;
|
||||
}
|
||||
|
||||
String filePath = args[0];
|
||||
//String filePath = args[0];
|
||||
String filePath = "src/CharArgument.java";
|
||||
|
||||
boolean suppressDetails = false;
|
||||
|
||||
@ -109,11 +110,6 @@ public class Compiler {
|
||||
System.out.println(e);
|
||||
return;
|
||||
}
|
||||
|
||||
File outputJarFile = new File("output.jar");
|
||||
if (outputJarFile.exists())
|
||||
outputJarFile.delete();
|
||||
|
||||
System.out.println("Your input was compiled. You can find the output in your current working directory.");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user