Compare commits
2 Commits
31ac237ffd
...
0baac36f35
Author | SHA1 | Date | |
---|---|---|---|
|
0baac36f35 | ||
|
da53e5d6dc |
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.Console;
|
||||
import java.io.File;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
@ -22,11 +22,10 @@ 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 = "src/CharArgument.java";
|
||||
String filePath = args[0];
|
||||
|
||||
boolean suppressDetails = false;
|
||||
|
||||
@ -110,6 +109,11 @@ 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