Compiler written for Compiler Theory with Dr. Wilsey.

 

Feel free to use it as an example:

https://code.google.com/p/compilertheory/