Friday, July 04, 2008

Small Chew Compiler

And so, after about 758 lines of Python code complete with embedded C within the code, the basic compiler has been completed. I've managed to get it to compile the "standard" library of words that I've crafted to run off the core words, and the various types of control flows like recursion, nested IF-ELSE-THEN statements all work nicely. Compilation is performed through piping from the command line because I am too lazy to hack out stuff to make use of argv.

Apart from genuine string manipulations and arrays, everything else works well with the compiler.

Alright, it's getting late, and I'm going to knock out. Once again, till next time.

[Ed: Small Chew can be found here]

No comments: