The Java Brainfuck Compiler is a tool that optimizes Brainfuck code and converts it into Java bytecode.
Before proceeding, you'll need to make sure the BCEL package is in your classpath. Additionally, if you want to compile your code, you'll also need Apache Ant.
To use the Java Brainfuck Compiler, you'll first need to build it with Ant. Edit the build.xml file to locate the bcel.jar file. Once you've done so, you can compile the Hello World program by running the following command:
$ java -jar dist/jbfc.jar -v examples/hello.b HelloWorld
This will produce a long stream of disassembly on standard out (due to the -v switch) and create the HelloWorld.class file. To run your code, just run:
$ java HelloWorld
It's as simple as that! If you want to include interpreted Brainfuck in your own applications, jbfi's BrainfuckInterpreter class is also available.
Version 2.0: N/A