Giter Club home page Giter Club logo

brainfuck's Introduction

brainfuck

A Brainfuck interpreter, written in Python.

Brainfuck is an esoteric programming language with an extremely minimalistic syntax. It is considered Turing complete. You can find a deeper explanation along with several examples on Wikipedia.

Usage

python ./brainfuck.py [-h] [-c CODE|-f FILE] [-i INPUT] [--debug]

  • -h Display a help message and exits.
  • -c Lets you write brainfuck code directly into the terminal. Cannot be used with -f.
  • -f The programm takes the code from an external file with text-based format. Please write the absolute path to this file or store it in the same directory as brainfuck.py. Cannot be used with -c.
  • -i Define the input for your program.
  • --debug If enabled, a '#' in your brainfuck code will pause to running programm and display useful debugging information.

Python has to be installed in order to use it. To do so (Ubuntu):

sudo apt-get install python

Creating a useful alias:

echo "alias brainfuck='python ~/replace/with/your/directory/brainfuck.py '" >> ~/.bash_aliases

With this one you can use:

brainfuck [-h] [-c CODE|-f FILE] [--debug]

Feel free to modify this code, report bugs, give advices to enhance it or ask questions about the source code (obviously I'm not that good at commenting my code).

brainfuck's People

Contributors

redevined avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.