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
- Host: GitHub
- URL: https://github.com/sbasalaev/jbfc
- Owner: SBasalaev
- License: other
- Created: 2011-10-08T19:58:04.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2014-07-16T05:20:50.000Z (almost 12 years ago)
- Last Synced: 2025-05-05T13:55:01.295Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 234 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
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