Code Generator for the XP Framework