Skip to content

Touchcreator/touch-brainf

Repository files navigation

Touch's Brainf**k Interpreter!

Installation

  • From Source:

    • Windows:

      • Run test.bat for easy installation!
    • Others (Mac & Linux):

      • The code block below should work in your terminal:
      • python setup.py sdist bdist_wheel
        
        pip install .
  • From PyPI:

    • With PIP:

      • Run pip install touch-brainf in your terminal

Using the Interpreter

  • From the terminal:

    • Run touch-brainf <filename> in your terminal
    • If that doesn't work, use python -m touch_brainf <filename>
    • You can also do touch-brainf -h or python -m touch_brainf -h for help
  • In a Python File:

    • The main.py file is an example of a way to use the package in a Python file. The example below is a very simple example.
    • import touch_brainf as bf
      
      runner = bf.Runner("+++.")
      runner.run()
    • If you want to import from a file, you can also do...
      • import touch_brainf as bf
        
        runner = bf.Runner(bf.get_code_from_file("file.bf"))
        runner.run()
    • I don't know why someone would do this, but it's their choice

Uninstallation

Just run pip uninstall touch-brainf!

Examples

Look at the examples folder for any help!


sonic drawing

About

BrainF Interpreter Package with Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors