The inspiration for this is an a sample application from BeOS:
http://www.haiku-os.org/legacy-docs/benewsletter/Issue3-51.html#Engineering3-51-2
To use:
python compile.py
enter a formula followed by ctrl-D
x+y+f
Synthesize the design on Quartus. This has been tested on the Cyclone II starter kit dev board.
Details of operation are in the Wiki: https://github.com/jbush001/FPGAWhack/wiki