compiling version of new generator; supports only global variable declarations