Piet assembler and compiler
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assembler-samples
compiler-samples
interpreter
.gitignore
README.md
piet-assembler
piet-compiler

README.md

Piet


Piet assembler

./piet-assembler somefile.piet | pnmtopng > out.png

Piet compiler

./piet-compiler somefile.script | piet-assembler | pnmtopng > out.png

See http://www.toothycat.net/wiki/wiki.pl?MoonShadow/Piet for further documentation and samples.

Kudos to Hugh Satow for many assorted tweaks and bugfixes.


Piet interpreter

For convenience, a fork of Marc Majcher's Piet interpreter is included.

./piet-assembler assembler-samples/fizzbuzz.piet | pnmtopng > fizzbuzz.png && interpreter/piet fizzbuzz.png

See http://www.majcher.com/code/piet/Piet-Interpreter.html for documentation and updates.


License: Creative Commons Attribution-ShareAlike 4.0, http://creativecommons.org/licenses/by-sa/4.0/
As attribution, please link back to this github repo, https://github.com/sl236/Piet