add some writer methods
Code for assigning constants and globals to lexicals.