-
Notifications
You must be signed in to change notification settings - Fork 0
dnl0/brainwhack
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
About
brainfuck interpreter and translator to C
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published