BrainF*ck interpreter and Java compiler
Another implementation for brainf*ck, using the compiler-framework.
- Source file
- List of tokens
- Parsing Tree
- Abstract syntax tree
- Optimized abstract syntax tree (not optimizations are really implemented)
- Interpreter or Java Compiler runs over the abstract syntax tree
java bfk.Interpreter <path to brainf*ck source>
Translate an abstract syntax tree to java 1.7 byte code using asm5. Result is stored into a class file and is runnable as usual java console application.
java bfk.Javac <path to brainf*ck source>
See bfk.common.BrainFKGrammar.java for grammar details
The code is released under Apache License Version 2.0