Urban Grammars and Evolving Landscapes. A Generative Approach to the Reproduction of the Historic City