Using software classifications to drive code generation

Software classi cations are mainly considered as a means for helping the programmer in navigating and exploring the code. This paper illustrates by means of examples that software classi cation is also useful for code generation. This requires a highly exible and expressive classi cation mechanism. We propose to use a logic programming language for this purpose.