updated gitignore

This commit is contained in:
Sem van der Hoeven
2019-12-20 08:38:24 +01:00
parent e8177076a1
commit 7ab7c33134
14 changed files with 722 additions and 39 deletions

View File

@@ -1,21 +1,33 @@
package brainfuck.interpreter;
import java.io.File;
import java.io.UnsupportedEncodingException;
import javafx.application.Application;
import javafx.stage.Stage;
/**
* Main
*/
public class Main {
public class Main extends Application {
public static void main(String[] args) {
String excl = "++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>>-----------.++++++++++++..+++++++++++++++.<<++.>+++++++.>-------------------.+++++++++++++.---.------.+++++++++++++.<<+.";
String excl = ">,[[----------[ >>>[>>>>]+[[-]+<[->>>>++>>>>+[>>>>]++[->+<<<<<]]<<<] ++++++[>------<-]>--[>>[->>>>]+>+[<<<<]>-],< ]> ]>>>++>+>>[ <<[>>>>[-]+++++++++<[>-<-]+++++++++>[-[<->-]+[<<<<]]<[>+<-]>] >[>[>>>>]+[[-]<[+[->>>>]>+<]>[<+>[<<<<]]+<<<<]>>>[->>>>]+>+[<<<<]] >[[>+>>[<<<<+>>>>-]>]<<<<[-]>[-<<<<]]>>>>>>> ]>>+[[-]++++++>>>>]<<<<[[<++++++++>-]<.[-]<[-]<[-]<]<, ]";
try {
BfInterpreter interpreter = new BfInterpreter(excl);
BfInterpreter interpreter = new BfInterpreter(",.");
interpreter.setCodeFromFile("mandelbrot-tiny.bf");
interpreter.interpret();
// interpreter.interpretAgain(excl);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void start(Stage stage) throws Exception {
}
}