https://github.com/antony-jr/brainfuck
A Python like interpreter for Brainfuck.
https://github.com/antony-jr/brainfuck
appimage brainfuck-interpreter c easy-to-use optimized
Last synced: 12 months ago
JSON representation
A Python like interpreter for Brainfuck.
- Host: GitHub
- URL: https://github.com/antony-jr/brainfuck
- Owner: antony-jr
- License: bsd-3-clause
- Created: 2019-09-14T09:58:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-14T10:56:10.000Z (over 6 years ago)
- Last Synced: 2025-01-13T23:25:55.481Z (about 1 year ago)
- Topics: appimage, brainfuck-interpreter, c, easy-to-use, optimized
- Language: Brainfuck
- Size: 38.1 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Brainfuck    
This is a very simple interpreter for **brainfuck** with a python interpreter like interface.
This can execute a brainfuck program directly from a file or interpret just like python.
**This was made just for fun but a little bit optimized, I will be adding more optimizations
in the future to make this even faster.**
# Installation
### Linux
You don't need to compile this from source, simply download the latest AppImage from releases and make it
executable and you are ready to go.
```
$ chmod +x brainfuck-continuous-x86_64.AppImage
$ ./brainfuck-continuous-x86_64.AppImage # starts the interpreter
```
# Usage
*You can use this interpreter just like how you use the python interpreter, if you give a file, it simply
executes it or if no arguments are given then it acts as a interpreter very similar to python interpreter.*
**You can also use shebangs if you want execute brainfuck programs directly from the terminal.**
Take this program for example.
```
#!/usr/bin/env brainfuck-continuous-x86_64.AppImage
>++++++++[-<+++++++++>]<.>>+>-[+]++
>++>+++[>[->+++<<+++>]<<]>-----.>->
+++..+++.>-.<<+[>[+>+]>>]<---------
-----.>>.+++.------.--------.>+.>+.
```
Execute it like this...
```
$ chmod +x Hello.b
$ PATH=/path/to/brainfuck-appimage/ ./Hello.b
$ # or, this if you have the interpreter in your path
$ ./Hello.b
```
# License
BSD 3-Clause License
Copyright (c) 2019, Antony Jr.