mirror of
https://github.com/Noratrieb/brainfuck.git
synced 2026-01-14 13:35:00 +01:00
same
This commit is contained in:
parent
271cf2d20b
commit
6bec58b802
1 changed files with 5 additions and 0 deletions
|
|
@ -94,6 +94,11 @@ public class Brainfuck {
|
|||
public static void main(String[] args) throws IOException {
|
||||
Brainfuck brainfuck = new Brainfuck();
|
||||
|
||||
if (args.length < 1) {
|
||||
System.out.println("Please specify a path");
|
||||
return;
|
||||
}
|
||||
|
||||
String program = Files.readString(Paths.get(args[0]));
|
||||
List<Character> minified = brainfuck.minify(program);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue