Skip to main content

BrainF interpreter Python package

Project description

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>
  • 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

Changelog:

25.3.19.1


  • Add utils.py, helping with managing files, etc.

25.3.19


  • Preparing to upload on PyPI
  • PyPI uploading and making code more friendly

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

touch_brainf-25.3.19.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

touch_brainf-25.3.19.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file touch_brainf-25.3.19.1.tar.gz.

File metadata

  • Download URL: touch_brainf-25.3.19.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for touch_brainf-25.3.19.1.tar.gz
Algorithm Hash digest
SHA256 53254cc404ab1337a5e43b531f362731136074ec74506968b5abc84d3c293740
MD5 6f9697c445c03363bd1a99845379d4b1
BLAKE2b-256 a06eb833137b27a67bcc3018536d0138d000384c53b49126d58afa6e2626f45c

See more details on using hashes here.

File details

Details for the file touch_brainf-25.3.19.1-py3-none-any.whl.

File metadata

File hashes

Hashes for touch_brainf-25.3.19.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bf2c39486266b2504a977c1f98b5134217e79a07c933834e7a25e0a75ffa1b0
MD5 7c027942042297f660cbf8e1bab05700
BLAKE2b-256 620cfb341e4eba7062f76a47c9e47a2526d04964afb376513e8c3305b425a26f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page