pascal.ijs: factored out as much as possible from gen routine.
pascal.ijs: cleaned up codegen class
pascal.ijs: create an explicit stack for the state
pascal.ijs: at last! gen is a method of CodeGen!