Translator from brainf*ck to Shakespeare Programming Language
A little bit random, mostly the same. Always produces a correct program.
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!
Python >= 3.10
Input BF accepts all BF with matching brackets.
python bf2spl.py < input_bf.bYou 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- EOF returns 0
- Cells must be 1 unsigned byte (max value 255)
- Number of cells is constrained by stack depth of SPL
Word lists coming soon :)