def translate_to_c(filename):
 ast = parse_file(filename, use_cpp=True)
 generator = c_generator.CGenerator()
 print(generator.visit(ast))

def translate_to_c ( filename ) : ast = parse_file ( filename , use_cpp = True ) generator = c_generator . CGenerator ( ) print ( generator . visit ( ast ) )
simply use the c_generator module to emit a parsed ast .