Merge branch 'master' of https://gitea.hb.dhbw-stuttgart.de/i22022/NichtHaskell
This commit is contained in:
commit
ec400479bb
BIN
KlassendiagrammUML.jpg
Normal file
BIN
KlassendiagrammUML.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 MiB |
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