Skip to content

raina268/bfpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is just a Brainfuck interpreter written in Python.

Usage:
 ./brainfuck.py 
    this will launch script in live interpreter mode, there is and example of hello world 

    bf [1] # ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

    or

    bf [1] # help
    


 ./brainfuck.py com yourcode.bf

You can use it as a module as well:

  import brainfuck

  sourcecode = """
    ++++++++++[>+++++++>++++++++++>+++>+<<<<-]
    >++.>+.+++++++..+++.>++.<<+++++++++++++++.
    >.+++.------.--------.>+.>.
  """

  brainfuck.evaluate(sourcecode)

http://en.wikipedia.org/wiki/Brainfuck

This programm is licensed under the terms of the
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE.

About

Brainfuck interpreter written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published