Skip to main content

🧠 Brainfuck to C transpiler

from bftc import code_generator, tokenizer


with open("code.bf") as bf_source:
    tokens = [tokenizer.tokenize(char) for char in bf_source.read()]
    with open("code.c", "w") as c_source:
        c_source.write(code_generator.generate(tokens))

Modules

  • tokens — contains all tokens
  • tokenizer — contains tokenize function
def tokenize(char: str) -> Token: ...
  • transpiler — contains transpile function
def transpile(token: Token) -> str: ...
  • code_generator — contains generate function that generate valid C code from given tokens
def generate(tokens: list[Token]) -> str: ...

Install

pip install bftc

Metadata

Release files for bftc 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bftc 2.0.0
File Size Uploaded Provenance Actions
bftc-2.0.0.tar.gz 11.2 kB Without provenance Details for bftc-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bftc 2.0.0
File Interpreter ABI Platform Actions
bftc-2.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for bftc-2.0.0-py2.py3-none-any.whl

Total release size: 15.4 kB

Release files / bftc-2.0.0.tar.gz

Download URL bftc-2.0.0.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
845468a808fc0b279800531328cc4b45956c728c73c0adf26ebe0f86bbde3005
BLAKE2b-256 checksum
How to use checksums
50ec49a0cec976c5a66849ce946501e39ac5f6b63c6eeae7dab7ea61db09189b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Release files / bftc-2.0.0-py2.py3-none-any.whl

Download URL bftc-2.0.0-py2.py3-none-any.whl
Size 4.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5b9900ea4a7e2bd3c3d580741f63a1dcb89336362b968195b92092999848d212
BLAKE2b-256 checksum
How to use checksums
321790369814ea0e859742fc1e0f4ec3e72adfc60b476cc37e8888f2b605a9e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.26.0

Security for bftc 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page