6 stable releases
1.2.2 | Jul 14, 2021 |
---|---|
1.2.1 | Jul 1, 2021 |
1.2.0 | Jun 30, 2021 |
1.1.1 | May 29, 2021 |
#2572 in Parser implementations
22KB
450 lines
BIIR - Brainfuck Interpreter In Rust
Installation
cargo install biir
Usage
biir filename.bf
Numerical mode
Available through -n
or --numerical-mode
.
Prints byte values instead of their ascii representations.
Debug mode
Entered via -d
or --debug-mode
.
Allows the usage of !TAPE
to print 10 nearby (already created) cells and
also prints some debug info at the end of the execution.
Notes
-
!TAPE
can be put at any point in the program, but will only do anything when running in debug mode. -
Every
,
(comma) will take input the same way asgetchar
in C. It's also possible to provide it externally using pipes, however it will exit once the whole input was consumed. -
(note to point above) Keep in mind that by default
echo
passes\n
as last character. This behaviour can be avoided by using its-n
flag.
TODO:
- add a cool logo
Dependencies
~1–11MB
~70K SLoC