A Shakespeare to Brainfuck 'transpiler' that I probably won't finish
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
include
.gitignore
AUTHORS
COPYING
CRAZYPLAN.md
LICENSE
Makefile
NEWS.md
README.md
grammar.y
makescanner.c
nspl2bf.py
speare2brain.py
strutils.c
strutils.h
telma.h

README.md

Speare2Brain

Speare2Brain is an ongoing project to develop a Shakespeare to Brainfuck transpiler. Based off the efforts of Jon Åslund and Karl Hasselström and their original SPL -> C transpiler, this project will first transpile Shakespeare to an intermediate format before transpiling to Brainfuck.

We'll be ripping out the internals of the original grammar generator to do this, making a mockery of the original project and sacrificing our souls in order to appease the demon lord Ba'al. The end result will be composed of:

  • A heavily modified grammar.y, with some new helper functions in strutils.c. This will produce spl2nspl, an SPL-to-Not-Shakespeare-Programming-Language transpiler. Not-Shakespeare-Programming-Language is not Shakespeare Programming Language.
  • A Python script called nspl2bf for transpiling the nspl to Brainfuck.
  • A wrapper around these called speare2brain.