Skip to main content

BrainFuckInterpreter

standard usage:

from brainFuckInterpreter import BrainF

easily get outputs:

for msg in BrainF(code='yourcodehere'):
    print(msg)  #msg is what the '.' outputs

or use a comprehension

meg=[i for i in BrainF(code='yourcodehere') if i]

or just run it at once

print(BrainF(code='yourcodehere').run()) #what run() returns is a string

attributes

in the iterator called BrainF:

def __init__(self,code,*,print_memory=True, print_func=None, input_func=None)
  • print_memory => bool(is initially set to True)
  • input_func => function fot input(is initially set as BrainF.input_in_ASCII)
  • print_func => function for printing memory(is not needed when print_memory is set to False)

PrettyPrint!!!

from brainFuckInterpreter import prettyprint
prettyprint(ur list representing memory to print, the index of cell (aka element) u want to emphasize)

Download files

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

Source Distribution

BrainpyFuck-0.1.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file BrainpyFuck-0.1.1.tar.gz.

File metadata

  • Download URL: BrainpyFuck-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

File hashes

Hashes for BrainpyFuck-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cbfc866c8c7dce732cad2dd8bc5d0073eabad9168cf5f8aaab42924841db5270
MD5 e0dae56f2b970f3b480769146aaf7774
BLAKE2b-256 4ae44cbb09a6061c63d776afeca3d39d6923a5235457c7b6b157fc0fc5b6247b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 file

0.1.0

1 file

0.0.5

1 file

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

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