Java Brainfuck Compiler 2.0 reviewDownload
The Java Brainfuck Compiler is a compiler for the uniquely powerful Brainfuck language, which produces Java bytecode that will run on
The Java Brainfuck Compiler is a compiler for the uniquely powerful Brainfuck language, which produces Java bytecode that will run on any Java Virtual Machine (with no intermediate steps such as going by way of Java code).
You will need the BCEL package in your classpath to compile and run this application. To compile, you will also need Apache Ant.
Build the application using Ant, after first editing build.xml to make sure it knows where to find bcel.jar.
To compile the Hello World program from the examples directory:
$ java -jar dist/jbfc.jar -v examples/hello.b HelloWorld
This will dump a long stream of disassembly to standard out (because of the -v option) and produce the file HelloWorld.class. To run your freshly compiled Brainfuck program:
$ java HelloWorld
And there you are.
There’s also a class BrainfuckInterpreter (jbfi) available for embedding interpreted Brainfuck in your own applications.
Java Brainfuck Compiler 2.0 keywords