An open API service indexing awesome lists of open source software.

https://github.com/sbasalaev/jbfc

Advanced brainfuck compiler written in Java
https://github.com/sbasalaev/jbfc

Last synced: about 1 year ago
JSON representation

Advanced brainfuck compiler written in Java

Awesome Lists containing this project

README

          

Advanced brainfuck compiler written in Java.

Features:
* Generates error and warning messages
* Optimizes code
* Can produce executable code for multiple targets
* Support for custom building targets and AST visitors

Command line options:
-o Use given output name to generate files
-t, -target Generate file for given target
-vc, -visitorclass Apply specified visitor to BF tree
-d Specify where to place generated files
-r, -range Specify max array size
-g Generate debugging info
-h, -help Show help message and exit
-v, -version Show program version and exit

Available targets:
Binary
-t class Generate Java class file

Source
-t java Java source
-t c C source

Available optimizations (all turned on by default):
* Reduces sequences of >>><< and +++-- to single shift/increment
* Reduces [+] and [-] to zero assignment
* Tries to calculate needed array size reducing memory consuming