Skip to content

translates BrainF*ck to Shakespeare Programming Language, with and without using AI

Notifications You must be signed in to change notification settings

veggiebob/bf2spl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BF2SPL

About

Translator from brainf*ck to Shakespeare Programming Language

Modes

Boring Mode

A little bit random, mostly the same. Always produces a correct program.

AI Mode

Uses ChatGPT to fill in descriptions, adjectives, noun phrases, etc. Usually produces a 'correct' program, but the definition of correctness changes based on the SPL implementation (nouns/adjectives available). Word list validation coming soon!

Running

Python >= 3.10
Input BF accepts all BF with matching brackets.

Boring Mode

python bf2spl.py < input_bf.b

AI Mode

You must create a openai-key.private file in the root directory, with the api key inside on the first line.

python bf2spl.py ai < input_bf.b

Specifications

BF

  • EOF returns 0
  • Cells must be 1 unsigned byte (max value 255)
  • Number of cells is constrained by stack depth of SPL

SPL

Word lists coming soon :)

About

translates BrainF*ck to Shakespeare Programming Language, with and without using AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published