Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phistep/bananaBF
Another brainfuck interpreter
https://github.com/phistep/bananaBF
Last synced: 2 months ago
JSON representation
Another brainfuck interpreter
- Host: GitHub
- URL: https://github.com/phistep/bananaBF
- Owner: phistep
- Created: 2011-05-06T21:24:07.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-05-17T18:26:54.000Z (over 13 years ago)
- Last Synced: 2024-05-18T21:44:23.085Z (8 months ago)
- Language: C
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- AwesomeInterpreter - bananaBF
README
WHAT IS bananaBF?
A brainfuck interpreter.BUILDING
On UNIX simply type (you need to authenticate you, this
installation installs to /usr/bin, I provide a make clean,
too!):
$ make
$ sudo make installOn other operating systems use any standard C compiler.
Build the banana binary from the main.cUSAGE
$ banana [-d] [brainfuck code file]Only the brainfuck operators (< > , . [ ] - +) will be
interpreted. "-d" enables debugging information.WHAT IS BRAINFUCK?
Brainfuck is an esoteric programming language that only
uses eight characters: + - < > [ ] , .
Brainfuck is Turing complete and extreme minimalistic.WHY IS IT CALLED banana?
While I came up with the idea of writing a brainfuck
interpreter, i ate a banana. It starts with the same
letter -> win!LIMITS
The number of cells is limited to the memory of your
computer. Only needed memory is allocated. Each cell
can contain a value in standard integer size. This
depends of your OS but is probably 2E32-1.The number of
commands is limited by a buffersize defined in prepro-
cessor. Default is 1024 characters. If you have a bigger
sourcefile, you need to change the constant and recompile.
You can only nest 2E32-1 loops, again, this is an integer
sized counter.COPYRIGHT
(c) Ps0ke 2011
CreativeCommons BY NC SA 3.0
cc-by-nc-saCREDITS
Thanks to Ro0mquy for help with fileio and implementing
nesting loops.RESOURCE
http://en.wikipedia.org/wiki/Brainfuck
http://esolangs.org/wiki/Brainfuck
http://www.muppetlabs.com/~breadbox/bf/