···5151```bash
5252./target/release/tachyon -c error script.bf
5353```
5454-5555-## examples
5656-there are brainfuck programs in the `/examples` directory if you want to quickly demo the interpreter.
5757-```bash
5858-cargo run -- examples/hello_world.bf
5959-cargo run -- examples/echo.bf
6060-cargo run -- examples/67_ascii.bf
6161-cargo run -- -i raw examples/67_raw.bf
6262-```
6363-6464-## testing
6565-```bash
6666-cargo test
6767-```
-32
examples/67_ascii.bf
···11-expects ascii input
22-33-cell 0 is counter and input
44-cell 1 is 6
55-cell 2 is 7
66-77-set up cell 1
88-54 divided by 6 is 9
99-add 9 6 times then move back to cell 0
1010-++++++[>+++++++++<-]
1111-1212-set up cell 2
1313-55 divided by 5 is 11
1414-add 5 11 times
1515-+++++[>>+++++++++++<<-]
1616-1717-input repeat amt
1818-,
1919-2020-adjust offset by subtracting byte value of 0 which is 48
2121-cell 3 is temp set to 48 and used as counter
2222->>>
2323-++++++[<<<-------->>>-]
2424-2525-move data pointer to cell 0
2626-loop starts
2727-moves to cell 1 and prints
2828-moves to cell 2 and prints
2929-moves back to cell 0
3030-decrements counter
3131-repeat until counter is zero
3232-<<<[>.>.<<-]
-27
examples/67_raw.bf
···11-expects u8 num input
22-33-cell 0 is counter and input
44-cell 1 is 6
55-cell 2 is 7
66-77-set up cell 1
88-54 divided by 6 is 9
99-add 9 6 times then move back to cell 0
1010-++++++[>+++++++++<-]
1111-1212-set up cell 2
1313-55 divided by 5 is 11
1414-add 5 11 times
1515-+++++[>>+++++++++++<<-]
1616-1717-input repeat amt
1818-,
1919-2020-move data pointer to cell 0
2121-loop starts
2222-moves to cell 1 and prints
2323-moves to cell 2 and prints
2424-moves back to cell 0
2525-decrements counter
2626-repeat until counter is zero
2727-[>.>.<<-]
-5
examples/echo.bf
···11-echoes two inputs
22-meant for testing
33-– ascii and raw i/o
44-– discard loops in read_ascc and read_raw
55-,>,<.>.