brainfuck interpreter
brainfuck cli rust
5

Configure Feed

Select the types of activity you want to include in your feed.

removed example scripts and removed README mentions

felt like unneeded clutter

digi.rip (Jun 8, 2026, 4:35 PM EDT) 4b3dbbb6 0e0883df

+1 -80
+1
.gitignore
··· 1 1 /target 2 2 .DS_Store 3 3 TODO.md 4 + /scripts
-14
README.md
··· 51 51 ```bash 52 52 ./target/release/tachyon -c error script.bf 53 53 ``` 54 - 55 - ## examples 56 - there are brainfuck programs in the `/examples` directory if you want to quickly demo the interpreter. 57 - ```bash 58 - cargo run -- examples/hello_world.bf 59 - cargo run -- examples/echo.bf 60 - cargo run -- examples/67_ascii.bf 61 - cargo run -- -i raw examples/67_raw.bf 62 - ``` 63 - 64 - ## testing 65 - ```bash 66 - cargo test 67 - ```
-32
examples/67_ascii.bf
··· 1 - expects ascii input 2 - 3 - cell 0 is counter and input 4 - cell 1 is 6 5 - cell 2 is 7 6 - 7 - set up cell 1 8 - 54 divided by 6 is 9 9 - add 9 6 times then move back to cell 0 10 - ++++++[>+++++++++<-] 11 - 12 - set up cell 2 13 - 55 divided by 5 is 11 14 - add 5 11 times 15 - +++++[>>+++++++++++<<-] 16 - 17 - input repeat amt 18 - , 19 - 20 - adjust offset by subtracting byte value of 0 which is 48 21 - cell 3 is temp set to 48 and used as counter 22 - >>> 23 - ++++++[<<<-------->>>-] 24 - 25 - move data pointer to cell 0 26 - loop starts 27 - moves to cell 1 and prints 28 - moves to cell 2 and prints 29 - moves back to cell 0 30 - decrements counter 31 - repeat until counter is zero 32 - <<<[>.>.<<-]
-27
examples/67_raw.bf
··· 1 - expects u8 num input 2 - 3 - cell 0 is counter and input 4 - cell 1 is 6 5 - cell 2 is 7 6 - 7 - set up cell 1 8 - 54 divided by 6 is 9 9 - add 9 6 times then move back to cell 0 10 - ++++++[>+++++++++<-] 11 - 12 - set up cell 2 13 - 55 divided by 5 is 11 14 - add 5 11 times 15 - +++++[>>+++++++++++<<-] 16 - 17 - input repeat amt 18 - , 19 - 20 - move data pointer to cell 0 21 - loop starts 22 - moves to cell 1 and prints 23 - moves to cell 2 and prints 24 - moves back to cell 0 25 - decrements counter 26 - repeat until counter is zero 27 - [>.>.<<-]
-5
examples/echo.bf
··· 1 - echoes two inputs 2 - meant for testing 3 - – ascii and raw i/o 4 - – discard loops in read_ascc and read_raw 5 - ,>,<.>.
-1
examples/hello_world.bf
··· 1 - ++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.-----\---.>>+.>++.
-1
examples/tracing_test.bf
··· 1 - +++[>+++<-]>.