First attempt at code gen.............better late than never. Just set
up some stuff up. I think most of it is straight forward (except boolean
expressions of course) may have screwed myself with how I managed scope