-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
26 lines (20 loc) · 1.21 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
brainwhack -- probably the most convoluted BF interpreter out there.
for the simplest interpreter checkout dnl-ua/small-brainwhack.
build with `make`, run with `./brainwhack <.bf file>`.
to translate code to C run `./brainwhack --codegen <.bf file>`.
brainwhack is newbiefuck irreconcilable, meaning it is truly a brainfuck interpreter.
to verify this try running `test/brainfuck/newbie.bf` script, the output should be as follows:
+-------------------------------------------------+
| % ./brainwhack test/brainfuck/newbie.bf |
| Hello |
| % |
+-------------------------------------------------+
in contrast, small-brainwhack "equivalent" i made isn't in fact a brainfuck interpreter, since
its output is this:
+-------------------------------------------------+
| % ./small-brainwhack test/brainfuck/newbie.bf |
| Hello Newbie |
| % |
+-------------------------------------------------+
meaning it treats `[` commands as a NOP, and `]` command as a simple jump to `[` instance.
for more information check this out: https://esolangs.org/wiki/Newbiefuck.