An eductional language describing towers of cubes

root

cubetowers

A cube tower it built on a 3x3 grid numbered as follows.

  A  B  C
3 
2
1

A cube tower is described procedurally in a language with two features only: One command to place a single cube on a square and finite loops of the aforementioned commands. The language parser is parametrized in the keywords of the language, so that you can easily create a version that fits your locale.

The language compiles to scalable vector graphics (SVG). This package defines two executables:

  1. A compiler that reads source text files and produces SVG files,
  2. A webserver where one can write a program into a multi-line text field and have either the parse error message or the resulting SVG displayed upon clicking a compile button.