https://github.com/wunkolo/brainwunk
Brainfuck language interpeter
https://github.com/wunkolo/brainwunk
Last synced: 10 months ago
JSON representation
Brainfuck language interpeter
- Host: GitHub
- URL: https://github.com/wunkolo/brainwunk
- Owner: Wunkolo
- Created: 2015-06-22T23:52:04.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T18:37:28.000Z (almost 9 years ago)
- Last Synced: 2025-01-24T22:16:43.209Z (over 1 year ago)
- Language: C++
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#BrainWunk
An interpreter for the "Brainfuck" language


The interal buffer only takes up as much space as the Brainfuck program cares to attempt to address and will reallocate its self dynamically.
`-v` : Enables verbose output
`-e "(expression)"` : Evalutes the brainfuck expression in quotes
`-f (filename)` : Evaluate the brainfuck program file (overrides the -e expression)
`-if (filename)` : Sets the input stream buffer to read from the file. Bytes read from the `,` command will read from this file
`-d` : Outputs the final memory array as formatted ascii text
`-i` : Interactive mode:

`quit`|`q` to exit
`reset`|`r` to reset the interpretor into its default state.
`dump`|`d` shows a hexadecimal dump of the current memory state
Example:
```
BrainWunk -eval "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
```
will cause the program to output
````
Hello World!
```