def generate(self, api):
<EOL>for namespace in api.namespaces.values():<EOL><INDENT>with self.output_to_relative_path('<STR_LIT>' % namespace.name):<EOL><INDENT>self.emit('<STR_LIT>' % namespace.name)<EOL>for data_type in namespace.linearize_data_types():<EOL><INDENT>self.generate_data_type(data_type)<EOL><DEDENT>for route in namespace.routes:<EOL><INDENT>self.generate_route(route)<EOL><DEDENT><DEDENT><DEDENT>
Main code generator entry point.