Skip to content

TextToBrainfuckTranslator is a Python-based translator that converts arbitrary text input into optimized Brainfuck code. This project was created to validate my understanding of ASCII encoding and Brainfuck, and to refine my Python programming skills. The goal of this tool is to generate the most compact Brainfuck code possible for any given string

License

Notifications You must be signed in to change notification settings

Ci3l/TextToBrainfuckTranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text to Brainfuck Translator

Description

Text to Brainfuck Translator is a Python-based translator that converts arbitrary text input into optimized Brainfuck code. This project was created to validate my understanding of ASCII encoding and Brainfuck, and to refine my Python programming skills. The goal of this tool is to generate the most compact Brainfuck code possible for any given string.

Features

  • Optimized Brainfuck Translation: Converts input text into Brainfuck code with minimal space usage.
  • Case Conversion: Supports uppercase and lowercase text conversions.
  • Flexible Input: Handles various input formats and provides options for text case manipulation.

Technologies

  • Programming Language: Python
  • Libraries Used: Standard library modules (math, array)

Usage

To run the project, ensure Python is installed and properly set up in your PATH. Follow these steps:

  1. Clone the repository:
    git clone https://github.com/Ci3l/TextToBrainfuckTranslator.git
  2. Navigate into the project directory:
    cd TextToBrainfuckTranslator
  3. Run the translator:
    python MindBlower.py

Command Line Options

You can modify the input text for case conversion by using the following options:

  • '!uppercase [your text]' to convert the text to uppercase before translation.
  • '!lowercase [your text]' to convert the text to lowercase before translation.

Function Syntax

MindBlower(input, uppercase=False, lowercase=False)
  • 'input': The text to be converted to Brainfuck code.
  • 'uppercase' (optional): Set to True to convert input to uppercase.
  • 'lowercase' (optional): Set to True to convert input to lowercase.

Demo

You can try out the Mind Blower translator live at JDoodle. Provide your text in Stdin Inputs and see the optimized Brainfuck code generated in real-time.

Related Projects

Brainfuck2Ascii: A basic Brainfuck compiler that translates Brainfuck code into ASCII text.

Contributing

If you’d like to contribute, please follow these guidelines:

  • Fork the repository
  • Create a new branch (git checkout -b feature/YourFeature)
  • Commit your changes (git commit -am 'Add new feature')
  • Push to the branch (git push origin feature/YourFeature)
  • Open a pull request

License

This project is licensed under the EPL 2.0 License - see the LICENSE file for details.

About

TextToBrainfuckTranslator is a Python-based translator that converts arbitrary text input into optimized Brainfuck code. This project was created to validate my understanding of ASCII encoding and Brainfuck, and to refine my Python programming skills. The goal of this tool is to generate the most compact Brainfuck code possible for any given string

Topics

Resources

License

Stars

Watchers

Forks

Languages