Brainfuck but not really... like, a better version of it.
Pre-build binaries with examples can be found in releases
To use Brainsuck's Compiler you'll need to have Rust version 1.50 or higher versions installed.
Requirements:
- Rust version 1.50 or higher
curl https://raw.githubusercontent.com/d3r1n/brainsuck/master/install.sh | bash
- Clone the repository and cd into it
- run
cargo build --release
- generated binary will be in
target/release
(binary name: bs_bin)
$ brainsuck [-h, --help]
$ brainsuck
$ brainsuck [-o, --optimize]
$ brainsuck [OPTIONS] <INPUT FILE>
$ brainsuck [-c, --compile] [OPTIONS] <INPUT FILE>
Automatic allocation is not supported in compilation right now.
- [-m, --mem-size]: Sets the program's memory size. (default: 1024)
- [-p, --ptr-loc]: Sets the program's memory pointer location. (default: 512)
- [-a, --auto]: Automatically allocates memory for the program. (default: false)
- [-o, --optimize]: Optimize the Parser and Interpreter (default: false)
- [-c, --compile]: Compile the program to a binary (default: false)
- v3.0 [Next]
- Adding more functionality and more keywords (Main Feature)
- Adding JiT compilation [LLVM] (Main Feature)
- Adding LLVM compilation (Main Feature)
- Adding support for debugging (Main Feature)
- Adding support for making system calls (Main Feature)
- Adding support for cross-platform compilation
- v2.75 [Now]
- Adding a compiler based on Rust (Main Feature)
see Usage ^
- Minor bug fixes
- Re-structed the code
- Adding a compiler based on Rust (Main Feature)
- v2.5 [Previous]
- Optimized the Parser and Interpreter (Main Feature)
- Improved speed (3x-100x times faster optimized) (Main Feature)
- Bug fixes
- v2.0
- Added Interactive Shell (Main Feature)
see Usage ^
- More bug fixes
- Added Interactive Shell (Main Feature)
- v1.5
- Automatic Memory Allocation (Main Feature)
- New way of argument handling
- Some bug fixes
- v1.0
- Initial Verison of Brainsuck
- Add basic brainfuck commands.
- Add automatic memory allocation.
- Add repl
- Add optimization
- Add Rust based compiler
- Add LLVM based compiler
- Add LLVM based JiT compiler
- Add custom keywords
- Add support for debugging
- Add support for making system calls
- Add support for cross-platform compilation
SpongeBed81 with his language Yearlight