I'm not sure if the tutorial has gone anywhere but I cam across this earlier which may be useful as a start.
Something about using TreeCC would be nice as well. http://www.flipcode.com/tutorials/tut_scr01.shtml -- the test for truth is still quicker than the addition